]> git.baikalelectronics.ru Git - kernel.git/commit
libata: set device class to NONE if phys_offline
authorTejun Heo <tj@kernel.org>
Tue, 21 Oct 2008 15:31:34 +0000 (00:31 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 23 Oct 2008 00:42:43 +0000 (20:42 -0400)
commit537a1d16e1c0421ed0d5c9a9df24885b9c06403c
tree066f5e76a52f2cc5b6ad23c2606911dbe3af4921
parentdf4fa62bceb4926251d82607752d0a8e05fb4a1b
libata: set device class to NONE if phys_offline

Reset methods don't have access to phys link status for slave links
and may incorrectly indicate device presence causing unnecessary probe
failures for unoccupied links.  This patch clears device class to NONE
during post-reset processing if phys link is offline.

As on/offlineness semantics is strictly defined and used in multiple
places by the core layer, this won't change behavior for drivers which
don't use slave links.

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