NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51300: wd* sometimes not detected



The following reply was made to PR kern/51300; it has been noted by GNATS.

From: "Jonathan A. Kollasch" <jakllsch%kollasch.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/51300: wd* sometimes not detected
Date: Wed, 4 Jan 2017 11:48:56 -0600

 I believe this issue may be due to jmide(4)'s reconfiguration of the
 chip, and the chip presenting two interfaces to the same hardware.
 
 Could you try the attached patch?
 
 Index: sys/dev/pci/jmide.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/jmide.c,v
 retrieving revision 1.21
 diff -d -u -a -p -r1.21 jmide.c
 --- sys/dev/pci/jmide.c	14 Jul 2016 10:19:06 -0000	1.21
 +++ sys/dev/pci/jmide.c	4 Jan 2017 17:42:09 -0000
 @@ -127,7 +127,7 @@ jmide_lookup(pcireg_t id) {
  	const struct jmide_product *jp;
  
  	for (jp = jm_products; jp->jm_product != 0; jp++) {
 -		if (jp->jm_product == PCI_PRODUCT(id))
 +		if ((jp->jm_product | 0x2000) == PCI_PRODUCT(id))
  			return jp;
  	}
  	return NULL;
 


Home | Main Index | Thread Index | Old Index