Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4540AC48BDF for ; Sun, 20 Jun 2021 15:01:32 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1872C61004 for ; Sun, 20 Jun 2021 15:01:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1872C61004 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D8A718291D; Sun, 20 Jun 2021 17:01:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1624201273; bh=QlAJWHsOhAVb3WptnHpmmHALuQwOCWD6UVS9HFSSoho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QO1zEV15eUKr8Ncs0VZ+7byS196v45TTThowkCRba2nRliZ7I9aw5/OrCcDb2ZYyG manbW2/q7PqOKfsqwtlGujVYVpzgsUGoGBlGFsMpFcruQ1NHDglzdEE0fsYGILNqN6 XDVHJ00nWtVpWLf02fR6W7q+QFP4NbGCyzkvUQlk5kzWBscP5r5ibEK/oSg32rvz2n FowjN43s8wtjiMmKOhciWezQAlK1sD9QK7MF4wX9fzbB/nn7xyxkx19pp+BOqkk8+1 BdW7ld6BozsL1pQ+eGgLEUV8kL7vUFMR0/AzRHVFpn22+xcaXjpc4EEcdAQmJW3pYF MbHovHd4pJloA== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:df0b:982f:3f3b:d24b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 57B35828A1; Sun, 20 Jun 2021 17:01:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1624201266; bh=QlAJWHsOhAVb3WptnHpmmHALuQwOCWD6UVS9HFSSoho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iVeLlxrQMD4qC6owSJx2uwB9G57oY+EycHUsMI6xz5txgu+10SknOG2gTg6nquzFs HgcfCRTVHbRXnAzyVx8tLRGtyKhxYZCkE2gc1KqD5pHNyC67mD/GSAHlKePOISKJGj ktn0dIwUxW3LouGKkw8SxG0YGsU40cckrvsQ7e4d9JsjTh1QC1DQv77AaGapMvcfw5 JsDQZVN+7NZIL/BlUCxOSuGLWUqcpsH3nN0BAMThYo6ULo/+NxHCai1Vu6ieuwkDZ7 LtcgZ45lAiOVAP0f14UmfXIjoYmsvahNNFriDjOvz2Ml1rhglJSKndC1nAw5e+1whk oJbb5AMTa6Ckw== From: Fabio Estevam To: marex@denx.de Cc: u-boot@lists.denx.de, sbabic@denx.de, ye.li@nxp.com, peng.fan@nxp.com, Fabio Estevam Subject: [PATCH 2/2] usb: ehci-mx6: Do not fail when 'reg' is not found Date: Sun, 20 Jun 2021 12:00:52 -0300 Message-Id: <20210620150052.1628256-2-festevam@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210620150052.1628256-1-festevam@denx.de> References: <20210620150052.1628256-1-festevam@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Unlike imx6, on imx7 the USB PHY is described as: usbphynop1: usbphynop1 { compatible = "usb-nop-xceiv"; clocks = <&clks IMX7D_USB_PHY1_CLK>; clock-names = "main_clk"; #phy-cells = <0>; }; which does not have the 'reg' property. Do not return an error when the 'reg' property is not found for the USB PHY. This fixes USB gadget regression on a imx7s-warp board. Successfully tested the "ums 0 mmc 0" command on two boards: imx7s-warp and imx6dl-pico-pi. Signed-off-by: Fabio Estevam --- drivers/usb/host/ehci-mx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 48b5c8b0c53c..c3e4170513ec 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -583,7 +583,7 @@ static int mx6_parse_dt_addrs(struct udevice *dev) addr = (void __iomem *)fdtdec_get_addr(blob, phy_off, "reg"); if ((fdt_addr_t)addr == FDT_ADDR_T_NONE) - return -EINVAL; + addr = NULL; priv->phy_addr = addr; -- 2.25.1