Commit f118ae59 authored by Russell King's avatar Russell King Committed by Tejun Heo

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 72cbaa3d
...@@ -326,6 +326,9 @@ static void ahci_imx_error_handler(struct ata_port *ap) ...@@ -326,6 +326,9 @@ static void ahci_imx_error_handler(struct ata_port *ap)
writel(reg_val | IMX_P0PHYCR_TEST_PDDQ, mmio + IMX_P0PHYCR); writel(reg_val | IMX_P0PHYCR_TEST_PDDQ, mmio + IMX_P0PHYCR);
imx_sata_disable(hpriv); imx_sata_disable(hpriv);
imxpriv->no_device = true; 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, static int ahci_imx_softreset(struct ata_link *link, unsigned int *class,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment