aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/otg_fsm.c
Commit message (Collapse)AuthorAge
* ENGR00323241 usb: chipidea: otg: delay 2s to decrease power.usage_countLi Jun2014-07-18
| | | | | | | | | | There is 2s delay for controller resume from usb wakeup case already, in OTG fsm mode, A-dev can start a new session via sys input file(means not via usb wakeup), in this case, A-dev still need the 2s delay for host root hub access registers, otherwise system will hang due to access register at low power mode. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00320439-8 usb: chipidea: otg_fsm: power lost handling for otg fsmLi Jun2014-06-30
| | | | | | This patch adds support for system resume from power lost in otg fsm mode. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00320099 usb: chipidea: add vbus glitch handlingLi Jun2014-06-26
| | | | | | | | We add vbus glitch handling for both BSV rise and drop interruptes. If it is a vbus glitch (higher than BSV but cannot reach AVV), ignore it. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00319720-7 usb: chipidea: otg_fsm: set host request flag via sys inputLi Jun2014-06-26
| | | | | | | This patch sets host request flag with sys input when a A device sets a_bus_req or a B device sets b_bus_req as peripheral role. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00319720-6 usb: chipidea: otg_fsm: add HNP polling supportLi Jun2014-06-26
| | | | | | | This patch adds HNP polling support for chipidea otg fsm driver, which adds a SW timer to send HNP polling request. Signed-off-by: Li Jun <b47624@freescale.com>
* usb: chipidea: using one inline function to cover queue work operationsPeter Chen2014-06-26
| | | | | | | | | | The otg queue work include operations: one is disable interrupt, another one is call kernel queue work API. Many codes do this operation, using one inline function to instead of them. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit c8b188d2900a7a9c833f67585cc11e47b47ad6b2)
* ENGR00307558-13 usb: chipidea: otg-fsm: enable low power mode for otg fsm mode.Li Jun2014-04-16
| | | | | | This patch enables runtime pm support for otg fsm mode. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00307558-12 usb: chipidea: udc: usb charger handling when otg fsm modeLi Jun2014-04-16
| | | | | | | This patch adds usb charger notify condition when usb otg fsm is enabled, do not do charger notify when doing role switch. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00307558-8 usb: chipidea: add sys inputs for OTG fsm input.Li Jun2014-04-16
| | | | | | | This patch adds sys input to control and show OTG fsm inputs by application, user can do host and preipheral role switch by change these inputs. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00307558-7 usb: chipidea: OTG HNP and SRP fsm implementation.Li Jun2014-04-16
| | | | | | | USB OTG interrupt handling and fsm transitions according to USB OTG and EH 2.0. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00307558-6 usb: chipidea: OTG fsm timers initialization.Li Jun2014-04-16
| | | | | | | | This patch adds OTG fsm timers initialization, which use controller's 1ms interrupt as timeout counter, also adds some local timers which are not in otg_fsm_timer list. Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00307558-5 usb: chipidea: add OTG fsm operation functions implemenation.Li Jun2014-04-16
| | | | | | | | | | | | | | | Add OTG HNP and SRP operation functions implementation: - charge vbus - drive vbus - connection signaling - drive sof - start data pulse - add fsm timer - delete fsm timer - start host - start gadget Signed-off-by: Li Jun <b47624@freescale.com>
* ENGR00307558-1 usb: chipidea: usb OTG fsm initialization.Li Jun2014-04-16
This patch adds OTG fsm related initialization when do otg init, add a seperate file for OTG fsm related utilities. Signed-off-by: Li Jun <b47624@freescale.com>