From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp02.smtpout.orange.fr ([80.12.242.124] helo=smtp.smtpout.orange.fr) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZQHkY-0004lE-De for linux-mtd@lists.infradead.org; Fri, 14 Aug 2015 16:22:35 +0000 From: Robert Jarzmik To: Ezequiel Garcia , Jonas Gorski Cc: MTD Maling List , Brian Norris , antoine.tenart@free-electrons.com Subject: Re: [PATCH 1/2] nand: pxa3xx: Increase READ_ID buffer and make the size static References: <1438612286-16070-1-git-send-email-ezequiel@vanguardiasur.com.ar> <1438612286-16070-2-git-send-email-ezequiel@vanguardiasur.com.ar> Date: Fri, 14 Aug 2015 18:18:06 +0200 In-Reply-To: (Jonas Gorski's message of "Fri, 14 Aug 2015 18:12:22 +0200") Message-ID: <871tf5c08x.fsf@belgarion.home> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Jonas Gorski writes: >> >> - info->data_size = 8; >> + info->data_size = READ_ID_BYTES; > > You are reducing ->data_size from 8 to 7 here, is this intentional? I bet it's a small mistake. The pxa3xx NFC controller requires to read at least 8 bytes, as it is one entry FIFO (chapter 3.7.1.2 "Non-DMA Operating mode" of PXA3xx VolII developer manual). Same constraint applies to DMA btw. Cheers. -- Robert