Bluetooth: btrsi: fix bt tx timeout issue
authorSanjay Kumar Konduri <sanjay.konduri@redpinesignals.com>
Mon, 3 Sep 2018 05:57:46 +0000 (11:27 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Sep 2018 10:53:40 +0000 (12:53 +0200)
commit7cbfd1e2aad410d96fa6162aeb3f9cff1fecfc58
treee775d94b13116e49bcfe8c76209985eb9634f082
parenta5c3021bb62b970713550db3f7fd08aa70665d7e
Bluetooth: btrsi: fix bt tx timeout issue

observed sometimes data is coming with unaligned address from kernel
BT stack. If unaligned address is passed, some data in payload is
stripped when packet is loading to firmware and this results, BT
connection timeout is happening.

sh# hciconfig hci0 up
Can't init device hci0: hci0 command 0x0c03 tx timeout

Fixed this by moving the data to aligned address.

Signed-off-by: Sanjay Kumar Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btrsi.c