Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp150218pxy; Fri, 30 Apr 2021 02:25:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYqNhHbM9D1Dpdmd7B8V6FVy7gASBJ8zBXjgqSesX8/5c6xTT7bA5zjqt7ivQc8OuonyIF X-Received: by 2002:a63:465b:: with SMTP id v27mr33089pgk.445.1619774704442; Fri, 30 Apr 2021 02:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619774704; cv=none; d=google.com; s=arc-20160816; b=sUEWf02diXGm6N+tiA0J3NKrkYjLRWLQVOt0t9+JHcEO4YnPsIVjWLXrSesQXhusQW qXHcjZau4qQqcUdDTUWYCEfei4j08jafMxxgVvd9ov5ZXWT01D7qrCK9jVHfoRmGAkco ghm/FOCecko5WNjcOx46srv2x7kNEq7LJEYwTyIeEB/cOwVOQNXCE0/t46lmb3VHAjwI FfNg3BP96ZpKR+EhaU6X4M1m/dMXXU1NPvMY3wn+W4ftucoyp31Okcv6w1BU+meAjHKR gLXpDb+6gmeF+l+huxtex1yBZZr478OMZHE1aKVHWjMASkx63TIoCPERio+FkoCRfJLu EeQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7jNtsVgB4SG/t7bVzmOnoK100qiLWUCRQWcjzl5Jnro=; b=tY5twXs+H4iXw0cEA7Ewol9gbDfODDCPKpE6gnOJaehr3M6IsCR+zCAQRHTfJumqid LDTZfLMga/FSCrEjBmPG36N+29PcC3LkNK/Wez4W/KPQ9Yty2W/CFTmVn7tdz0azoDVD scJKL/uyjMjSMhHxIOCXV1Ya9ERKjdbjEM1RnJ1U6WCBGD7f3uNZniO3yKmzYeB1Xn9F 79bR7sTJFaLxIfIIyiWe1JMMR3ktjpXG9fEeVYGRBTX49eDe/w2230/IZsKnPdJN7IsH ZwBEGdoxJL9/nsfyObCrJA5anhaD7Jc2LnV98k4y5cdT+WZUT9CxFJoZYP0aXlh/+qAt mtqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=dhAWD3CM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si3127730pgr.518.2021.04.30.02.24.51; Fri, 30 Apr 2021 02:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=dhAWD3CM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231397AbhD3JY5 (ORCPT + 99 others); Fri, 30 Apr 2021 05:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhD3JYz (ORCPT ); Fri, 30 Apr 2021 05:24:55 -0400 X-Greylist: delayed 513 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 30 Apr 2021 02:24:07 PDT Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CBB0C06174A; Fri, 30 Apr 2021 02:24:07 -0700 (PDT) Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 53DD282AA1; Fri, 30 Apr 2021 11:15:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1619774132; bh=7jNtsVgB4SG/t7bVzmOnoK100qiLWUCRQWcjzl5Jnro=; h=From:To:Cc:Subject:Date:From; b=dhAWD3CMigfxaPjPtnR6dgkRRX4J3p1QbGZjOVg5lFpBHwbclSLul3+nsA/k5jWq4 Jg+DhUMo4TVvavS1zggLNQleYTt+ND8IbaFkSa4ahqWvBZLcUK61dJ41s7mua4FQYb o3UNdRIk7i6tRdjwiIBYr/4JbY/S22v+A8l08IGp01007Lfu7hf5tLK8P3bJ4zDOAd HlOjuJM0yrsGGhZDzwwA4elNzzTqt539/sIbu3COi1A9KfqZuzM3gfo9fFCNltlC9q 4IU/B/QlEZ+NjHTrN3FmwHyUmDdddnyQmsKQaRWxDcEl5Cbt/20TijADMzFSurYkiK 9vQbuc4K/GyXw== Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 93C91182B81; Fri, 30 Apr 2021 11:15:16 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 58BCD1A8BAD; Fri, 30 Apr 2021 11:15:16 +0200 (CEST) From: Heiko Schocher To: linux-arm-kernel@lists.infradead.org Cc: Heiko Schocher , Fabio Estevam , Felipe Balbi , Greg Kroah-Hartman , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Teresa Remmet , Zhen Lei , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH] usb: dwc3: imx8mp: detect dwc3 child nodes with name "usb*" Date: Fri, 30 Apr 2021 11:15:12 +0200 Message-Id: <20210430091512.1026996-1-hs@denx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit: d1689cd3c0f4: ("arm64: dts: imx8mp: Use the correct name for child node "snps, dwc3") renamed "dwc3@3*" nodes in imx8mp.dtsi to "usb@3*" glue layer dwc3-imx8mp.c searches for "dwc3" and so drop failure on boot: imx8mp-dwc3 32f10100.usb: failed to find dwc3 core child imx8mp-dwc3: probe of 32f10100.usb failed with error 1 imx8mp-dwc3 32f10108.usb: failed to find dwc3 core child imx8mp-dwc3: probe of 32f10108.usb failed with error 1 now. Fix this (and allow old style too) Tested on "PHYTEC phyBOARD-Pollux i.MX8MP" board. fixes: d1689cd3c0f4: ("arm64: dts: imx8mp: Use the correct name for child node "snps, dwc3") Signed-off-by: Heiko Schocher --- drivers/usb/dwc3/dwc3-imx8mp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-imx8mp.c b/drivers/usb/dwc3/dwc3-imx8mp.c index b13cfab89d532..eb85ddc50f7c7 100644 --- a/drivers/usb/dwc3/dwc3-imx8mp.c +++ b/drivers/usb/dwc3/dwc3-imx8mp.c @@ -165,7 +165,8 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev) if (err < 0) goto disable_rpm; - dwc3_np = of_get_child_by_name(node, "dwc3"); + dwc3_np = of_get_child_by_name(node, "usb") ? : + of_get_child_by_name(node, "dwc3"); if (!dwc3_np) { dev_err(dev, "failed to find dwc3 core child\n"); goto disable_rpm; -- 2.30.2