From patchwork Tue Feb 14 12:13:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shradha Todi X-Patchwork-Id: 653633 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 9B787C05027 for ; Tue, 14 Feb 2023 14:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229502AbjBNOVm (ORCPT ); Tue, 14 Feb 2023 09:21:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjBNOVe (ORCPT ); Tue, 14 Feb 2023 09:21:34 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B872B08C for ; Tue, 14 Feb 2023 06:21:13 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230214141207epoutp0189b5492c12eea8d362b8c0d167693571~DtkzMklCG1584215842epoutp01G for ; Tue, 14 Feb 2023 14:12:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230214141207epoutp0189b5492c12eea8d362b8c0d167693571~DtkzMklCG1584215842epoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1676383927; bh=kuxFDkZgnx1SPc8bSDimvFlfEON/qYA/DJ+OdV4F/YQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DDuRAcqb+5hyg832WJoKuUhqt6rKqIWP5KtENOp/+vXJd+K/aQk1gdqYF9KN2NSaB EaUFU0RBplmSMrVgzkLLnsdX+S4bNPAh8LXQ1J+Ni09TTzJfo9oUf3AVCwF34ivqnq xOLwsjaFUNuf+bkUjfgf205G7y8z8ekKZ/P6SSiA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20230214141205epcas5p2d1a6f101ff50ff4839d6e38ac321f605~Dtkx45R8m2451524515epcas5p2p; Tue, 14 Feb 2023 14:12:05 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.179]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4PGNSN4yFnz4x9Pv; Tue, 14 Feb 2023 14:12:04 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 4B.A8.06765.4B69BE36; Tue, 14 Feb 2023 23:12:04 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230214121456epcas5p36603c8d717588699d1b5575229d19114~Dr_e7CiW40081100811epcas5p3B; Tue, 14 Feb 2023 12:14:56 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230214121456epsmtrp1fda2db0719d5e8d922c54d556495a537~Dr_e04eqs1788717887epsmtrp1Q; Tue, 14 Feb 2023 12:14:56 +0000 (GMT) X-AuditID: b6c32a4b-46dfa70000011a6d-f5-63eb96b4cc3b Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id E6.0B.17995.F3B7BE36; Tue, 14 Feb 2023 21:14:55 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230214121452epsmtip16085c3c7717daffba84e84cb8bf1ee37~Dr_bm37Mg2436024360epsmtip1q; Tue, 14 Feb 2023 12:14:52 +0000 (GMT) From: Shradha Todi 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 Subject: [PATCH 13/16] PCI: samsung: Rename common functions to samsung Date: Tue, 14 Feb 2023 17:43:30 +0530 Message-Id: <20230214121333.1837-14-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: H4sIAAAAAAAAA0VTbUxTVxje6b3tLcyyO8DtQCKD65CAAi2WcjDiZzeuccmaEPcDSdhduaGV 0ja97YYm22ABmXWgiyIfQlUkU1kEKVA7YICAoCxUExgkBBJRdMUtfJXh5COutGX79zzP+7wf 5z3nCLHAXkGoUK01sgYto6EE/ritNzoqtuXSn0rx+nwEemKxCVDddyp0pc/BR1W2GoAWVh04 urlUSaBS5xSG8n9Y5SPrs1E+Gm6rFqAhy4AAVTzq5KHCtUIcFd4vxtHtvkkC1bYuEehNh51A a+XzOCrp/Ro1W8uwA8H0X9ZXBP1L1SRBX7WaaGv9GQE9MdohoGcdDoKeHinn0c1139JNs3Ye XZu/IKBLW+oB7bKGKbak5+xVsUwWawhntUpdllqbnUIdTcs8nJkoE0tiJckoiQrXMrlsCiX/ RBH7sVrjPiYV/iWjMbklBcNxVPy+vQadyciGq3ScMYVi9VkavVQfxzG5nEmbHadljXskYnFC otv4eY7K9ngA07+m8vInS0A+mN5mBn5CSEphUbMLNwN/YSDZDmCX4zrmJYsAVk61+ogLwLN3 G8FmSp/tNd8baAPwWv8cz0uKeH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nbLhxnLvipVNFwt5exgfGJbBcjJ4eEgInEkW0/WbsYuTiEBHYwSizYv4EN IiEp8fniOiYIW1hi5b/n7BBFzUwS5/+fAUuwCWhJNH7tYgZJiAi8YpI4vGcGmMMscIFR4tbB bnaQKmEBd4k7pzcxgtgsAqoSi0+9YAaxeQWsJD7daoNaIS+xesMBsDgnULyldROYLSRgKTHr 1yrGCYx8CxgZVjFKphYU56bnFhsWGOWllusVJ+YWl+al6yXn525iBMeOltYOxj2rPugdYmTi YDzEKMHBrCTCK/z0RbIQb0piZVVqUX58UWlOavEhRmkOFiVx3gtdJ+OFBNITS1KzU1MLUotg skwcnFINTOmxGU7e+vvvh0mZf8jQORV7S2zzqjz9LWq5UyfpcPprbVFcFnGdP+PLLpuadQkh LZMCrT+9nH4mc8213Ir7Zd33Zk3a3JO/+/Kd9pmb1vvUyf/gOTmJi6vVkis5VPfYTvufAfMO np2ceMyY98Ff2TnfhNla37EdYfi1spupU+VxmUFmfe+21kc35v480pRyaFOb8nI9cd5De4qP PnGQ+vJzvsPakLcHlRN1rvxWLcl0Xbfhvn31mosnzVX0T75t2H0rzGe6l4TBrbaQjVqyFdfr JsoKllzYErZDp8fyRuYtYYHzTVpKXI01WmG7Xtx7qyN68rGhmPqNCUz7W9nbHtUnaExcpb3q 7Aqu+SJP05RYijMSDbWYi4oTAcxvLLcMAwAA X-CMS-MailID: 20230214121456epcas5p36603c8d717588699d1b5575229d19114 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230214121456epcas5p36603c8d717588699d1b5575229d19114 References: <20230214121333.1837-1-shradha.t@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Use samsung instead of exynos for all common functions like probe/remove/suspend/resume. Suggested-by: Pankaj Dubey Signed-off-by: Shradha Todi --- drivers/pci/controller/dwc/pci-samsung.c | 42 ++++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-samsung.c b/drivers/pci/controller/dwc/pci-samsung.c index 719d284e1552..dc8ec0b546fd 100644 --- a/drivers/pci/controller/dwc/pci-samsung.c +++ b/drivers/pci/controller/dwc/pci-samsung.c @@ -60,7 +60,7 @@ struct samsung_pcie { struct regulator_bulk_data supplies[2]; }; -static int exynos_pcie_init_clk_resources(struct samsung_pcie *sp) +static int samsung_pcie_init_clk_resources(struct samsung_pcie *sp) { struct device *dev = sp->pci.dev; int ret; @@ -74,7 +74,7 @@ static int exynos_pcie_init_clk_resources(struct samsung_pcie *sp) return clk_bulk_prepare_enable(sp->clk_cnt, sp->clks); } -static void exynos_pcie_deinit_clk_resources(struct samsung_pcie *sp) +static void samsung_pcie_deinit_clk_resources(struct samsung_pcie *sp) { clk_bulk_disable_unprepare(sp->clk_cnt, sp->clks); } @@ -297,7 +297,7 @@ static const struct dw_pcie_ops dw_pcie_ops = { .start_link = exynos_pcie_start_link, }; -static int exynos_pcie_probe(struct platform_device *pdev) +static int samsung_pcie_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct samsung_pcie *sp; @@ -319,7 +319,7 @@ static int exynos_pcie_probe(struct platform_device *pdev) if (IS_ERR(sp->appl_base)) return PTR_ERR(sp->appl_base); - ret = exynos_pcie_init_clk_resources(sp); + ret = samsung_pcie_init_clk_resources(sp); if (ret < 0) return ret; @@ -345,12 +345,12 @@ static int exynos_pcie_probe(struct platform_device *pdev) fail_probe: phy_exit(sp->phy); regulator_bulk_disable(ARRAY_SIZE(sp->supplies), sp->supplies); - exynos_pcie_deinit_clk_resources(sp); + samsung_pcie_deinit_clk_resources(sp); return ret; } -static int __exit exynos_pcie_remove(struct platform_device *pdev) +static int __exit samsung_pcie_remove(struct platform_device *pdev) { struct samsung_pcie *sp = platform_get_drvdata(pdev); @@ -358,13 +358,13 @@ static int __exit exynos_pcie_remove(struct platform_device *pdev) exynos_pcie_assert_core_reset(sp); phy_power_off(sp->phy); phy_exit(sp->phy); - exynos_pcie_deinit_clk_resources(sp); + samsung_pcie_deinit_clk_resources(sp); regulator_bulk_disable(ARRAY_SIZE(sp->supplies), sp->supplies); return 0; } -static int exynos_pcie_suspend_noirq(struct device *dev) +static int samsung_pcie_suspend_noirq(struct device *dev) { struct samsung_pcie *sp = dev_get_drvdata(dev); @@ -376,7 +376,7 @@ static int exynos_pcie_suspend_noirq(struct device *dev) return 0; } -static int exynos_pcie_resume_noirq(struct device *dev) +static int samsung_pcie_resume_noirq(struct device *dev) { struct samsung_pcie *sp = dev_get_drvdata(dev); struct dw_pcie *pci = &sp->pci; @@ -394,25 +394,25 @@ static int exynos_pcie_resume_noirq(struct device *dev) return dw_pcie_wait_for_link(pci); } -static const struct dev_pm_ops exynos_pcie_pm_ops = { - NOIRQ_SYSTEM_SLEEP_PM_OPS(exynos_pcie_suspend_noirq, - exynos_pcie_resume_noirq) +static const struct dev_pm_ops samsung_pcie_pm_ops = { + NOIRQ_SYSTEM_SLEEP_PM_OPS(samsung_pcie_suspend_noirq, + samsung_pcie_resume_noirq) }; -static const struct of_device_id exynos_pcie_of_match[] = { +static const struct of_device_id samsung_pcie_of_match[] = { { .compatible = "samsung,exynos5433-pcie", }, { }, }; -static struct platform_driver exynos_pcie_driver = { - .probe = exynos_pcie_probe, - .remove = __exit_p(exynos_pcie_remove), +static struct platform_driver samsung_pcie_driver = { + .probe = samsung_pcie_probe, + .remove = __exit_p(samsung_pcie_remove), .driver = { - .name = "exynos-pcie", - .of_match_table = exynos_pcie_of_match, - .pm = &exynos_pcie_pm_ops, + .name = "samsung-pcie", + .of_match_table = samsung_pcie_of_match, + .pm = &samsung_pcie_pm_ops, }, }; -module_platform_driver(exynos_pcie_driver); +module_platform_driver(samsung_pcie_driver); MODULE_LICENSE("GPL v2"); -MODULE_DEVICE_TABLE(of, exynos_pcie_of_match); +MODULE_DEVICE_TABLE(of, samsung_pcie_of_match);