From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from moutng.kundenserver.de ([212.227.126.177]) by pentafluge.infradead.org with esmtp (Exim 4.63 #1 (Red Hat Linux)) id 1IldWR-0004Uu-QK for linux-mtd@lists.infradead.org; Sat, 27 Oct 2007 05:43:47 +0100 From: Stefan Roese To: Valentine Barshak Subject: Re: [PATCH 0/2] PowerPC: Add 44x NDFC device-tree aware support Date: Sat, 27 Oct 2007 06:42:53 +0200 References: <20071026163058.GA11354@ru.mvista.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710270642.54171.sr@denx.de> Cc: linuxppc-dev@ozlabs.org, Thomas Gleixner , linux-mtd@lists.infradead.org, Josh Boyer List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Valentine, On Friday 26 October 2007, Thomas Gleixner wrote: > On Fri, 26 Oct 2007, Valentine Barshak wrote: > > The major difference is that the original implements each chip connected > > NDFC banks as a separate MTD device. Here I try to have one MTD device > > spread on all chips found. However, the chips should have equal ID's and > > sizes, but I've never seen several different chips attached to single > > ndfc. > > Bamboo has 2 different nand chips. Right. This was my first thought after seeing your mail too. > And I'm aware of another board > which has a 2k-page onboard NAND and sockets for SmartMedia / > PictureXd cards, which will simply break with your design. > > Restricting stuff for no good reason is never a good idea. Add my voice here too. > mtdconcat can build you a big one if you want, so why adding > restrictions to a driver ? > > > I'm adding ndfc_of as a separate file, since some other changes > > have also been made (e.g. all i/o is made with ndfc_readl/writel inline > > functions). > > This should be done in the original ndfc driver and not in a separate > incarnation. Right. And I always thought it would be a good idea to switch to using the in_be32() functions and friends for IO access in this driver too. Best regards, Stefan