From mboxrd@z Thu Jan 1 00:00:00 1970 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 663E4478E3D for ; Fri, 15 May 2026 11:32:27 +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=1778844748; cv=none; b=Agim2+otsotHxu6eq/QXYoybJftwE4LrYUDyjLFLrDYcPC4HlkTrMQbUEE+ipoeKejmWtO+KxVbHQVr/cVGEqs/FahIur5hpNTMCrWWWraI7wB93whr12jKYoOjMXHdvMrF2shpdYfG42ptlnM9aGtu2L73f0JkFqf95K43oYWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778844748; c=relaxed/simple; bh=TBxWd8dzqFRwo+1aGvB1TTlhj/ctsVbToYE8VLuyuJU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IQnHEt6lGrLu+gjPl5gIFpS6Hb9wd5SZ/VTU+Eb0NzWDkMe7m8vQUSLm7bpd9+XyVSJRx+8H+vS0brqXTa+shcqcENKDQsgM0f+fXsqp+VpbbW2Pn9Z35qACwdxEwOjZB+0FHypcQQjoNfotaIJaoZMgG+uyhwP78qXfhb+5ol0= 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=G+4pj6cu; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=V3RapAfh; 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="G+4pj6cu"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="V3RapAfh" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64FAx6Td4008388 for ; Fri, 15 May 2026 11:32:26 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= 0JAjxwIQnSuHPB4Lo64pR3CCm8tgrZFOSdk1x/qRuyI=; b=G+4pj6cukhra5JPl tdVjW6oqRj9L5hTGEmr5LwfgUr0SEPbAC8MpmhKdoksVgtSWOO0hXP43ycYvuQgL EIj0xStLA9Oj651qfY7jVREesprKx3xWV0N9pgw/Eh62PSi2AWVHYeLzCpMOYK8a IZfilB85rqXvxacAD6G/PWhphOBfrcBFLNCm9mPymszbyTOJ9gTSiUO0NIN+/COz IUFy/yH6djgNPr/W30+UoSQM8vGSgpG8zHJcFiIub1fu3UGCWgpf/FWTAtFVLFGz R5ohcP8xhCoZHtw9KEfZl96H56Gj5v9/y2M3s7ecWaQpcKDJFMg1j6Oa8T8mKmbl NJ6w/g== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e5m1su2n6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 15 May 2026 11:32:26 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-50e5d7f4b63so15337691cf.0 for ; Fri, 15 May 2026 04:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778844746; x=1779449546; 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=0JAjxwIQnSuHPB4Lo64pR3CCm8tgrZFOSdk1x/qRuyI=; b=V3RapAfhGtKzTMr3uGaMsUHQUUwCtMYOjS/eIO7iva2370ip73o/qillN4uvjAKx3b 8n4ogpYwwumzjS5Jxvu8YbXLgKbDbBwjAuAvAId4YhhE1eTAeeA7ZfigSEy42KiK3+qr I4JAzdD9qngrIxw47F8NTFRE/tB8JTzxPDvPNgMoG5T+AW/WmBAcXgT0vBOKiK32oh65 ckLNC+5dVxZ5kV9KDxZAkoWjSzJ9co3i8lnXP8wGfDwhhMS5qrm8TlsyXZIe/sMnWqmH GN5df2rNT4UGpgjJtft1nqhwI4GBIV6At+uK1z/Q8Gv8iXInaA3n8Bnmhf6Wc/hVBrS5 2D/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778844746; x=1779449546; 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=0JAjxwIQnSuHPB4Lo64pR3CCm8tgrZFOSdk1x/qRuyI=; b=lpNbIS0oAIBLpQd6OYGV97y80sYoU/9ffipx88b9InbBR10MiGDNMBXbOS+gKeuq6M Uk3ZrFaIscraYqOTs+EYsFht8I6Sv/TJoizPzgZTaPNNUuxbYKOBsfgKxPVESy5uOjCX yuGBlEyaeoHYN8J6e3m4wHL9hITFu47lVOI6i3IJhVxUZMOtpYMfZLHpPXxBfgaksFHZ 8GiCCmX8pxNsjkVwqe2zfyd5dkjZq24IWg35b/Br7E67ISDjKO3t/uJNjH84YPc57Q3r tGFO+EAbazJkULQzvpr2s3/W0mdAN7FIZ3WTDYao1feqyf1TVw+oGT4VlyXgOKCjX1tv bFBA== X-Forwarded-Encrypted: i=1; AFNElJ8gbbcUwEjCmtog7Hx62ZbfoiC6FsNnCeq4QeL+Lkr0lcAxod6rQrvpwTLur/Ydwtjh1l9LeFY=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6PPtlKb6g5pfNv6MMDpF/hCdE7eKXUyDIeSBeCZwEcX/zYeEq /QOQpyNRqzi2kP+xhP/SknSpLmqPXCiySaQ0hjcFmSn/JDkvgnN+CuvohtAE69M1wv8Mu8L7DRM H8PJ64qqLQsuUXDa7uelU/hXsFpu4ynayW0jDSbHEJotbNJK3gcJAkoKXouA= X-Gm-Gg: Acq92OEyMIMeH7jYzb0C3RMu0KnOxVidSZikPcu6vlt1KsGm9Vpe+HvZGE7FHNC09YD gurFl6weHFeXaSMZw+g/bIxuK6pr3ZnisSyFM2wiyaRtRvRXkVQeCvXJDW7kt/FSTou4KRaF4S8 hAZCaGTt7+qPRNSxrwfR8Zdav8TgQXwB99KKLE/9OAl1r3XlnW/54ujBHw5w2Z9T6mMNVQ2/2f8 4WN89QY9fn3gUemThXJ6Zfe59pNghiN/ucBl9I8bwhrRSC33cfY50huHegZkfC46/vM/j/T3G+C 6Rt/omCa9cfjpmNagHDJVsEQYU34ri6tNd2R4EPIhiMXne1QpBe1fTMRsz7H1z0RZaqRig1uFcy /Vj4u2mOd3UkAih0k5WIymAtiZG//PyHzkm5pW0XJzVJi5wiSKYoZyMuR0XPx84oSX+JRTNd/qC z+sPg= X-Received: by 2002:a05:622a:594:b0:50e:6311:7380 with SMTP id d75a77b69052e-5165a229508mr34435931cf.6.1778844745852; Fri, 15 May 2026 04:32:25 -0700 (PDT) X-Received: by 2002:a05:622a:594:b0:50e:6311:7380 with SMTP id d75a77b69052e-5165a229508mr34435501cf.6.1778844745379; Fri, 15 May 2026 04:32:25 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-68310b52675sm1922402a12.8.2026.05.15.04.32.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 May 2026 04:32:24 -0700 (PDT) Message-ID: <2ba8b020-c8b9-4c60-9fa8-545642bde1fb@oss.qualcomm.com> Date: Fri, 15 May 2026 13:32:22 +0200 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] pinctrl: qcom: Unconditionally mark gpio as wakeup enable To: Sneh Mankad , Bjorn Andersson , Linus Walleij , Neil Armstrong , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Maulik Shah References: <20260430-enable_wakeup_capable_gpios-v2-1-8c26ac795318@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260430-enable_wakeup_capable_gpios-v2-1-8c26ac795318@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: XhwzXi0BbZBTn8b-LH-CE_gJPt-bYZYC X-Proofpoint-GUID: XhwzXi0BbZBTn8b-LH-CE_gJPt-bYZYC X-Authority-Analysis: v=2.4 cv=cZPiaHDM c=1 sm=1 tr=0 ts=6a07044a cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=pFRikYD481U3yHg_XLAA:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTE1MDExNiBTYWx0ZWRfX/9siqzQzKlJx l0H/vlEOn+r/7LjYT+/ICs00K9V425IymwyMYA9AuCMxgmOgDq3U7ks2jfo9YIpqoQNYIiPln7t eYbo6Dqi8HPHIDbVqkxmitdQwRClqNZ1waXQ/P2OdDggc+SkdHE+Tcf1+fEHhmVDlx+xTlKiAlY Gj60LIkTToVp2La+0eohu4CJ0xHE7FxSd5J1Po7pwFJTHjMYlbeJFbQXkDkeJi5YEr66UxfPM7N xYaSBfGB7sitbzAU3pYvCA+MAopeJxBdXhzx8OwOu19LpVX8TdUff/ZHCgQ1wqj04crBR/ifrsd WMUQ3jAcjVZf0IDQlB4ZxaoVj2yspkbQVgKRvordEPocBDzYJ1LJYBFYRby+13QbRR9UXwBlCW0 yuELOgxM0MCOiQRNkVMVQZUUVICXe1oiFJFJtwkjngRH1sU6hdSpgnMb08X/rAj6tqxaahE/7gq dJXbcJ702Zwj8R88zqg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-15_02,2026-05-13_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 priorityscore=1501 adultscore=0 suspectscore=0 malwarescore=0 impostorscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605150116 On 4/30/26 11:20 AM, Sneh Mankad wrote: > The wakeup enable bit needs to be set irrespective of the SoC using PDC or > MPM as wakeup capable irqchip to allow the GPIO interrupts to be forwarded > to parent irqchip. > > This is set only for PDC irqchip using additional check skip_wake_irqs > making it impossible for MPM irqchip to detect the GPIO interrupt during > SoC low power mode since for MPM irqchip the skip_wake_irqs is always > false. > > Remove skip_wake_irqs condition when setting wakeup enable bit to allow > forwarding GPIO interrupts for SoCs using MPM irqchip too. > > Fixes: 76b446f5b86e ("pinctrl: qcom: handle intr_target_reg wakeup_present/enable bits") > Signed-off-by: Sneh Mankad > Reviewed-by: Maulik Shah > --- > Changes in v2: > - Modified comment to specify MPM HW as well. $ b4 diff 20260430-enable_wakeup_capable_gpios-v2-1-8c26ac795318@oss.qualcomm.com [...] ## drivers/pinctrl/qcom/pinctrl-msm.c ## @@ drivers/pinctrl/qcom/pinctrl-msm.c: static int msm_gpio_irq_reqres(struct irq_data *d) + /* + * If the wakeup_enable bit is present and marked as available for the + * requested GPIO, it should be enabled when the GPIO is marked as +- * wake irq in order to allow the interrupt event to be transfered to +- * the PDC HW. ++ * wake irq in order to allow the interrupt event to be transferred to ++ * the PDC/MPM HW. * While the name implies only the wakeup event, it's also required for * the interrupt event. */ This is not what I asked for. Instead, please focus on explaining what skip_wake_irqs is, perhaps under what conditions it is set, and how that differs for PDC vs MPM Konrad