From 6fa553bd2fd4f9e4a8948dbf5009ea75ccd1cd40 Mon Sep 17 00:00:00 2001 From: NaveenKumar Date: Thu, 28 Apr 2011 19:12:01 +0530 Subject: [PATCH] Bluetooth: Notify Bluesleep driver about HCI send frame. Bluesleep driver, out-of-band sleep protocol, needs to be notified in case of MSM initiated datatransfer to wakeup BTS chip. This notification is required to turn on UART clocks. This change was missing in the .38 kernel which is vital for Bluetooth to work in 7x27. Change-Id: I6e2004c13d140901c9bdee7a98ca43e2f9c07dc3 Signed-off-by: NaveenKumar --- include/net/bluetooth/hci.h | 1 + net/bluetooth/hci_core.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 09f5ac407b9..73816c36bad 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -37,6 +37,7 @@ #define HCI_DEV_DOWN 4 #define HCI_DEV_SUSPEND 5 #define HCI_DEV_RESUME 6 +#define HCI_DEV_WRITE 7 /* HCI notify events */ #define HCI_NOTIFY_CONN_ADD 1 diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index bcf66f8ebbd..b8619a3c2bd 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -1885,6 +1885,7 @@ static int hci_send_frame(struct sk_buff *skb) /* Get rid of skb owner, prior to sending to the driver. */ skb_orphan(skb); + hci_notify(hdev, HCI_DEV_WRITE); return hdev->send(skb); }