From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-out.m-online.net ([212.18.0.9]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TL49U-0008Gr-RA for linux-mtd@lists.infradead.org; Mon, 08 Oct 2012 03:37:10 +0000 From: Marek Vasut To: Huang Shijie Subject: Re: [PATCH] nand: gpmi-nand: Fix clock registration Date: Mon, 8 Oct 2012 05:37:04 +0200 References: <1348425062-17427-1-git-send-email-festevam@gmail.com> <201210080515.19706.marex@denx.de> <507249B1.7040308@freescale.com> In-Reply-To: <507249B1.7040308@freescale.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201210080537.04912.marex@denx.de> Cc: Fabio Estevam , artem.bityutskiy@linux.intel.com, shawn.guo@linaro.org, Fabio Estevam , linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dear Huang Shijie, > =E4=BA=8E 2012=E5=B9=B410=E6=9C=8808=E6=97=A5 11:15, Marek Vasut =E5=86= =99=E9=81=93: > > Dear Huang Shijie, > >=20 > >> =E4=BA=8E 2012=E5=B9=B409=E6=9C=8824=E6=97=A5 02:31, Fabio Estevam =E5= =86=99=E9=81=93: > >>> From: Fabio Estevam > >>>=20 > >>> On a mx28 board the following error happens since commit 638064e56c > >>> (mtd: gpmi: change the code for clocks): > >>>=20 > >>> gpmi-nand: probe of 8000c000.gpmi-nand failed with error -12 > >>>=20 > >>> Acquire the clock using "NULL" as it was done previously, so that the > >>> driver can register on mx23/mx28 as well. > >>>=20 > >>> Signed-off-by: Fabio Estevam > >>> --- > >>>=20 > >>> drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 +- > >>> 1 file changed, 1 insertion(+), 1 deletion(-) > >>>=20 > >>> 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) > >>>=20 > >>> int i; > >>> =09 > >>> /* The main clock is stored in the first. */ > >>>=20 > >>> - r->clock[0] =3D clk_get(this->dev, "gpmi_io"); > >>> + r->clock[0] =3D clk_get(this->dev, NULL); > >>=20 > >> Please do not change this line. > >>=20 > >> The gpmi_io is for mx6q. > >> If you replace it with `NULL`. The mx6q can not find the proper clock. > >=20 > > Suggestion is really welcome though, please :) This is a problem, GPMI > > NAND is broken on anything !=3D mx6q. Huang, can you please also test t= he > > changes you do to GPMI NAND on mx28/mx23 so we can avoid this breakage > > in the future? >=20 > yes. I tested in the mx23/mx28. It's ok, do not worry. I won't be posting here that it's broken in the first place if it was ok ;-) Give it one more go with latest -next ... Best regards, Marek Vasut