Skip to content

Commit

Permalink
Bluetooth: I feel bad about removing HUAWEI_BT_BCM_VER_3
Browse files Browse the repository at this point in the history
  • Loading branch information
Daz Jones committed Feb 19, 2013
1 parent a4e57fb commit 02c2f1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions drivers/bluetooth/bluesleep.c
Expand Up @@ -241,7 +241,7 @@ static void bluesleep_hostwake_task(unsigned long data)
* Handles proper timer action when outgoing data is delivered to the
* HCI line discipline. Sets BT_TXDATA.
*/
#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/*lgh remove static as this function will be call in msm_serial_hs.c */
//static void bluesleep_outgoing_data(void)
void bluesleep_outgoing_data(void)
Expand All @@ -254,7 +254,7 @@ static void bluesleep_outgoing_data(void)
{
unsigned long irq_flags;

#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
BT_DBG("BCM BT3.0 bluesleep_outgoing_data");
#else
BT_DBG("google BT2.0 bluesleep_outgoing_data");
Expand All @@ -274,7 +274,7 @@ static void bluesleep_outgoing_data(void)
spin_unlock_irqrestore(&rw_lock, irq_flags);
}

#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/*lgh add bluesleep_uart_open and bluesleep_uart_close to register uport and un-register uport*/
void bluesleep_uart_open(struct uart_port *uport)
{
Expand Down
12 changes: 6 additions & 6 deletions drivers/tty/serial/msm_serial_hs.c
Expand Up @@ -1089,7 +1089,7 @@ static void msm_serial_hs_rx_tlet(unsigned long tlet_ptr)
}

/* Enable the transmitter Interrupt */
#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/* lgh add calling callback for bluesleep here */
extern void bluesleep_outgoing_data(void);
#endif
Expand All @@ -1098,7 +1098,7 @@ static void msm_hs_start_tx_locked(struct uart_port *uport )
struct msm_hs_port *msm_uport = UARTDM_TO_MSM(uport);

clk_enable(msm_uport->clk);
#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/* lgh add for lpm here */
printk(KERN_ERR "%s BCM bt 3.0 call bluesleep_outgoing_data\n", __FUNCTION__);
bluesleep_outgoing_data();
Expand Down Expand Up @@ -1600,7 +1600,7 @@ static const char *msm_hs_type(struct uart_port *port)
}

/* Called when port is opened */
#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/* lgh added for bluesleep */
extern void bluesleep_uart_open(struct uart_port *uport);

Expand All @@ -1615,7 +1615,7 @@ static int msm_hs_startup(struct uart_port *uport)
struct circ_buf *tx_buf = &uport->state->xmit;
struct msm_hs_tx *tx = &msm_uport->tx;

#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/*lgh added we should re-consider that whether here would bt called*/
printk(KERN_ERR "%s BCM bt 3.0 call bluesleep_uart_open\n", __FUNCTION__);
bluesleep_uart_open(uport);
Expand Down Expand Up @@ -2009,7 +2009,7 @@ static int __init msm_serial_hs_init(void)
* - Disables the port
* - Unhook the ISR
*/
#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/* lgh add for bluesleep */
extern void bluesleep_uart_close(struct uart_port *uport);

Expand All @@ -2018,7 +2018,7 @@ static void msm_hs_shutdown(struct uart_port *uport)
{
unsigned long flags;
struct msm_hs_port *msm_uport = UARTDM_TO_MSM(uport);
#if defined(CONFIG_HUAWEI_KERNEL)
#if defined(CONFIG_HUAWEI_KERNEL) && defined(CONFIG_HUAWEI_BT_BCM43XX)
/*lgh added for bluesleep */
printk(KERN_ERR "%s BCM bt 3.0 call bluesleep_uart_close\n", __FUNCTION__);
bluesleep_uart_close(uport);
Expand Down

0 comments on commit 02c2f1c

Please sign in to comment.