Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752523AbXINHXi (ORCPT ); Fri, 14 Sep 2007 03:23:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751323AbXINHXa (ORCPT ); Fri, 14 Sep 2007 03:23:30 -0400 Received: from nwd2mail11.analog.com ([137.71.25.57]:14651 "EHLO nwd2mail11.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbXINHXa (ORCPT ); Fri, 14 Sep 2007 03:23:30 -0400 X-IronPort-AV: i="4.20,253,1186372800"; d="scan'208"; a="39601161:sNHT29073499" Subject: Re: [PATCH] Blackfin BF54x NAND Flash Controller driver From: Bryan Wu Reply-To: bryan.wu@analog.com To: Andrew Morton Cc: bryan.wu@analog.com, David Woodhouse , Thomas Gleixner , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20070913013702.d446739a.akpm@linux-foundation.org> References: <1188804323.29566.6.camel@roc-laptop> <20070913013702.d446739a.akpm@linux-foundation.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Analog Devices, Inc. Date: Fri, 14 Sep 2007 15:19:41 +0800 Message-Id: <1189754381.8165.11.camel@roc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 X-OriginalArrivalTime: 14 Sep 2007 07:23:28.0630 (UTC) FILETIME=[256AB960:01C7F6A0] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2058 Lines: 75 On Thu, 2007-09-13 at 01:37 -0700, Andrew Morton wrote: > On Mon, 03 Sep 2007 15:25:23 +0800 Bryan Wu > wrote: > > > This is the driver for latest Blackfin BF54x nand flash controller > > > > - use nand_chip and mtd_info common nand driver interface > > - provide both PIO and dma operation > > - compiled with ezkit bf548 configuration > > - use hardware 1-bit ECC > > - tested with YAFFS2 and can mount YAFFS2 filesystem as rootfs > > > > ... > > > > +int hardware_ecc = 0; > > scripts/checkpatch.pl, please. > Things are fixed in the try#3 version of the driver, which will be sent out soon. > > +#endif > > + > > +unsigned short bfin_nfc_pin_req[] = {P_NAND_CE, P_NAND_RB, 0}; > > static. Please review whole patch for this. > [!snip!] > > + > > +/* > > + * bf54x_nand_probe > > + * > > + * called by device layer when it finds a device matching > > + * one our driver can handled. This code checks to see if > > + * it can allocate all necessary resources then calls the > > + * nand layer to look for devices > > + */ > > +static int bf54x_nand_probe(struct platform_device *pdev) > > +{ > > + struct bf54x_nand_platform *plat = to_nand_plat(pdev); > > + struct bf54x_nand_info *info = NULL; > > + struct nand_chip *chip = NULL; > > + struct mtd_info *mtd = NULL; > > + int err = 0; > > + > > + dev_dbg(&pdev->dev, "(%p)\n", pdev); > > + > > + if (!plat) { > > + dev_err(&pdev->dev, "no platform specific information\n"); > > + goto exit_error; > > and can this? > Try to prevent board configuration missing the bf54x_nand_platform information. > > + } > > + > > + info = kzalloc(sizeof(*info), GFP_KERNEL); > > + if (info == NULL) { > > + dev_err(&pdev->dev, "no memory for flash info\n"); > > + err = -ENOMEM; > > + goto exit_error; > > + } Thanks -Bryan Wu - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/