From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796033802; b=p+sLuCwaIUyQ3TkRbphUFfpJuIHzCxjZ8DLNpZM/gx9k6RMFt5gp+5cF4ln1+FPoBwRD xbRc0HObCvnb54gsNE2UGuBied9wERWSxYVnbmfsZzg58mVg61HU2pHaeKxGT+/iXjxzF BPAIhbL71PAESXbFteASo5m8f0LauVn5USr36MYV2D90vtdSV+GAvk+eguPC6LL7v02x6 vRAWAHfsk+xrnBnKEpGQP4i3oykCysyeS7lQAyBhHyD/Gm4LOOnuXOqTdoje3DbeRjNvi lPE6vW8xWAq1Pz0xfVC5pVLMXWFNY8UfXi5c0VLRiFKWlvd78edeNFUhlw1GymzvXYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796033802; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=/P9EqO7A5c+qRmbhAhoEaOp9wfMryP6W/Y5LSaEEIl4=; b=kvqyib2jPb3UZMGjfx9To6K645EbAMuvo7zm43BWO9LgCn/7wK2JSgKaCrl9rBTNG2Aw XS9WNHMv3e70F0nS8/yVh25nwGM4rXImGajwF0NYjxG4QfLTWhdpr/s633+Fn+1PL1dEM /7VYwFn+Yut2NYU4+ukzH6ihsIIK2DOIcU5vqy89L0dVNSAu2nujjlynWAvsVE3+6gW34 eGzJAsidZO/iOApSw4HCmpIMZ/perE/lgt5Lq4rLZyoOWamdETR2RJ8wVczZSsDGdn8+Y tWnRzxuuNx6IytMgn8KvKc4/8omJgkjSToAApRA3cdVwJ/Vqhj0eWIIBuSFD0VDWEIQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=pZyh9DyS; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CCV9Heda; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC377606A333 for ; Mon, 30 Nov 2026 10:16:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CC377606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=pZyh9DyS; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CCV9Heda Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AU9V2no3018016 for ; Mon, 30 Nov 2026 10:16:40 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= /P9EqO7A5c+qRmbhAhoEaOp9wfMryP6W/Y5LSaEEIl4=; b=pZyh9DyS5LWz/7zV cDCNa4SkbFxT09h+qmXsOJRSbQHdZBDcGEz8M5CsUqAwujri6vLoAu0aINZjycAJ 3GZgbLD7vBpCQwlHBO1T5IdD0/j6gNf90OIsaObE5eOTjptlhX+VatKQdLRMTqpa InXLoTvj868E4kEGcwP0LmfwDuvgyCmeQZoyyU5XC8tFByExHmZSg4p2Ogy+xNdr 8brZlkIsFkB+i+IXjjIP6fE9af06OrGGLAwJuTp5CjwGckbk8rFSJfZBjEvFwtdQ 04noSwfllpCo36I9DXp6wKFX5xJSkolPSbP1BluMPi6HRofl/avbXh9GiY2v2nDD cLZB7g== Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j92qph58t-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 30 Nov 2026 10:16:40 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93edac5877bso131247685a.1 for ; Mon, 30 Nov 2026 02:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796033800; x=1796638600; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/P9EqO7A5c+qRmbhAhoEaOp9wfMryP6W/Y5LSaEEIl4=; b=CCV9HedaTawNsonKONorzzPvMBOl7xuy5aNLuzTcyubUF4G2S2gKj0Is3Iq5g7nrWf /jdEmasHV5Tqu3fgimM9naFWohUdnUUUj5s1JmEPkpnCKhjn/lW30GQ2j/x1jnubDz5N tGGJg0Vxp5IVHs7Gdop5PRoBYMOMiNhSnxTUk76G+LE+sqgyLPS0umyfj9TAW0jIjBMH 0MMvTo9+p2UjB+ITFWQodld6TxV2jQEi2kyZbFu1CjNGL1sfkdozHSbmj10tkjKlYqWd fB9rm9q2U8Wo97DxyVioKXJIf0bEKi3Gy+W9kXiF1ynfAbzMmmAEbQ1ea4myUtMI/n4Z 4GcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796033800; x=1796638600; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/P9EqO7A5c+qRmbhAhoEaOp9wfMryP6W/Y5LSaEEIl4=; b=fkBI05upTChMTJyKPdzZceKqSIppzPwEIW8d0pZuP2zbySt3fSBCaEvwEqRkIhu9/2 uufDKvwmAsipemAzEd4vNz9fZNZgKqDENMH3g7f2y4pqCHv6PieSo093+wR+8jRp/T9a 3rlYzuTO+YdLTomLspTeoT3hQtPh5m11pSUfyT+3rJ9v/zqtIGnc/60Z74CZPmQcNgVA w6nuve7WH+u/BKBzQdoCF2hvKqYzOra0v+N1eJOGr8nH+N1LgVzzlTqoBcyj6WIH9khF YLU2LYHQIfyr3Uo3N+mFxKunybUKOVUgV1h/K2nhtn1Sa6fOWANloaicyzajF7YYP/2u yJSw== X-Forwarded-Encrypted: i=1; AL+hErGBbGjtdWdzfUh//mG+aefmmB6AfN6KEcRMjVpkmIzjU8Mv+f+W4zVQedvwDXJfgvunH7cJbbAqoOJzBZA=@vger.kernel.org X-Gm-Message-State: APuU4Z+sCynMmLdMbPVKlP8ULk4qfpCL4sqquohkk3lNo38JGE7CEoJo TYFFd6kG+9hFl9VTxpiY7StAhcSJKTlgDQ46Q2CnRAe48CBL5eWEwlgnwzT/tj8bC9/SE60rldX 0n/kvQo2A3N6zUzGYM3cveql2juizDx0ctvvp+3vE/Px63H713KUKgLeVUnl2ICQ0sUg= X-Gm-Gg: AZFdTZfpJpwwUYyFLcXVoAATf9eKWX38RzgZHMA6l3KcyAm5mrtqcGFYmL46rmLT6yD APkyaI9XoUsaCx/Zk2SMbQhg3Rk/VOx61b4vSrxj3l1j2kldbCB3Nnm+s37it+Wbg6xbh/p6nbz VDmIqbM3yy6Hg12Aj8aKoyUOSuo4SxpWhj1eNXLltQsrXcsJrz50RqoVEX13rDcj7LXfL0qzUny Q989VwgWi0rAZJPCaczUO3bnGseQi9S/QQ/mv6MIGBxPIschk66UikwLvNpUGugHlRN0yUkzmbc DmBfYINk1oshwQJZ++MYNMMZLKR5aYXlyAwJTCffactOPSuGYdMRooIs5BmGQidLEjAWtxDGQ59 4UU6lTI7fVO/ELdy3KqQaba2ns7YdxJsnLlyAm5fwUrbWs7UX2ZQ2/UU5vHve6rNgi9VZ8/4= X-Received: by 2002:a05:620a:a801:b0:949:a385:d30e with SMTP id af79cd13be357-949baa12795mr5963028285a.4.1796033799983; Mon, 30 Nov 2026 02:16:39 -0800 (PST) X-Received: by 2002:a05:620a:a801:b0:949:a385:d30e with SMTP id af79cd13be357-949baa12795mr5963024485a.4.1796033799543; Mon, 30 Nov 2026 02:16:39 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ad01ae8sm1196679766b.9.2026.11.30.02.16.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 02:16:38 -0800 (PST) Message-ID: <138f4a0e-b5ff-4f19-bff1-9d33c57a734f@oss.qualcomm.com> Date: Mon, 30 Nov 2026 11:16:36 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] phy: qcom: qmp-pcie: Add qref and refgen regulator vote for QCS8300 and SA8775p PHY To: Qiang Yu Cc: Ziyue Zhang , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Dmitry Baryshkov , peter.chen@oss.qualcomm.com, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260916102023.2054761-1-ziyue.zhang@oss.qualcomm.com> <20260916102023.2054761-3-ziyue.zhang@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: BgHZqVHWET4E2QL5X1NcnZ-3jItTO3dT X-Authority-Analysis: v=2.4 cv=YMQKWhGx c=1 sm=1 tr=0 ts=6b0d4d08 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=80wu_w2HJp7FPJEKWcwA:9 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTMwMDA0MCBTYWx0ZWRfXzlNubUu7v86L U4ubRr4qEl+kqKcROXjnDKGd2yZDJtd/crezOvvd696SsIjRXIj5tKmjs+i10FZHiiRY8w11zp2 bV+B3quk1aI/ox3Fdl66LW50X3P1wl8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTMwMDA0MCBTYWx0ZWRfX7WLewQQFslK1 KoXJtpf2RBo5yOHCsxbUD9nppo+uGfQjfVQrWMg6nvq97MzmkyQviAGiEM/IXaGjsVmOjwbUonN bYTS/4Mk207sghwQ6VzKxk/EdMsZJcI4V3P1lyJ+bgMrCrChZMZJxuumvsc8Z/dc7pRPpKhNRVp +ZJ2eoJknE9jtxgSJetPT1PCRps1EhxgRKNhm1xRY6V0shzgmO16Ku97Agesvtwfak5AeEQ7wS3 C/n07CpedVlT5Mk13rCHlYhqiPvOWxuqWvsOgCkOzr0CY04sdy/08JigejnfYJ1nWTFt7Tg2EOE 6LSjhLrKBG74sXWwu/er/ajzDMjtaF1vhnTAY+9f+6Q3pAmi1NRy6zySapDb8g7Jhf2ej+bE4Fk wewdfKhCIzpafJbbcyNMw/SuH2eICpU6Z5g8Mc2R62/a0MMnmyQ05r5xJwD1YwCu8Zy2EmZZKwv ALgJQTU3FfjdkihRvTQ== X-Proofpoint-GUID: BgHZqVHWET4E2QL5X1NcnZ-3jItTO3dT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-30_03,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611300040 On 11/17/26 8:03 AM, Qiang Yu wrote: > On Wed, Oct 28, 2026 at 03:37:40PM +0100, Konrad Dybcio wrote: >> On 9/16/26 12:20 PM, Ziyue Zhang wrote: >>> Add a new sa8775p_qmp_phy_vreg_l that includes vdda-phy, vdda-pll, >>> vdda-qref, vdda-refgen and refgen supplies, and use it for QCS8300 >>> and SA8775p PCIe PHY configurations. This avoids modifying >>> sm8550_qmp_phy_vreg_l and breaking SM8550 and SM8650. >>> >>> These supplies were missing from the original driver, which was found >>> to be the root cause of occasional system crashes observed on QCS8300 >>> and SA8775p platforms. Without voting for these supplies, the PCIe PHY >>> lacks stable reference clock and voltage, so the PHY never becomes >>> ready and initialization times out: >>> >>> [ 7.303119] qcom-qmp-pcie-phy 1c04000.phy: phy initialization timed-out >>> [ 7.309948] phy phy-1c04000.phy.0: phy poweron failed --> -110 >>> >>> Note that due to a hardware issue, QREF actually depends on refgen3 >>> rather than refgen2 as documented; refgen3 is therefore voted manually >>> via the refgen supply as a workaround. >>> >>> Fixes: a05b6d5135ec ("phy: qcom-qmp-pcie: add support for sa8775p") >>> Fixes: ebf198f17b5a ("phy: qcom-qmp-pcie: add dual lane PHY support for QCS8300") >>> Signed-off-by: Ziyue Zhang >>> --- >>> drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 16 ++++++++++------ >>> 1 file changed, 10 insertions(+), 6 deletions(-) >>> >>> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c >>> index da83358c97ea..ab81c6e584a8 100644 >>> --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c >>> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c >>> @@ -4094,6 +4094,10 @@ static const char * const sm8550_qmp_phy_vreg_l[] = { >>> "vdda-phy", "vdda-pll", "vdda-qref", >>> }; >>> >>> +static const char * const sa8775p_qmp_phy_vreg_l[] = { >>> + "vdda-phy", "vdda-pll", "vdda-qref", "vdda-refgen", "refgen", >>> +}; >> >> I think we could grab them unconditionally, as QREF/REFGEN appears >> on most/all SoCs (perhaps with regulator_optional_get so that we >> defer the correctness of this to dt-bindings for any specific >> platform) >> > Do you want to add "vdda-refgen0p9", "vdda-refgen1p2", "refgen" in > sm8550_qmp_phy_vreg_l? > > What about this patch that adds "vdda-refgen0p9", "vdda-refgen1p2" for > glymur, https://lore.kernel.org/all/20261104-phyrefgen_1104-v4-2-ba508fc6ab40@oss.qualcomm.com/ > Do I need to remove glymur_qmp_phy_vreg_l and add "vdda-refgen0p9", > "vdda-refgen1p2" in sm8550_qmp_phy_vreg_l? I think we can ultimately just have a single list. How that is resolved depends on which patch gets pulled in first. Konrad