zhao, forrest wrote:
BTW. Is there a way to check whether SATA controller support
hotplug, such as a capability bit in certain register?
For AHCI, all controllers support hotplug.
Most SATA controllers support hotplug, across all vendors.
If you're lucky, silicon has a phy interrupt. If you're somewhat lucky,
silicon has a PhyRdy state interrupt. If you're stuck with a BMDMA
interface with bolted-on SATA PHY registers, hotplug will -probably- work.
Or we have to first enable PHY status changed interrupt, then
hotplug the SATA disk, then to check if the interrupt is triggered,
and PHY RDY status changes?
The interrupt is quite helpful, but ultimately optional.
Jeff
-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html