* [PATCH]: JMB 368 PATA detection
@ 2006-10-27 12:07 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2006-10-27 12:07 UTC (permalink / raw)
To: linux-kernel, akpm, linux-ide
The Jmicron JMB368 is PATA only so has the PATA on function zero. Don't
therefore skip function zero on this device when probing
Signed-off-by: Alan Cox <alan@redhat.com>
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.19-rc2-mm1/drivers/ide/pci/generic.c linux-2.6.19-rc2-mm1/drivers/ide/pci/generic.c
--- linux.vanilla-2.6.19-rc2-mm1/drivers/ide/pci/generic.c 2006-10-18 13:50:13.000000000 +0100
+++ linux-2.6.19-rc2-mm1/drivers/ide/pci/generic.c 2006-10-27 12:31:46.000000000 +0100
@@ -234,8 +234,10 @@
(!(PCI_FUNC(dev->devfn) & 1)))
goto out;
- if (dev->vendor == PCI_VENDOR_ID_JMICRON && PCI_FUNC(dev->devfn) != 1)
- goto out;
+ if (dev->vendor == PCI_VENDOR_ID_JMICRON) {
+ if (dev->device != PCI_DEVICE_ID_JMICRON_JMB368 && PCI_FUNC(dev->devfn) != 1)
+ goto out;
+ }
if (dev->vendor != PCI_VENDOR_ID_JMICRON) {
pci_read_config_word(dev, PCI_COMMAND, &command);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-27 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27 12:07 [PATCH]: JMB 368 PATA detection Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox