[PATCH] libata-hp: implement hotplug
authorTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:28:03 +0000 (18:28 +0900)
committerTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:28:03 +0000 (18:28 +0900)
commit084fe639b81c4d418a2cf714acb0475e3713cb73
tree55afc26dbb866488b69e49b1742863d1293f6612
parent0ea035a3d1ad948096e205f08f350c03d5cea453
[PATCH] libata-hp: implement hotplug

Implement ATA part of hotplug.  To avoid probing broken devices over
and over again, disabled devices are not automatically detached.  They
are detached only if probing is requested for the device or the
associated port is offline.  Also, to avoid infinite probing loop,
Each device is probed only once per EH run.

As SATA PHY status is fragile, devices are detached only after it has
used up its recovery chances unless explicitly requested by LLDD or
user (LLDD may request direct detach if, for example, it supports cold
presence detection).

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/scsi/libata-eh.c
include/linux/libata.h