From: Huang Shijie <b32955@freescale.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: marex@denx.de, artem.bityutskiy@linux.intel.com,
shawn.guo@linaro.org, linux-mtd@lists.infradead.org,
Fabio Estevam <fabio.estevam@freescale.com>
Subject: Re: [PATCH] nand: gpmi-nand: Fix clock registration
Date: Wed, 10 Oct 2012 10:44:14 +0800 [thread overview]
Message-ID: <5074E0FE.2050602@freescale.com> (raw)
In-Reply-To: <CAOMZO5AE22Kscv8JAxiazzR5NSvEH+qs4QxBC6aEQqi3ZCpCpg@mail.gmail.com>
于 2012年10月08日 11:22, Fabio Estevam 写道:
> On Sun, Oct 7, 2012 at 11:45 PM, Huang Shijie<b32955@freescale.com> wrote:
>> 于 2012年09月24日 02:31, Fabio Estevam 写道:
>>> From: Fabio Estevam<fabio.estevam@freescale.com>
>>>
>>> On a mx28 board the following error happens since commit 638064e56c
>>> (mtd: gpmi: change the code for clocks):
>>>
>>> gpmi-nand: probe of 8000c000.gpmi-nand failed with error -12
>>>
>>> Acquire the clock using "NULL" as it was done previously, so that the driver
>>> can register on mx23/mx28 as well.
>>>
>>> Signed-off-by: Fabio Estevam<fabio.estevam@freescale.com>
>>> ---
>>> drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
>>> index c46be6c..1f23cb4 100644
>>> --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
>>> +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
>>> @@ -492,7 +492,7 @@ static int __devinit gpmi_get_clks(struct gpmi_nand_data *this)
>>> int i;
>>>
>>> /* The main clock is stored in the first. */
>>> - r->clock[0] = clk_get(this->dev, "gpmi_io");
>>> + r->clock[0] = clk_get(this->dev, NULL);
>> Please do not change this line.
>>
>> The gpmi_io is for mx6q.
>> If you replace it with `NULL`. The mx6q can not find the proper clock.
> What about this?
>
> index 42978f1b..7b1aded 100644
> --- a/drivers/clk/mxs/clk-imx28.c
> +++ b/drivers/clk/mxs/clk-imx28.c
> @@ -139,7 +139,7 @@ enum imx28_clk {
> ssp0_div, ssp1_div, ssp2_div, ssp3_div, gpmi_div, emi_pll,
> emi_xtal, lcdif_div, etm_div, ptp, saif0_div, saif1_div,
> clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0,
> - ssp1, ssp2, ssp3, gpmi, spdif, emi, saif0, saif1, lcdif, etm,
> + ssp1, ssp2, ssp3, gpmi_io, spdif, emi, saif0, saif1, lcdif, etm,
> fec, can0, can1, usb0, usb1, usb0_pwr, usb1_pwr, enet_out,
> clk_max
> };
> @@ -208,7 +208,7 @@ int __init mx28_clocks_init(void)
> clks[ssp1] = mxs_clk_gate("ssp1", "ssp1_div", SSP1, 31);
> clks[ssp2] = mxs_clk_gate("ssp2", "ssp2_div", SSP2, 31);
> clks[ssp3] = mxs_clk_gate("ssp3", "ssp3_div", SSP3, 31);
> - clks[gpmi] = mxs_clk_gate("gpmi", "gpmi_div", GPMI, 31);
> + clks[gpmi_io] = mxs_clk_gate("gpmi_io", "gpmi_div", GPMI, 31);
> clks[spdif] = mxs_clk_gate("spdif", "spdif_div", SPDIF, 31);
> clks[emi] = mxs_clk_gate("emi", "emi_sel", EMI, 31);
> clks[saif0] = mxs_clk_gate("saif0", "saif0_div", SAIF0, 31);
>
> Can you please test it on mx28?
I tested it in the linux-next with mx28-evk board. It did not works.
thanks a lot.
Huang Shijie
> Regards,
>
> Fabio Estevam
>
prev parent reply other threads:[~2012-10-10 2:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-23 18:31 [PATCH] nand: gpmi-nand: Fix clock registration Fabio Estevam
2012-10-08 2:45 ` Huang Shijie
2012-10-08 3:15 ` Marek Vasut
2012-10-08 3:34 ` Huang Shijie
2012-10-08 3:37 ` Marek Vasut
2012-10-08 3:22 ` Fabio Estevam
2012-10-08 3:32 ` Huang Shijie
2012-10-08 3:31 ` Fabio Estevam
2012-10-08 3:46 ` Fabio Estevam
2012-10-08 3:52 ` Marek Vasut
2012-10-08 4:53 ` Huang Shijie
2012-10-10 2:44 ` Huang Shijie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5074E0FE.2050602@freescale.com \
--to=b32955@freescale.com \
--cc=artem.bityutskiy@linux.intel.com \
--cc=fabio.estevam@freescale.com \
--cc=festevam@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=marex@denx.de \
--cc=shawn.guo@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox