CHROMIUM: usb: dwc3: rockchip: Check for plug/unplug events on resume
[firefly-linux-kernel-4.4.55.git] / drivers / headset_observe / rockchip_headset_core.c
index 38b7af3e79ad92f89ec08a06a720266dc5ca987f..01b7b4e2f1aa22a9c09300eee8d6228e688ba1a0 100755 (executable)
@@ -123,6 +123,10 @@ static int rockchip_headset_probe(struct platform_device *pdev)
        }
        #endif
 
+       ret = of_property_read_u32(node, "rockchip,headset_wakeup", &pdata->headset_wakeup);
+       if (ret < 0)
+               pdata->headset_wakeup = 1;
+
        if(pdata->chan != NULL)
        {//hook adc mode
                printk("%s() headset have hook adc mode\n",__FUNCTION__);
@@ -158,7 +162,6 @@ static int rockchip_headset_remove(struct platform_device *pdev)
 
 static int rockchip_headset_suspend(struct platform_device *pdev, pm_message_t state)
 {
-       DBG("%s----%d\n",__FUNCTION__,__LINE__);
        if(pdata_info->chan != 0)
        {
                return rk_headset_adc_suspend(pdev,state);
@@ -168,7 +171,6 @@ static int rockchip_headset_suspend(struct platform_device *pdev, pm_message_t s
 
 static int rockchip_headset_resume(struct platform_device *pdev)
 {
-       printk("%s----%d\n",__FUNCTION__,__LINE__);     
        if(pdata_info->chan != 0)
        {
                return rk_headset_adc_resume(pdev);