From patchwork Mon Oct 9 14:14:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9993569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 583AF602D7 for ; Mon, 9 Oct 2017 14:15:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48942287EE for ; Mon, 9 Oct 2017 14:15:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D435287F9; Mon, 9 Oct 2017 14:15:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CED0C287FA for ; Mon, 9 Oct 2017 14:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: Message-id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:List-Owner; bh=l2SqgvnStP5gItP9L73OVUKuFjkaVDKlUoGuiq10awk=; b=TG c85Fm3eY82NJ6pzD108jmWwtzfPvaot8gOif0sdQaz71odGjVteirzewhRnUd0q4iMqLtaa5GQt3q E/nEUcslc2GNJKvbDDpDszMXLgFL3AOrVXd4sWb2paodZX6gFl//NZ/kf8neZVEt25OQZlLTAHCpz rv1g8LU4h/iWFa4ZJZOvjsAvd0edDXV4LBP5XmAcnKs2ezv5O/fJJpwJGS0rkXrd4OGIz3VhRMOaF npEu2CBhxmXYWH0GdciYUEAxB3JxS6QamtFlWCyLvBa44o2yiB2iZSaP37tQ9jtQKF8P2g4uSYLTE 8nTApND3rIZP/YjwqVK9bo5mYE9DElJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1YqR-0002J4-Bj; Mon, 09 Oct 2017 14:15:47 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1YqO-0002IG-Gv for linux-arm-kernel@bombadil.infradead.org; Mon, 09 Oct 2017 14:15:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:Message-id:Date:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fHkTGXodS2Lii/p7L5p/UcipYboej+3fiITUQl/fe9Y=; b=jeGC/7Kr+DIUM5AAES2dgCBZHh 88lAIXBJKBCoQ+7RFC0TqGJAwoS/OsXqVUyFAkoF+AfdU70JKp7FsGoFSjjpy3srgmddMOFOkRLal hIPBKlphzpMwrFDXWeMMKyE+GfJICc8dA1eMr+SjVRIJeF35rvhsPc3lf8l+dMYXbMqLsEKLQj3qY 2sGvMuGnhRp8x+ItScvrUCbYGx+N5Q65jHFBP53Mm71OCv6Oj/AFzXoCqZD0moZf5A3zZRSG+/uHP p9X9j9CiHvg/g3SrqUKlSB1h3Neqn73slQck5fcwfjAFFsEc/raX6fvG5ZgttW0Cx7V7cjNni3r62 kj+bQSug==; Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1YqH-0008DO-Ob for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2017 14:15:42 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20171009141439epoutp01d93758b90aa400c964b9ac483b93fe82~r7HMsJTdg0238502385epoutp01j; Mon, 9 Oct 2017 14:14:39 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.42.71]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20171009141439epcas2p194d03c954133b4927dff79faec3e958f~r7HMboY350894008940epcas2p13; Mon, 9 Oct 2017 14:14:39 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 7F.AC.04372.F448BD95; Mon, 9 Oct 2017 23:14:39 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20171009141438epcas2p4ead7e2f2d1af7e0950f2c026e3a9943b~r7HLo75Gv2762927629epcas2p4z; Mon, 9 Oct 2017 14:14:38 +0000 (GMT) X-AuditID: b6c32a47-4b1ff70000001114-85-59db844f473a Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 8C.6D.06856.E448BD95; Mon, 9 Oct 2017 23:14:38 +0900 (KST) Received: from ubuntu.sisodomain.com ([107.108.83.125]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OXK000EJ7JY2K70@mmp1.samsung.com>; Mon, 09 Oct 2017 23:14:38 +0900 (KST) From: Pankaj Dubey To: inux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] PCI: exynos: remove redundant code in exynos_pcie_establish_link Date: Mon, 09 Oct 2017 19:44:38 +0530 Message-id: <1507558478-3218-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsWy7bCmma5/y+1Ig1vHxC3O7lrIarGkKcNi x77FTBYrvsxktzh/fgO7xabH11gtZpzfx2SxaOsXdgcOj52z7rJ7LNhU6rFpVSebx+Yl9R59 W1YxenzeJBfAFsVlk5Kak1mWWqRvl8CVcfziPraC5+wV9x9sYGlgPMzWxcjBISFgIrHiMmsX IyeHkMAORonN+5i6GLmA7O+MEg/PT2QGSYDU7Jy1nQ0isZtRYuPrK6wQzk9GiSfb7rCAVLEJ 6Eo8eT8XrENEIF1i18p2sFHMAkcZJe5t/gRWJCwQLLFo3nI2EJtFQFXi16r1YLt5BdwlDj9o g1onJ3HzXCczSLOEwF9WiclH9jBBJFwk5n7pYIewhSVeHd8CZUtLPFu1kRHCrpZ4cvI1C0Tz BKBbDx6HmmovceDKHLArmAX4JDoO/2WHBACvREebEESJh8SnudPYIGxHiWkv1jNBAiZW4uHd 62wTGCUXMDKsYhRLLSjOTU8tNiow1itOzC0uzUvXS87P3cQIjkUt9x2M2875HGIU4GBU4uFt mHYrUog1say4MvcQowQHs5II75Om25FCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeeu2XYsQEkhP LEnNTk0tSC2CyTJxcEo1MK5IXHir6eSsZWaVkpxbdP4ePHzyZZnH34UNmZN55V+UGLo3f3sz sbV9yiHh1w+38rfyXPP49LdsifznHbuut229lNL91M+8bvdCw/trpntckS8QszmlU2Qu7Maz /S/zIk320l729Ud/Lm35fH7d5SeNH5693HAprGgPn7uW1nLn9A+lKo5rQh4rsRRnJBpqMRcV JwIAF6vpjcECAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFJMWRmVeSWpSXmKPExsVy+t9jAV2/ltuRBkv+ylmc3bWQ1WJJU4bF jn2LmSxWfJnJbnH+/AZ2i02Pr7FazDi/j8li0dYv7A4cHjtn3WX3WLCp1GPTqk42j81L6j36 tqxi9Pi8SS6ALYrLJiU1J7MstUjfLoEr4/jFfWwFz9kr7j/YwNLAeJiti5GTQ0LARGLnrO1A NheHkMBORomZb7YyQjg/GSXmLdjMAlLFJqAr8eT9XOYuRg4OEYF0ifMbrEHCzAJHGSV+bZMG sYUFgiUWzVsONpRFQFXi16r1rCA2r4C7xOEHbcwQy+Qkbp7rZJ7AyLWAkWEVo2RqQXFuem6x UYFRXmq5XnFibnFpXrpecn7uJkZgiGw7rNW/g/HxkvhDjAIcjEo8vA3TbkUKsSaWFVfmHmKU 4GBWEuF90nQ7Uog3JbGyKrUoP76oNCe1+BCjNAeLkjgvf/6xSCGB9MSS1OzU1ILUIpgsEwen VAOj635GqxznQ/t2fmd5z/Hz+P6OAzU9Rz/u45q5e+WpWdEsNlfleo/mNIVqhlyJZO7+xbLE 26eg6sHRUpb7htfPOxf8/nzu4yOfqh/X7fJ8K+1NLnxXWPvh6h6OzWVrfvoeuHE/Ybp7iOam Hw2XDpf2nHkmqBLkkau77r/kqoScy2mHFPafY43zUmIpzkg01GIuKk4EANznGeANAgAA X-CMS-MailID: 20171009141438epcas2p4ead7e2f2d1af7e0950f2c026e3a9943b X-Msg-Generator: CA X-Sender-IP: 182.195.42.143 X-Local-Sender: =?UTF-8?B?7YyQ7Lm07KaIG1NTSVItRkRTIFNXG+yCvOyEseyghOyekBsu?= =?UTF-8?B?L1NlbmlvciBDaGllZiBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?UEFOS0FKIEtVTUFSIERVQkVZG1NTSVItRkRTIFNXG1NhbXN1?= =?UTF-8?B?bmcgRWxlY3Ryb25pY3MbLi9TZW5pb3IgQ2hpZWYgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NXQUhRG0MxMElEMDdJRDAxMDk5Nw==?= CMS-TYPE: 102P X-CMS-RootMailID: 20171009141438epcas2p4ead7e2f2d1af7e0950f2c026e3a9943b X-RootMTR: 20171009141438epcas2p4ead7e2f2d1af7e0950f2c026e3a9943b References: X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bjorn Helgaas , Jingoo Han , Anvesh Salveru , Krzysztof Kozlowski , Pankaj Dubey MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Anvesh Salveru In exynos_pcie_establish_link if driver is not using generic phy, we are resetting PHY twice, which is redundant, so this patch removes repeated lines of code for PHY reset. Signed-off-by: Anvesh Salveru Acked-by: Jingoo Han --- drivers/pci/dwc/pci-exynos.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/pci/dwc/pci-exynos.c b/drivers/pci/dwc/pci-exynos.c index 5596fde..85d2f4b 100644 --- a/drivers/pci/dwc/pci-exynos.c +++ b/drivers/pci/dwc/pci-exynos.c @@ -423,13 +423,6 @@ static int exynos_pcie_establish_link(struct exynos_pcie *ep) exynos_pcie_deassert_phy_reset(ep); exynos_pcie_power_on_phy(ep); exynos_pcie_init_phy(ep); - - /* pulse for common reset */ - exynos_pcie_writel(ep->mem_res->block_base, 1, - PCIE_PHY_COMMON_RESET); - udelay(500); - exynos_pcie_writel(ep->mem_res->block_base, 0, - PCIE_PHY_COMMON_RESET); } /* pulse for common reset */