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 7B2CA2FD1C1 for ; Wed, 7 Jan 2026 09:24:22 +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=1767777864; cv=none; b=EduPUzG9xDRnsgOEvFUraB8/uRdECDX5Ki7U7tSE3ae956FxUysogL2ThgGiKMdBMF0NJ3wYludHH/9vmuNEJeKvof0INQd5k+j+VMv2fcJ0Ugys2CJlItPifcKUKEcBvNSmIzNJLHZmMSsTZ/O3KiwId312P75/UlweFkArKGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767777864; c=relaxed/simple; bh=is3JvHvh26LfzW4x4xGy/g08AaliKKVtZ3JcDZvfYgE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PA+C/z6braLxbv9cx1FE0nJBrNJ4zj4fVO4qnfllrD92OGPelc5FQexJducBBaqrHsSFMgOJVlQXFmLG1B6mPTvGbNCduFLVCWljuBd8kZZhwcka3KgHXs+PR6Jvf5wF2nKPFs1wBoOyRoonWn+ERcET1ztsaR1llpGv5+k1OL8= 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=DhxoX0E5; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=D+YqgyjB; 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="DhxoX0E5"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="D+YqgyjB" 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 6073V8JD731466 for ; Wed, 7 Jan 2026 09:24:21 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= tCQ7E64aGkZQWKEuQyakZA3qgIImGoTLX07wyb3IoS4=; b=DhxoX0E5S6BoCeN2 pymR036FmoTmtv8J7KPAfx2SLdzQnMTIcGG4ejWdEEeEMbUjjIjrX0/7wz3O6d5P inbHBbk1plsSmsaQP/qy4XHehUIpLr2yFSIZ/mxL6ehfojLSmqZcUklbTC6/Eody mcC1hvMivRXeCKOyN6FjHmlqzp5QBa92ESOQjthp09wdmMc3qUobGfb1UpnHZtIi pxpGiH2+B3cGVLcy+vsa0sbXF0P3DhXHrYFiaNbYWYBGbAhiGxIwc8RyGzLnKhuQ 9qxEp0gCgBmoPrKckdY78EoGe53xUxrE5GxHeIXrL5Fh/UOTAfX0FzvRik4zgFKG Zubstw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bh66mjrfm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 07 Jan 2026 09:24:21 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-34c6e05af6fso2121691a91.1 for ; Wed, 07 Jan 2026 01:24:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1767777860; x=1768382660; 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=tCQ7E64aGkZQWKEuQyakZA3qgIImGoTLX07wyb3IoS4=; b=D+YqgyjBr9Ysoq9gx01cUs/Gc2kf14/alew3STbk4Uz1y8AT4f0eXPyEsar5i9+TDm rrU6z5OUKjjrNNptgmJIA5HMpFXvrqYbuisYY9kLKK5GmCjzZ3N8dZKvv0WAQ0qRQWMh kqgmO5uFvMusU6mQz3XEMrEgHAwSpk8QXpcF39HtSbyoWrrGLi3nff/cqYKLWy+yWcWG EAQT8SHjkDSQ3YBALrAK4wx9MM5w5oStrLhVSBvYovn6DNEJ0t/jtcLYnpZ/UfuAOT1j /utQXqPxMDBeOyiCXciusJnrDQejJY+Cf8V2TZSeVtbhogADq/wtVTjOEkRnUh1bbEdb +/PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767777860; x=1768382660; 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=tCQ7E64aGkZQWKEuQyakZA3qgIImGoTLX07wyb3IoS4=; b=g3sSO9XQsDcEZ6K0iqdTPheTXY8h+t5qo8CNJWo4fmPzUaeb+cKonxjDCQqJ5Np+D9 TqRoof6CAg4n0qA+tIv0cRkJVy3MB0cTrmUbezaeEu7niSZyCAXEqmCPQUrwnnPbeuc2 tvwBUv9OlYE1mXg9YEROvfRQMLuKaiC9tcrGgPt4QircqFzp1o37e8Rv7/0i7zONhSxx o41ICf+G4RioUacLZ+OfhySXY4OmRY8424yavu7aSRXOv2nDFq4CZUTjf2JaG6VdA4Ds MMQGiwvsi39BcixgsgKTEGPRBqSU76INWZBbnFwk6OYV4yZrqHTW/F+/29Qg2LrRzaQz 7Kqw== X-Forwarded-Encrypted: i=1; AJvYcCXjxIt6NweKNTJowE47Zj+Pr9Tw3EuExol2xO3oWmnvwlcGRQn7txktzFGQ5BSi2kXNMCfh/aPMi35Y+uM=@vger.kernel.org X-Gm-Message-State: AOJu0YxqMDY6JkgHrBbkz76PCG+oOLt5teU+BvIy/lxtpU6gbSgTrWmK R1KWl8Xwp9UlR/1VoZlPQ0f15fDeJ+yaL9Gdsnn5z2jNP1/DtzIDQvl+NxqShH0fX+3I1PklPQy 8PXg/NlTj3wkLBie1Jtkgkvwuy2v0p2aHYbhShfN4tlmP2gU9/KtwJMk174ndi1utPnI3vRLOcl I= X-Gm-Gg: AY/fxX4jt1Er7ohqHv6GHg9YS6ZZLFFsBZLPuiMZArRh9U2Wazkdf4PgdKmNyA4tzzS 7/lesbjg78ZO3WVdzdaGmyBvMqwr0s5FlaPV+Y6uy9eyrs9iYXs0Bpd8aErEqE/VwZ8RQVMPPmp 1gnmZ8bJieFa0kM5Tm+yyI4eIbL6GZP5pFGtI/YQCjosLfsyvsLbTHv5nFCG/DV2mF7R2zPU1o1 qtJTP/e71gCMhUXTRqMFC4QEWocj9kAaZJ9DQy7TMgrmwlftKeTQLawbcNuxEzbWvti/PXUHKog dy9CaHULMuc/AqeBKZwoIw+OyO4LcfqEHmx/KeT5mRWIB/Ua7PVrbbx+B3i2ruCLDapU0XAjv2+ ou0wNYfoRKJGv8NrAWOzkHeFSfyzMf8eJ+/KWdRO7eg== X-Received: by 2002:a17:90b:35c1:b0:340:9cf1:54d0 with SMTP id 98e67ed59e1d1-34f68c339a8mr1522627a91.1.1767777860056; Wed, 07 Jan 2026 01:24:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6SQk53WozcRJr7IdsTTFzEHcdXz6UUnKRx8vIFFDYVnO8Tze3frQxP2XgomFS9jRlb056Cw== X-Received: by 2002:a17:90b:35c1:b0:340:9cf1:54d0 with SMTP id 98e67ed59e1d1-34f68c339a8mr1522604a91.1.1767777859477; Wed, 07 Jan 2026 01:24:19 -0800 (PST) Received: from [10.218.32.171] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f6b09f5basm506459a91.3.2026.01.07.01.24.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jan 2026 01:24:19 -0800 (PST) Message-ID: <36d8fb98-562a-43dc-8b47-b4f6d29475f1@oss.qualcomm.com> Date: Wed, 7 Jan 2026 14:54:13 +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: 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> 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-GUID: ZT9tqro9gMc-gZP44YzNmExR-Ttf2F9s X-Authority-Analysis: v=2.4 cv=PoSergM3 c=1 sm=1 tr=0 ts=695e2645 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=agy9Euk4f6zF618OgdMA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTA3MDA3NSBTYWx0ZWRfXzqIAcYJ284zL vnAG2SZ6fZVLQHMDtKCKXtBJiSMI2zLc6TMpgQBvYbiEUlKvuwaVZVFPd9716qrJbgeyOPJE4/6 LAksrMHMhs+x/8xxugNCaIzDaJ9/5cuH4s7OkfMAWd2Tya0m5T/rxEnJrHs8J+nPzHfaX+ItLH1 EYyplNGs/iU47sv3PRhDyCZyj1fcbZKEyNGktEktIkLBD8KmntUxZcy5wVSbhAYhcDlFrPi7zM2 gY3rwxfFmURbJqsj8DlmH12UsYsPxtD4omfO1mfr/XoA7S5kg9CmBgS/IoJKsHdr7/3IpVhoeSc bJ3256egBgsoCpEmZvChzZTpvFFFLMryzepS+/v9/+Tg7Rg/YFr5/nkTJSSCeqPUS2/D/uIVtQS 1vUGrTxjyF3yHGSKuTtyQm/DmYnhIT5ukV7u5wStbHCWSQu56gWyCdxuq3+LZf2CKKHCuJ43k8Z 81XL6RwPbd0KKhb5hNQ== X-Proofpoint-ORIG-GUID: ZT9tqro9gMc-gZP44YzNmExR-Ttf2F9s 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-06_03,2026-01-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 phishscore=0 clxscore=1015 spamscore=0 suspectscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601070075 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 Thanks, Praveen > >> >> Thanks, >> Praveen Talari >>> >>> >>>> >>>> Fix this by moving runtime PM enablement and uart_add_one_port() after >>>> wakeup IRQ registration, ensuring proper initialization order. >>>> >>>> Reported-by: Dmitry Baryshkov >>>> Closes: >>>> https://lore.kernel.org/all/20251110101043.2108414-4-praveen.talari@oss.qualcomm.com/ >>>> Fixes: 10904d725f6e ("serial: qcom-geni: Enable PM runtime for serial driver") >>>> Signed-off-by: Praveen Talari >>>> --- >>>> drivers/tty/serial/qcom_geni_serial.c | 12 ++++++------ >>>> 1 file changed, 6 insertions(+), 6 deletions(-) >>>> >>> >>> Tested-by: Dmitry Baryshkov >>> >>> >> > >