{"id":2197193,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2197193/?format=json","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/1.0/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260217-d3cold-v2-4-89b322864043@oss.qualcomm.com>","date":"2026-02-17T11:19:09","name":"[v2,4/5] PCI: qcom: Power down PHY via PARF_PHY_CTRL before disabling rails/clocks","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"d9935285dc18825b6d27b4386b1d9c9c06b334c5","submitter":{"id":89908,"url":"http://patchwork.ozlabs.org/api/1.0/people/89908/?format=json","name":"Krishna Chaitanya Chundru","email":"krishna.chundru@oss.qualcomm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-pci/patch/20260217-d3cold-v2-4-89b322864043@oss.qualcomm.com/mbox/","series":[{"id":492410,"url":"http://patchwork.ozlabs.org/api/1.0/series/492410/?format=json","date":"2026-02-17T11:19:05","name":"PCI: qcom: Add D3cold support","version":2,"mbox":"http://patchwork.ozlabs.org/series/492410/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2197193/checks/","tags":{},"headers":{"Return-Path":"\n <linux-pci+bounces-47451-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=NEL5cgui;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=eFtmxDb7;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-pci+bounces-47451-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"NEL5cgui\";\n\tdkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"eFtmxDb7\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=205.220.180.131","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=oss.qualcomm.com"],"Received":["from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fFcfH1c2Zz1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 22:21:27 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 5C817305B284\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 11:19:35 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 214E8330670;\n\tTue, 17 Feb 2026 11:19:35 +0000 (UTC)","from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CC2B330672\n\tfor <linux-pci@vger.kernel.org>; Tue, 17 Feb 2026 11:19:32 +0000 (UTC)","from pps.filterd (m0279868.ppops.net [127.0.0.1])\n\tby mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61H8ihw3288959\n\tfor <linux-pci@vger.kernel.org>; Tue, 17 Feb 2026 11:19:32 GMT","from mail-pf1-f198.google.com (mail-pf1-f198.google.com\n [209.85.210.198])\n\tby mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cc6nrt23r-1\n\t(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n\tfor <linux-pci@vger.kernel.org>; Tue, 17 Feb 2026 11:19:32 +0000 (GMT)","by mail-pf1-f198.google.com with SMTP id\n d2e1a72fcca58-824a02e4d29so1844956b3a.1\n        for <linux-pci@vger.kernel.org>; Tue, 17 Feb 2026 03:19:31 -0800 (PST)","from hu-krichai-hyd.qualcomm.com ([202.46.23.25])\n        by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-824c6b9a661sm13181914b3a.50.2026.02.17.03.19.26\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 17 Feb 2026 03:19:30 -0800 (PST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771327175; cv=none;\n b=WuTdMVJ/GLq0lK2pWVdyIOnOC4MW3IDCDOvJ7E8bwZqGX1OnK7+g8CvMy0wE81mtXZHLaxPn8UzFJC1Wy+mH9MJvF9ZlrTMJJZKeuaIGc8U/7NyP22BUmsvF3/tfbKZA+l+QK/G/e4uXSOxh5TmLgnzW4PvWg2r+igv0Q1D0BBk=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771327175; c=relaxed/simple;\n\tbh=RI4q6fSSubOmDgNNa0gqplTxflnkQiZtd27PDlBbjys=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=oRB710n3c2CdwupbUYoihssyUtvyEbg72TLUSli6JMoqqGGZKdYYVjE8iWbt/3v+0mmaEnAoqjez61o/dmaEZ5DRT78BoIsUykFri06y2FhHDA7ZygP7TJDJ5wtlW7jktk0q6L0TCsDbknufk/p74R3yY2DW5pA/qg4WMkdBjSs=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com;\n spf=pass smtp.mailfrom=oss.qualcomm.com;\n dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=NEL5cgui;\n dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=eFtmxDb7; arc=none smtp.client-ip=205.220.180.131","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n\tcc:content-transfer-encoding:content-type:date:from:in-reply-to\n\t:message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n\tUfl5jZDzffZq1Bxrg/McQqGCvj9/TyQy203e6kES/BI=; b=NEL5cguilh1bR/cM\n\ta7PuV9BQ7AW0HX4J9m2MdiGrG7Fp46J7YHAotQdZJ99z6/tpvSWGq5aapmVf6WIl\n\tmVHE48iPMzUegKNvvF+8XDpPBV7klhOu65cFgU4kb6HhUepYDIuWqTZE6VLlc/7E\n\t1gSBeEnAA2psW0prH43t/H3TNRGYcS+PAIrHPpicWQV4fbanLwIBkdwOVheoo7xx\n\ttw93XnNt/gsh6CuvrcyOLmlr7h14cePr5rCZVtXh5r+F1JrWOVvFrcdYlnebaykL\n\tDsrkIZ/OWeTcCqUv5blkxgBJfWSGrZxbch77/zrE+qeiuACaIloYhimyD/+pAOzX\n\tDrcxeA==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=oss.qualcomm.com; s=google; t=1771327171; x=1771931971;\n darn=vger.kernel.org;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=Ufl5jZDzffZq1Bxrg/McQqGCvj9/TyQy203e6kES/BI=;\n        b=eFtmxDb79BG5Rkqb+xGKLy77w0mcHOeZHZpr53xwMaCNvO1qM2ebhnXIbpL6FmHcfb\n         fAuQQRfN9E7eUnjL/FFV0HgzDHPMyGYmN9nV8aZN+86eKUjl96FtzJIEuhvNWpyC4C0e\n         lrfXl10UwcBi9cfyquWlfkpt/4PJN7qbF1RD4T+J4BV3U8TyWdKKM/0x/fkkSyrb4dQk\n         tvUrCd8KVqu8hgbl+f9y+DZYR0afaJv3DMn4t8XhABBU/FIqy3XQUjnzRxKoDOzFQXsU\n         5bnoGzTbKx8n7gaXhMwjP9Cwsp8SAXDqULS3bRgREeywW7UOnHkmqZMD8txrW6R/3oZc\n         TESw=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20230601; t=1771327171; x=1771931971;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=Ufl5jZDzffZq1Bxrg/McQqGCvj9/TyQy203e6kES/BI=;\n        b=f5eSIv++G4kWP0pSum908rfPt63ymtioktt/iGyqzcpLbHTKA9LTPmoaGPpxYcRocq\n         BB3VSyzZDCyNRQbQXM6X4z+GPspm1VwiSYiAioNGBOGRTgZctw+S/n9BC4Dm3heBF751\n         qEFx70ulF+yTzzo6mpEFbGwz2bl1XiaVxOxtSG80GNKQoEyiHXeZjG5A0uQBApB5PBhM\n         6NKwAy23k8LVloUjoc7inTQJw7y18A1LOKh9iOFQoxAUh9jpHvftj44Q0kZ6DRjxnKKp\n         TirqmA0C6x1BUT0qIZG5WHMIT2H3w6ZWFCMrb7DmeopRyjDz7DxCk9aMnCx4YlFCrEtA\n         SKdA==","X-Gm-Message-State":"AOJu0Yw5HfnRBHr7DIrRJT7rSV00JpvItTiyf86gQvBfG7k0SP+wzhtr\n\tRpCla/eTEDgWRqVfwpLbLCAivHcM3CkvymGvjm/s3Wztg2QabyxBc4gzYa+TPEZwwLNNDFZaTHM\n\taUhhLSE5vzUd6IdTTfYVOkyY9UjIEafgLHpe8fWNg3DxDYzdx+tgIz5cmT0WchxQ=","X-Gm-Gg":"AZuq6aL6pM8jfvz3uJcXWPBLXfwGoq7dzq/ZSbUGfdaMUAf8LeAZ48Sk5Mcoxe4mRY7\n\tqYR04nDqPOaaKOmf/TOoTNloXszQPbEFA1Slau2GyzfPCrS+++EL5TWqVKXn9ctMX4EvRvdhDBK\n\tjY0ee1Ipl74XB7aqPIw5fPQr1VonJENjxH0zbI88d8jUgwxPdHm/Ub6IYbyBk+6iN0pfbocpg2t\n\tfD4Q69YxyV+PuwJR+Lka1kX7aD+u6MjlsH9znd15Uut0upXY8YYYMlTaafAgp9IGSNpoPCmWhjH\n\txWK41jup13zsmeznPV/HCB+d9bwtR00Pn7kbs/BjrjIwwPiDLmgKRwYPvk4tjSDNedZJHCX2g2c\n\tnPTt/QxXmNTPtF13jDVoJBAYQrC+ws9X1Ai3ImEuOE+akSYZdf3raHVJc","X-Received":["by 2002:a05:6a00:4acd:b0:823:1406:8797 with SMTP id\n d2e1a72fcca58-824d953488cmr8975252b3a.31.1771327171079;\n        Tue, 17 Feb 2026 03:19:31 -0800 (PST)","by 2002:a05:6a00:4acd:b0:823:1406:8797 with SMTP id\n d2e1a72fcca58-824d953488cmr8975235b3a.31.1771327170627;\n        Tue, 17 Feb 2026 03:19:30 -0800 (PST)"],"From":"Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>","Date":"Tue, 17 Feb 2026 16:49:09 +0530","Subject":"[PATCH v2 4/5] PCI: qcom: Power down PHY via PARF_PHY_CTRL before\n disabling rails/clocks","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260217-d3cold-v2-4-89b322864043@oss.qualcomm.com>","References":"<20260217-d3cold-v2-0-89b322864043@oss.qualcomm.com>","In-Reply-To":"<20260217-d3cold-v2-0-89b322864043@oss.qualcomm.com>","To":"Jingoo Han <jingoohan1@gmail.com>,\n Manivannan Sadhasivam <mani@kernel.org>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?=\n\t=?utf-8?q?ski?= <kwilczynski@kernel.org>, Rob Herring <robh@kernel.org>,\n Bjorn Helgaas <bhelgaas@google.com>, Will Deacon <will@kernel.org>","Cc":"linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,\n        linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,\n        jonathanh@nvidia.com, bjorn.andersson@oss.qualcomm.com,\n        Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>","X-Mailer":"b4 0.14.2","X-Developer-Signature":"v=1; a=ed25519-sha256; t=1771327148; l=4007;\n i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id;\n bh=RI4q6fSSubOmDgNNa0gqplTxflnkQiZtd27PDlBbjys=;\n b=li0xu+gi3ab5XV55aDVCdK4EDUgeaa7g/6a4LpfP39jcV9HM2K+TWtxoLN665Lm7JJn/gDR6A\n p55CKSh6k9fAoU1f+ldOyKH3B3W6LSkcx7zyXglg17snwRy2jUfcT+Y","X-Developer-Key":"i=krishna.chundru@oss.qualcomm.com; a=ed25519;\n pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg=","X-Authority-Analysis":"v=2.4 cv=XKo9iAhE c=1 sm=1 tr=0 ts=69944ec4 cx=c_pps\n a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17\n a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22\n a=EUspDBNiAAAA:8 a=h4B-02p0z56_JbXvspoA:9 a=QEXdDO2ut3YA:10\n a=IoOABgeZipijB_acs4fv:22","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwMjE3MDA5NCBTYWx0ZWRfX8wzrnIoWUM+s\n g19YfzBCEEQgMmCQHNdxE+B/GRWOUhsSVGoUxvHeCfc25zDnEnUsN8DykhRLQ1jZ2GpuSXXMPT5\n vQsOxIGvTa7r0oSMro2JHMQ3epQ2jDCNMcwu7YI0PeReQIxbnD/318tuSpo0vTUMdr3H+2A9pob\n wuEroujU6T6iriJg60onYD/w0etJE8QhFXBXhRZ/iUsUXs1eEqEn5zsvUSlgT0FWS6+Lw8DAsY7\n 58UOVlHi1edHVWfN0+VR0Ju2Aqqhrz8TzxF+hzbOalxLwJqtnAYOK7V96T1ChO+zKmwdaHNQ13x\n 19wQSTLACW+K4583Dgmcw5pFriZkSILZx95ksdiqq3OqNYvTjki75Btau8x86APbIXgqyfLPhBM\n rEeA4UAnXpSyuqYCdVIExyl/mnzpEg7mYiqQ/xqEnn7pftimJcp0VuSiOi+/UkDSWpDsmxdF2NH\n T5qtEFneZGpwEdfA7QQ==","X-Proofpoint-ORIG-GUID":"uaLTS7NP5Jbs7lCih-AexPB-sE0Zjs7C","X-Proofpoint-GUID":"uaLTS7NP5Jbs7lCih-AexPB-sE0Zjs7C","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-17_01,2026-02-16_04,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n spamscore=0 phishscore=0 priorityscore=1501 suspectscore=0 bulkscore=0\n clxscore=1015 adultscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602170094"},"content":"Some Qcom PCIe controller variants bring the PHY out of test power-down\n(PHY_TEST_PWR_DOWN) during init. When the link is later transitioned\ntowards D3cold and the driver disables PCIe clocks and/or regulators\nwithout explicitly re-asserting PHY_TEST_PWR_DOWN, the PHY can remain\npartially powered, leading to avoidable power leakage.\n\nUpdate the init-path comments to reflect that PARF_PHY_CTRL is used to\npower the PHY on. Also, for controller revisions that enable PHY power\nin init (2.3.2, 2.3.3, 2.7.0 and 2.9.0), explicitly power the PHY down\nvia PARF_PHY_CTRL in the deinit path before disabling clocks/regulators.\n\nThis ensures the PHY is put into a defined low-power state prior to\nremoving its supplies, preventing leakage when entering D3cold.\n\nSigned-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>\n---\n drivers/pci/controller/dwc/pcie-qcom.c | 30 +++++++++++++++++++++++++++---\n 1 file changed, 27 insertions(+), 3 deletions(-)","diff":"diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c\nindex 2c4dc7134e006d3530a809f1bcc1a6488d4632ad..b02c19bbdf2ea5db252c2a0281a569bb3a0cc497 100644\n--- a/drivers/pci/controller/dwc/pcie-qcom.c\n+++ b/drivers/pci/controller/dwc/pcie-qcom.c\n@@ -513,7 +513,7 @@ static int qcom_pcie_post_init_2_1_0(struct qcom_pcie *pcie)\n \tu32 val;\n \tint ret;\n \n-\t/* enable PCIe clocks and resets */\n+\t/* PHY power ON */\n \tval = readl(pcie->parf + PARF_PHY_CTRL);\n \tval &= ~PHY_TEST_PWR_DOWN;\n \twritel(val, pcie->parf + PARF_PHY_CTRL);\n@@ -680,6 +680,12 @@ static int qcom_pcie_get_resources_2_3_2(struct qcom_pcie *pcie)\n static void qcom_pcie_deinit_2_3_2(struct qcom_pcie *pcie)\n {\n \tstruct qcom_pcie_resources_2_3_2 *res = &pcie->res.v2_3_2;\n+\tu32 val;\n+\n+\t/* PHY Power down */\n+\tval = readl(pcie->parf + PARF_PHY_CTRL);\n+\tval |= PHY_TEST_PWR_DOWN;\n+\twritel(val, pcie->parf + PARF_PHY_CTRL);\n \n \tclk_bulk_disable_unprepare(res->num_clks, res->clks);\n \tregulator_bulk_disable(ARRAY_SIZE(res->supplies), res->supplies);\n@@ -712,7 +718,7 @@ static int qcom_pcie_post_init_2_3_2(struct qcom_pcie *pcie)\n {\n \tu32 val;\n \n-\t/* enable PCIe clocks and resets */\n+\t/* PHY Power ON */\n \tval = readl(pcie->parf + PARF_PHY_CTRL);\n \tval &= ~PHY_TEST_PWR_DOWN;\n \twritel(val, pcie->parf + PARF_PHY_CTRL);\n@@ -844,6 +850,12 @@ static int qcom_pcie_get_resources_2_3_3(struct qcom_pcie *pcie)\n static void qcom_pcie_deinit_2_3_3(struct qcom_pcie *pcie)\n {\n \tstruct qcom_pcie_resources_2_3_3 *res = &pcie->res.v2_3_3;\n+\tu32 val;\n+\n+\t/* PHY Power down */\n+\tval = readl(pcie->parf + PARF_PHY_CTRL);\n+\tval |= PHY_TEST_PWR_DOWN;\n+\twritel(val, pcie->parf + PARF_PHY_CTRL);\n \n \tclk_bulk_disable_unprepare(res->num_clks, res->clks);\n }\n@@ -994,7 +1006,7 @@ static int qcom_pcie_init_2_7_0(struct qcom_pcie *pcie)\n \t/* configure PCIe to RC mode */\n \twritel(DEVICE_TYPE_RC, pcie->parf + PARF_DEVICE_TYPE);\n \n-\t/* enable PCIe clocks and resets */\n+\t/* PHY power ON */\n \tval = readl(pcie->parf + PARF_PHY_CTRL);\n \tval &= ~PHY_TEST_PWR_DOWN;\n \twritel(val, pcie->parf + PARF_PHY_CTRL);\n@@ -1065,6 +1077,12 @@ static void qcom_pcie_host_post_init_2_7_0(struct qcom_pcie *pcie)\n static void qcom_pcie_deinit_2_7_0(struct qcom_pcie *pcie)\n {\n \tstruct qcom_pcie_resources_2_7_0 *res = &pcie->res.v2_7_0;\n+\tu32 val;\n+\n+\t/* PHY Power down */\n+\tval = readl(pcie->parf + PARF_PHY_CTRL);\n+\tval |= PHY_TEST_PWR_DOWN;\n+\twritel(val, pcie->parf + PARF_PHY_CTRL);\n \n \tclk_bulk_disable_unprepare(res->num_clks, res->clks);\n \n@@ -1169,6 +1187,12 @@ static int qcom_pcie_get_resources_2_9_0(struct qcom_pcie *pcie)\n static void qcom_pcie_deinit_2_9_0(struct qcom_pcie *pcie)\n {\n \tstruct qcom_pcie_resources_2_9_0 *res = &pcie->res.v2_9_0;\n+\tu32 val;\n+\n+\t/* PHY Power down */\n+\tval = readl(pcie->parf + PARF_PHY_CTRL);\n+\tval |= PHY_TEST_PWR_DOWN;\n+\twritel(val, pcie->parf + PARF_PHY_CTRL);\n \n \tclk_bulk_disable_unprepare(res->num_clks, res->clks);\n }\n","prefixes":["v2","4/5"]}