From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757733AbbJ2Uen (ORCPT ); Thu, 29 Oct 2015 16:34:43 -0400 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:26898 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbbJ2Uem (ORCPT ); Thu, 29 Oct 2015 16:34:42 -0400 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Thu, 29 Oct 2015 21:34:40 +0100 X-ME-IP: 109.222.85.35 From: Robert Jarzmik To: Boris Brezillon Cc: Marek Vasut , Brian Norris , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Ezequiel Garcia , Scott Wood , Josh Wu , Kyungmin Park , Han Xu , Huang Shijie Subject: Re: [PATCH 1/5] mtd: ofpart: grab device tree node directly from master device node References: <1445913070-17950-1-git-send-email-computersforpeace@gmail.com> <87611qjibi.fsf@belgarion.home> <20151029082448.2a89c791@bbrezillon> <201510291823.47976.marex@denx.de> <20151029183421.5d2c73cf@bbrezillon> X-URL: http://belgarath.falguerolles.org/ Date: Thu, 29 Oct 2015 21:28:01 +0100 In-Reply-To: <20151029183421.5d2c73cf@bbrezillon> (Boris Brezillon's message of "Thu, 29 Oct 2015 18:34:21 +0100") Message-ID: <87wpu5ifn2.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Boris Brezillon writes: > On Thu, 29 Oct 2015 18:23:47 +0100 > Marek Vasut wrote: > Except it's now how devices supporting 16 bits data bus are supposed to > work, which means your NAND controller will probably not be able to > send the command/address value on the higher 8 bits... Correct. >> > 2/ NAND chips can have bad blocks, so even if you were able to address >> > 2 chips (which according to #1 is impossible), you might try to write >> > on a bad block on the chip connected on the MSB side of the data bus. >> >> This one is a valid problem. The other valid issue here is where the >> command might fail on one chip and pass on the other. Probably the bad block wins, and the command is reported as a failure. >> > 3/ There probably are plenty of other reasons why this is not >> > possible ;-). >> >> It's possible, implementable, but a really bad idea. > > Possible and implementable, maybe with an adapted software stack > and a customized NAND controller. I know you're working on emulating > flash devices using FPGA, so the next step is to create a new NAND > controller IP supporting that kind of stuff and adding support for > this feature to the NAND framework ;-). > Anyway, it"s definitely a bad idea. I agree, a bad idea. Just to finish the discussion, let me quote the pxa3xx developper manual volume 2, chapter 3.7.6.1 "Flash Memory Data Width when Two Flash Devices Connect to the Same Chip" : When NDCR[DWIDTH_C] = 1 and NDCR[DWIDTH_M] = 0, two flash devices are connected to the same chip select with DF_IO<7:0> interfacing to one device, and DF_IO<15:8> interfacing to the second device. In this scenario, since two devices are accessed simultaneously, the command and address are replicated between the lower and upper byte of the interface. Now, regardless of this, please continue with your patches, this corner case is not important, at least I don't care at all. Cheers. -- Robert