From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH 2/9] MTD: pxa3xx_nand: enable multiple chip select support From: Artem Bityutskiy To: Lei Wen Date: Wed, 29 Jun 2011 10:11:22 +0300 In-Reply-To: <1309319494-17951-3-git-send-email-leiwen@marvell.com> References: <1309246361.23597.30.camel@sauron> <1309319494-17951-3-git-send-email-leiwen@marvell.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Message-ID: <1309331487.23597.131.camel@sauron> Mime-Version: 1.0 Cc: Eric Miao , David Woodhouse , Haojian Zhuang , Daniel Mack , linux-mtd@lists.infradead.org, Igor Grinberg , linux-arm-kernel Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2011-06-28 at 20:51 -0700, Lei Wen wrote: > Current pxa3xx_nand controller has two chip select which > both be workable. This patch enable this feature. > > Update platform driver to support this feature. > > Another notice should be taken that: > When you want to use this feature, you should not enable the > keep configuration feature, for two chip select could be > attached with different nand chip. The different page size > and timing requirement make the keep configuration impossible. > > Signed-off-by: Lei Wen > --- > arch/arm/plat-pxa/include/plat/pxa3xx_nand.h | 19 +- > drivers/mtd/nand/pxa3xx_nand.c | 493 +++++++++++++++---------- > 2 files changed, 313 insertions(+), 199 deletions(-) If someone can review this patch - good let's see how many Reviewed-by tags we get. But I think it is not very reviewable because of the size. AFAICK, what you do here is 1. Introduce new structure struct pxa3xx_nand_host 2. Move several fields from struct pxa3xx_nand_info to struct pxa3xx_nand_host And only this alone adds a lot of noise to the patch. And also you have some real functional changes. So I'd suggest you to split this patch at least on 2 - the first one would introduce struct pxa3xx_nand_host, moved some fields, and do all the host<->info renamings. You can split this on several steps and move only several fields at a time. Then a separate patch would do some more functional changes. How does this sound? -- Best Regards, Artem Bityutskiy