From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WRBLJ-0006pu-4W for linux-mtd@lists.infradead.org; Sat, 22 Mar 2014 02:07:25 +0000 Received: by mail-pd0-f177.google.com with SMTP id y10so3008298pdj.8 for ; Fri, 21 Mar 2014 19:07:03 -0700 (PDT) Date: Fri, 21 Mar 2014 18:59:31 -0700 From: Brian Norris To: Ezequiel Garcia Subject: Re: [PATCH] mtd: nand: fix byte addressing on 16-bit wide devices Message-ID: <20140322015931.GB29542@ld-irv-0074> References: <20140321180547.GA11793@arch.cereza> <20140321185446.GA18141@arch.cereza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140321185446.GA18141@arch.cereza> Cc: David Mosberger-Tang , "linux-mtd@lists.infradead.org" , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Mar 21, 2014 at 03:54:46PM -0300, Ezequiel Garcia wrote: > (Ccing Brian and Uwe) Thanks for the heads up. Probably would have read it anyway, but you never know :) > Brian: Related to this, the current code for fixing READID on 16-bit devices > seem to apply *only* for drivers that don't override cmdfunc(), right? > So each of the drivers that have their cmdfunc() currently need some > tweak to support 16-bit devices. I think I fixed up all current in-tree drivers that override cmdfunc() (and David's newer patch fixes the remaining opcodes). Whether they need a tweak or not depends on how their hardware handles addressing for x16. For some, they need to selectively convert some byte addresses to word addresses. But for others, the hardware might take care of the addressing. Brian