lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090514065611.GU29278@pengutronix.de>
Date:	Thu, 14 May 2009 08:56:11 +0200
From:	Sascha Hauer <s.hauer@...gutronix.de>
To:	Daniel Mack <daniel@...aq.de>
Cc:	Vladimir Barinov <vbarinov@...eddedalley.com>,
	linux-kernel@...r.kernel.org,
	Linux MTD list <linux-mtd@...ts.infradead.org>
Subject: Re: [PATCH] mtd: mxc_nand: fix built breakage

On Wed, May 13, 2009 at 06:11:54PM +0200, Daniel Mack wrote:
> On Wed, May 13, 2009 at 08:09:43PM +0400, Vladimir Barinov wrote:
> > Please find the patch that I've sent some time ago. This patch should  
> > fix the issue you described.
> > http://lists.infradead.org/pipermail/linux-mtd/2009-April/025363.html
> 
> 
> Ah, ok, thanks.
> 
> Did anyone pick it up for mainline already?
> Sascha, I didn't see that one in your tree either.

It seems to be pure luck when the patches on the mtd list get picked up.
Most of the time I do not even a reaction from the list or David. I
wonder if someone will beat me up when I take the i.MX nand patches via
my arm tree.

Sascha

> 
> Daniel
> 
> 
> > Daniel Mack wrote:
> >> The MXC NAND driver does not currently build with CONFIG_PM set.
> >>
> >>   drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_suspend':
> >>   drivers/mtd/nand/mxc_nand.c:1021: error: 'nfc_clk' undeclared (first use in this function)
> >>   drivers/mtd/nand/mxc_nand.c:1021: error: (Each undeclared identifier is reported only once
> >>   drivers/mtd/nand/mxc_nand.c:1021: error: for each function it appears in.)
> >>   drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_resume':
> >>   drivers/mtd/nand/mxc_nand.c:1033: error: 'nfc_clk' undeclared (first use in this function)
> >>   make[3]: *** [drivers/mtd/nand/mxc_nand.o] Error 1
> >>   make[2]: *** [drivers/mtd/nand] Error 2
> >>   make[1]: *** [drivers/mtd] Error 2
> >>   make: *** [drivers] Error 2
> >>
> >> Signed-off-by: Daniel Mack <daniel@...aq.de>
> >> Cc: Sascha Hauer <s.hauer@...gutronix.de>
> >> Cc: Linux MTD list <linux-mtd@...ts.infradead.org>
> >> ---
> >>  drivers/mtd/nand/mxc_nand.c |    8 ++++++--
> >>  1 files changed, 6 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
> >> index 21fd4f1..d352d2a 100644
> >> --- a/drivers/mtd/nand/mxc_nand.c
> >> +++ b/drivers/mtd/nand/mxc_nand.c
> >> @@ -1011,6 +1011,8 @@ static int __devexit mxcnd_remove(struct platform_device *pdev)
> >>  static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state)
> >>  {
> >>  	struct mtd_info *info = platform_get_drvdata(pdev);
> >> +        struct nand_chip *nand_chip = info->priv;
> >>   +	struct mxc_nand_host *host = nand_chip->priv;
> >>  	int ret = 0;
> >>   	DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND : NAND suspend\n");
> >> @@ -1018,7 +1020,7 @@ static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state)
> >>  		ret = info->suspend(info);
> >>   	/* Disable the NFC clock */
> >> -	clk_disable(nfc_clk);	/* FIXME */
> >> +	clk_disable(host->clk);	/* FIXME */
> >>   	return ret;
> >>  }
> >> @@ -1026,11 +1028,13 @@ static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state)
> >>  static int mxcnd_resume(struct platform_device *pdev)
> >>  {
> >>  	struct mtd_info *info = platform_get_drvdata(pdev);
> >> +        struct nand_chip *nand_chip = info->priv;
> >> +	struct mxc_nand_host *host = nand_chip->priv;
> >>  	int ret = 0;
> >>   	DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND : NAND resume\n");
> >>  	/* Enable the NFC clock */
> >> -	clk_enable(nfc_clk);	/* FIXME */
> >> +	clk_enable(host->clk);	/* FIXME */
> >>   	if (info)
> >>  		info->resume(info);
> >>   
> >
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ