]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
libata: clear HOTPLUG flag after a reset
authorTejun Heo <htejun@gmail.com>
Mon, 16 Jul 2007 05:29:41 +0000 (14:29 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 20 Jul 2007 12:26:25 +0000 (08:26 -0400)
commitfccb6ea5c240b9f29baa55448488fd6aee49f5a5
treed1c76e551ed15b58c9e10645a25b609b6ba398ee
parentf8f1e1cc0cd4d75c73e9a55a0ede8958e4fa14f1
libata: clear HOTPLUG flag after a reset

ATA_EHI_HOTPLUGGED is a hint for reset functions indicating the the
port might have gone through hotplug/unplug just before entering EH.
Reset functions modify their behaviors a bit to handle the situation
better - e.g. using longer debouncing delay.

Currently, once HOTPLUG is set, it isn't cleared till the end of EH.
This is unnecessary and makes EH take longer.  Clear the HOTPLUGGED
flag after a reset try (successful or not).

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