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

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

ide: fix do_probe() to use SELECT_DRIVE()



Fix one place in do_probe() which used ->OUTB directly instead
of calling SELECT_DRIVE() (so ->selectproc method is also used).

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 49e153e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -478,7 +478,7 @@ static int do_probe (ide_drive_t *drive, u8 cmd)
			printk(KERN_ERR "%s: no response (status = 0x%02x), "
			printk(KERN_ERR "%s: no response (status = 0x%02x), "
					"resetting drive\n", drive->name, stat);
					"resetting drive\n", drive->name, stat);
			msleep(50);
			msleep(50);
			hwif->OUTB(drive->select.all, io_ports->device_addr);
			SELECT_DRIVE(drive);
			msleep(50);
			msleep(50);
			hwif->OUTBSYNC(drive, WIN_SRST, io_ports->command_addr);
			hwif->OUTBSYNC(drive, WIN_SRST, io_ports->command_addr);
			(void)ide_busy_sleep(hwif);
			(void)ide_busy_sleep(hwif);