diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-06-23 07:59:08 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-06-24 17:58:14 -0400 |
commit | f118ae5901172dacc4f272acf5eccfba06e8d221 (patch) | |
tree | 69be5dd83c28b3151641bf76e8fcc6f99202abb6 | |
parent | 72cbaa3d2f563d7b48c9f8aef47ec9aa3a31adf2 (diff) |
ata: ahci_imx: warn when disabling ahci link
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
this.
tj: Put a long printf format string on a single line.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | drivers/ata/ahci_imx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index 4384a7d72133..cac4360f272a 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c | |||
@@ -326,6 +326,9 @@ static void ahci_imx_error_handler(struct ata_port *ap) | |||
326 | writel(reg_val | IMX_P0PHYCR_TEST_PDDQ, mmio + IMX_P0PHYCR); | 326 | writel(reg_val | IMX_P0PHYCR_TEST_PDDQ, mmio + IMX_P0PHYCR); |
327 | imx_sata_disable(hpriv); | 327 | imx_sata_disable(hpriv); |
328 | imxpriv->no_device = true; | 328 | imxpriv->no_device = true; |
329 | |||
330 | dev_info(ap->dev, "no device found, disabling link.\n"); | ||
331 | dev_info(ap->dev, "pass " MODULE_PARAM_PREFIX ".hotplug=1 to enable hotplug\n"); | ||
329 | } | 332 | } |
330 | 333 | ||
331 | static int ahci_imx_softreset(struct ata_link *link, unsigned int *class, | 334 | static int ahci_imx_softreset(struct ata_link *link, unsigned int *class, |