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 240CC30EF71 for ; Wed, 7 Jan 2026 14:08:19 +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=1767794902; cv=none; b=GhhmNEWjIc8eTNdbXM+UEl9BDKftcejRBlnpU3rDvwLUi+b6Dbukv6UsikcGEXn3TlajmyD6Ep6iWx7mR1E+SoxtFP9YtCt6M0i2kpTIoRS7MuIEhWnSrufonRgkIrKWQFvMMmoUaRVB8pLy6gxND7Q+aHZflzKTZUuG66hpZgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767794902; c=relaxed/simple; bh=aUCtRXbaqhLdP8PIW7MMmYazfgZB3Ep36B3bliuTmQo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=e/Vpa8PvLb90WrCbyvr/7CWpKG6xppW5FFR5A9pGhevEgald/VLU5xpKYypDWczhJqEsWCdCRL/kugT/XbHipmdB33XmigMrW5a2JAmpwp2xQqucqFkftzlt4ayq3Ap0q2O1ivKhoPvMWdnZ8Ru0wChznuaYtfysO2CfZTj2KdQ= 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=JI2U+wqC; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=IU+7mnYk; 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="JI2U+wqC"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="IU+7mnYk" 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 6078oCo21979780 for ; Wed, 7 Jan 2026 14:08:19 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= e/IXkgAHOqxTc8Sm3PgN43SHcMF+5VzPKwHvaU0kjnE=; b=JI2U+wqC/iFxxc8R L/iKo1Qrz+Ay5O8IESB0nb7pHECoJto3/EQwx91fcwaqPKoH7HOaIkgBeQKI8Sg0 cA4oX9yzfRZOZ215PAxaeixWu25xJ3nw1QijlDh+sQlTldrvrym82klJzHFmC53M QiuL7/VRZyCn3kkxhCMUChWgU7YBzoa0otOfm8b1GNtU5U+Lq2ZmkNY7jCjvD5zj ZLMnObvvOZ0aMrzgVRy+vjVLwv4W0WQoSTKftN5qUNI103rxQSmJ8ZP8bOlC+PBj EyVkroFZ9qsATt08EBi/l71KDZHZteosKOt9TY0y0okvstN/SgYLE4JN3N7XnAiu qwdEEA== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bhdavja5q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 07 Jan 2026 14:08:18 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-7b89c1ce9cfso2184090b3a.2 for ; Wed, 07 Jan 2026 06:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1767794898; x=1768399698; 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=e/IXkgAHOqxTc8Sm3PgN43SHcMF+5VzPKwHvaU0kjnE=; b=IU+7mnYk//4MLYPRS/XZuW3GMpj3FF5r038iCTm8Ro6yLTHzb7ec4qWLIMlfB8aKhB qBkp8y3Yj4M0ebLzRPzXYeoH8LLqpS5ZmjLnBqjR0xrLD53jDnXBFxGdW+s0G28PO9ok 9YT2kY70zUqYSmNQy/IhsXQGpp+nExwpd59mJMfNum8dnUdYoNWlEziaKOq4roc4bzSp /VbvDGhmU2aPXjgIOVpUxeizL3AgSmB9muukbjJQYd1oKJwcRh+S19NhyxPBm+fjKfhe rRa9mqu7TLq/7kHcix7e3rlQ9snaMh4CyzmfQ2FnJm/CWpx3XycYsfKCpVqAjwdEc02v SdZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767794898; x=1768399698; 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=e/IXkgAHOqxTc8Sm3PgN43SHcMF+5VzPKwHvaU0kjnE=; b=D7AMXmp+Ayx6D7mM2IqBzfLju7Av4F2SYSEp7eWCzN5B/HBvgknVRi5+WicfGbKums YOPZNLCv8TLR3NKVkVrHvRkkcTiRbybs0DOZN5H1teTjI+5Z8aszXf4cLV2CQkLN+mSI J2HZplaNsVB0I6Uf+YtmIwmcBctGjzCZsSH9BqniqvjG7Gl1zHVlFGl8+suKIcRrvnfe S+LnmOJuk/yMt7oiNivnDfU/B7t5TKReMCRuGQ7hDk2SZxB41sJSX0EX123BuA2baQLh 2wdxy8IASf/QzenaCiToHlh/xS9vfrTX+yUMCWaGJgm1xYjsox41rEVtftDYKYqPhFt4 SvnQ== X-Forwarded-Encrypted: i=1; AJvYcCXrl0IfjForfwy/rCk5VDxQ2qQOJMeHQ++3DJuJ0lBAjmrHYDEmqd11LZ6VG/ZvDtXLXlnWBgKiPROncuA=@vger.kernel.org X-Gm-Message-State: AOJu0Yw0QJqnWCt6jdIj6FKJzQt+v9sS/MxIyRWKvvdDyAhEU4aHah4O liViwLEunYONva7nPWpYADKi/LKMyByuYwrErT++GzR47qh9p+Urywe20Jxp4k4vnkEx0kC1vYH IFEbv57w7jU+U2axTbVRpPS5yOORQOaXgv/T3guWOXV4yFy6nd4ARIZeF455QgQBTe6rwFlLX+S A= X-Gm-Gg: AY/fxX4DOT0jAuYsaXlt5AI+xgTTyp+7tcvntoScz8KKTroNXTV9sZUSTsdHL86Nbek hr4/jOCU/E/2DAbm2iP6VBi8cKEkk7V0pyrAsNiNXXxVm8NLzbhvlxmKCaRnHx/wlEONXfcS8TJ h9ssPNZL82rM9roX5JIRIYbpR0qGCXuWHTETsF50Xvfro8pwLUlnzapS3Z8gmrH35tjPCB/2N9L gGzD1P4WSw2WjRMeTGz0yc106cWA0iYhdj5dgfHhbZ9m8qiZ1CyOeizasaBExWOrfx24JweA5Xt QCh2FZr2btqEuMj1Znm9PvRrUF4rqZBWt4VPJxq4Ps8iAQkFkfGBG9nfZjjzxKa9TxsOPRukd// iGHyWFW0vR/4SZzqg9ehQApprbNOAPN51NHaOnQ0S X-Received: by 2002:a05:6a00:4147:b0:7f6:4a1f:68a9 with SMTP id d2e1a72fcca58-81b7f104474mr2377023b3a.23.1767794897419; Wed, 07 Jan 2026 06:08:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrMqnbFrD/Ogjw6q/skADffcb23oZB8dneueWX+1jX467c2sCRc7k7ahqEDUlcFmFEg60wnQ== X-Received: by 2002:a05:6a00:4147:b0:7f6:4a1f:68a9 with SMTP id d2e1a72fcca58-81b7f104474mr2376978b3a.23.1767794896804; Wed, 07 Jan 2026 06:08:16 -0800 (PST) Received: from [192.168.1.2] ([49.204.107.20]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819baa19242sm5174447b3a.7.2026.01.07.06.08.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jan 2026 06:08:16 -0800 (PST) Message-ID: Date: Wed, 7 Jan 2026 19:38:10 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] serial: qcom_geni: Fix BT failure regression on RB2 platform To: Dmitry Baryshkov Cc: Konrad Dybcio , Greg Kroah-Hartman , Jiri Slaby , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, bryan.odonoghue@linaro.org, andersson@kernel.org, psodagud@quicinc.com, djaggi@quicinc.com, quic_msavaliy@quicinc.com, quic_vtanuku@quicinc.com, quic_arandive@quicinc.com, quic_shazhuss@quicinc.com, quic_cchiluve@quicinc.com References: <20260107064834.1006428-1-praveen.talari@oss.qualcomm.com> <36d8fb98-562a-43dc-8b47-b4f6d29475f1@oss.qualcomm.com> <741df2ea-03fd-4af2-9a98-20d68658edcb@oss.qualcomm.com> Content-Language: en-US From: Praveen Talari In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTA3MDEwOSBTYWx0ZWRfX538xBYuoYlxo wEoRYxZyf5FCMUQLmk5KPjRvktc/ZFIHVRmMHuD9ea6ZAXFkre3Qe0f2/ZW2s3nRvFHN5Ze1II0 ayTUlM7N6b1I2w7DUtf5VMcWGR72tIzwqalglEfYnWzXtxBKPrEInhG7KAS46UNTUZ2xdkJhakf bpnRV5nqu1aOlZJOFC2Dgrzbgh0OxNJ9hzRJ6yTE6ZXzAmba9dDg3lpxq8RuSgxY+P9wJAmtazZ NtRRHQdal9krwEY+Y6EpY8XUMmGoepWwxO+jvSaB6P6Wj0bKK3LswXkELcmUAHiYX6eu3YRVDGp HePxDbJ25X/LcC8+auqQ/mIn/puuzNo2XeZ3peGJsLigmzHUwI7laHDQQIiCULbpKVmtGMvzukh 2A4bNxx1lHzO07rIhWj5CxXmWqHC/W2JAbIWgKcYE48Ut0dWjdyLFp0mevKzT+x3J1iyzmlnmNV BoVIZ3TfHB0o51WhAoQ== X-Proofpoint-ORIG-GUID: 9aUgji6g4EPVvmPquaWAoCmKW6gboaeK X-Authority-Analysis: v=2.4 cv=comWUl4i c=1 sm=1 tr=0 ts=695e68d2 cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=+gEgXnvjvgnLECGlQBulyQ==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=TCUISvXNB3W53Fu2B-YA:9 a=QEXdDO2ut3YA:10 a=IoOABgeZipijB_acs4fv:22 X-Proofpoint-GUID: 9aUgji6g4EPVvmPquaWAoCmKW6gboaeK 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-07_02,2026-01-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 phishscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601070109 Hi Dmistry, On 1/7/2026 5:05 PM, Dmitry Baryshkov wrote: > On Wed, Jan 07, 2026 at 04:28:22PM +0530, Praveen Talari wrote: >> Hi Konrad, >> >> On 1/7/2026 4:16 PM, Konrad Dybcio wrote: >>> On 1/7/26 10:24 AM, Praveen Talari wrote: >>>> Hi >>>> >>>> On 1/7/2026 12:52 PM, Dmitry Baryshkov wrote: >>>>> On Wed, 7 Jan 2026 at 09:06, Praveen Talari >>>>> wrote: >>>>>> >>>>>> Hi Dmistry, >>>>>> >>>>>> On 1/7/2026 12:24 PM, Dmitry Baryshkov wrote: >>>>>>> On Wed, 7 Jan 2026 at 08:48, Praveen Talari >>>>>>> wrote: >>>>>>>> >>>>>>>> A regression in linux-next causes Bluetooth functionality to fail during >>>>>>> >>>>>>> linux-next is an ephemeral thing. Please reference the exact commit. >>>>>>> >>>>>>>> bootup on the RB2 platform, preventing proper BT initialization. However, >>>>>>>> BT works correctly after bootup completes. >>>>>>>> >>>>>>>> The issue occurs when runtime PM is enabled and uart_add_one_port() is >>>>>>>> called before wakeup IRQ setup. The uart_add_one_port() call activates the >>>>>>>> device through runtime PM, which configures GPIOs to their default state. >>>>>>>> When wakeup IRQ registration happens afterward, it conflicts with these >>>>>>>> GPIO settings, causing state corruption that breaks Bluetooth >>>>>>>> functionality. >>>>>>> >>>>>>> How does it "conflict with GPIO settings", what is "state corruption"? >>>>>> >>>>>> I mean the issue occurs because the GPIO state is being altered during >>>>>> the wakeup source registration process.. >>>>> >>>>> Altered how? >>>> >>>> During the runtime resume of devices, GPIOs are configured to QUP mode. However, when registering the wakeup IRQ using dev_pm_set_dedicated_wake_irq(), these GPIOs are reset back to FUNC mode, which impacts the RX GPIO and leads to Bluetooth failures >>> >>> "QUP mode" and "FUNC mode" are tough to swallow even for an insider.. How >>> about: >>> >>> "qup_x" and "gpio" pinmux functions >> >> Yes, you are right. I am talking about "qup_x" and "gpio" pinmux functions > > => commit message, please. I hope the commit text below should be appropriate serial: qcom-geni: Fix BT failure regression on RB2 platform A regression in 6.19-rc1 causes Bluetooth functionality to fail during bootup on the RB2 platform, preventing proper BT initialization. However, BT works correctly after bootup completes. The issue occurs when runtime PM is enabled and uart_add_one_port() is called before wakeup IRQ setup. The uart_add_one_port() call activates the device through runtime PM, which configures GPIOs to the "qup_x" pinmux function during runtime resume. When wakeup IRQ registration happens afterward using dev_pm_set_dedicated_wake_irq(), these GPIOs are reset back to the "gpio" pinmux function, which impacts the RX GPIO and leads to Bluetooth failures. Fix this by ensuring wakeup IRQ setup is completed before calling uart_add_one_port() to prevent the pinmux function conflict. Thanks, Praveen > >> >> Thanks, >> Praveen Talari >>> >>> ? >>> >>> Konrad >> >