From nobody Mon Feb 9 19:06:20 2026 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7B662ECE98 for ; Fri, 9 Jan 2026 07:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767943298; cv=none; b=pQy9eVaUU7BLCpR93a/EzZEyobha9W/6etPg7zF8431q4xr/18fIZwpMSEzf1uNJY+jn8Ajf4hRw3rrS4Xogl93djKaP3VKhYjTEiawSPzkJDaoh+1MDsibw17/3FbEGOdcLLtvtXZNr5SOnp5zYeVnBE54F4dLODjttYgmLQlo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767943298; c=relaxed/simple; bh=Q8+lBQYa1gwtIcmp/3kuabaN+M+86SlNF+xR/NMG0uk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Or/fKoTpBBrTRJ1LUm1/CSJFrjWujzhNXE2RGWEoLZpEVNCVi19TEORsMskV6Bk+kADr/qr0+Mo0UQKdRLnwpuVwkCfqF8VInFr8SsYqLkwNuG1Vl+QhwFs6X57uqFeYuTEyxeF2LoZGIgCd3hvAO5gMJjd7IZaEZRYn21EfJe4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=jHmMav5R; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Z10n94BH; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="jHmMav5R"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Z10n94BH" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 608MpZs62328141 for ; Fri, 9 Jan 2026 07:21:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= guGTs/O1+KX/IddGJcB1UdQ/HB/cP55e3A+v7+B61bg=; b=jHmMav5RCAwEPaLR LBWihKxXHzXtkJml0VVjuou1ek7FVDiBvLhniT00D3tkuz3Ph9/7xLPiNO8ts8dL Q8snvDhPnkpZvdKJ8be8+Cx6G4GFn4fCAVxtmNS/fh9CArEZ0BLxB2oWHYzFpARr XvR+EBwTyH/2tAUKvtgTHknu4hL5DYSFj6NX1ow3Nsnep4ii1k1jNHUXPsFQgJ1M VNmdDsaOuBIc2LEtjCv+mnTvDtySvNW6weIfpvm8dhqZjvTaU1GKp4TlwXdvrhGs SDO5uBAIBZ5/MVbKAzLfb/bVj157jobWilfc6BiZSqLL79kjVLjf9KEwJxFYE/b8 V5vsww== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bjfdaadkt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 09 Jan 2026 07:21:28 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-7f66686710fso8022278b3a.3 for ; Thu, 08 Jan 2026 23:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1767943287; x=1768548087; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=guGTs/O1+KX/IddGJcB1UdQ/HB/cP55e3A+v7+B61bg=; b=Z10n94BHQkNOKgVoM3cGrO/aPeuNz1PrJombjW9f2rtt5QI9wfeIcfKuLccmhUfDxk 0ExZ4KllmCRDJ3Brz0TOjfMhd7//fjLJmxbYC39SbkEWLuaf45zkRm0k6SHnZgNDYpY/ /I0jXB9WXIFSuCKMH+sJBoyX9+/ugZYWXK4b9nPLT+aqHC4MTRi+BA26pT+R7ccYSISG cZK95HFNcWiYL0mohOZbfhchkVc5k/6Z3HG8Y7KYJetsue7Glb5e44otRQp3WrMVQKQx V1OfHEb55pa1oliPNclSONnAosljgrz6JlFmfYmQQfbksY0OE64NCa3aWgtlsTifFIWL Kf4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767943287; x=1768548087; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=guGTs/O1+KX/IddGJcB1UdQ/HB/cP55e3A+v7+B61bg=; b=Bev9SGPAUBSqegf18D7DD8nVxloPSB/xSGwAy9PGDqJYbHPerXlImuToLdgiVKzAEl mWgwBkj7jh2Sgaj3DNurkjlhnyLof+KUbpPGnVzo5RZHo2JF88et8A5Cb+X7eScuMv1/ 0Ju77Xo3jWDkxFY2Km30UFWaFXxJBj3r06E1hCoI2ltCxpt9MCVZcfz1WJUnZ2BjkOqW 2LSlnOXqo1ycCc/xbPDH/bPvpsPg8LXalWT9FjuNYU/2vbRapLHNPdyWfbKarjhV1R34 KpC2CTDIkOF7S0nCGyD1q3YADhRmtms7Etx1DrLEzZBJ+i22Q3sA0eBVQYQnYA4rso6H 0XTw== X-Forwarded-Encrypted: i=1; AJvYcCVqWc+3/IF7DNTqwtyquYixaWt1eS0KIYSd7UY72b4CL34WZrHd7Rw7GR33HLuAA9bJr7jk8MCgUjZeeKY=@vger.kernel.org X-Gm-Message-State: AOJu0YxWR5beq+m7klJQmQZscVNvQ15VHRv0AoLQu2bAWlrRpS36PQCe ZZ2ShR+N1GTJsLo3bXdyKvojHxeN75h+XNwA3au2DGdeolSNZQ5CedNVgNWQgxJCszXTCVQjdIh dh/SSxX1yPDNe9RTQgxikQgsqlQtgOoY1Eyg6ar0giGUZRE75h10AT7GyWMYmQIiuqq6LE2qWq3 8= X-Gm-Gg: AY/fxX70ZDsdvnUsi7eoaQI3ZcYr5kn71HzVBrwu4+ctcoKIywyuffKYispZPDEMpIm OF2glWfW8WLbyMoTCLrSzkJgdb/3ELCaKMigE4DJolXKxNRX8tkazj+ZNxgG+ptpIM96UdS/ZjP eXHKfCPWFpNko3Rbu+uQWqjMadxGwPEUA8BaV4VFdqy3GoVGOLyf8/P62MgHj6k6PIcSUhuJaPH P5FAEv3W7BKoUSp6C6C83nyb5jlge6tRo0/X9GaQnkynhOdX1beo1a8ix5o/GZIQpoBjwAmVZLJ ktbrngL4RJGjqznitN/xxxE+J3+1Hh2kCfQFb12X90wvvPwQlpYt44UTHyi3CBFUGviDluGHBLl 9i5d1t82AEPajv5HP1vkRPmyLBeh/x7Xwt37LZ3nNbU6D X-Received: by 2002:a05:6a00:ad89:b0:81e:b93a:ab17 with SMTP id d2e1a72fcca58-81eb949ef05mr109783b3a.15.1767943287504; Thu, 08 Jan 2026 23:21:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHHO/gTWbofCIbVPKFC0FzAlp9Te+YLm5t90cM0UJujZ0kZxgVI4P5Y2KLOWpErfRjlJU2oQ== X-Received: by 2002:a05:6a00:ad89:b0:81e:b93a:ab17 with SMTP id d2e1a72fcca58-81eb949ef05mr109775b3a.15.1767943287110; Thu, 08 Jan 2026 23:21:27 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819bb4c85bfsm9510369b3a.30.2026.01.08.23.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 23:21:26 -0800 (PST) From: Krishna Chaitanya Chundru Date: Fri, 09 Jan 2026 12:51:08 +0530 Subject: [PATCH 3/5] PCI: qcom: Keep PERST# GPIO state as-is during probe Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260109-link_retain-v1-3-7e6782230f4b@oss.qualcomm.com> References: <20260109-link_retain-v1-0-7e6782230f4b@oss.qualcomm.com> In-Reply-To: <20260109-link_retain-v1-0-7e6782230f4b@oss.qualcomm.com> To: Vinod Koul , Neil Armstrong , Philipp Zabel , Jingoo Han , Manivannan Sadhasivam , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Krishna Chaitanya Chundru X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1767943270; l=1606; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=Q8+lBQYa1gwtIcmp/3kuabaN+M+86SlNF+xR/NMG0uk=; b=7YI5V7nEUujpXnOmp3l/fb1YAPFx6zBRbuPbaO3yNRw0oukGrQ0a1Ora1XFfVbDewrYHatld6 n+neRReQcqNAII0gT6zmA6BhgsYMZkhIeu6GLIB2gaqU+psBqT8DuE6 X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Authority-Analysis: v=2.4 cv=Ue1ciaSN c=1 sm=1 tr=0 ts=6960ac78 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=Py5lcOcq67Lbq8UMOfUA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-ORIG-GUID: YnuQxXW8d_cg3UbOKUmXbwDV1OQ4REKU X-Proofpoint-GUID: YnuQxXW8d_cg3UbOKUmXbwDV1OQ4REKU X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTA5MDA1MCBTYWx0ZWRfX/N0DG6xBObIa 6F8AekqZGCuG5wGJXRhLaaA/i654s2W85clJjUxteE4OjhMJSe6sxdvYbL0HUtxLYLVyTdyVFTP rtRHKLx7FBdLXNuhbE3t+gRjnx4dkYvk2vnU2rUpAEMS0Nlgqp/3Vpl7Xr7vOzb4mQcV692redO rXBSUcDPrV8lp2a9WiIqpxsVazyRIO4tShFYK7dzq3V4m+6QvxLgf2zCBvUVBdRU5spqcaC0Ef3 X8q6omGwOLGB5xVKhCm8+0MXqF9FHXWhTvVziezAcey9lpuUu7BknQxMbIkSG0HF00U8UdidqBY yIPxnu8BR7YyOfmfyvFqHglj4kEro+3d24lUbApafeOsVv+WhMFWDYUlYMV1QDNmUKdxEXTCYIs CcQyXUqj7PTqFP7fKep7nW7OsSuWPou0pbE9a49TF8umXYKACq+mBmYuKWdZZpncLAdxMrJTDQC wlAby7UcAip+/zT7n1A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-09_02,2026-01-08_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601090050 The PERST# signal is used to reset PCIe devices. Currently, the driver requests the GPIO with GPIOD_OUT_HIGH, which forces the line high during probe. This can unintentionally assert reset early, breaking link retention or causing unexpected device behavior. Change the request to use GPIOD_ASIS so the driver preserves the existing state configured by the bootloader or firmware. This allows platforms that manage PERST# externally to maintain proper reset sequencing. Signed-off-by: Krishna Chaitanya Chundru --- drivers/pci/controller/dwc/pcie-qcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controlle= r/dwc/pcie-qcom.c index 7b92e7a1c0d9364a9cefe1450818f9cbfc7fd3ac..9342f9c75f1c3017b55614069a7= aa821a6fb8da7 100644 --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -1711,7 +1711,7 @@ static int qcom_pcie_parse_port(struct qcom_pcie *pci= e, struct device_node *node int ret; =20 reset =3D devm_fwnode_gpiod_get(dev, of_fwnode_handle(node), - "reset", GPIOD_OUT_HIGH, "PERST#"); + "reset", GPIOD_ASIS, "PERST#"); if (IS_ERR(reset)) return PTR_ERR(reset); =20 @@ -1772,7 +1772,7 @@ static int qcom_pcie_parse_legacy_binding(struct qcom= _pcie *pcie) if (IS_ERR(phy)) return PTR_ERR(phy); =20 - reset =3D devm_gpiod_get_optional(dev, "perst", GPIOD_OUT_HIGH); + reset =3D devm_gpiod_get_optional(dev, "perst", GPIOD_ASIS); if (IS_ERR(reset)) return PTR_ERR(reset); =20 --=20 2.34.1