Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756646AbcDDVtP (ORCPT ); Mon, 4 Apr 2016 17:49:15 -0400 Received: from down.free-electrons.com ([37.187.137.238]:51893 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756619AbcDDVtL (ORCPT ); Mon, 4 Apr 2016 17:49:11 -0400 Date: Mon, 4 Apr 2016 23:48:53 +0200 From: Boris Brezillon To: Brian Norris Cc: Florian Fainelli , linux-mtd@lists.infradead.org, Kamal Dasu , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , David Woodhouse , Simon Arlott , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "open list:BROADCOM STB NAND FLASH DRIVER" , Richard Weinberger Subject: Re: [PATCH] mtd: brcmnand: Add support for v6.2 controllers Message-ID: <20160404234853.2a3d58a1@bbrezillon> In-Reply-To: <20160404065353.GE13995@localhost> References: <1457652859-767-1-git-send-email-f.fainelli@gmail.com> <20160404065353.GE13995@localhost> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2688 Lines: 74 On Sun, 3 Apr 2016 23:53:53 -0700 Brian Norris wrote: > + Boris, Richard > > On Thu, Mar 10, 2016 at 03:34:16PM -0800, Florian Fainelli wrote: > > Document and match the brcm,brcmnand-v6.2 compatible string, the controller has > > a register layout identical to the v6.0 version and supports prefetch. Update the > > command shift logic to account for v6.2 controller which are the first ones to > > use a shift of 0 (6.1 used a shift of 24). > > Ah yes, another blip in the ever-shifting register layout of this > controller. Fun! > > > Signed-off-by: Kamal Dasu > > Signed-off-by: Florian Fainelli > > Acked-by: Brian Norris Applied. Thanks, Boris > > > --- > > Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt | 1 + > > drivers/mtd/nand/brcmnand/brcmnand.c | 3 ++- > > 2 files changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt > > index c2546ced9c02..deb24cbdda82 100644 > > --- a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt > > +++ b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt > > @@ -24,6 +24,7 @@ Required properties: > > brcm,brcmnand-v5.0 > > brcm,brcmnand-v6.0 > > brcm,brcmnand-v6.1 > > + brcm,brcmnand-v6.2 > > brcm,brcmnand-v7.0 > > brcm,brcmnand-v7.1 > > brcm,brcmnand > > diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c > > index e0528397306a..0b7a698cc233 100644 > > --- a/drivers/mtd/nand/brcmnand/brcmnand.c > > +++ b/drivers/mtd/nand/brcmnand/brcmnand.c > > @@ -601,7 +601,7 @@ static void brcmnand_wr_corr_thresh(struct brcmnand_host *host, u8 val) > > > > static inline int brcmnand_cmd_shift(struct brcmnand_controller *ctrl) > > { > > - if (ctrl->nand_version < 0x0700) > > + if (ctrl->nand_version < 0x0602) > > return 24; > > return 0; > > } > > @@ -2115,6 +2115,7 @@ static const struct of_device_id brcmnand_of_match[] = { > > { .compatible = "brcm,brcmnand-v5.0" }, > > { .compatible = "brcm,brcmnand-v6.0" }, > > { .compatible = "brcm,brcmnand-v6.1" }, > > + { .compatible = "brcm,brcmnand-v6.2" }, > > { .compatible = "brcm,brcmnand-v7.0" }, > > { .compatible = "brcm,brcmnand-v7.1" }, > > {}, > > -- > > 2.1.0 > > -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com