libata: clear link->eh_info.serror from ata_std_postreset()
authorTejun Heo <htejun@gmail.com>
Fri, 7 Dec 2007 23:47:01 +0000 (08:47 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 18 Dec 2007 01:33:11 +0000 (20:33 -0500)
commitf7fe7ad4bcaba17f05d5cbf1119772c645783b08
treeb267cfb43c39aa7a038b13acf620bd1e0cab29a8
parent8cf32ac6578a70025be1103466da9d1d6141429e
libata: clear link->eh_info.serror from ata_std_postreset()

link->eh_info.serror is used to cache SError for controllers which
need it cleared from interrupt handler to clear IRQ.  It also should
be cleared after reset just like SError itself.

Make ata_std_postreset() clear link->eh_info.serror too and update
sata_sil such that it doesn't care about bookkeeping the value.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
drivers/ata/sata_sil.c