From patchwork Wed Dec 8 12:46:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 12695339 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D9B25C433F5 for ; Wed, 8 Dec 2021 12:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RnoZ0Fv8h0uVqmOEP8oqDjPASd+6q/XfHsedMZNG/+4=; b=urfqRR6gnN4I9T cq619e32/Yz5gRJ2wG7rAmKnidkS3tPiLvnVUaArWH7Q5hqFiOcIOSZIk25PpXM7CDIIBmdP7++nv ITdCKyhixecbOvxo9Ylfk97jHSPEznsB6RAYnFZWSp8hqSs7Y2N/TsCvpr8V/CDoZpoPBufQWj9qE MCSWwZTQHj0K50gAIc3lPaVZwA4kyEZcaIhmmSPXW/5X7S2ytOU28KLLyOIYwwSj6MQxgOHcdysxD QA5ZmAjQEH5ULQv51v7fjmWTKpdP9KM80V+9VuyFp8qHqR/0N6I2sh+0VxsQB8zIwVg7TVDnnpiYT fC/9LV0gTt4zijPCC19w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwLT-00CYtO-Bh; Wed, 08 Dec 2021 12:46:51 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muwL6-00CYm9-7b for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 12:46:29 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 8851ACE2165; Wed, 8 Dec 2021 12:46:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B9AFC341C7; Wed, 8 Dec 2021 12:46:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638967584; bh=qOak39y2UEAkUcWUmmEsOSdOVVwbNbLIXTN1949QVzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eA02PeOvYp9E2APv9D7iHgwK7X/dHdpLAWQjVFxpSiecQfgA1CluPieCYaRlijyD+ MjiW94IYqeBhliZlAj02fGSX22w9Hk4BP9NFJME+/iPvPGdNHtYDBqJC6QIOMQdG8T rpxp01IBAur5VhEP/X5ED/SvQBNJL0IX6xe/MjivknpXp141TO2YP6L8/y5waUEw8I 74U59PvCRP341FzVna/boE0mFgKQyximrF9PfoTU96SyX3SYNZJbF9guGy+wzrxLL4 LrWtpdmarVM8Ac9dpo6BDu78vP6xIyzMFawTFaxGfE2JCYPwfqlvL4wOb20qDOwk2k YFslcUamV3RKQ== From: Roger Quadros To: krzysztof.kozlowski@canonical.com, tony@atomide.com Cc: kishon@ti.com, nm@ti.com, vigneshr@ti.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Roger Quadros Subject: [PATCH v2 3/4] memory: omap-gpmc: check for nand node name instead of just compatibility Date: Wed, 8 Dec 2021 14:46:10 +0200 Message-Id: <20211208124611.16843-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211208124611.16843-1-rogerq@kernel.org> References: <20211208124611.16843-1-rogerq@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_044628_473364_4A3DBC30 X-CRM114-Status: GOOD ( 12.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We have added new compatibles for controller so just checking for "ti,omap2-nand" compatible is not enough. Check for "nand" node name as well. Signed-off-by: Roger Quadros --- drivers/memory/omap-gpmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index 624153048182..9f0062a262db 100644 --- a/drivers/memory/omap-gpmc.c +++ b/drivers/memory/omap-gpmc.c @@ -2183,7 +2183,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev, } } - if (of_device_is_compatible(child, "ti,omap2-nand")) { + if (of_device_is_compatible(child, "ti,omap2-nand") || + of_node_name_eq(child, "nand")) { /* NAND specific setup */ val = 8; of_property_read_u32(child, "nand-bus-width", &val);