From c7825ca34422afa756af37682c7ad9290a43dc05 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Thu, 10 Aug 2017 14:33:47 +0900 Subject: [PATCH] sensors: brcm: Remove wake_lock to fix the suspend issue Even if TM2 doesn't use the wake_lock feature, the brcm sensor drivers used the wake_lock and the the count of GPS interrupt of brcm sensor is too much. The too much interrupt causes the pending of reading the 'sys/power/wakeup_count' and then failed to enter the suspend state by user-process. This patch removes the wake_lock code to fix the suspend issue. Change-Id: Ibd161a7a53adc4398f145e482a90efa35febbdb6 Signed-off-by: Chanwoo Choi --- drivers/sensors/brcm/bbdpl2/bcm_gps_spi.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/sensors/brcm/bbdpl2/bcm_gps_spi.c b/drivers/sensors/brcm/bbdpl2/bcm_gps_spi.c index cd95f32..d9479d9 100644 --- a/drivers/sensors/brcm/bbdpl2/bcm_gps_spi.c +++ b/drivers/sensors/brcm/bbdpl2/bcm_gps_spi.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -125,8 +124,6 @@ struct bcm_spi_priv struct bcm_ssi_tx_frame *tx_buf; struct bcm_ssi_rx_frame *rx_buf; - struct wake_lock bcm_wake_lock; - struct clk *clk; }; @@ -633,7 +630,6 @@ static irqreturn_t bcm_irq_handler(int irq, void *pdata) if (!atomic_read(&priv->suspending)) queue_work(priv->serial_wq, &priv->rxtx_work); - wake_lock_timeout(&priv->bcm_wake_lock, HZ/2); return IRQ_HANDLED; } @@ -806,9 +802,6 @@ static int bcm_spi_probe(struct spi_device *spi) priv->mcu_req = mcu_req; priv->mcu_resp = mcu_resp; - /* Init - etc */ - wake_lock_init(&priv->bcm_wake_lock, WAKE_LOCK_SUSPEND, "bcm_spi_wake_lock"); - g_bcm_gps = priv; /* Init BBD & SSP */ bbd_init(&spi->dev); -- 2.7.4