Re: Regression: devcoredump patch broke Realtek usb bluetooth adapter
From: Kirill A. Shutemov
Date: Wed Oct 04 2023 - 07:46:27 EST
On Wed, Oct 04, 2023 at 07:28:45AM +0000, Max Chou wrote:
> Hi! Kirill,
> I guess the root cause is as below.
> ===
> static int btrtl_register_devcoredump_support(struct hci_dev *hdev)
> {
> int err;
>
> err = hci_devcd_register(hdev, btrtl_coredump, btrtl_dmp_hdr, NULL);
>
> return err;
> }
> ===
> If CONFIG_DEV_COREDUMP is not enabled, it would return -EOPNOTSUPP for hci_devcd_register().
> Unfortunately, btrtl_register_devcoredump_support() will return it.
> Finally, -EOPNOSTUPP will be returned for btrtl_setup_realtek().
>
> Could you have the following workaround for the root cause checked?
> Please share dmesg as well. Thanks,
Yes. It works and I see
[ 3.640539] Bluetooth: hci0: RTL: btrtl_register_devcoredump_support(): err = -95
in dmesg. -EOPNOTSUPP indeed.
--
Kiryl Shutsemau / Kirill A. Shutemov