Loading drivers/ide/ide-probe.c +9 −25 Original line number Original line Diff line number Diff line Loading @@ -250,7 +250,7 @@ static void do_identify(ide_drive_t *drive, u8 cmd) } } /** /** * actual_try_to_identify - send ata/atapi identify * try_to_identify - send ATA/ATAPI identify * @drive: drive to identify * @drive: drive to identify * @cmd: command to use * @cmd: command to use * * Loading @@ -262,7 +262,7 @@ static void do_identify(ide_drive_t *drive, u8 cmd) * 2 device aborted the command (refused to identify itself) * 2 device aborted the command (refused to identify itself) */ */ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) static int try_to_identify(ide_drive_t *drive, u8 cmd) { { ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif; struct ide_io_ports *io_ports = &hwif->io_ports; struct ide_io_ports *io_ports = &hwif->io_ports; Loading @@ -271,6 +271,13 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) unsigned long timeout; unsigned long timeout; u8 s = 0, a = 0; u8 s = 0, a = 0; /* * Disable device IRQ. Otherwise we'll get spurious interrupts * during the identify phase that the IRQ handler isn't expecting. */ if (io_ports->ctl_addr) tp_ops->set_irq(hwif, 0); /* take a deep breath */ /* take a deep breath */ msleep(50); msleep(50); Loading Loading @@ -327,29 +334,6 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) return rc; return rc; } } /** * try_to_identify - try to identify a drive * @drive: drive to probe * @cmd: command to use * * Issue the identify command. */ static int try_to_identify (ide_drive_t *drive, u8 cmd) { ide_hwif_t *hwif = drive->hwif; const struct ide_tp_ops *tp_ops = hwif->tp_ops; /* * Disable device IRQ. Otherwise we'll get spurious interrupts * during the identify phase that the IRQ handler isn't expecting. */ if (hwif->io_ports.ctl_addr) tp_ops->set_irq(hwif, 0); return actual_try_to_identify(drive, cmd); } int ide_busy_sleep(ide_hwif_t *hwif, unsigned long timeout, int altstatus) int ide_busy_sleep(ide_hwif_t *hwif, unsigned long timeout, int altstatus) { { u8 stat; u8 stat; Loading Loading
drivers/ide/ide-probe.c +9 −25 Original line number Original line Diff line number Diff line Loading @@ -250,7 +250,7 @@ static void do_identify(ide_drive_t *drive, u8 cmd) } } /** /** * actual_try_to_identify - send ata/atapi identify * try_to_identify - send ATA/ATAPI identify * @drive: drive to identify * @drive: drive to identify * @cmd: command to use * @cmd: command to use * * Loading @@ -262,7 +262,7 @@ static void do_identify(ide_drive_t *drive, u8 cmd) * 2 device aborted the command (refused to identify itself) * 2 device aborted the command (refused to identify itself) */ */ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) static int try_to_identify(ide_drive_t *drive, u8 cmd) { { ide_hwif_t *hwif = drive->hwif; ide_hwif_t *hwif = drive->hwif; struct ide_io_ports *io_ports = &hwif->io_ports; struct ide_io_ports *io_ports = &hwif->io_ports; Loading @@ -271,6 +271,13 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) unsigned long timeout; unsigned long timeout; u8 s = 0, a = 0; u8 s = 0, a = 0; /* * Disable device IRQ. Otherwise we'll get spurious interrupts * during the identify phase that the IRQ handler isn't expecting. */ if (io_ports->ctl_addr) tp_ops->set_irq(hwif, 0); /* take a deep breath */ /* take a deep breath */ msleep(50); msleep(50); Loading Loading @@ -327,29 +334,6 @@ static int actual_try_to_identify (ide_drive_t *drive, u8 cmd) return rc; return rc; } } /** * try_to_identify - try to identify a drive * @drive: drive to probe * @cmd: command to use * * Issue the identify command. */ static int try_to_identify (ide_drive_t *drive, u8 cmd) { ide_hwif_t *hwif = drive->hwif; const struct ide_tp_ops *tp_ops = hwif->tp_ops; /* * Disable device IRQ. Otherwise we'll get spurious interrupts * during the identify phase that the IRQ handler isn't expecting. */ if (hwif->io_ports.ctl_addr) tp_ops->set_irq(hwif, 0); return actual_try_to_identify(drive, cmd); } int ide_busy_sleep(ide_hwif_t *hwif, unsigned long timeout, int altstatus) int ide_busy_sleep(ide_hwif_t *hwif, unsigned long timeout, int altstatus) { { u8 stat; u8 stat; Loading