public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>,
	BlueZ development <linux-bluetooth@vger.kernel.org>,
	Kiran K <kiran.k@intel.com>
Subject: Re: Connection issue since 81b3e33bb054 ("Bluetooth: btusb: Don't fail external suspend requests")
Date: Fri, 11 Oct 2024 21:43:52 +0200	[thread overview]
Message-ID: <020c69d7-ad86-44d3-a508-22ff949ee7ec@gmail.com> (raw)
In-Reply-To: <CABBYNZ+kcwgPvCNFZHZZok_a6ZNXEPNABNefb4iaSNDNm4wPVA@mail.gmail.com>

On 11.10.2024 21:05, Luiz Augusto von Dentz wrote:
> Hi Heiner,
> 
> On Fri, Oct 11, 2024 at 2:52 PM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>
>> On 11.10.2024 18:36, Luiz Augusto von Dentz wrote:
>>> Hi Heiner,
>>>
>>> On Fri, Oct 11, 2024 at 6:49 AM Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>>>
>>>> Since linux-next from Oct 4th my bt speaker fails to connect if I switch it on.
>>>> It just hangs trying. Manually connecting it via bluetoothctl works though.
>>>> With this patch reverted it auto-connects again.
>>>> If you need additional details, please let me know.
>>>
>>> I suspect something is trying to suspend the controller then, it
>>> shouldn't be USB auto-suspend since that should behave as it
>>> previously but if there is something externally (aka. userspace)
>>> trying to suspend then it will force it to suspend.
>>>
>> On the host side it's a combined WiFi/BT PCIe adapter (RTL8822CE).
>> Runtime PM is enabled, so this may kick in. I'm not aware of any
>> userspace tool which may try to suspend the WiFi/BT adapter.
>> Disabling Runtime PM may be a workaround, but I don't think that's
>> the actual solution.
>>
> 
> Well I assume it still using USB as transport, not PCIe, otherwise it
> wouldn't be using btusb. Regarding runtime PM, I assume it still means

Right, it's a M.2 adapter which utilizes PCIe and USB.

> PMSG_IS_AUTO Documentation/driver-api/usb/power-management.rst:
> 
>      'External suspend calls should never be allowed to fail in this way,
>      only autosuspend calls.  The driver can tell them apart by applying
>      the :c:func:`PMSG_IS_AUTO` macro to the message argument to the
>      ``suspend`` method; it will return True for internal PM events'
> 


      parent reply	other threads:[~2024-10-11 19:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-11 10:49 Connection issue since 81b3e33bb054 ("Bluetooth: btusb: Don't fail external suspend requests") Heiner Kallweit
2024-10-11 16:36 ` Luiz Augusto von Dentz
2024-10-11 18:52   ` Heiner Kallweit
2024-10-11 19:05     ` Luiz Augusto von Dentz
2024-10-11 19:26       ` Luiz Augusto von Dentz
2024-10-11 19:44         ` Heiner Kallweit
2024-10-11 20:06           ` Luiz Augusto von Dentz
2024-10-11 20:56             ` Heiner Kallweit
2024-10-11 22:19               ` Luiz Augusto von Dentz
2024-10-12 21:22                 ` Heiner Kallweit
2024-10-11 19:43       ` Heiner Kallweit [this message]

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=020c69d7-ad86-44d3-a508-22ff949ee7ec@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=kiran.k@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=luiz.von.dentz@intel.com \
    /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