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

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

ide: fix ide_port_scan() to do ACPI setup after initializing request queues



This makes ide_port_scan()'s behavior match ide_host_register()'s
one and fixes OOPS in elv_may_queue() during port re-scan.

Reported-and-tested-by: default avatarBruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent c38714ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1694,8 +1694,8 @@ void ide_port_scan(ide_hwif_t *hwif)
	hwif->present = 1;
	hwif->present = 1;


	ide_port_tune_devices(hwif);
	ide_port_tune_devices(hwif);
	ide_acpi_port_init_devices(hwif);
	ide_port_setup_devices(hwif);
	ide_port_setup_devices(hwif);
	ide_acpi_port_init_devices(hwif);
	hwif_register_devices(hwif);
	hwif_register_devices(hwif);
	ide_proc_port_register_devices(hwif);
	ide_proc_port_register_devices(hwif);
}
}