]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btusb: mediatek: return error for failed reg access
authorChris Lu <chris.lu@mediatek.com>
Thu, 4 Jul 2024 06:01:10 +0000 (14:01 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 14:11:39 +0000 (10:11 -0400)
commit3dcb122b30643444352ff4b9aa16367dd24d7571
tree452daa435e962064523614efcaf8f2e541b258a6
parentbe71dfb9ad2042bba713975ef50c3a5b0429f1d2
Bluetooth: btusb: mediatek: return error for failed reg access

Update the code to immediately return an error code if accessing a
related register fails. This ensures that our desired logic for
subsequent register operations is maintained and allows us to promptly
catch any unexpected errors.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c