Skip to content

Commit

Permalink
ide: clear drive IRQ after re-enabling local IRQs in ide_driveid_upda…
Browse files Browse the repository at this point in the history
…te()

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: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent f323b80 commit ff18b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/ide-iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff18b89

Please sign in to comment.