Bluetooth: btqca: Add AR3002 rampatch support
authorLoic Poulain <loic.poulain@linaro.org>
Thu, 26 Apr 2018 11:13:27 +0000 (13:13 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 May 2018 04:37:52 +0000 (06:37 +0200)
commit6e03126adda345c1c04c5029acbc92063867aea2
treed5d2ec3a9925be3e947144e404b3933f3481e182
parentd6ee6ad774a986d4faaa794a0980e7c50ed359c6
Bluetooth: btqca: Add AR3002 rampatch support

This patch adds rampatch download compatibility for ROME >= 3.2.
Starting with ROME 3.2, the 'download mode' field of the rampatch
header indicates if the controller acknowledges (or not) the received
rampatch segments. If not, we need to send all the segments without
expecting any event from the controller (except for the last segment).
Goal is (I assume) to speed-up rampatch download.

This fixes BT on Dragonboard-600c P2 which includes the following BT
controller:

hci0: ROME Patch Version Request
hci0: Product:0x00000008
hci0: Patch  :0x00000111
hci0: ROM    :0x00000302
hci0: SOC    :0x00000023

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btqca.c
drivers/bluetooth/btqca.h