From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 30 Oct 2017 16:58:00 -0500 Subject: [U-Boot] [PATCH v2] mtd: nand: fsl-ifc: fix support of multiple NAND devices In-Reply-To: References: <20171020094425.23332-1-kurt@linutronix.de> Message-ID: <1509400680.20386.13.camel@buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Mon, 2017-10-30 at 18:50 +0000, York Sun wrote: > On 10/20/2017 03:43 AM, Kurt Kanzenbach wrote: > > Currently the chipselect used to identify the corresponding NAND chip is > > stored > > at the controller and only set during fsl_ifc_chip_init(). This way, only > > the > > last NAND chip is working, as the previous value of cs_nand gets > > overwritten. > > > > In order to solve this issue the chipselect is computed on demand by > > evaluating > > the bank variable. Thus, the correct chipselect for each NAND chip > > operation is > > used. > > > > Tested on hardware with two NAND chips connected to the IFC controller. > > > > Signed-off-by: Kurt Kanzenbach > > --- > > Changes for v2: > >    - get rid of cs_nand and compute chipselect on demand > >    - pass priv instead of mtd to fsl_ifc_sram_init() > > Scott, > > Are you OK with this version? Somehow this patch was assigned me. I can > bring it in if you ack it. Acked-by: Scott Wood -Scott