1. 07 Dec, 2020 28 commits
  2. 23 Nov, 2020 2 commits
    • Hans de Goede's avatar
      Bluetooth: hci_h5: Add OBDA0623 ACPI HID · e524f252
      Hans de Goede authored
      Add OBDA0623 ACPI HID to the acpi_device_id table. This HID is used
      for the RTL8723BS Bluetooth part on the Acer Switch 10E SW3-016.
      
      BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1665610Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      e524f252
    • Hans de Goede's avatar
      Bluetooth: revert: hci_h5: close serdev device and free hu in h5_close · 5c3b5796
      Hans de Goede authored
      There have been multiple revisions of the patch fix the h5->rx_skb
      leak. Accidentally the first revision (which is buggy) and v5 have
      both been merged:
      
      v1 commit 70f259a3 ("Bluetooth: hci_h5: close serdev device and free
      hu in h5_close");
      v5 commit 855af2d7 ("Bluetooth: hci_h5: fix memory leak in h5_close")
      
      The correct v5 makes changes slightly higher up in the h5_close()
      function, which allowed both versions to get merged without conflict.
      
      The changes from v1 unconditionally frees the h5 data struct, this
      is wrong because in the serdev enumeration case the memory is
      allocated in h5_serdev_probe() like this:
      
              h5 = devm_kzalloc(dev, sizeof(*h5), GFP_KERNEL);
      
      So its lifetime is tied to the lifetime of the driver being bound
      to the serdev and it is automatically freed when the driver gets
      unbound. In the serdev case the same h5 struct is re-used over
      h5_close() and h5_open() calls and thus MUST not be free-ed in
      h5_close().
      
      The serdev_device_close() added to h5_close() is incorrect in the
      same way, serdev_device_close() is called on driver unbound too and
      also MUST no be called from h5_close().
      
      This reverts the changes made by merging v1 of the patch, so that
      just the changes of the correct v5 remain.
      
      Cc: Anant Thazhemadam <anant.thazhemadam@gmail.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      5c3b5796
  3. 11 Nov, 2020 9 commits
  4. 10 Nov, 2020 1 commit
    • Max Chou's avatar
      Bluetooth: btusb: btrtl: Add support for RTL8852A · 0d484db6
      Max Chou authored
      Add the support for RTL8852A BT controller on USB interface.
      The necessary firmware will be submitted to linux-firmware project.
      
      The device info from /sys/kernel/debug/usb/devices as below.
      
      T:  Bus=02 Lev=02 Prnt=02 Port=05 Cnt=01 Dev#= 10 Spd=12   MxCh= 0
      D:  Ver= 1.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
      P:  Vendor=0bda ProdID=c852 Rev= 0.00
      S:  Manufacturer=Realtek
      S:  Product=Bluetooth Radio
      S:  SerialNumber=00e04c000001
      C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
      I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
      E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
      E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
      I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
      E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
      I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
      I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
      I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
      I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
      Signed-off-by: default avatarMax Chou <max.chou@realtek.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      0d484db6