libata: clear saved xfer_mode and ncq_enabled on device detach
authorTejun Heo <tj@kernel.org>
Sun, 26 Oct 2008 06:43:03 +0000 (15:43 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 28 Oct 2008 03:55:40 +0000 (23:55 -0400)
commit90484ebfc96c5dc5c498ed72cf2d370575db9b76
tree46ada261a4d318296bcbe08ac724fd32eb014a6d
parente8b3b5e9f54512bfdb7c154da07ec0408cbd6c56
libata: clear saved xfer_mode and ncq_enabled on device detach

libata EH saves xfer_mode and ncq_enabled at start to later set
DUBIOUS_XFER flag if it has changed.  These values need to be cleared
on device detach such that hot device swap doesn't accidentally miss
DUBIOUS_XFER.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c