From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754598AbbJ1Ajk (ORCPT ); Tue, 27 Oct 2015 20:39:40 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34056 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbbJ1Aji (ORCPT ); Tue, 27 Oct 2015 20:39:38 -0400 Date: Tue, 27 Oct 2015 17:39:35 -0700 From: Brian Norris To: Ray Jui Cc: Anup Patel , David Woodhouse , Linux MTD , Rob Herring , Pawel Moll , Mark Rutland , Catalin Marinas , Will Deacon , Sudeep Holla , Ian Campbell , Kumar Gala , Scott Branden , Florian Fainelli , Pramod KUMAR , Vikram Prakash , Sandeep Tripathy , Linux ARM Kernel , Device Tree , Linux Kernel , BCM Kernel Feedback Subject: Re: [PATCH v3 2/2] arm64: dts: Add BRCM IPROC NAND DT node for NS2 Message-ID: <20151028003935.GZ13239@google.com> References: <1445577373-21252-1-git-send-email-anup.patel@broadcom.com> <1445577373-21252-3-git-send-email-anup.patel@broadcom.com> <20151028001920.GY13239@google.com> <563015FC.9040006@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <563015FC.9040006@broadcom.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2015 at 05:25:32PM -0700, Ray Jui wrote: > On 10/27/2015 5:19 PM, Brian Norris wrote: > >On Fri, Oct 23, 2015 at 10:46:13AM +0530, Anup Patel wrote: > >>diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi > >>index f603277..9610822 100644 > >>--- a/arch/arm64/boot/dts/broadcom/ns2.dtsi > >>+++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi > >>@@ -212,5 +212,19 @@ > >> compatible = "brcm,iproc-rng200"; > >> reg = <0x66220000 0x28>; > >> }; > >>+ > >>+ nand: nand@66460000 { > >>+ compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; > > > >Technically, the binding says you should also have "brcm,brcmnand" as a > >last resort. Otherwise (for the NAND parts): > > > > I believe Anup was seeing issues when both "brcm,nand-iproc" and > "brcm,brcmnand" are present. > > Note "brcm,nand-iproc" invokes 'iproc_nand_probe', which calls > 'brcmnand_probe' in the end. > > "brcm,brcmnand" invokes 'brcmstb_nand_probe', which also calls > 'brcmstb_probe', but without all the prep configuration required for > "brcm,nand-iproc". Ah, I forgot about that problem. That seems like an OF infrastructure issue that could be fixed. We could lump these drivers back together, and make sure that "brcm,nand-iproc" gets the priority in the of_device_id list. Or we could just relax the DT binding. But wait, wouldn't cygnus already have that problem? You're using the binding I suggested in arch/arm/boot/dts/bcm-cygnus.dtsi. Oh, and I see we hacked this one in drivers/mtd/nand/brcmnand/Makefile: # link order matters; don't link the more generic brcmstb_nand.o before the # more specific iproc_nand.o, for instance Brian