From: Bartlomiej Zolnierkiewicz Date: Thu, 17 Apr 2008 22:46:21 +0000 (+0200) Subject: ide-generic: set hwif->chipset X-Git-Tag: firefly_0821_release~21625^2~56 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ce9b248bb451134fcb41e189e83e3838fb57caf0;p=firefly-linux-kernel-4.4.55.git ide-generic: set hwif->chipset This hwif->chipset fixup is already present in ide_device_add_all() but for warm-plug support we also need to reserve not currently present interfaces. Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c index 9ebec08eefd9..c1d8d71f8791 100644 --- a/drivers/ide/ide-generic.c +++ b/drivers/ide/ide-generic.c @@ -20,7 +20,9 @@ static int __init ide_generic_init(void) for (i = 0; i < MAX_HWIFS; i++) { ide_hwif_t *hwif = &ide_hwifs[i]; - if (hwif->io_ports[IDE_DATA_OFFSET] && !hwif->present) + if (hwif->io_ports[IDE_DATA_OFFSET] && + (hwif->chipset == ide_unknown || + hwif->chipset == ide_forced)) idx[i] = i; else idx[i] = 0xff;