libata: mask off DET when restoring SControl for detach
authorTejun Heo <tj@kernel.org>
Mon, 3 Nov 2008 10:27:07 +0000 (19:27 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 4 Nov 2008 06:08:33 +0000 (01:08 -0500)
commit299246f9a2a4c5c531863d72bad7ebd0de213de9
treec153c51f2857e053cc40bada5a520d94fea4a354
parent6a87e42e955ff27e07a77f65f8f077dc7c4171e1
libata: mask off DET when restoring SControl for detach

libata restores SControl on detach; however, trying to restore
non-zero DET can cause undeterministic behavior including PMP device
going offline till power cycling.  Mask off DET when restoring
SControl.

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