* [PATCH 1/5] ata: ahci_imx: warn when disabling ahci link
@ 2014-06-23 11:59 Russell King
2014-06-24 22:00 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2014-06-23 11:59 UTC (permalink / raw)
To: Sascha Hauer, Shawn Guo, Tejun Heo; +Cc: linux-ide
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.
Signed-off-by: Russell King <rmk+kernel@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 3a901520c62b..4eba1c5279ec 100644
--- a/drivers/ata/ahci_imx.c
+++ b/drivers/ata/ahci_imx.c
@@ -324,6 +324,10 @@ static void ahci_imx_error_handler(struct ata_port *ap)
writel(reg_val | IMX_P0PHYCR_TEST_PDDQ, mmio + IMX_P0PHYCR);
imx_sata_disable(hpriv);
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,
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/5] ata: ahci_imx: warn when disabling ahci link
2014-06-23 11:59 [PATCH 1/5] ata: ahci_imx: warn when disabling ahci link Russell King
@ 2014-06-24 22:00 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2014-06-24 22:00 UTC (permalink / raw)
To: Russell King; +Cc: Sascha Hauer, Shawn Guo, linux-ide
On Mon, Jun 23, 2014 at 12:59:08PM +0100, Russell King wrote:
> 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.
>
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Applied to libata/for-3.16-fixes w/ the printf format string put on a
single line.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-24 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 11:59 [PATCH 1/5] ata: ahci_imx: warn when disabling ahci link Russell King
2014-06-24 22:00 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).