<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/bluetooth/btusb.c, branch linux-5.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-02-11T12:36:40Z</updated>
<entry>
<title>Bluetooth: btusb: Disable runtime suspend on Realtek devices</title>
<updated>2020-02-11T12:36:40Z</updated>
<author>
<name>Kai-Heng Feng</name>
</author>
<published>2019-12-05T09:07:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ba6c6ef34e228bf25c967011f02e1ba04d6787d'/>
<id>urn:sha1:9ba6c6ef34e228bf25c967011f02e1ba04d6787d</id>
<content type='text'>
commit 7ecacafc240638148567742cca41aa7144b4fe1e upstream.

After commit 9e45524a0111 ("Bluetooth: btusb: Fix suspend issue for
Realtek devices") both WiFi and Bluetooth stop working after reboot:
[   34.322617] usb 1-8: reset full-speed USB device number 3 using xhci_hcd
[   34.450401] usb 1-8: device descriptor read/64, error -71
[   34.694375] usb 1-8: device descriptor read/64, error -71
...
[   44.599111] rtw_pci 0000:02:00.0: failed to poll offset=0x5 mask=0x3 value=0x0
[   44.599113] rtw_pci 0000:02:00.0: mac power on failed
[   44.599114] rtw_pci 0000:02:00.0: failed to power on mac
[   44.599114] rtw_pci 0000:02:00.0: leave idle state failed
[   44.599492] rtw_pci 0000:02:00.0: failed to leave ips state
[   44.599493] rtw_pci 0000:02:00.0: failed to leave idle state

That commit removed USB_QUIRK_RESET_RESUME, which not only resets the USB
device after resume, it also prevents the device from being runtime
suspended by USB core. My experiment shows if the Realtek btusb device
ever runtime suspends once, the entire wireless module becomes useless
after reboot.

So let's explicitly disable runtime suspend on Realtek btusb device for
now.

Fixes: 9e45524a0111 ("Bluetooth: btusb: Fix suspend issue for Realtek devices")
Signed-off-by: Kai-Heng Feng &lt;kai.heng.feng@canonical.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Bluetooth: btusb: fix memory leak on fw</title>
<updated>2020-02-11T12:36:40Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2019-11-29T17:36:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=965b6b8ea4c169067beb4e53c4698628e735233e'/>
<id>urn:sha1:965b6b8ea4c169067beb4e53c4698628e735233e</id>
<content type='text'>
commit 3168c19d7eb17a0108a3b60ad8e8c1b18ea05c63 upstream.

Currently the error return path when the call to btusb_mtk_hci_wmt_sync
fails does not free fw.  Fix this by returning via the error_release_fw
label that performs the free'ing.

Addresses-Coverity: ("Resource leak")
Fixes: a1c49c434e15 ("Bluetooth: btusb: Add protocol support for MediaTek MT7668U USB devices")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Bluetooth: btusb: fix non-atomic allocation in completion handler</title>
<updated>2020-02-01T09:32:51Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-11-28T18:24:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8c0d3d96d646ebacdab87b65af3e0ca42b00d2a4'/>
<id>urn:sha1:8c0d3d96d646ebacdab87b65af3e0ca42b00d2a4</id>
<content type='text'>
commit 22cc6b7a1dbb58da4afc539d9b7d470b23a25eea upstream.

USB completion handlers are called in atomic context and must
specifically not allocate memory using GFP_KERNEL.

Fixes: a1c49c434e15 ("Bluetooth: btusb: Add protocol support for MediaTek MT7668U USB devices")
Cc: stable &lt;stable@vger.kernel.org&gt;     # 5.3
Cc: Sean Wang &lt;sean.wang@mediatek.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Bluetooth: btusb: fix PM leak in error case of setup</title>
<updated>2019-11-15T08:06:38Z</updated>
<author>
<name>Oliver Neukum</name>
</author>
<published>2019-11-14T15:01:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d44a6fd0775e6215e836423e27f8eedf8c871ea'/>
<id>urn:sha1:3d44a6fd0775e6215e836423e27f8eedf8c871ea</id>
<content type='text'>
If setup() fails a reference for runtime PM has already
been taken. Proper use of the error handling in btusb_open()is needed.
You cannot just return.

Fixes: ace31982585a3 ("Bluetooth: btusb: Add setup callback for chip init on USB")
Signed-off-by: Oliver Neukum &lt;oneukum@suse.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
</entry>
<entry>
<title>Bluetooth: btusb: Trigger Intel FW download error recovery</title>
<updated>2019-10-17T07:23:47Z</updated>
<author>
<name>Amit K Bag</name>
</author>
<published>2019-10-17T08:22:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9a2562f4918c557f664fbba215122aca3cbb2fe'/>
<id>urn:sha1:b9a2562f4918c557f664fbba215122aca3cbb2fe</id>
<content type='text'>
Sometimes during FW data download stage, in case of an error is
encountered the controller device could not be recovered. To recover
from such failures send Intel hard Reset to re-trigger FW download in
following error scenarios:

1. Intel Read version command error
2. Firmware download timeout
3. Failure in Intel Soft Reset for switching to operational FW
4. Boot timeout for switching to operaional FW

Signed-off-by: Raghuram Hegde &lt;raghuram.hegde@intel.com&gt;
Signed-off-by: Chethan T N &lt;chethan.tumkur.narayan@intel.com&gt;
Signed-off-by: Amit K Bag &lt;amit.k.bag@intel.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
</entry>
<entry>
<title>Bluetooth: btusb: Use IS_ENABLED instead of #ifdef</title>
<updated>2019-10-16T17:26:40Z</updated>
<author>
<name>Marcel Holtmann</name>
</author>
<published>2019-09-27T06:48:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c0a21a5294a5a220e7f9d6d1256f83d2fbfc4500'/>
<id>urn:sha1:c0a21a5294a5a220e7f9d6d1256f83d2fbfc4500</id>
<content type='text'>
For the different hardware support options, it is better to use
IS_ENABLED check. Let the compiler do the needed optimizations.

Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Johan Hedberg &lt;johan.hedberg@intel.com&gt;
</content>
</entry>
<entry>
<title>Bluetooth: btusb: avoid unused function warning</title>
<updated>2019-10-16T17:26:40Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2019-09-18T19:59:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=42d22098127d6384f789107f59caae87d7520fc4'/>
<id>urn:sha1:42d22098127d6384f789107f59caae87d7520fc4</id>
<content type='text'>
The btusb_rtl_cmd_timeout() function is used inside of an
ifdef, leading to a warning when this part is hidden
from the compiler:

drivers/bluetooth/btusb.c:530:13: error: unused function 'btusb_rtl_cmd_timeout' [-Werror,-Wunused-function]

Use an IS_ENABLED() check instead so the compiler can see
the code and then discard it silently.

Fixes: d7ef0d1e3968 ("Bluetooth: btusb: Use cmd_timeout to reset Realtek device")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
</entry>
<entry>
<title>Bluetooth: btusb: print FW version after FW download</title>
<updated>2019-10-16T17:26:40Z</updated>
<author>
<name>Amit K Bag</name>
</author>
<published>2019-09-27T02:51:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=74ffdf22b3acf8961b6904dda350135e9aaeb445'/>
<id>urn:sha1:74ffdf22b3acf8961b6904dda350135e9aaeb445</id>
<content type='text'>
After FW download there is no print to confirm the current
FW version. Add print to check FW version incase of FW download.

Signed-off-by: Amit K Bag &lt;amit.k.bag@intel.com&gt;
Signed-off-by: Yoni Shavit &lt;yshavit@chromium.org&gt;
Signed-off-by: Chethan Tumkur Narayan &lt;chethan.tumkur.narayan@intel.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2019-09-15T12:17:27Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2019-09-15T12:17:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa2eaa8c272a3211dec07ce9c6c863a7e355c10e'/>
<id>urn:sha1:aa2eaa8c272a3211dec07ce9c6c863a7e355c10e</id>
<content type='text'>
Minor overlapping changes in the btusb and ixgbe drivers.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Bluetooth: btusb: Use cmd_timeout to reset Realtek device</title>
<updated>2019-09-05T15:32:28Z</updated>
<author>
<name>Alex Lu</name>
</author>
<published>2019-09-05T02:36:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7ef0d1e39685b38c97b30daa6de0d50df004839'/>
<id>urn:sha1:d7ef0d1e39685b38c97b30daa6de0d50df004839</id>
<content type='text'>
Realtek Bluetooth controller provides a BT_DIS reset pin for hardware
reset of it. The cmd_timeout is helpful on Realtek bluetooth controller
where the firmware gets stuck.

Signed-off-by: Alex Lu &lt;alex_lu@realsil.com.cn&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
</entry>
</feed>
