Skip to content

Commit

Permalink
[PATCH] libata-eh-fw: clear SError in ata_std_postreset()
Browse files Browse the repository at this point in the history
Clear SError in ata_std_postreset().  This is to clear SError bits
which get set during reset.

Signed-off-by: Tejun Heo <htejun@gmail.com>
  • Loading branch information
Tejun Heo committed May 15, 2006
1 parent 9ec957f commit dc2b351
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2528,11 +2528,17 @@ int sata_std_hardreset(struct ata_port *ap, unsigned int *class)
*/
void ata_std_postreset(struct ata_port *ap, unsigned int *classes)
{
u32 serror;

DPRINTK("ENTER\n");

/* print link status */
sata_print_link_status(ap);

/* clear SError */
if (sata_scr_read(ap, SCR_ERROR, &serror) == 0)
sata_scr_write(ap, SCR_ERROR, serror);

/* re-enable interrupts */
if (ap->ioaddr.ctl_addr) /* FIXME: hack. create a hook instead */
ata_irq_on(ap);
Expand Down

0 comments on commit dc2b351

Please sign in to comment.