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 EFD1C290F for ; Wed, 31 Dec 2025 03:00:53 +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=1767150055; cv=none; b=uUlghP7ZPfAHTSHmtx0KqMc4mU/ksocKmd1K7cNimeqywvN8mNy0XWXuffKZ14dT2LFIXMLno5nmUtga5SvaLxMFOPgupf2MBhSbSDhJnbecBAt+VT6tvPkluNmqEqHuu+rvJ9Ff4hIUAGygPcJa5gsNbrhQEEbps9C8SEv0alc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767150055; c=relaxed/simple; bh=P88Oup2V/206TFuPEITBqHQAyorA4xlOSLV2pTxE+8w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JVN4m9K7M4HMY8idWAxFbulX1D3KvWQA63G2t/gL3zZdKHCX0Ttz+SQLneD///UqkLjj3fhgVw4VkfCbUP2vuI5w+52TImDYJsJ+OuyYPYpdX59GQtRqMM6yvdpEJBeH4oPgSWnV5oprN92Ei19o/jGT9MXy8lIh28NlULm3200= 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=E6MUjvDa; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=CCIytzxn; 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="E6MUjvDa"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="CCIytzxn" 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 5BUEcOpa3539627 for ; Wed, 31 Dec 2025 03:00:53 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= RZq1vO+s0UewT/Y/b46qDgPVeoGieEsYyE4WUrw2lTY=; b=E6MUjvDaFEjGA2LI rZ3vTYomb8fMV5R2wD9LlXGPCFNv8BC+r9ntzsYL1R5sY3j0NV+Lm2GKKJFy+9HR /0uwPmkurM3NdEY/PQF5RC3yh8bWWKZ8qv5PlBm6XpYEIfOvuERmI2kKqvKqTD2o jDmMHULBYobDbH22tfn5AW7K7xLNK2O6yZOtZAdnpUKic9x8tuRKU+uQaSFhy2SD 4FETDBjhuS0kHSP9Uh3YqJvuaCUmEX4jtD/cNBpD/H30164gTbP/ShUN4e8yhByx Nll1kHXhbZ14rfD/EPftveCgikAOLiAO5ooQLKIyxVlCZRMxqHrYN9tg0DaJhwMm cjAnrQ== Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bc88yjk6g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 31 Dec 2025 03:00:53 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-88a3356a310so292090866d6.3 for ; Tue, 30 Dec 2025 19:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1767150052; x=1767754852; 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=RZq1vO+s0UewT/Y/b46qDgPVeoGieEsYyE4WUrw2lTY=; b=CCIytzxnR5s+mCn/W9O2b0kX5Eh37xg1NwChoX2hBWQ4u09APygOk1MjRzZSGogfGZ +tagRXFILWfubRi/UaD2hjSjfSFOk4Y26saluowedxwrPuywrUjXFG+5+J2JojkrWJJw aovTpg5VNqfQbbxsCxBF/PFrFhhN0jGTjCGEcaNx6/ItKHVp9+9WWBOMdSvJdkwiasIE Vxyoj35GSPROVX5wM+Y74MAMHdS1mbf0oa2S8RMbDbgoxgmx8hwVe5x+72MvHDtteqbc 03QA7PTLjs4vGxG66XUQ9E+hRRQscJQnQVZMVC9fkzpICwYHjY4SW92PnOjjFLDB/t6Z i8Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767150052; x=1767754852; 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=RZq1vO+s0UewT/Y/b46qDgPVeoGieEsYyE4WUrw2lTY=; b=SsLv51QMIyrrJOYJVx2f1flEPmTKFgrEYLO8UZIBQWqTbXixVFCgc1DBm5Ne01exDx 0ZrW3VbDDcNkdoWSbL5D7bIgpRSqpQQOM79gWPW6jDtufvJ2msTZei3WATBzdbg91iEr 9AubjSqsoPEG+1GjNeZL5V6myUTviTTfP/X1Fh2hrTj4oSiv32v7dGPkju8QlxaqfO6s VXOD+HvdIqnSNMrlk3rOM+7nlSC6UugSNKzy43D8g5GVxBy+qHAMBknEOaX5QHlWrIsV ujSa0jwld7JifW0D87N7Gl7gm4n4RnyyaY5tK/tyZGyeM3pNoUAdSFcDLavC+YW7kbNH 8DNw== X-Forwarded-Encrypted: i=1; AJvYcCXzf/4LKu4zeZgCthQRuLECY8SjtiAy7UNt281r7NJB9lC2qclwvNskEKr+q1Ax+X/oScf1ixdwfywQi7Y=@vger.kernel.org X-Gm-Message-State: AOJu0YwJ1H9EIO5ktHt3G3Geb9IWQOfd8mWGOOifzK3rmi417hdgVjBc 8/TeRGMpWuKRQqf1R10+p8YUd/YGiHWtvlYQ/gYl+/9mQxyBiOXr4ifkhDta8x1IjbRBkFsp/hV 1mb/r1CCL/cOPzvGNLPu7Ap/yDdDy8fwXsIFfrzX0HeWCGFRUdQ0Ax7vecgH4wJSdVAo= X-Gm-Gg: AY/fxX7MczYj9EoZMjZ77YIIBZ3G316TFvFx1X3B+HKH3MtmuBtg7/BbnQtmEtdTERI CYrOcRE9r86orsJBWzO6OPoHhl25oJzWnC4/u+5v0oCpj/NFlsZMkEtuLlagM0N5vtE8gbVdZCV HohSbdkxc7NgGffLeZ4JXjtixAAdVaGQOu2h4Y7sT2MOhAN/SWPfJBSoV+9zK5VdYwHhIDrVEOC zwd4+kcF166Mb//gYD57BmBGQWm/GnrcrC6vROy3Nt+AbkvihoNF6CCC/Rtvcdy4B0Gab+FpUks ovq7xs0tLz8vghUcd8lQfGmnKbC46ArIalj71X5t4QN5FA60NqpBAfQXfQmRDKghDnVplUpFdpy pQQ+xBhez2tVG/gRLmcDDin8t+CmTPL7ASfvVUYkha7CpWJJSyp87qWfRJRfbDhfqvImga1kMrU vJR5Gqi/8iFnsx X-Received: by 2002:a05:6214:2f0e:b0:888:8140:d74b with SMTP id 6a1803df08f44-88d82de98ecmr550984006d6.31.1767150052019; Tue, 30 Dec 2025 19:00:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZEnXlnFdFmANR+rVpyhtPVBcgcOgSm85V9POoHbOawN9U11ydPaBgby0L/QU9qnFY/+XXyQ== X-Received: by 2002:a05:6214:2f0e:b0:888:8140:d74b with SMTP id 6a1803df08f44-88d82de98ecmr550983376d6.31.1767150051542; Tue, 30 Dec 2025 19:00:51 -0800 (PST) Received: from ?IPV6:2001:14ba:a073:af00::4c9? (2001-14ba-a073-af00--4c9.rev.dnainternet.fi. [2001:14ba:a073:af00::4c9]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59a186170b4sm10936687e87.51.2025.12.30.19.00.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Dec 2025 19:00:49 -0800 (PST) Message-ID: <25f3e3c0-7796-4318-b479-a680b878528a@oss.qualcomm.com> Date: Wed, 31 Dec 2025 05:00:48 +0200 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 3/4] serial: qcom-geni: Enable PM runtime for serial driver To: Praveen Talari Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, alexey.klimov@linaro.org, krzk@kernel.org, bryan.odonoghue@linaro.org, jorge.ramirez@oss.qualcomm.com, Konrad Dybcio , 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: <20251110101043.2108414-1-praveen.talari@oss.qualcomm.com> <20251110101043.2108414-4-praveen.talari@oss.qualcomm.com> <2zeqt3tu36qcxs6xrzqqmn3ssmyzetl6tq6lxrjdvt5dhxrtv4@g5q4zhk4sebs> <8c734f2d-59db-4815-bfc6-3823cf3ef37a@oss.qualcomm.com> Content-Language: en-US From: Dmitry Baryshkov In-Reply-To: <8c734f2d-59db-4815-bfc6-3823cf3ef37a@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=POcCOPqC c=1 sm=1 tr=0 ts=695491e5 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=TnZdVe0PMZAKthhqzTQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 X-Proofpoint-ORIG-GUID: IabIhXrO-Sn7m-4GAStgBQSEASTCJK3t X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjMxMDAyNCBTYWx0ZWRfXzcbSZ3lUD9LA lxrqnxKsXWXEMEOg+AvVSpya8dVmc9K5CPTuugiXRRhMAtuiDON3hQl81E/k7d01LWWxurTKGCt EgGBMbcBYIWhfEljc+4DCuIoI+Gweldy65w1Sarn1QQlq1FAVfFohgxy39dwDGRtnb2Gsr5Uwtp s1XOisYjyUdanvivZWwSg2EoHCDoTF9Rbeu69kdOcBZXmscfX2kQWOo2qlSgwNP8bQ/geDx0QOf CLlhAp1tUUvxL2khb7ME3GJ0kpmDzRW/KIuAn8t4386iMC4ubhPUj/u0POr01Jm4/V2UVzkoPIy bS7sf0ZxBI3yt1gOdCVUT4vKcZiQXKzpBgPIvozE5PjSyqpYD/yXApJ6whhqz3x7PqTlujamLxj A+tVPSezLlJKqZHDVRi8JVFkAheGgxIlcElHEOxN693I46EaxgLi0I8sNNSfnZLi+DzXXCRUeo/ o6B96+/3zSKPetGbE5A== X-Proofpoint-GUID: IabIhXrO-Sn7m-4GAStgBQSEASTCJK3t 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=2025-12-31_01,2025-12-31_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2512310024 On 31/12/2025 05:00, Praveen Talari wrote: > Hi Dmitry, > > On 12/30/2025 11:53 PM, Dmitry Baryshkov wrote: >> On Mon, Nov 10, 2025 at 03:40:42PM +0530, Praveen Talari wrote: >>> The GENI serial driver currently handles power resource management >>> through calls to the statically defined geni_serial_resources_on() and >>> geni_serial_resources_off() functions. This approach reduces modularity >>> and limits support for platforms with diverse power management >>> mechanisms, including resource managed by firmware. >>> >>> Improve modularity and enable better integration with platform-specific >>> power management, introduce support for runtime PM. Use >>> pm_runtime_resume_and_get() and pm_runtime_put_sync() within the >>> qcom_geni_serial_pm() callback to control resource power state >>> transitions based on UART power state changes. >>> >>> Signed-off-by: Praveen Talari >>> --- >>>   drivers/tty/serial/qcom_geni_serial.c | 24 ++++++++++++++++++++++-- >>>   1 file changed, 22 insertions(+), 2 deletions(-) >>> >> >> This breaks BT support on the Qualcomm RB2 platform. With this patch >> applied, I'm getting the following: >> >> root@qcom-armv8a:~# dmesg | grep tty\\\|hci0 >> [    0.000000] Kernel command line:  ignore_loglevel >> console=ttyMSM0,115200n8 earlycon root=PARTLABEL=rootfs rootwait >> systemd.mask=pd-mapper.service -- >> androidboot.bootdevice=4744000.sdhci androidboot.serialno=2b89b520 >> androidboot.baseband=apq >> msm_drm.dsi_display0=qcom,mdss_dsi_ext_bridge_1080p: >> [    4.074354] 4a8c000.serial: ttyHS1 at MMIO 0x4a8c000 (irq = 140, >> base_baud = 0) is a MSM >> [    4.099410] serial serial0: tty port ttyHS1 registered >> [    4.131200] Bluetooth: hci0: setting up wcn399x >> [    4.149847] 4a90000.serial: ttyMSM0 at MMIO 0x4a90000 (irq = 142, >> base_baud = 0) is a MSM >> [    4.229099] printk: legacy console [ttyMSM0] enabled >> [    6.499519] Bluetooth: hci0: command 0xfc00 tx timeout >> [    6.514347] Bluetooth: hci0: Reading QCA version information failed >> (-110) >> [    6.559933] Bluetooth: hci0: Retry BT power ON:0 >> [    8.016330] systemd[1]: Created slice Slice /system/getty. >> [    8.066194] systemd[1]: Created slice Slice /system/serial-getty. >> [    8.148389] systemd[1]: Expecting device /dev/ttyMSM0... >> [    8.956804] Bluetooth: hci0: command 0xfc00 tx timeout >> [    8.962447] Bluetooth: hci0: Reading QCA version information failed >> (-110) >> [    8.976917] Bluetooth: hci0: Retry BT power ON:1 >> [   11.296715] Bluetooth: hci0: command 0xfc00 tx timeout >> [   11.302340] Bluetooth: hci0: Reading QCA version information failed >> (-110) >> [   11.309534] Bluetooth: hci0: Retry BT power ON:2 >> [   13.660078] Bluetooth: hci0: command 0xfc00 tx timeout >> [   13.665814] Bluetooth: hci0: Reading QCA version information failed >> (-110) > > Sure, will check and update. > > If possible, can you share what is DT filename for RB2. qrb4210-rb2.dts > > Earlier I had validated on RB1 and Kodiak. > > Thanks, > Praveen > >> >> After reverting the next and this patches, BT is back to normal: >> >> [    4.067201] 4a8c000.serial: ttyHS1 at MMIO 0x4a8c000 (irq = 140, >> base_baud = 0) is a MSM >> [    4.082426] serial serial0: tty port ttyHS1 registered >> [    4.106122] 4a90000.serial: ttyMSM0 at MMIO 0x4a90000 (irq = 142, >> base_baud = 0) is a MSM >> [    4.108647] Bluetooth: hci0: setting up wcn399x >> [    4.125371] printk: legacy console [ttyMSM0] enabled >> [    4.445205] Bluetooth: hci0: QCA Product ID   :0x0000000a >> [    4.450927] Bluetooth: hci0: QCA SOC Version  :0x40020150 >> [    4.456470] Bluetooth: hci0: QCA ROM Version  :0x00000201 >> [    4.462006] Bluetooth: hci0: QCA Patch Version:0x00000001 >> [    4.509408] Bluetooth: hci0: QCA controller version 0x01500201 >> [    4.515656] Bluetooth: hci0: QCA Downloading qca/apbtfw11.tlv >> [    5.488739] Bluetooth: hci0: QCA Downloading qca/apnv11.bin >> [    5.671740] Bluetooth: hci0: QCA setup on UART is completed >> [    7.993368] systemd[1]: Created slice Slice /system/getty. >> [    8.045612] systemd[1]: Created slice Slice /system/serial-getty. >> [    8.125418] systemd[1]: Expecting device /dev/ttyMSM0... >> >> -- With best wishes Dmitry