summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIsmail Tarim <ismailtarim7@gmail.com>2026-08-15 14:56:24 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-08-17 14:11:55 -0400
commit54c03e6bc71882a46f6f4fe2fd09409950c7c814 (patch)
treed17d49079fd85381e5df18205d6c57ecc7460c8c /scripts
parent771e812f94b320614147b7cd64d0a7b1186933ea (diff)
downloadlinux-next-54c03e6bc71882a46f6f4fe2fd09409950c7c814.tar.gz
linux-next-54c03e6bc71882a46f6f4fe2fd09409950c7c814.zip
Bluetooth: btmtk: Do not discard the subsystem reset timeout
When the MTK_BT_RST_DONE poll times out, btmtk_usb_subsys_reset() logs "Reset timeout" and keeps the error in err, but err is then overwritten by the return value of the following btmtk_usb_id_get() call, so the timeout is never reported to the caller. Commit 25b6d7593a3a ("Bluetooth: btmtk: introduce btmtk reset work") discarded the return value of the chip id read, so the function returned the timeout error as intended. Commit 3dcb122b3064 ("Bluetooth: btusb: mediatek: return error for failed reg access") started assigning err at that call and silently dropped it. Keep the timeout in a separate variable and return it, restoring the original behaviour without changing the control flow. Fixes: 3dcb122b3064 ("Bluetooth: btusb: mediatek: return error for failed reg access") Signed-off-by: Ismail Tarim <ismailtarim7@gmail.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions