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: 14906 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp560525wru; Thu, 3 Nov 2022 07:16:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aRL3Itw9PAUk0qHO62Q1oCO1ywo1Ygw2hJsG2Y0SxsFJWIWffyVtMuxyM1QD8cnVGOEXh X-Received: by 2002:a63:8041:0:b0:470:1cd2:9914 with SMTP id j62-20020a638041000000b004701cd29914mr490996pgd.539.1667484985305; Thu, 03 Nov 2022 07:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667484985; cv=none; d=google.com; s=arc-20160816; b=s/xXo4fVYzlKnf44po/OE3IlLeYXt6sdrXEynzdRNN4sxNo/RHgltlQ/yNdFlpXX36 U0f1gEjO2zivAJFzjAGWzzniisAn//07KkG2zLSjWhNBFt9VBZ8KVKr/vhdCSUM7bZkp Jioq0CQk1182xmfZxUb5yHrn15G8I2Y00qvBMBxs8l6mTue+I9jl3iEc2RCW16qfaz6T LViUsFGZuUgQSlGSeD+wkhFilcM09ID/45wz2f2FAVDaM4SSTUq6L5UpR6/wvVOpwcAy 4mF4IrBKqMZWTHC8Mg8HPxgrR26dczfKkwPFa0XyJuAaH25MtuJlHIHXReQi/3cYrLN2 SJEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=qCDUQNE7TNiVdNuYLngBq2PYfEAAqmyEHBheVRACkuw=; b=gVBm0C5xf6WIGa6BR8V2VfwwOJyHbZw4Brcd6vmVX8pE3nJ5OL8/n579sWEYIxwQje jzGVGYwnkWELInca6x0Sx3sbLQvCKwWmDJWCbzwSKNgbPp08OZMTferhgTTNtP5iAGLf SM8vMM8p1WjPtXJLRohdKp4eXtQxOZVGm7vUwCfFYISFhAWmmEnE8z6XgyKqoqNwkmEC rHHoV2Gk6hbHPHB6ceQcHiQj1kVqs+8fF4RnA1U520GWuowZWpsLDU9x4qv6ZmappBU/ 6dym3KWDVhHL0LDAsThf0dRx+v58G1EaXlcNB+HN1seNFh7JAppAAuo6CXgzNIvsCsOQ iiFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UJL1bjj9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a17090aa88300b00213ff43fdf1si5069266pjq.185.2022.11.03.07.16.10; Thu, 03 Nov 2022 07:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UJL1bjj9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231328AbiKCONF (ORCPT + 99 others); Thu, 3 Nov 2022 10:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231388AbiKCOMv (ORCPT ); Thu, 3 Nov 2022 10:12:51 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B00213F47 for ; Thu, 3 Nov 2022 07:12:41 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20221103141240euoutp02e81375e999f7ca8c4a8c55b802930f73~kGI4EyN980722207222euoutp02o for ; Thu, 3 Nov 2022 14:12:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20221103141240euoutp02e81375e999f7ca8c4a8c55b802930f73~kGI4EyN980722207222euoutp02o 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 38BTnB8GAfxoPor5XSLaC2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hIWAi8fHcdZYuRi4OIYGljBK3OiYwQSRkJE5Oa2CFsIUl/lzrYoMo+sQo0df5 HqyITcBQoustREJEoIFRYsfkv0wgDrPADSaJCXP72ECqhAXcJbrO/wOzWQRUJZb0bgcq4uDg FbCVeL2bEWKDvMTqDQeYJzDyLGBkWMUoklpanJueW2yoV5yYW1yal66XnJ+7iREY1tuO/dy8 g3Heq496hxiZOBgPMUpwMCuJ8H7alpwsxJuSWFmVWpQfX1Sak1p8iNEUaN1EZinR5HxgZOWV xBuaGZgamphZGphamhkrifN6FnQkCgmkJ5akZqemFqQWwfQxcXBKNTBpzP0bGDf5x+EFxjNv rrp0tvLBLuubCQ2zj694Khe/rufP89AEi1Uyc+Zn1J7wz3pk7Pjn+XYmFs0dXO8X7WGT6U0L r+ide4NBX7Hthq5bq2neUf1N4bMnqUw6+sFQjykxbM2mXVPlZFr1V50XTu9n2fBG0LEufIP2 Ajb2P/87hZZczImb7D69f++Bj52GqxNWRjJ9bdgR5mj3olbYTrW67Gj+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: X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748484735530045035?= X-GMAIL-MSGID: =?utf-8?q?1748484735530045035?= 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: 14907 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp560524wru; Thu, 3 Nov 2022 07:16:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hSFEwkbwSy9oiF+XxDG9VH0TRzWaUXKYdEkIL7ltpd0TAX0qxtZ/4NWGa3WWiKGghpXsX X-Received: by 2002:a63:455e:0:b0:439:9496:ddd8 with SMTP id u30-20020a63455e000000b004399496ddd8mr25990842pgk.261.1667484985302; Thu, 03 Nov 2022 07:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667484985; cv=none; d=google.com; s=arc-20160816; b=ueH5gID9nCjdxN2kgcyAivdhyCRwgH8w5b7XwwpU2m+VCfgmA2aL2UCK29r0kJoa3n llwZROBoFWnkP40jGtnNKvZUVpTR82bgoUuRFxVbf8LO1z5z0/li1Akboj64ffy1WpKo FipwE5W4JQA9yIOPtDPMe/L+U9z+HZFKpVreVTYHbEuiy9XxeguzcbI4tiUBIumv6rS8 VSoLZxfioGcSeaeli5AXDfckFMiN7Vp+cm64pjS6zRJoac+Vzec8+/9T24AaDKQdQKPG DsM65UxVm53DAAxgtFMtI5lw0ExibkQfIzZsCQ3Wl+VK3lI3SCTq7LZyJT+ZA8CXZaap A5Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=ikLgX5+rC6etpCFPJGJZsqRLbkT4hXzogxYFAeG3eE0=; b=ks7TQp63UC5QMp7bzeC/k7px1vFOSwBygekAitKbIQX/uekQYY0DtF7TX3/XOwODB3 E3qcadQUqzBXcBpgjo6AzYpn2/pUVCN/rrOmuQjKaRC1UV+RNub2MqwST/91HBhdX7G5 tP6swaXIWJ3P/AjQjOEbaUeSBqF8OqNMZEn0FpgBB+z5uBJxirrjX8wuPqlEcV4pZbML zXJA3APzQ2u5tlOw1/CX+ByWt+qeCtAobT6swRrs47ipxhOdyFdmco+0hXy2rvhK74aW kGOKKQTlTBnXrKqZNbUvavgoa4CEXb1X1+xi8x4whDxEarFXLR1T327mScdBnFkm8QRP +qlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GxIlWX3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 15-20020a630d4f000000b00434ffe3cc11si1247490pgn.870.2022.11.03.07.16.10; Thu, 03 Nov 2022 07:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GxIlWX3o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbiKCONC (ORCPT + 99 others); Thu, 3 Nov 2022 10:13:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbiKCOMt (ORCPT ); Thu, 3 Nov 2022 10:12:49 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A87E12D25 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 20221103141240euoutp016c58532301181c0cd8e61d403f924254~kGI4qPuyJ2369623696euoutp01b for ; Thu, 3 Nov 2022 14:12:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20221103141240euoutp016c58532301181c0cd8e61d403f924254~kGI4qPuyJ2369623696euoutp01b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667484760; bh=ikLgX5+rC6etpCFPJGJZsqRLbkT4hXzogxYFAeG3eE0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GxIlWX3o2pwr3Um5Mpb7mSuABrl94qylelYbiTvo/yfExwvIinGkADnzyiTW+x5qY 5UJ3VeLLlQKuYyGR1c6B2Lpmn0gH6+jh3DNAokUp6YjWww62ADPgxJY1PEduqJNhTz HWB6wJ9QERmi9pONtTfa9Hn1ttevRoWhhWU8tm1E= 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+VkIyxYwMq5iFE8tLc5NTy02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rEotyo8vKs1J LT7EaAp0xURmKdHkfGAU5pXEG5oZmBqamFkamFqaGSuJ83oWdCQKCaQnlqRmp6YWpBbB9DFx cEo1MC3U/WTBbOP/Skf2i1s5y9ub17Jkt34693QVZ0PiUen93r+LTRuv5z1mit/ix3h2CsPD 9weN7wjPmJA16a7z5K/cDz/sbNplv0idTa1+br6hbt4ZAc6w5yzfa3sW+0q2x8/RqvD0dtbg 9Xu2qu/2dr/G7jw9f/uQJU7nC9eG/dBKuh3WxMnqfNybxzTupsMy4SeRcQv186e1PLlv7DZL W+2XUoOglWOcnsF14UUv7BI3LDj/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> X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748484735548514232?= X-GMAIL-MSGID: =?utf-8?q?1748484735548514232?= 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)