[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5540EB1B.10505@st.com>
Date: Wed, 29 Apr 2015 16:30:51 +0200
From: Maxime Coquelin <maxime.coquelin@...com>
To: Peter Griffin <peter.griffin@...aro.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <srinivas.kandagatla@...il.com>,
<patrice.chotard@...com>, <tj@...nel.org>,
<computersforpeace@...il.com>
CC: <lee.jones@...aro.org>, <linux-ide@...r.kernel.org>
Subject: Re: [PATCH v2] ata: ahci_st: fixup layering violations / drvdata
errors
Hi Peter,
On 04/20/2015 03:41 PM, Peter Griffin wrote:
> Brian noticed while working on another SATA driver that uses libahci_platform,
> an error in this driver; it tries to the the driver data for its
> device, while libata also thinks it can set the driver data. See:
>
> ahci_platform_init_host()
> -> ata_host_alloc_pinfo()
> -> ata_host_alloc()
> -> dev_set_drvdata()
>
> So instead of sticking the IP-specific platform data into drvdata, let's
> use the plat_data variable that is reserved for this use.
>
> Addtionally plat_data isn't set until ahci_platform_init_host() has been
> called further down in probe(). So re-work the st_ahci_probe_resets and
> st_ahci_deassert_resets functions to take ahci_host_priv *hpriv as a
> parameter.
>
> Signed-off-by: Peter Griffin <peter.griffin@...aro.org>
> Suggested-by: Brian Norris <computersforpeace@...il.com>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@...il.com>
> Cc: Maxime Coquelin <maxime.coquelin@...com>
> Cc: Patrice Chotard <patrice.chotard@...com>
> ---
>
You can add my:
Acked-by: Maxime Coquelin <maxime.coquelin@...com>
Thanks!
Maxime
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists