Skip to contentSkip to conversation

Patch: ide noprobe fix

DISCUSSION Peter Millerchip 1 participant 1 message Mar 3, 2006 libata

lore
Share & tools
lore
#0 lore raw

Hi,

With 2.6.15.5 I am using ide2=noprobe on the command line but drivers/ide/setup-pci.c overwrites the hwif->noprobe flag back to zero on line 442. The following patch fixes it:

442c442
< hwif->noprobe = !hwif->io_ports[IDE_DATA_OFFSET];
---

Quoted 1 line
              hwif->noprobe = hwif->noprobe || !hwif->io_ports[IDE_DATA_OFFSET];

This allows ide2=noprobe to work correctly. Without the patch the kernel takes around a minute to determine that ide2 is not there, but with the patch it is instant.

Is this patch the correct way to do it? How do I get it merged into the main code if it is correct? Sorry for the obvious questions but I'm a bit of a newbie at this.

Regards,

Pete.