Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce9b248b authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

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: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent a594eeb1
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -20,7 +20,9 @@ static int __init ide_generic_init(void)
	for (i = 0; i < MAX_HWIFS; i++) {
	for (i = 0; i < MAX_HWIFS; i++) {
		ide_hwif_t *hwif = &ide_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;
			idx[i] = i;
		else
		else
			idx[i] = 0xff;
			idx[i] = 0xff;