[PW_SID:1071561] Bluetooth: btmtk: add USB autopm support to btmtk_usb_setup()#3395
[PW_SID:1071561] Bluetooth: btmtk: add USB autopm support to btmtk_usb_setup()#3395BluezTestBot wants to merge 2 commits intoworkflowfrom
Conversation
This patch adds workflow files for ci: [sync.yml] - The workflow file for scheduled work - Sync the repo with upstream repo and rebase the workflow branch - Review the patches in the patchwork and creates the PR if needed [ci.yml] - The workflow file for CI tasks - Run CI tests when PR is created Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
btmtk_usb_setup() accesses the device without first ensuring that it
is awake, so it may fail if the device has been autosuspended, e.g.:
Bluetooth: hci0: Failed to get device id (-108)
Bluetooth: hci0: Failed to get fw version (-108)
Add usb_autopm_get_interface()/usb_autopm_put_interface() around the
entire setup process, mirroring what commit 67dba2c ("Bluetooth:
btmtk: Fix failed to send func ctrl for MediaTek devices.") already
did for btmtk_usb_shutdown().
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217475
Signed-off-by: Alberto Garcia <berto@igalia.com>
|
CheckPatch |
|
GitLint |
|
SubjectPrefix |
|
BuildKernel |
|
CheckAllWarning |
|
CheckSparse |
|
BuildKernel32 |
|
TestRunnerSetup |
|
TestRunner_l2cap-tester |
|
TestRunner_iso-tester |
|
TestRunner_bnep-tester |
|
TestRunner_mgmt-tester |
|
TestRunner_rfcomm-tester |
|
TestRunner_sco-tester |
|
TestRunner_ioctl-tester |
|
TestRunner_mesh-tester |
|
TestRunner_smp-tester |
|
TestRunner_userchan-tester |
|
IncrementalBuild |
c6e7062 to
0e0806d
Compare
0e0806d to
f465113
Compare
btmtk_usb_setup() accesses the device without first ensuring that it
is awake, so it may fail if the device has been autosuspended, e.g.:
Add usb_autopm_get_interface()/usb_autopm_put_interface() around the
entire setup process, mirroring what commit 67dba2c ("Bluetooth:
btmtk: Fix failed to send func ctrl for MediaTek devices.") already
did for btmtk_usb_shutdown().
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217475
Signed-off-by: Alberto Garcia berto@igalia.com
drivers/bluetooth/btmtk.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)