From: wlf Date: Wed, 26 Mar 2014 02:16:56 +0000 (+0800) Subject: USB: Support usb irq wakeup system. X-Git-Tag: firefly_0821_release~5832 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ee8b2c59feb37a5fe5555e51b00be54c2602f8e;p=firefly-linux-kernel-4.4.55.git USB: Support usb irq wakeup system. --- diff --git a/drivers/usb/dwc_otg_310/usbdev_rk.h b/drivers/usb/dwc_otg_310/usbdev_rk.h index 288597760084..56aa975f61a2 100755 --- a/drivers/usb/dwc_otg_310/usbdev_rk.h +++ b/drivers/usb/dwc_otg_310/usbdev_rk.h @@ -39,6 +39,7 @@ #define USB_IRQ_WAKEUP (7) extern int rk_usb_charger_status; +extern void rk_send_wakeup_key(void); /* rk3188 platform data */ extern struct dwc_otg_platform_data usb20otg_pdata_rk3188; extern struct dwc_otg_platform_data usb20host_pdata_rk3188; diff --git a/drivers/usb/dwc_otg_310/usbdev_rk30.c b/drivers/usb/dwc_otg_310/usbdev_rk30.c index 6fb727f8a563..e93fbf804b67 100755 --- a/drivers/usb/dwc_otg_310/usbdev_rk30.c +++ b/drivers/usb/dwc_otg_310/usbdev_rk30.c @@ -385,7 +385,7 @@ struct rkehci_platform_data rkhsic_pdata_rk3188 = { inline static void do_wakeup(struct work_struct *work) { -// rk28_send_wakeup_key(); + rk_send_wakeup_key(); // wake up the system } /********** handler for bvalid irq **********/ diff --git a/drivers/usb/dwc_otg_310/usbdev_rk32.c b/drivers/usb/dwc_otg_310/usbdev_rk32.c index 731e5a49dd60..d6ecfd139153 100755 --- a/drivers/usb/dwc_otg_310/usbdev_rk32.c +++ b/drivers/usb/dwc_otg_310/usbdev_rk32.c @@ -531,7 +531,7 @@ struct rkehci_platform_data rkohci_pdata_rk3288 = { #define WAKE_LOCK_TIMEOUT (HZ * 10) inline static void do_wakeup(struct work_struct *work) { -// rk28_send_wakeup_key(); + rk_send_wakeup_key(); // wake up the system } static void usb_battery_charger_detect_work(struct work_struct *work) @@ -594,7 +594,6 @@ static irqreturn_t id_irq_handler(int irq, void *dev_id) static irqreturn_t line_irq_handler(int irq, void *dev_id) { - unsigned int uoc_con; /* clear irq */ if(control_usb->grf_uoc0_base->CON0 & 1<<15){