Skip to content
Commit adce573b authored by Vyacheslav Bocharov's avatar Vyacheslav Bocharov Committed by Marcel Holtmann
Browse files

Bluetooth: hci_h5: Add power reset via gpio in h5_btrtl_open



Add power reset for bluetooth via enable-gpios in h5_btrtl_open function.

While testing the RTL8822CS SDIO WiFi/BT adapter, it was found that in
some cases the kernel could not initialize BT firmware. However,
manually resetting the adapter via gpio (off/on sequence) allows it to
start correctly.
Apparently, when the system starts, the adapter is in an undefined state
(including unknown gpio state after starting uboot). A forced reset helps
to initialize the adapter in most cases. It has been found experimentally
that 100 ms is sufficient for a reset.

Signed-off-by: default avatarVyacheslav Bocharov <adeep@lexina.in>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent b050c5bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment