lkml.org 
[lkml]   [2022]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 2/2] Bluetooth: hci_h5: Add power reset via gpio in h5_btrtl_open
From
Date
Hi!

19.01.2022 22:32, Marcel Holtmann wrote:
> Hi Vyacheslav,
>
>> Add power reset via enable-gpios in h5_btrtl_open function.
>
> this is too sparse commit message. Add explation and if possible also references on why that is needed.

While testing the RTL8822CS SDIO WiFi/BT adapter, I found that in some
cases the kernel could not initialize it. However, manually resetting
the adapter via gpio allows it to start correctly.
Apparently at system start the adapter is in an undefined state
(including the unknown state of gpio after starting uboot). A forced
reset helps to initialize the adapter in most cases. Experimentally it
was found that 100ms is enough to reset.

Since I am new to wireless drivers feel free correct me.

--
Vyacheslav Bocharov

\
 
 \ /
  Last update: 2022-01-20 07:15    [W:0.332 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site