From patchwork Thu Nov 3 14:12:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 621346 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41512C4321E for ; Thu, 3 Nov 2022 14:13:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231395AbiKCONC (ORCPT ); Thu, 3 Nov 2022 10:13:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiKCOMu (ORCPT ); Thu, 3 Nov 2022 10:12:50 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ACA213D7A for ; Thu, 3 Nov 2022 07:12:41 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20221103141240euoutp0128cdb9c7ea0403640abf8dba64fed616~kGI4EWre_2402224022euoutp011 for ; Thu, 3 Nov 2022 14:12:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20221103141240euoutp0128cdb9c7ea0403640abf8dba64fed616~kGI4EWre_2402224022euoutp011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667484760; bh=qCDUQNE7TNiVdNuYLngBq2PYfEAAqmyEHBheVRACkuw=; h=From:To:Cc:Subject:Date:References:From; b=UJL1bjj9in0aXQ2UCVJ/cMuTTinlq4BAwoKRL7VJoBbNz2CBpJ/ihzte1WX2mM5Vf nYVnqGnMmxW1RFiGxOQhQeE/gW7CfiHiuSLeIiSR9f3qnRlP/D+ZrqJXn6WbUJrdD4 DkpBo6em6IHBixeP6sMib1FsaF1ULoWAt70Oiy1g= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20221103141239eucas1p2639310d953c20b950f8e209a9a0ada60~kGI3duCEp1870018700eucas1p2j; Thu, 3 Nov 2022 14:12:39 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id F6.01.07817.75CC3636; Thu, 3 Nov 2022 14:12:39 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20221103141239eucas1p29dac7ffb7202852c18e48c48c068a90f~kGI26Po1U2133321333eucas1p2h; Thu, 3 Nov 2022 14:12:39 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221103141239eusmtrp2240f41799f400654257dcadac7e7200c~kGI25W1Wl2294622946eusmtrp2K; Thu, 3 Nov 2022 14:12:39 +0000 (GMT) X-AuditID: cbfec7f4-8abff70000011e89-fa-6363cc573943 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 25.57.07473.65CC3636; Thu, 3 Nov 2022 14:12:38 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221103141238eusmtip2e021576b43f6c021db3721c93d63eeb4~kGI2Pr3hB1225412254eusmtip2R; Thu, 3 Nov 2022 14:12:38 +0000 (GMT) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Marek Szyprowski , Stefan Agner , Johan Hovold , Thinh Nguyen , Greg Kroah-Hartman , Krzysztof Kozlowski , Rob Herring , Frank Rowand Subject: [PATCH 1/2] usb: dwc3: exynos: force PHY control from XHCI HCD Date: Thu, 3 Nov 2022 15:12:32 +0100 Message-Id: <20221103141233.20179-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSe0hTcRTud+/uw+Gt2yr9ZbLBMiOr9SDiQg+KpC5BFkUI0WvOm5VuyuZM e5hmpq6ssCC1RZZlNp3WtNXUrGw06bFpRj6wopfOrdI1I6ycua7Vf9/5HueDwyFRkQ4LIfeo kjm1Sp4gxYUC86Mhx9zopwrF/O5+CXPRaseYok8jOJNVWo0zRzpOYMxd9y2CaavT40yhoxFh Lpdlo4zR+opgsu9aCaamKodgDCX3iRWBbOn31yhrKX5FsCZDHs52v2zA2XsXKgn2ZK0BsLX3 vID1msQbyC3CpbFcwp4UTj1v+U7hbqfDTSQNzE4teJiFZgB7mA4EkJBeBPNtPYgOCEkRXQ5g 38BTnB8GAfxoPor5XSLaC2DLl+V/Ex57u4A3XQOwsv459i/R2dhI+F04vQDqPutwP55MH4SW 1po/a1H6BQL1BacQvzCJXgN1Dt8fk4CeAa/k3x7lSZKil0F3PeDbJLDixn3Un4V0AwlvVlUg vBAJ66zlGI8nQZetluBxKByxXET4QA6AJT/fjA2nAczo7RpbuwR223/g/jaUngWr6+bx9EpY 3VqG+mlIj4cdnyf6aXQUFpjPjdEUzD0m4t3hsNhW9a/2QctzlMcs1J/pRfnLbYN2Tx56GoiL /3eVAGAAwZxWo4zjNAtV3D6ZRq7UaFVxMkWi0gRG3+WJzzZ4B1xzeWRNACFBE4AkKp1MfTUr FCIqVp62n1Mn7lBrEzhNE5hGCqTBFF4YoRDRcfJkLp7jkjj1XxUhA0IykPhTduWBjdG+vF1D pVwRsK3VhdZ3huc+k56ITOx/PDOtuK0t+2yU89iR7UotOU4cEH1FmK3rnWLe63Lp178r72v+ MTQ3RvSroNtt7PLZZatfCJW2fCTj5rqatO8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xNWRjJ9bdgR5mj3olbYTrW67Gj+lD88u8N5lvgubeTa 2vHietav3A7eU1b5FwLvbD9p+zpCt2gZu69cQgsHX2HaH/UVkX1sv+c0sd5Ibl22IMJ817L9 KqLucz+f5mbP8nK8fGhLRqkhb1aF6OyolM1zuTg/9Vvdf3NOVjF6hYkSS3FGoqEWc1FxIgDx qYkf9AIAAA== X-CMS-MailID: 20221103141239eucas1p29dac7ffb7202852c18e48c48c068a90f X-Msg-Generator: CA X-RootMTR: 20221103141239eucas1p29dac7ffb7202852c18e48c48c068a90f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20221103141239eucas1p29dac7ffb7202852c18e48c48c068a90f References: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Force controlling of the generic USB PHYs also from XHCI HCD to let XHCI driver call calibrate() method during the HCD reset. DWC3 also controls USB PHYs, but it is not able to call the calibrate() method at the right moment. Fixes: 6000b8d900cd ("usb: dwc3: disable USB core PHY management") Reported-by: Stefan Agner Signed-off-by: Marek Szyprowski --- This fixes the issue reported here: https://lore.kernel.org/all/808bdba846bb60456adf10a3016911ee@agner.ch/ Alternative for this change is a complete revert of the 6000b8d900cd ("usb: dwc3: disable USB core PHY management") commit. Best regards Marek Szyprowski, PhD Samsung R&D Institute Poland --- drivers/usb/dwc3/core.c | 2 ++ drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-exynos.c | 65 +++++++++++++++++++++++----------- drivers/usb/dwc3/host.c | 3 +- 4 files changed, 49 insertions(+), 22 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index c0e7c76dc5c8..87d4472fc031 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1548,6 +1548,8 @@ static void dwc3_get_properties(struct dwc3 *dwc) "snps,parkmode-disable-ss-quirk"); dwc->gfladj_refclk_lpm_sel = device_property_read_bool(dev, "snps,gfladj-refclk-lpm-sel-quirk"); + dwc->xhci_force_phy_control_quirk = device_property_read_bool(dev, + "snps,xhci_force_phy_control"); dwc->tx_de_emphasis_quirk = device_property_read_bool(dev, "snps,tx_de_emphasis_quirk"); diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 8f9959ba9fd4..4d53edaf5999 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -1318,6 +1318,7 @@ struct dwc3 { unsigned resume_hs_terminations:1; unsigned parkmode_disable_ss_quirk:1; unsigned gfladj_refclk_lpm_sel:1; + unsigned xhci_force_phy_control_quirk:1; unsigned tx_de_emphasis_quirk:1; unsigned tx_de_emphasis:2; diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 0ecf20eeceee..fbeefc9eb9c5 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -35,22 +36,20 @@ struct dwc3_exynos { struct regulator *vdd33; struct regulator *vdd10; + struct platform_device *dwc3; }; -static int dwc3_exynos_remove_child(struct device *dev, void *unused) -{ - struct platform_device *pdev = to_platform_device(dev); - - platform_device_unregister(pdev); - - return 0; -} +static const struct property_entry dwc3_exynos_properties[] = { + PROPERTY_ENTRY_BOOL("snps,xhci_force_phy_control"), + {} +}; static int dwc3_exynos_probe(struct platform_device *pdev) { struct dwc3_exynos *exynos; struct device *dev = &pdev->dev; - struct device_node *node = dev->of_node; + struct device_node *node = dev->of_node, *child; + struct platform_device *dwc3; const struct dwc3_exynos_driverdata *driver_data; int i, ret; @@ -109,21 +108,44 @@ static int dwc3_exynos_probe(struct platform_device *pdev) goto vdd10_err; } - if (node) { - ret = of_platform_populate(node, NULL, NULL, dev); - if (ret) { - dev_err(dev, "failed to add dwc3 core\n"); - goto populate_err; - } - } else { - dev_err(dev, "no device node, failed to add dwc3 core\n"); - ret = -ENODEV; - goto populate_err; + child = of_get_next_child(node, NULL); + if (!child) { + dev_err(dev, "Failed to find DWC3 core device node\n"); + goto dwc3_child_err; + } + + dwc3 = of_device_alloc(child, NULL, dev); + if (!dwc3) { + dev_err(dev, "Failed to allocate DWC3 core device\n"); + goto dwc3_alloc_err; + } + + dwc3->dev.coherent_dma_mask = DMA_BIT_MASK(32); + dwc3->dev.dma_mask = &dwc3->dev.coherent_dma_mask; + dwc3->dev.bus = &platform_bus_type; + + ret = device_create_managed_software_node(&dwc3->dev, + dwc3_exynos_properties, NULL); + if (ret < 0) { + dev_err(dev, "Failed to add properties to DWC3 device\n"); + goto dwc3_props_err; + } + + ret = of_device_add(dwc3); + if (ret) { + dev_err(&pdev->dev, "Failed to register DWC3 core device\n"); + goto dwc3_props_err; } + exynos->dwc3 = dwc3; + of_node_put(child); return 0; -populate_err: +dwc3_props_err: + platform_device_put(dwc3); +dwc3_alloc_err: + of_node_put(child); +dwc3_child_err: regulator_disable(exynos->vdd10); vdd10_err: regulator_disable(exynos->vdd33); @@ -142,7 +164,8 @@ static int dwc3_exynos_remove(struct platform_device *pdev) struct dwc3_exynos *exynos = platform_get_drvdata(pdev); int i; - device_for_each_child(&pdev->dev, NULL, dwc3_exynos_remove_child); + device_remove_software_node(&exynos->dwc3->dev); + of_device_unregister(exynos->dwc3); for (i = exynos->num_clks - 1; i >= 0; i--) clk_disable_unprepare(exynos->clks[i]); diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index a7154fe8206d..84f25f392dbd 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -97,7 +97,8 @@ int dwc3_host_init(struct dwc3 *dwc) goto err; } - ret = platform_device_add_data(xhci, &dwc3_xhci_plat_priv, + if (!dwc->xhci_force_phy_control_quirk) + ret = platform_device_add_data(xhci, &dwc3_xhci_plat_priv, sizeof(dwc3_xhci_plat_priv)); if (ret) goto err; From patchwork Thu Nov 3 14:12:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 622054 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7339C43219 for ; Thu, 3 Nov 2022 14:13:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231536AbiKCONA (ORCPT ); Thu, 3 Nov 2022 10:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231382AbiKCOMs (ORCPT ); Thu, 3 Nov 2022 10:12:48 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A5C111162 for ; Thu, 3 Nov 2022 07:12:42 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20221103141241euoutp01b99d4c05d4bdde997cf3722bba9ce1c6~kGI4xW3N12608626086euoutp01C for ; Thu, 3 Nov 2022 14:12:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20221103141241euoutp01b99d4c05d4bdde997cf3722bba9ce1c6~kGI4xW3N12608626086euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667484761; bh=ikLgX5+rC6etpCFPJGJZsqRLbkT4hXzogxYFAeG3eE0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NAmTrprcWoRnN07Usy4IXOHPSKUEvTz9Jt6GHVQCvXUqZwwgWWdsQUmyC+wz+SELL Y+rRAY39KYfB/NiDv6Y599Z2b6k9dSzumj5ZVG370CS6AUFSyzQJIzATfcYUkTOB8e IhDy5AGqNKPpzskPbrxt+4XXyWM7tgEkUaPgb+9g= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20221103141240eucas1p1214a82150536870f5d1392a3e326cc3b~kGI4O4Q_X1074310743eucas1p1X; Thu, 3 Nov 2022 14:12:40 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 9C.EB.29727.85CC3636; Thu, 3 Nov 2022 14:12:40 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20221103141239eucas1p167f44609369010a20293d5123214426d~kGI3lHwri2591525915eucas1p1L; Thu, 3 Nov 2022 14:12:39 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221103141239eusmtrp24f5d9beb1b97a2911cbd2c4e6abc37cc~kGI3hJchK2293622936eusmtrp2c; Thu, 3 Nov 2022 14:12:39 +0000 (GMT) X-AuditID: cbfec7f2-205ff7000001741f-f8-6363cc585153 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 11.ED.10862.75CC3636; Thu, 3 Nov 2022 14:12:39 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221103141238eusmtip2b65d8b299762ab3b9d2cc75c389d6a6d~kGI2387YI1617316173eusmtip2T; Thu, 3 Nov 2022 14:12:38 +0000 (GMT) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Marek Szyprowski , Stefan Agner , Johan Hovold , Thinh Nguyen , Greg Kroah-Hartman , Krzysztof Kozlowski , Rob Herring , Frank Rowand Subject: [PATCH 2/2] of: export of_device_add() Date: Thu, 3 Nov 2022 15:12:33 +0100 Message-Id: <20221103141233.20179-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103141233.20179-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBKsWRmVeSWpSXmKPExsWy7djP87oRZ5KTDXov8VnMP3KO1WLmm/9s Fs2L17NZNN3oYbXY+3oru8XlXXPYLGac38dksWhZK7PF2iN32S1a9x5ht9i8rp3dYtWCA+wO PB6Lv99j9tg56y67x6ZVnWwed67tYfPYP3cNu0ffllWMHlv2f2b0+LxJLoAjissmJTUnsyy1 SN8ugStjzfb/zAXHWCt235zE1MB4naWLkZNDQsBE4s2DNYxdjFwcQgIrGCWuXZ0L5XxhlHj/ vYMFwvnMKHFhwxFmmJZLMx9CJZYzSsx+9YQdruXqsr3sIFVsAoYSXW+72EBsEYEaiZ0XN7OB FDELXGGSmDOpnwkkISygL/H+9F9GEJtFQFVi78wtYDavgK3Evj1LodbJS6zecADI5uDgFLCT eNvNBDJHQuAKh0TTghdQNS4S676/hPpIWOLV8S3sELaMxP+d86Ea2hklFvy+D+VMYJRoeH6L EaLKWuLOuV9sIBuYBTQl1u/Shwg7Spz9C7KNA8jmk7jxVhAkzAxkTto2nRkizCvR0SYEUa0m Mev4Ori1By9cgjrNQ2L+gilskACayCjRfeYtywRG+VkIyxYwMq5iFE8tLc5NTy02zEst1ytO zC0uzUvXS87P3cQITDyn/x3/tINx7quPeocYmTgYDzFKcDArifB+2pacLMSbklhZlVqUH19U mpNafIhRmoNFSZyXbYZWspBAemJJanZqakFqEUyWiYNTqoGp8IHyU0tHh8QLch1hGu8dvuZy NGxVv31HV3j7q6Jq7xPfC8+LsGp/ZTlcJhLjE743aYsXW59Bmmvashu7eo+oZC1dMDnA7M0D poNioYrHjW+Yt+ffidr74JHtlVa7Ip0Ned+/NU122bvu8G/Rc+svXfmSmKSYevnTydtKse8f e2xlLrX8x1NXv8I//I4p35HmU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OglWOcnsF14UUv7BI3LDj/7ZpF+KrMD3zdC+VVUua9n+NhWf8iIZJn0+QFClcC7t0X vVxQuDzsE/uOGyvjJxtcPh/qxtZ+d8+MJ9881rB+uOc3ie/K0da8p9tXLjXbvfCU7cXHNyZt /Bn6dKYSS3FGoqEWc1FxIgANDhUICgMAAA== X-CMS-MailID: 20221103141239eucas1p167f44609369010a20293d5123214426d X-Msg-Generator: CA X-RootMTR: 20221103141239eucas1p167f44609369010a20293d5123214426d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20221103141239eucas1p167f44609369010a20293d5123214426d References: <20221103141233.20179-1-m.szyprowski@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Export of_device_add() function to let DWC3 driver (Exynos variant) to instantiate DWC3 core device from the respective child OF-node with a custom, addtional properties added. Signed-off-by: Marek Szyprowski --- drivers/of/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/device.c b/drivers/of/device.c index 8cefe5a7d04e..bc60c9b6863c 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -52,6 +52,7 @@ int of_device_add(struct platform_device *ofdev) return device_add(&ofdev->dev); } +EXPORT_SYMBOL(of_device_add); static void of_dma_set_restricted_buffer(struct device *dev, struct device_node *np)