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

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

ide: clear drive IRQ after re-enabling local IRQs in ide_driveid_update()



Clear drive IRQ after re-enabling local IRQs in ide_driveid_update()
to match try_to_identify().

Also remove superfluous local_irq_enable() call while at it.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent f323b80d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -341,10 +341,10 @@ int ide_driveid_update(ide_drive_t *drive)

	local_irq_save(flags);
	tp_ops->input_data(drive, NULL, id, SECTOR_SIZE);
	(void)tp_ops->read_status(hwif);	/* clear drive IRQ */
	local_irq_enable();
	local_irq_restore(flags);

	(void)tp_ops->read_status(hwif); /* clear drive IRQ */

	ide_fix_driveid(id);

	SELECT_MASK(drive, 0);