From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 31A253C1FFE for ; Thu, 8 Jan 2026 09:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767865450; cv=none; b=YvKeVQNPA6qqbV9wZlWyjF04x75KxkFn/ia18775P/fweez54/rnrsin8cHFv/Q2I+ZqAvtOiQVqa9erAKdV/BRcBv0GOSKC8uzZ1zg8OquvUaKHMoP0tcxsUBQqIFHQNNbKGLdq/b5nJaw+nMZUUf/ZC5/jiNoUS3Y0LKDhFpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767865450; c=relaxed/simple; bh=EaOLDkGoTefEky/NuzjO//oMkSubroe0L7w93jOQv0k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eMzr9O/tBK3+2gSQXy+W2gsOY3WwNWp6jcgTtCCcgR3DEPRo5gf9oeN0vHdzqc93qmJKB4PZtHoBmK6LDo7+KNEk1DtXWuOF6v8eXxiG+Y5DncXNy4U5y8hWGhTA6N//0q72qzu6KsjJ0KUoAqQSRzF9vSMhDE+JMfonJHATmDA= 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=TnHFKNCV; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=eQtrDOaf; arc=none smtp.client-ip=205.220.168.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="TnHFKNCV"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="eQtrDOaf" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6087VN0i1837904 for ; Thu, 8 Jan 2026 09:44:01 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= 1M8PsJS3mXfr6k2RfWjXcrwIasndUjM0VPVwIaU/S4M=; b=TnHFKNCVpjP7QQwP q/itYudfrtE9JK4odnA9oesUL9wCgxB7umvdi82dswmFdW4DBiEBKimPStLoGkr3 bozxmndHF6KE1KZSNhHhb3fk2U/Z6unhDh0eZSksK6l3xLffJ3Sl1dN9OeNLENpT FGwaGsRquxE7WJ/kT0rKrLO0IDT2bYtIAcRu8uU8uRj9Zz2dl2l9J+HEdClN+ntE U8kalwfPdZRNqv3qybo1pA1PTkdz/C140AtvIw7g22DzJfRiIVRiK0KEtjnAYCxn ihk43mIJeeED1d2mQDx7M9XDa2gIdImJ5JNRNoCysDfA9THd5BknimTYXNR78TBK oKZZFA== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bj8920dfn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 08 Jan 2026 09:44:01 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-bf06c3426b7so2916273a12.3 for ; Thu, 08 Jan 2026 01:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1767865440; x=1768470240; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=1M8PsJS3mXfr6k2RfWjXcrwIasndUjM0VPVwIaU/S4M=; b=eQtrDOafw7+VCd02oTnrVxiCDQYWhQ3l4OJqwHGSHjA9LAxiMWDs9Sr7euv+I1T0kJ exj3UvFWiJfzeBpugtnUaMmNKDa5TfDTEd1orlE1EdSGTd1ZzIf1ocpYnE+LmzbE3zlT S6acl+BsrGjtEJT3JzWO00TO0Q5zDyonT2aOuMEPEUamhlFoBPIOdRAXuNCY1/ICBSI8 5dEEyp7NbBSFNwrvBFZU61oobKl1FiQSxvl5YIwWGvjaOW9FKJz2b7vswRGegi6QXANC woXw14IXjszIdrYBUalT2CAit7721Ehf0Lo9Vz7zauXULM9erTuBLPFtS65j9UwgE9eN tkdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767865440; x=1768470240; h=content-transfer-encoding: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; bh=1M8PsJS3mXfr6k2RfWjXcrwIasndUjM0VPVwIaU/S4M=; b=KazsJOU2ZHbZzbjplRc8ZMfdINYTWUspyhkGaLiAaFyeWhCwf20CPLuRkYDINqx8dy mRPVdwJfUeX1IJQtI0tqHyefSoHUrF1WstRLs5EhSJgh0kgQIUAkq5aAETCmTbt++jY0 TrvTq2jBYCl2LemouzPf+3HFqwYAXxQuX+gewl02iyiSyqMa5NwmISl8qVDAZ3RgYNo/ TxJYbK9kR0dlUpXqkF02t0+uZ01Eo2o1j73QnCVYKKrzdletkGUF8kMDeWpKav63vote 8hENBGfBZ/gaVN1QnDIgmY+V+FvG6ireWmajiarAKaNob2EXH/l+zCtNtAg36yy5H9Lo Xo+A== X-Forwarded-Encrypted: i=1; AJvYcCWH7pVkzDJOMhLOTkr8h0fqwqp2ieUIULFEPm0djH8/cmsWUFG2uaL8NicxrWDFj73eJuHPr7WTdHRG@vger.kernel.org X-Gm-Message-State: AOJu0YwzTm6KanBmfJLBOb9bCL9v3m1JTH/uVWR5B4xxdEWwQvgLs2PA NZbrLbCt3SbsSniVnz6uPipnC9T9/Jlbl7pTS5UmP8tRDvOyP40oBrmV1BBk8RiIxB538upBDeI EhGfGiV6aNNpc6d4+hLZggEXCOumdSFSRnuQ+nBSNJW6Nhy2hWZbDUQByweLSxhTP X-Gm-Gg: AY/fxX49X8DnkHL4HZr2RseCaStpXkXWqyDKQNUAEgEgkZZPpv59ziiv3vC6JxVVusk aLbdXI9+tgWgloEuQQqR+3124H7OBZMKt7eC2sKkG2l35P8w9YVVmMerBYy5LdOtZBcBjJUbw6j iwmyOs9vP/+HIXnS65L38mnBuxSQZD4yWn3nYUYYcPc7dNkt6dIppVmy9PW1kOhO29NlEertw1Y u/xI+Sdj7DilM+P3Aw0dCJ8YG7bQNRLdt199bqvgWVW+dztT/AaY01JNs3XnrP7s1zAjBlcwk8K nBv49ItBkqcBZbw7SzdNGT5jScMJ4kAS8wQ4ZbEzUSjqIGOUKxdfyNNVLlkCpbe9K/kX8WSGP1e wLPbQiFL82hRMcgi5YPH2res8kiUW+K7Pf6iM/wAo32CdE9kiHsa6oruhGiYSgCUQ2sNsv7uv+N UmTz7yYHa2/2rD95PWclFKQru2vN4= X-Received: by 2002:a05:6a20:1585:b0:366:14ac:e209 with SMTP id adf61e73a8af0-3898fa65f3amr5482068637.71.1767865440415; Thu, 08 Jan 2026 01:44:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4Co6md478Bni07LU4UJf1qlULZ9dhIAUPNNon9u4U6HztgO1NmE+JxLoEEQ4fc/5D13ilpA== X-Received: by 2002:a05:6a20:1585:b0:366:14ac:e209 with SMTP id adf61e73a8af0-3898fa65f3amr5482035637.71.1767865439877; Thu, 08 Jan 2026 01:43:59 -0800 (PST) Received: from [10.190.201.90] (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c4cc8d29521sm7461139a12.23.2026.01.08.01.43.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jan 2026 01:43:59 -0800 (PST) Message-ID: <5151bdfe-7e83-4aa0-b9fc-28209d535e1e@oss.qualcomm.com> Date: Thu, 8 Jan 2026 15:13:54 +0530 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 07/10] arm64: select HAVE_SHARED_GPIOS for ARCH_QCOM To: Bartosz Golaszewski Cc: Linus Walleij , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Srinivas Kandagatla , Mark Brown , Bjorn Andersson , Konrad Dybcio , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org References: <20251112-gpio-shared-v4-0-b51f97b1abd8@linaro.org> <20251112-gpio-shared-v4-7-b51f97b1abd8@linaro.org> <66eaf003-c397-4920-b3b7-93ac8a5adfda@oss.qualcomm.com> <98d69fb9-d3bc-4439-88b4-60f3cdea3422@oss.qualcomm.com> Content-Language: en-US From: Pankaj Patil In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=M45A6iws c=1 sm=1 tr=0 ts=695f7c61 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=KKAkSRfTAAAA:8 a=3ijyyCfgxb-kCMGLBNUA:9 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: GVvNqKFvO_tEmYpOO9Uqip20DqleHf6S X-Proofpoint-GUID: GVvNqKFvO_tEmYpOO9Uqip20DqleHf6S X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTA4MDA2NCBTYWx0ZWRfX154TfUGus4XW CVqfcePc3dNOwVGgvn3Rpy/BXdwzQG7M6ILtcsQTY2SG12BoZjthz/Ieo1F3V2wHIBax+5V16Jf clQYM7cE+ouja9OWJVIwAGeVU0PXWn6PyO+ZJSzAGSpPpULjAXYvxNZMs/XS4LFyKiAyWS0h1AH 3fqnuv/LK/ln0+DYVigP3bDMpyvf34YQEDzBfg7yFjYkB7UqNXMXrSg54uN9xVntFGvPAbNJs9k Fvc3shUx4B3xG2G1S2SKqiipwM8kI8XErpYwK63NUgcym9iyA4Xn9AQqXErYwVl0HuTpTC/9y9G S7O6J54C8b3nyh2JgLNo8ywshvWz+jvOs8t713sROvp4q0uNo8gMMzfNNrLKK/BO0QqS0oNgIPU XTqRgQGfBlCfAbJbaBAzdd0PJ8W8eFmicETHn9wxDsQ65Wjm85kgqzsXqBXOFxAGEDfFnVHqnQW Q8UmbI5WcnpEn8UcLog== 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-08_02,2026-01-07_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 suspectscore=0 clxscore=1015 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-2601080064 On 1/8/2026 2:15 PM, Bartosz Golaszewski wrote: > On Thu, Jan 8, 2026 at 7:49=E2=80=AFAM Pankaj Patil > wrote: >> >> On 1/7/2026 6:08 PM, Bartosz Golaszewski wrote: >>> On Wed, Jan 7, 2026 at 12:07=E2=80=AFPM Pankaj Patil >>> wrote: >>>> >>>> On 11/12/2025 7:25 PM, Bartosz Golaszewski wrote: >>>>> From: Bartosz Golaszewski >>>>> >>>>> Some qualcomm platforms use shared GPIOs. Enable support for them b= y >>>>> selecting the Kconfig switch provided by GPIOLIB. >>>>> >>>>> Acked-by: Linus Walleij >>>>> Signed-off-by: Bartosz Golaszewski = >>>>> --- >>>>> arch/arm64/Kconfig.platforms | 1 + >>>>> 1 file changed, 1 insertion(+) >>>>> >>>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.plat= forms >>>>> index 13173795c43d4f28e2d47acc700f80a165d44671..3dbff0261f0add0516d= 8cb3fd0f29e277af94f20 100644 >>>>> --- a/arch/arm64/Kconfig.platforms >>>>> +++ b/arch/arm64/Kconfig.platforms >>>>> @@ -316,6 +316,7 @@ config ARCH_QCOM >>>>> select GPIOLIB >>>>> select PINCTRL >>>>> select HAVE_PWRCTRL if PCI >>>>> + select HAVE_SHARED_GPIOS >>>>> help >>>>> This enables support for the ARMv8 based Qualcomm chipsets.= >>>>> >>>>> >>>> Enabling shared gpios is breaking hamoa and glymur boot on next-2026= 0106 >>>> For hamoa - reg_fixed_voltage_probe which calls gpio api is breaking= >>>> Please find the log here - https://lava-oss.qualcomm.com/scheduler/j= ob/24722#L3514 >>>> >>>> For Glymur - qcom_pcie_parse_perst calls the gpio api <4>[ 2.9109= 82] WARNING: drivers/gpio/gpiolib-shared.c:493 at gpio_shared_add_proxy_l= ookup+0x160/0x24c, CPU#1: kworker/u75:0/109 <4>[ 2.911027] Call trace:= <4>[ 2.911028] gpio_shared_add_proxy_lookup+0x160/0x24c (P) <4>[ = 2.911030] gpiod_find_and_request+0x1c0/0x504 <4>[ 2.911032] devm_fwn= ode_gpiod_get_index+0x1c/0x6c <4>[ 2.911034] qcom_pcie_parse_perst+0x= 70/0x150 <4>[ 2.911037] qcom_pcie_probe+0x414/0x804 <4>[ 2.911039]= platform_probe+0x5c/0x98 <4>[ 2.911042] qcom-eusb2-repeater c448000.= spmi:pmic@9:phy@fd00: supply vdd18 not found, using dummy regulator <4>[ = 2.911043] really_probe+0xbc/0x298 <4>[ 2.911045] __driver_probe_d= evice+0x78/0x12c <4>[ 2.911047] driver_probe_device+0x3c/0x15c <4>[ = 2.911049] __device_attach_driver+0xb8/0x134 <4>[ 2.911050] bus_for= _each_drv+0x84/0xe0 <4>[ 2.911052] __device_attach_async_helper+0xac/= 0xd0 <4>[ 2.911053] async_run_entry_fn+0x34/0xe0 >>>> <4>[ 2.911055] process_one_work+0x14c/0x28c <4>[ 2.911058] w= orker_thread+0x188/0x304 <4>[ 2.911059] kthread+0x11c/0x128 <4>[ 2= =2E911060] qcom-eusb2-repeater c448000.spmi:pmic@9:phy@fd00: supply vdd3 = not found, using dummy regulator <4>[ 2.911061] ret_from_fork+0x10/0x= 20 <4>[ 2.911063] ---[ end trace 0000000000000000 ]--- <3>[ 2.91106= 5] qcom-pcie 1b40000.pci: error -ENOENT: Failed to parse Root Port: -2 <3= >[ 2.911069] qcom-pcie 1b40000.pci: probe with driver qcom-pcie failed= with error -2 >>>> Reverting this commit fixes the boot on both platforms >>>> >>> >>> Hi! >>> >>> This is not really the offending commit, it's a recent one in the >>> implementation. The issue should be fixed by the following series[1] >>> that will be in the next next tag. Can you give it a try? >>> >>> Bart >>> >>> [1] https://lore.kernel.org/all/20260106-gpio-shared-fixes-v2-0-c7091= d2f7581@oss.qualcomm.com/ >> >> With the linked patchset applied I still see the same issue >> >> Pankaj >> >=20 > Is the gpio-shared-proxy module available? If not, can you change the > config to make it built-in like CONFIG_GPIO_SHARED_PROXY=3Dy? >=20 > Bartosz With CONFIG_GPIO_SHARED_PROXY=3Dy the issue remains the same