* [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register()
@ 2023-10-06 2:47 max.chou
2023-10-06 3:41 ` bluez.test.bot
2023-10-07 1:00 ` [PATCH] " patchwork-bot+bluetooth
0 siblings, 2 replies; 6+ messages in thread
From: max.chou @ 2023-10-06 2:47 UTC (permalink / raw)
To: marcel
Cc: johan.hedberg, luiz.dentz, linux-bluetooth, linux-kernel, alex_lu,
hildawu, max.chou, regressions, kirill, bagasdotme, linux
From: Max Chou <max.chou@realtek.com>
If CONFIG_DEV_COREDUMP was not set, it would return -EOPNOTSUPP for
hci_devcd_register().
In this commit, ignore error return for hci_devcd_register().
Otherwise Bluetooth initialization will be failed.
Fixes: 044014ce85a1 ("Bluetooth: btrtl: Add Realtek devcoredump support")
Cc: stable@vger.kernel.org
Reported-by: Kirill A. Shutemov <kirill@shutemov.name>
Closes: https://lore.kernel.org/all/ZRyqIn0_qqEFBPdy@debian.me/T/
Signed-off-by: Max Chou <max.chou@realtek.com>
---
drivers/bluetooth/btrtl.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c
index 84c2c2e1122f..277d039ecbb4 100644
--- a/drivers/bluetooth/btrtl.c
+++ b/drivers/bluetooth/btrtl.c
@@ -962,13 +962,10 @@ static void btrtl_dmp_hdr(struct hci_dev *hdev, struct sk_buff *skb)
skb_put_data(skb, buf, strlen(buf));
}
-static int btrtl_register_devcoredump_support(struct hci_dev *hdev)
+static void btrtl_register_devcoredump_support(struct hci_dev *hdev)
{
- int err;
+ hci_devcd_register(hdev, btrtl_coredump, btrtl_dmp_hdr, NULL);
- err = hci_devcd_register(hdev, btrtl_coredump, btrtl_dmp_hdr, NULL);
-
- return err;
}
void btrtl_set_driver_name(struct hci_dev *hdev, const char *driver_name)
@@ -1255,8 +1252,7 @@ int btrtl_download_firmware(struct hci_dev *hdev,
}
done:
- if (!err)
- err = btrtl_register_devcoredump_support(hdev);
+ btrtl_register_devcoredump_support(hdev);
return err;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* RE: Bluetooth: btrtl: Ignore error return for hci_devcd_register()
2023-10-06 2:47 [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register() max.chou
@ 2023-10-06 3:41 ` bluez.test.bot
2023-10-07 1:00 ` [PATCH] " patchwork-bot+bluetooth
1 sibling, 0 replies; 6+ messages in thread
From: bluez.test.bot @ 2023-10-06 3:41 UTC (permalink / raw)
To: linux-bluetooth, max.chou
[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=790472
---Test result---
Test Summary:
CheckPatch PASS 0.73 seconds
GitLint PASS 0.33 seconds
SubjectPrefix PASS 0.10 seconds
BuildKernel PASS 40.12 seconds
CheckAllWarning PASS 45.09 seconds
CheckSparse PASS 55.18 seconds
CheckSmatch PASS 137.56 seconds
BuildKernel32 PASS 39.90 seconds
TestRunnerSetup PASS 604.57 seconds
TestRunner_l2cap-tester PASS 35.76 seconds
TestRunner_iso-tester PASS 64.91 seconds
TestRunner_bnep-tester PASS 12.59 seconds
TestRunner_mgmt-tester PASS 256.81 seconds
TestRunner_rfcomm-tester PASS 18.53 seconds
TestRunner_sco-tester PASS 21.77 seconds
TestRunner_ioctl-tester PASS 21.13 seconds
TestRunner_mesh-tester PASS 15.45 seconds
TestRunner_smp-tester PASS 16.27 seconds
TestRunner_userchan-tester PASS 13.01 seconds
IncrementalBuild PASS 36.47 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register()
2023-10-06 2:47 [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register() max.chou
2023-10-06 3:41 ` bluez.test.bot
@ 2023-10-07 1:00 ` patchwork-bot+bluetooth
2023-10-16 8:07 ` Linux regression tracking (Thorsten Leemhuis)
1 sibling, 1 reply; 6+ messages in thread
From: patchwork-bot+bluetooth @ 2023-10-07 1:00 UTC (permalink / raw)
To: Max Chou
Cc: marcel, johan.hedberg, luiz.dentz, linux-bluetooth, linux-kernel,
alex_lu, hildawu, regressions, kirill, bagasdotme, linux
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Fri, 6 Oct 2023 10:47:07 +0800 you wrote:
> From: Max Chou <max.chou@realtek.com>
>
> If CONFIG_DEV_COREDUMP was not set, it would return -EOPNOTSUPP for
> hci_devcd_register().
> In this commit, ignore error return for hci_devcd_register().
> Otherwise Bluetooth initialization will be failed.
>
> [...]
Here is the summary with links:
- Bluetooth: btrtl: Ignore error return for hci_devcd_register()
https://git.kernel.org/bluetooth/bluetooth-next/c/3ef20de6b2a8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register()
2023-10-07 1:00 ` [PATCH] " patchwork-bot+bluetooth
@ 2023-10-16 8:07 ` Linux regression tracking (Thorsten Leemhuis)
2023-10-16 17:20 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 6+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-10-16 8:07 UTC (permalink / raw)
To: patchwork-bot+bluetooth, Max Chou
Cc: marcel, johan.hedberg, luiz.dentz, linux-bluetooth, linux-kernel,
alex_lu, hildawu, regressions, kirill, bagasdotme,
Linux kernel regressions list
On 07.10.23 03:00, patchwork-bot+bluetooth@kernel.org wrote:
>
> This patch was applied to bluetooth/bluetooth-next.git (master)
> by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
Hi Luiz. Many thx for picking this up. From the branch name is sounds
like you plan to submit this change in the next merge window (If I
misread the signs feel free to ignore this mail!). Wouldn't it be better
to merge this in this cycle, as the commit afaics fixes a regression
that was only introduced this cycle?
Ciao, Thorsten
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register()
2023-10-16 8:07 ` Linux regression tracking (Thorsten Leemhuis)
@ 2023-10-16 17:20 ` Luiz Augusto von Dentz
2023-10-17 6:04 ` Linux regression tracking (Thorsten Leemhuis)
0 siblings, 1 reply; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2023-10-16 17:20 UTC (permalink / raw)
To: Linux regressions mailing list
Cc: patchwork-bot+bluetooth, Max Chou, marcel, johan.hedberg,
linux-bluetooth, linux-kernel, alex_lu, hildawu, kirill,
bagasdotme
Hi,
On Mon, Oct 16, 2023 at 1:07 AM Linux regression tracking (Thorsten
Leemhuis) <regressions@leemhuis.info> wrote:
>
> On 07.10.23 03:00, patchwork-bot+bluetooth@kernel.org wrote:
> >
> > This patch was applied to bluetooth/bluetooth-next.git (master)
> > by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
>
> Hi Luiz. Many thx for picking this up. From the branch name is sounds
> like you plan to submit this change in the next merge window (If I
> misread the signs feel free to ignore this mail!). Wouldn't it be better
> to merge this in this cycle, as the commit afaics fixes a regression
> that was only introduced this cycle?
It is part of the for-net pull-request:
https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git/tag/?h=for-net-2023-10-13
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register()
2023-10-16 17:20 ` Luiz Augusto von Dentz
@ 2023-10-17 6:04 ` Linux regression tracking (Thorsten Leemhuis)
0 siblings, 0 replies; 6+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-10-17 6:04 UTC (permalink / raw)
To: Luiz Augusto von Dentz, Linux regressions mailing list
Cc: patchwork-bot+bluetooth, Max Chou, marcel, johan.hedberg,
linux-bluetooth, linux-kernel, alex_lu, hildawu, kirill,
bagasdotme
On 16.10.23 19:20, Luiz Augusto von Dentz wrote:
>
> On Mon, Oct 16, 2023 at 1:07 AM Linux regression tracking (Thorsten
> Leemhuis) <regressions@leemhuis.info> wrote:
>>
>> On 07.10.23 03:00, patchwork-bot+bluetooth@kernel.org wrote:
>>>
>>> This patch was applied to bluetooth/bluetooth-next.git (master)
>>> by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
>>
>> Hi Luiz. Many thx for picking this up. From the branch name is sounds
>> like you plan to submit this change in the next merge window (If I
>> misread the signs feel free to ignore this mail!). Wouldn't it be better
>> to merge this in this cycle, as the commit afaics fixes a regression
>> that was only introduced this cycle?
>
> It is part of the for-net pull-request:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git/tag/?h=for-net-2023-10-13
Ahh, great -- and sorry, the branch name in the "was applied to
bluetooth/bluetooth-next.git" got me on the wrong track.
Ciao, Thorsten
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-10-17 6:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-06 2:47 [PATCH] Bluetooth: btrtl: Ignore error return for hci_devcd_register() max.chou
2023-10-06 3:41 ` bluez.test.bot
2023-10-07 1:00 ` [PATCH] " patchwork-bot+bluetooth
2023-10-16 8:07 ` Linux regression tracking (Thorsten Leemhuis)
2023-10-16 17:20 ` Luiz Augusto von Dentz
2023-10-17 6:04 ` Linux regression tracking (Thorsten Leemhuis)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).