BACKPORT: FROMLIST: Bluetooth: btintel: Add Intel devcoredump support

Intercept debug exception events from the controller and put them into
a devcoredump using hci devcoredump APIs. The debug exception contains
data in a TLV format and it will be parsed in userspace.

Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Manish Mandlik <mmandlik@google.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
(am from https://patchwork.kernel.org/patch/12940743)

BACKPORT Notes: Fix btusb_recv_event_intel() and add btintel_coredump()
implementation.

BUG=b:154867197
TEST=echo 1 > /sys/class/bluetooth/hci0/device/coredump and verify that
     the coredump file is generated in /var/spool/crash

Change-Id: I61857ea92be43418b8ce16839f79a4704cc89fa6
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3760829
Tested-by: Manish Mandlik <mmandlik@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@google.com>
Commit-Queue: Manish Mandlik <mmandlik@chromium.org>
3 files changed