[PATCH 133/222] ata: ahci_imx: warn when disabling ahci link

Russell King rmk+kernel at arm.linux.org.uk
Fri Apr 25 04:42:46 PDT 2014

When the AHCI link is disabled, it can't be re-enabled except by
resetting the entire SoC.  Rather than doing this silently print
some kernel messages to inform the user, along with how to avoid

Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
 drivers/ata/ahci_imx.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c
index 497c7abe1c7d..6a56a561a80b 100644
--- a/drivers/ata/ahci_imx.c
+++ b/drivers/ata/ahci_imx.c
@@ -160,6 +160,10 @@ static void ahci_imx_error_handler(struct ata_port *ap)
 	writel(reg_val | PORT_PHY_CTL_PDDQ_LOC, mmio + PORT_PHY_CTL);
 	imxpriv->no_device = true;
+	dev_info(ap->dev, "no device found, disabling link.\n");
+	dev_info(ap->dev, "pass " MODULE_PARAM_PREFIX
+		 ".hotplug=1 to enable hotplug\n");
 static int ahci_imx_softreset(struct ata_link *link, unsigned int *class,

More information about the linux-arm-kernel mailing list