diff options
author | Li Jun <b47624@freescale.com> | 2015-03-20 16:28:06 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 10:54:39 +0100 |
commit | 3a316ec4c91cfe03093d708369f9ab57000c96c3 (patch) | |
tree | 9fd2cc1d5b86975c492411b0e67ace78519c64c5 /drivers/usb/chipidea/otg_fsm.h | |
parent | 2f8a467a11aeec61f5077cd337b4efe74847e1d3 (diff) | |
download | linux-3a316ec4c91cfe03093d708369f9ab57000c96c3.tar.gz linux-3a316ec4c91cfe03093d708369f9ab57000c96c3.tar.bz2 linux-3a316ec4c91cfe03093d708369f9ab57000c96c3.zip |
usb: chipidea: use hrtimer for otg fsm timers
Current otg fsm timers are using controller 1ms irq and count it, this patch
is to replace it with hrtimer solution, use one hrtimer for all otg timers.
Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/otg_fsm.h')
-rw-r--r-- | drivers/usb/chipidea/otg_fsm.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/chipidea/otg_fsm.h b/drivers/usb/chipidea/otg_fsm.h index 9e0fc4c83f13..2689375ae5da 100644 --- a/drivers/usb/chipidea/otg_fsm.h +++ b/drivers/usb/chipidea/otg_fsm.h @@ -62,19 +62,6 @@ /* SSEND time before SRP */ #define TB_SSEND_SRP (1500) /* minimum 1.5 sec, section:5.1.2 */ -struct ci_otg_fsm_timer { - unsigned long expires; /* Number of count increase to timeout */ - unsigned long count; /* Tick counter */ - void (*function)(void *, unsigned long); /* Timeout function */ - unsigned long data; /* Data passed to function */ - struct list_head list; -}; - -struct ci_otg_fsm_timer_list { - struct ci_otg_fsm_timer *timer_list[NUM_OTG_FSM_TIMERS]; - struct list_head active_timers; -}; - #ifdef CONFIG_USB_OTG_FSM int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci); |