mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Praveen Talari <praveen.talari@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>,
	Dmitry Baryshkov <lumag@kernel.org>,
	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 <konrad.dybcio@oss.qualcomm.com>,
	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
Subject: Re: [PATCH v1 3/4] serial: qcom-geni: Enable PM runtime for serial driver
Date: Wed, 31 Dec 2025 08:30:01 +0530	[thread overview]
Message-ID: <8c734f2d-59db-4815-bfc6-3823cf3ef37a@oss.qualcomm.com> (raw)
In-Reply-To: <2zeqt3tu36qcxs6xrzqqmn3ssmyzetl6tq6lxrjdvt5dhxrtv4@g5q4zhk4sebs>

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 <praveen.talari@oss.qualcomm.com>
>> ---
>>   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.

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...
> 
> 

  reply	other threads:[~2025-12-31  3:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-10 10:10 [PATCH v1 0/4] Enable Serial on SA8255p Qualcomm platforms Praveen Talari
2025-11-10 10:10 ` [PATCH v1 1/4] arm64: dts: qcom: qrb2210-rb1: Fix UART3 wakeup IRQ storm Praveen Talari
2025-11-10 11:10   ` Konrad Dybcio
2025-11-10 10:10 ` [PATCH v1 2/4] pinctrl: qcom: msm: Fix potential deadlock in pinmux configuration Praveen Talari
2025-11-11  4:08   ` Bjorn Andersson
2025-11-11  5:22     ` Praveen Talari
2025-11-11 15:35       ` Bjorn Andersson
2025-11-12 12:43   ` Linus Walleij
2025-11-10 10:10 ` [PATCH v1 3/4] serial: qcom-geni: Enable PM runtime for serial driver Praveen Talari
2025-11-26 13:01   ` Andy Shevchenko
2025-12-30 18:23   ` Dmitry Baryshkov
2025-12-31  3:00     ` Praveen Talari [this message]
2025-12-31  3:00       ` Dmitry Baryshkov
2025-12-31  5:49         ` Praveen Talari
2025-12-31  5:51           ` Dmitry Baryshkov
2026-01-05 16:12             ` Praveen Talari
2026-01-05 23:41               ` Dmitry Baryshkov
2025-11-10 10:10 ` [PATCH v1 4/4] serial: qcom-geni: Enable Serial on SA8255p Qualcomm platforms Praveen Talari
2025-11-26 13:06   ` Andy Shevchenko
2025-11-14  0:18 ` (subset) [PATCH v1 0/4] " Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c734f2d-59db-4815-bfc6-3823cf3ef37a@oss.qualcomm.com \
    --to=praveen.talari@oss.qualcomm.com \
    --cc=alexey.klimov@linaro.org \
    --cc=andersson@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=djaggi@quicinc.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=jorge.ramirez@oss.qualcomm.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=psodagud@quicinc.com \
    --cc=quic_arandive@quicinc.com \
    --cc=quic_cchiluve@quicinc.com \
    --cc=quic_msavaliy@quicinc.com \
    --cc=quic_shazhuss@quicinc.com \
    --cc=quic_vtanuku@quicinc.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®