Message ID | 20230214121333.1837-13-shradha.t@samsung.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-samsung-soc-owner@vger.kernel.org> 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 94953C05027 for <linux-samsung-soc@archiver.kernel.org>; Tue, 14 Feb 2023 14:31:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbjBNObR (ORCPT <rfc822;linux-samsung-soc@archiver.kernel.org>); Tue, 14 Feb 2023 09:31:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232568AbjBNObP (ORCPT <rfc822;linux-samsung-soc@vger.kernel.org>); Tue, 14 Feb 2023 09:31:15 -0500 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93E44A8 for <linux-samsung-soc@vger.kernel.org>; Tue, 14 Feb 2023 06:31:14 -0800 (PST) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230214141132epoutp03ecc18dee7b0ae286e1416c5ad99ad8ab~DtkTDGJzm2112821128epoutp03N for <linux-samsung-soc@vger.kernel.org>; Tue, 14 Feb 2023 14:11:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230214141132epoutp03ecc18dee7b0ae286e1416c5ad99ad8ab~DtkTDGJzm2112821128epoutp03N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1676383892; bh=auUVRqKrczwr8dxcJj9iJlHqVS46IWR7h5f9bDyL/9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CTG6IKLtVtvhnts0T73rG075LCpqsA+Gzc05aCz+pBrHlOZzwttk9baOsHwDqG+VF HPgpX/n51K+mGvW1icT+AbdJFo30T4vH8joB/PvUCkUS7iBbSkCkF+pwFCtu8OI17R Vn36HCBxO0xTeHVQNe5VIv3AkY7E5fzHDo0brqiE= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230214141132epcas5p1b3b6a2f3148f5350fa0f0b6b928c3fd4~DtkSaTmol1928819288epcas5p13; Tue, 14 Feb 2023 14:11:32 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.182]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4PGNRk2nzHz4x9Py; Tue, 14 Feb 2023 14:11:30 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 54.A9.10528.2969BE36; Tue, 14 Feb 2023 23:11:30 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20230214121451epcas5p148118502c76299b2a6f389881fa296cc~Dr_a7gRUk1679116791epcas5p1y; Tue, 14 Feb 2023 12:14:51 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230214121451epsmtrp1c9dcc1ace98f1c0abbdda39d4d22fc5c~Dr_a6oYg01843918439epsmtrp1Y; Tue, 14 Feb 2023 12:14:51 +0000 (GMT) X-AuditID: b6c32a49-e75fa70000012920-71-63eb969239f3 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 42.9E.05839.B3B7BE36; Tue, 14 Feb 2023 21:14:51 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230214121448epsmtip1e40e9843a96cbd637c69ac1b6b33fb8a~Dr_YP1vvE2380623806epsmtip1y; Tue, 14 Feb 2023 12:14:48 +0000 (GMT) From: Shradha Todi <shradha.t@samsung.com> To: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, alim.akhtar@samsung.com, jingoohan1@gmail.com, Sergey.Semin@baikalelectronics.ru, lukas.bulwahn@gmail.com, hongxing.zhu@nxp.com, tglx@linutronix.de, m.szyprowski@samsung.com, jh80.chung@samsung.co, pankaj.dubey@samsung.com Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Shradha Todi <shradha.t@samsung.com> Subject: [PATCH 12/16] PCI: samsung: Get PHY using non-DT version Date: Tue, 14 Feb 2023 17:43:29 +0530 Message-Id: <20230214121333.1837-13-shradha.t@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230214121333.1837-1-shradha.t@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEJsWRmVeSWpSXmKPExsWy7bCmlu6kaa+TDWa94Ld4MG8bm8WSpgyL +UfOsVrM2jaX0eLj73MsFiu+zGS36HvxkNmioec3q8Wmx9dYLS7vmsNmcXbecTaLGef3MVm0 /GlhsWg52s5isfbIXXaLRVu/sFv837OD3eLP9A8sFr2Hay02b5rK7CDi8WbTd3aPnbPusnss 2FTqsWlVJ5vHnWt72DzenTvH7vHkynQmj81L6j02vtvB5LGo4SObR9+WVYwenzfJBfBEZdtk pCampBYppOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXmAL2ppFCWmFMK FApILC5W0rezKcovLUlVyMgvLrFVSi1IySkwKdArTswtLs1L18tLLbEyNDAwMgUqTMjO2PP9 J3PBL/aK89M/MDUw3mTrYuTkkBAwkdg76yZTFyMXh5DAbkaJ97Pes0E4nxgl+r48gXK+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m6YyO4h4vNn0nd1j56y77B4L NpV6bFrVyeZx59oeNo93586xezy5Mp3JY/OSeo+N73YweSxq+Mjm0bdlFaPH501yATxRXDYp qTmZZalF+nYJXBl7vv9kLvjFXnF++gemBsabbF2MnBwSAiYSlx9MA7K5OIQEdjNKfJt8kAUi ISnx+eI6JghbWGLlv+fsEEXNTBKbn+9gBEmwCWhJNH7tYgZJiAi8YpI4vGcGmMMscIFR4tbB bnaQKmEBR4lH3VfBRrEIqErcmzEDrJtXwErixZ8V7BAr5CVWbzjADGJzAsVbWjeB2UIClhKz fq1inMDIt4CRYRWjZGpBcW56brFhgWFearlecWJucWleul5yfu4mRnDsaGnuYNy+6oPeIUYm DsZDjBIczEoivMJPXyQL8aYkVlalFuXHF5XmpBYfYpTmYFES573QdTJeSCA9sSQ1OzW1ILUI JsvEwSnVwNQpsXmt1c8bRct+ZZs6GjuyrHT57WlY/GnW6dfVF1+/rqyckZXH9WZnn5ipr9wl uUNXv3Rc8jMP/a372WZNSq6Yz9yUnkMBvM67fvb9sT8RaFAbUTpv22LdK40L954TNb/Glqcr fqufVWrfQqHjczVOVHnumf8vSv7kxifF9/nyLdhfnrLU2r7SpnT2wuAg6ZJQeW22fYayX9Ln TtWIm2b0W/xB+PWvG05uyaopPMDfyxP1fbLm1vqAeRr9kxL9H7XOqvbwzFp6UMSP0XmXQSwb 50JB5ZPy/t47DH3Z+d1Epi7c8Uih5YV95T7LRUpp/uz3k23tOrUbnY50nytglbC6fU9dUOCZ 2cGM2mYBJZbijERDLeai4kQAjgOM/AwDAAA= X-CMS-MailID: 20230214121451epcas5p148118502c76299b2a6f389881fa296cc X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230214121451epcas5p148118502c76299b2a6f389881fa296cc References: <20230214121333.1837-1-shradha.t@samsung.com> <CGME20230214121451epcas5p148118502c76299b2a6f389881fa296cc@epcas5p1.samsung.com> Precedence: bulk List-ID: <linux-samsung-soc.vger.kernel.org> X-Mailing-List: linux-samsung-soc@vger.kernel.org |
Series |
Refactor Exynos PCIe driver to make it generic
|
expand
|
diff --git a/drivers/pci/controller/dwc/pci-samsung.c b/drivers/pci/controller/dwc/pci-samsung.c index e6e2a8ab4403..719d284e1552 100644 --- a/drivers/pci/controller/dwc/pci-samsung.c +++ b/drivers/pci/controller/dwc/pci-samsung.c @@ -301,7 +301,6 @@ static int exynos_pcie_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct samsung_pcie *sp; - struct device_node *np = dev->of_node; int ret; sp = devm_kzalloc(dev, sizeof(*sp), GFP_KERNEL); @@ -311,7 +310,7 @@ static int exynos_pcie_probe(struct platform_device *pdev) sp->pci.dev = dev; sp->pci.ops = &dw_pcie_ops; - sp->phy = devm_of_phy_get(dev, np, NULL); + sp->phy = devm_phy_get(dev, "pcie_phy"); if (IS_ERR(sp->phy)) return PTR_ERR(sp->phy);
Replace devm_of_phy_get with devm_phy_get to get the PHY pointer. Signed-off-by: Shradha Todi <shradha.t@samsung.com> --- drivers/pci/controller/dwc/pci-samsung.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)