mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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 <bzolnier@gmail.com>
This commit is contained in:
parent
a594eeb1a1
commit
ce9b248bb4
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue