Bluetooth: hci_qca: Avoid setup failure on missing rampatch
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 6 Nov 2017 11:16:56 +0000 (12:16 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 12 Dec 2017 23:28:40 +0000 (00:28 +0100)
commitba8f3597900291a93604643017fff66a14546015
tree3252755da6d695d8ced6a4e9cc63fa2175441f3f
parent1313f05419f6236b6f10c75482122a18cead6272
Bluetooth: hci_qca: Avoid setup failure on missing rampatch

Assuming that the original code idea was to enable in-band sleeping
only if the setup_rome method returns succes and run in 'standard'
mode otherwise, we should not return setup_rome return value which
makes qca_setup fail if no rampatch/nvm file found.

This fixes BT issue on the dragonboard-820C p4 which includes the
following QCA controller:
hci0: Product:0x00000008
hci0: Patch  :0x00000111
hci0: ROM    :0x00000302
hci0: SOC    :0x00000044

Since there is no rampatch for this controller revision, just make
it work as is.

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