From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 5 Nov 2013 11:08:08 -0800 From: Brian Norris To: Ezequiel Garcia Subject: Re: [PATCH v3 22/28] mtd: nand: pxa3xx: Introduce multiple page I/O support Message-ID: <20131105190808.GR20061@ld-irv-0074.broadcom.com> References: <1383656135-8627-1-git-send-email-ezequiel.garcia@free-electrons.com> <1383656135-8627-23-git-send-email-ezequiel.garcia@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1383656135-8627-23-git-send-email-ezequiel.garcia@free-electrons.com> Cc: Lior Amsalem , Thomas Petazzoni , Jason Cooper , Tawfik Bayouk , Daniel Mack , Huang Shijie , linux-mtd@lists.infradead.org, Gregory Clement , Willy Tarreau , linux-arm-kernel@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , One more thing on this patch: On Tue, Nov 05, 2013 at 09:55:29AM -0300, Ezequiel Garcia wrote: > @@ -437,7 +487,7 @@ static void disable_int(struct pxa3xx_nand_info *info, uint32_t int_mask) > > static void handle_data_pio(struct pxa3xx_nand_info *info) > { > - unsigned int do_bytes = min(info->data_size, info->fifo_size); > + unsigned int do_bytes = min(info->data_size, info->chunk_size); After this change, you no longer are using fifo_size globally (you only use it locally in pxa3xx_nand_detect_config() to set the chunk_size). Perhaps you can drop the field? > > switch (info->state) { > case STATE_PIO_WRITING: Brian