* [PATCH] Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
@ 2024-04-15 14:19 Peter Tsao
2024-04-15 14:56 ` bluez.test.bot
2024-04-16 15:10 ` [PATCH] " patchwork-bot+bluetooth
0 siblings, 2 replies; 5+ messages in thread
From: Peter Tsao @ 2024-04-15 14:19 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hedberg, Luiz Von Dentz
Cc: Sean Wang, Deren Wu, Chris Lu, Aaron Hou, Steve Lee,
linux-bluetooth, linux-kernel, linux-mediatek, Peter Tsao
Because both MT7920 and MT7921 use the same chip ID.
We use the 8th bit of fw_flavor to distingush MT7920.
The original patch made a mistake to check whole fw_flavor,
that makes the condition both true (dev_id == 0x7961 && fw_flavor),
and makes MT7921 flow wrong.
In this patch, we correct the flow to get the 8th bit value for MT7920.
And the patch is verified pass with both MT7920 and MT7921.
Signed-off-by: Peter Tsao <peter.tsao@mediatek.com>
---
drivers/bluetooth/btusb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 4c0cc13adb47..8bede0a33566 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -3123,6 +3123,7 @@ static int btusb_mtk_setup(struct hci_dev *hdev)
bt_dev_err(hdev, "Failed to get fw flavor (%d)", err);
return err;
}
+ fw_flavor = (fw_flavor & 0x00000080) >> 7;
}
mediatek = hci_get_priv(hdev);
--
2.18.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
2024-04-15 14:19 [PATCH] Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921 Peter Tsao
@ 2024-04-15 14:56 ` bluez.test.bot
2024-04-16 15:10 ` [PATCH] " patchwork-bot+bluetooth
1 sibling, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2024-04-15 14:56 UTC (permalink / raw)
To: linux-bluetooth, peter.tsao
[-- Attachment #1: Type: text/plain, Size: 2481 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=844667
---Test result---
Test Summary:
CheckPatch PASS 0.60 seconds
GitLint PASS 0.28 seconds
SubjectPrefix PASS 0.10 seconds
BuildKernel PASS 30.59 seconds
CheckAllWarning PASS 34.12 seconds
CheckSparse PASS 39.61 seconds
CheckSmatch FAIL 37.61 seconds
BuildKernel32 PASS 30.35 seconds
TestRunnerSetup PASS 541.29 seconds
TestRunner_l2cap-tester PASS 20.82 seconds
TestRunner_iso-tester PASS 33.08 seconds
TestRunner_bnep-tester PASS 4.85 seconds
TestRunner_mgmt-tester PASS 111.09 seconds
TestRunner_rfcomm-tester PASS 7.57 seconds
TestRunner_sco-tester PASS 15.20 seconds
TestRunner_ioctl-tester PASS 7.91 seconds
TestRunner_mesh-tester PASS 6.02 seconds
TestRunner_smp-tester PASS 6.93 seconds
TestRunner_userchan-tester PASS 5.04 seconds
IncrementalBuild PASS 28.40 seconds
Details
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: net/bluetooth/hci_core.o] Error 139
make[4]: *** Deleting file 'net/bluetooth/hci_core.o'
make[3]: *** [scripts/Makefile.build:485: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: net] Error 2
make[2]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bcm203x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bcm203x.o'
make[4]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bpa10x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bpa10x.o'
make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
2024-04-15 14:19 [PATCH] Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921 Peter Tsao
2024-04-15 14:56 ` bluez.test.bot
@ 2024-04-16 15:10 ` patchwork-bot+bluetooth
2024-05-08 8:33 ` Linux regression tracking (Thorsten Leemhuis)
1 sibling, 1 reply; 5+ messages in thread
From: patchwork-bot+bluetooth @ 2024-04-16 15:10 UTC (permalink / raw)
To: Peter Tsao
Cc: marcel, johan.hedberg, luiz.dentz, sean.wang, deren.Wu, chris.lu,
aaron.hou, steve.lee, linux-bluetooth, linux-kernel,
linux-mediatek
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 15 Apr 2024 22:19:22 +0800 you wrote:
> Because both MT7920 and MT7921 use the same chip ID.
> We use the 8th bit of fw_flavor to distingush MT7920.
> The original patch made a mistake to check whole fw_flavor,
> that makes the condition both true (dev_id == 0x7961 && fw_flavor),
> and makes MT7921 flow wrong.
>
> In this patch, we correct the flow to get the 8th bit value for MT7920.
> And the patch is verified pass with both MT7920 and MT7921.
>
> [...]
Here is the summary with links:
- Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
https://git.kernel.org/bluetooth/bluetooth-next/c/263296438807
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] 5+ messages in thread
* Re: [PATCH] Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
2024-04-16 15:10 ` [PATCH] " patchwork-bot+bluetooth
@ 2024-05-08 8:33 ` Linux regression tracking (Thorsten Leemhuis)
2024-05-08 14:18 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 5+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2024-05-08 8:33 UTC (permalink / raw)
To: luiz.dentz
Cc: marcel, johan.hedberg, sean.wang, deren.Wu, chris.lu, aaron.hou,
steve.lee, linux-bluetooth, linux-kernel, linux-mediatek,
patchwork-bot+bluetooth, Peter Tsao,
Linux kernel regressions list
On 16.04.24 17:10, 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>:
>
> On Mon, 15 Apr 2024 22:19:22 +0800 you wrote:
>> Because both MT7920 and MT7921 use the same chip ID.
>> We use the 8th bit of fw_flavor to distingush MT7920.
>> The original patch made a mistake to check whole fw_flavor,
>> that makes the condition both true (dev_id == 0x7961 && fw_flavor),
>> and makes MT7921 flow wrong.
>>
>> In this patch, we correct the flow to get the 8th bit value for MT7920.
>> And the patch is verified pass with both MT7920 and MT7921.
>>
>> [...]
>
> Here is the summary with links:
> - Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
> https://git.kernel.org/bluetooth/bluetooth-next/c/263296438807
Hi! 6.9 is only days close and this is fixing a 6.9 regression, so allow
me to quickly ask: do you still plan to submit this for mainline merge
soon? Or did you already and I just missed it? Ciao, Thorsten
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
2024-05-08 8:33 ` Linux regression tracking (Thorsten Leemhuis)
@ 2024-05-08 14:18 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2024-05-08 14:18 UTC (permalink / raw)
To: Linux regressions mailing list
Cc: marcel, johan.hedberg, sean.wang, deren.Wu, chris.lu, aaron.hou,
steve.lee, linux-bluetooth, linux-kernel, linux-mediatek,
patchwork-bot+bluetooth, Peter Tsao
Hi,
On Wed, May 8, 2024 at 4:34 AM Linux regression tracking (Thorsten
Leemhuis) <regressions@leemhuis.info> wrote:
>
> On 16.04.24 17:10, 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>:
> >
> > On Mon, 15 Apr 2024 22:19:22 +0800 you wrote:
> >> Because both MT7920 and MT7921 use the same chip ID.
> >> We use the 8th bit of fw_flavor to distingush MT7920.
> >> The original patch made a mistake to check whole fw_flavor,
> >> that makes the condition both true (dev_id == 0x7961 && fw_flavor),
> >> and makes MT7921 flow wrong.
> >>
> >> In this patch, we correct the flow to get the 8th bit value for MT7920.
> >> And the patch is verified pass with both MT7920 and MT7921.
> >>
> >> [...]
> >
> > Here is the summary with links:
> > - Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
> > https://git.kernel.org/bluetooth/bluetooth-next/c/263296438807
>
> Hi! 6.9 is only days close and this is fixing a 6.9 regression, so allow
> me to quickly ask: do you still plan to submit this for mainline merge
> soon? Or did you already and I just missed it? Ciao, Thorsten
It wasn't marked with Fixes or stable though which is what I usually
use as an indicator to backport.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-05-08 14:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-15 14:19 [PATCH] Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921 Peter Tsao
2024-04-15 14:56 ` bluez.test.bot
2024-04-16 15:10 ` [PATCH] " patchwork-bot+bluetooth
2024-05-08 8:33 ` Linux regression tracking (Thorsten Leemhuis)
2024-05-08 14:18 ` Luiz Augusto von Dentz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox