[PATCH v2 3/3] usb: chipidea: debug: add debug file for controller registers dump.

2014-03-13 Thread Li Jun
This patch adds below registers dump for debug: - USBINTR - USBSTS - USBMODE - USBCMD - PORTSC - OTGSC Signed-off-by: Li Jun b47...@freescale.com --- Change for v2: Add ci-is_otg condition check for otgsc register read. drivers/usb/chipidea/debug.c | 51

[PATCH 2/3] usb: chipidea: export interrupt enable and status register read functions.

2014-03-13 Thread Li Jun
This patch moves usb interrupt enable and status register read functions from udc driver to core driver to use them in all ci drivers. Acked-by: Peter Chen peter.c...@freescale.com Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/ci.h |4 drivers/usb/chipidea/core.c

[PATCH 3/3] usb: chipidea: debug: add debug file for controller registers dump.

2014-03-12 Thread Li Jun
This patch adds below registers dump for debug: - USBINTR - USBSTS - USBMODE - USBCMD - PORTSC - OTGSC Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/debug.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/usb

[PATCH 2/3] usb: chipidea: export interrupt enable and status register read functions.

2014-03-12 Thread Li Jun
This patch moves usb interrupt enable and status register read functions from udc driver to core driver to use them in all ci drivers. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/ci.h |4 drivers/usb/chipidea/core.c | 20 drivers/usb

[PATCH 1/3] usb: chipidea: operate on otgsc register in a general way

2014-03-12 Thread Li Jun
From: Li Jun b47...@freescale.com Use a more general way to read and write otgsc register. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/core.c | 19 + drivers/usb/chipidea/otg.c | 48 +++ drivers/usb/chipidea

Re: [PATCH v3 05/13] usb: chipidea: udc: driver update for OTG HNP.

2014-03-12 Thread Li Jun
On Wed, Mar 12, 2014 at 03:01:15PM +0800, Peter Chen wrote: On Thu, Feb 27, 2014 at 07:38:23AM +0800, Li Jun wrote: Add b_hnp_enable request handling and enable gadget-is_otg Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/udc.c | 11 ++- 1 file changed

Re: [PATCH v3 10/13] usb: chipidea: add sys inputs for OTG fsm input.

2014-03-12 Thread Li Jun
On Thu, Mar 06, 2014 at 12:44:16PM +0800, Peter Chen wrote: On Thu, Feb 27, 2014 at 07:38:28AM +0800, Li Jun wrote: 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 b47

Re: [PATCH v3 13/13] Documentation: ABI: usb: chipidea USB OTG HNP sysfs interface description.

2014-03-12 Thread Li Jun
On Thu, Mar 06, 2014 at 12:54:28PM +0800, Peter Chen wrote: On Thu, Feb 27, 2014 at 07:38:31AM +0800, Li Jun wrote: This patch adds sysfs interface description for chipidea USB OTG role switch in HNP. Signed-off-by: Li Jun b47...@freescale.com --- .../ABI/testing/sysfs-platform

Re: [PATCH 1/3] usb: chipidea: operate on otgsc register in a general way

2014-03-12 Thread Li Jun
On Wed, Mar 12, 2014 at 04:14:31PM +0800, Peter Chen wrote: On Wed, Mar 12, 2014 at 02:32:39PM +0800, Li Jun wrote: From: Li Jun b47...@freescale.com Use a more general way to read and write otgsc register. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea

Re: [PATCH v3 07/13] usb: chipidea: add OTG fsm operation functions implemenation.

2014-03-12 Thread Li Jun
On Thu, Mar 06, 2014 at 04:13:10PM +0800, Peter Chen wrote: On Thu, Mar 06, 2014 at 02:52:17PM +0800, Li Jun wrote: On Wed, Mar 05, 2014 at 04:28:14PM +0800, Peter Chen wrote: On Thu, Feb 27, 2014 at 07:38:25AM +0800, Li Jun wrote: Add OTG HNP and SRP operation functions implementation

Re: [PATCH v3 00/13] Add USB OTG HNP and SRP support on Chipidea usb driver

2014-03-12 Thread Li Jun
On Fri, Mar 07, 2014 at 10:32:30AM +0800, Peter Chen wrote: On Thu, Feb 27, 2014 at 07:38:18AM +0800, Li Jun wrote: From: b47624 b47624@ubuntu64bit1204.(none) This patchset adds USB OTG HNP and SRP support on chipidea usb driver, existing OTG port role swtich function by ID pin status

Re: [PATCH v3 09/13] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-03-12 Thread Li Jun
On Thu, Mar 06, 2014 at 12:36:45PM +0800, Peter Chen wrote: On Thu, Feb 27, 2014 at 07:38:27AM +0800, Li Jun wrote: USB OTG interrupt handling and fsm transition according to USB OTG and EH 2.0, update otg timer timeout handlers. Signed-off-by: Li Jun b47...@freescale.com

Re: [PATCH v3 07/13] usb: chipidea: add OTG fsm operation functions implemenation.

2014-03-05 Thread Li Jun
On Wed, Mar 05, 2014 at 04:28:14PM +0800, Peter Chen wrote: On Thu, Feb 27, 2014 at 07:38:25AM +0800, Li Jun wrote: Add OTG HNP and SRP operation functions implementation: - charge vbus - drive vbus - connection signaling - drive sof - start data pulse - add fsm timer - delete fsm

[PATCH v3 00/13] Add USB OTG HNP and SRP support on Chipidea usb driver

2014-02-26 Thread Li Jun
Li Jun (13): usb: phy-fsm: update OTG HNP state transition conditions according to OTG and EH 2.0 spec. usb: chipidea: usb OTG fsm initialization. usb: chipidea: host: vbus control change for OTG HNP. usb: chipidea: host: init otg port number. usb: chipidea: udc: driver update for OTG

[PATCH v3 01/13] usb: phy-fsm: update OTG HNP state transition conditions according to OTG and EH 2.0 spec.

2014-02-26 Thread Li Jun
if a_wait_vfall_tmout Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/phy/phy-fsm-usb.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy-fsm-usb.c b/drivers/usb/phy/phy-fsm-usb.c index 7aa314e..c47e5a6 100644 --- a/drivers/usb/phy/phy-fsm-usb.c +++ b

[PATCH v3 06/13] usb: chipidea: export interrupt enable and status register read functions.

2014-02-26 Thread Li Jun
This patch move usb interrupt enable and status register read functions from udc driver to core driver to use them in all ci drivers. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/ci.h |4 drivers/usb/chipidea/core.c | 20 drivers/usb

[PATCH v3 03/13] usb: chipidea: host: vbus control change for OTG HNP.

2014-02-26 Thread Li Jun
Leave vbus on/off hanlded by OTG fsm if in OTG mode. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/host.c |6 +++--- drivers/usb/chipidea/host.h |9 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/host.c b/drivers/usb

[PATCH v3 05/13] usb: chipidea: udc: driver update for OTG HNP.

2014-02-26 Thread Li Jun
Add b_hnp_enable request handling and enable gadget-is_otg Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/udc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index fe30dcc..602bbf3

[PATCH v3 04/13] usb: chipidea: host: init otg port number.

2014-02-26 Thread Li Jun
Init otg_port number of otg capable host to be 1 at host start. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/host.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index 4b609bc..5ec8ccd

[PATCH v3 02/13] usb: chipidea: usb OTG fsm initialization.

2014-02-26 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/Makefile |1 + drivers/usb/chipidea/ci.h |1 + drivers/usb/chipidea/otg.c |7

[PATCH v3 07/13] usb: chipidea: add OTG fsm operation functions implemenation.

2014-02-26 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/bits.h| 11 ++ drivers

[PATCH v3 13/13] Documentation: ABI: usb: chipidea USB OTG HNP sysfs interface description.

2014-02-26 Thread Li Jun
This patch adds sysfs interface description for chipidea USB OTG role switch in HNP. Signed-off-by: Li Jun b47...@freescale.com --- .../ABI/testing/sysfs-platform-chipidea-usb-otg| 55 1 file changed, 55 insertions(+) diff --git a/Documentation/ABI/testing/sysfs

[PATCH v3 09/13] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-02-26 Thread Li Jun
USB OTG interrupt handling and fsm transition according to USB OTG and EH 2.0, update otg timer timeout handlers. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/core.c| 10 ++- drivers/usb/chipidea/otg.c |9 +- drivers/usb/chipidea/otg_fsm.c | 191

[PATCH v3 10/13] usb: chipidea: add sys inputs for OTG fsm input.

2014-02-26 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/otg.c |1 + drivers/usb/chipidea/otg_fsm.c | 192

[PATCH v3 08/13] usb: chipidea: OTG fsm timers initialization.

2014-02-26 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/bits.h|1 + drivers/usb/chipidea/otg_fsm.c | 190

[PATCH v3 11/13] usb: chipidea: debug: add debug file for OTG variables show.

2014-02-26 Thread Li Jun
This patch adds a debug file for OTG vairables show. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/debug.c | 85 ++ 1 file changed, 85 insertions(+) diff --git a/drivers/usb/chipidea/debug.c b/drivers/usb/chipidea/debug.c index

[PATCH v3 12/13] usb: chipidea: debug: add debug file for controller registers dump.

2014-02-26 Thread Li Jun
This patch adds below registers dump for debug: - USBINTR - USBSTS - USBMODE - USBCMD - PORTSC - OTGSC Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/debug.c | 48 ++ 1 file changed, 48 insertions(+) diff --git a/drivers/usb

Re: [PATCH v2 7/9] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-02-26 Thread Li Jun
On Mon, Feb 10, 2014 at 10:32:24AM +0800, Peter Chen wrote: On Mon, Jan 20, 2014 at 09:56:18AM +0800, Li Jun wrote: USB OTG interrupt handling and fsm transition according to USB OTG spec 2.0, update otg timer timeout handlers. USB OTG and EH 2.0 changed. Signed-off-by: Li Jun b47

Re: [PATCH v2 5/9] usb: chipidea: add OTG fsm operation functions implemenation.

2014-02-08 Thread Li Jun
my patchset to be latest greg's usb-next just now, no conflicts or error found. On Mon, Jan 20, 2014 at 09:56:16AM +0800, Li Jun wrote: Add OTG HNP and SRP operation functions implementation: - charge vbus - drive vbus - connection signaling - drive sof - start data pulse - add

Re: [PATCH v2 3/9] usb: chipidea: host: vbus control change for OTG HNP.

2014-02-08 Thread Li Jun
On Sat, Feb 08, 2014 at 03:04:52PM +0800, Peter Chen wrote: On Mon, Jan 20, 2014 at 09:56:14AM +0800, Li Jun wrote: Leave vbus on/off hanlded by OTG fsm if in OTG mode, init OTG port number. It is better split this to two patches, one for vbus, another is for OTG port. Peter OK, I

Re: [PATCH v2 0/9] Add USB OTG HNP and SRP support on Chipidea usb driver

2014-02-08 Thread Li Jun
On Sat, Feb 08, 2014 at 03:00:35PM +0800, Peter Chen wrote: On Mon, Jan 20, 2014 at 09:56:11AM +0800, Li Jun wrote: This patchset adds USB OTG HNP and SRP support on chipidea usb driver, existing OTG port role swtich function by ID pin status kept unchanged, based on that, if select

[PATCH v2 7/9] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-01-19 Thread Li Jun
USB OTG interrupt handling and fsm transition according to USB OTG spec 2.0, update otg timer timeout handlers. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/bits.h|2 + drivers/usb/chipidea/core.c| 10 ++- drivers/usb/chipidea/otg.c |9 ++- drivers

[PATCH v2 4/9] usb: chipidea: udc: driver update for OTG HNP.

2014-01-19 Thread Li Jun
Add b_hnp_enable request handling and enable gadget-is_otg Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/udc.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 80de2f8..b08ab1d

[PATCH v2 9/9] usb: chipidea: debug: add debug file for OTG variables show and registers dump.

2014-01-19 Thread Li Jun
This patch add a debug file for OTG vairables show and registers dump. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/debug.c | 102 ++ 1 files changed, 102 insertions(+), 0 deletions(-) diff --git a/drivers/usb/chipidea/debug.c b

[PATCH v2 0/9] Add USB OTG HNP and SRP support on Chipidea usb driver

2014-01-19 Thread Li Jun
in one system - Change some otg fsm functions to be static - Re-split timer init patch to avoid a later patch changing a previous one in the same series - Change timer structure memory allocation to be devm_kzalloc - Update some format alignment and spelling errors Li Jun (9): usb: phy-fsm

[PATCH v2 6/9] usb: chipidea: OTG fsm timers initialization.

2014-01-19 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/bits.h|1 + drivers/usb/chipidea/otg_fsm.c | 191

[PATCH v2 3/9] usb: chipidea: host: vbus control change for OTG HNP.

2014-01-19 Thread Li Jun
Leave vbus on/off hanlded by OTG fsm if in OTG mode, init OTG port number. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/host.c | 13 + drivers/usb/chipidea/host.h |9 + 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/usb

[PATCH v2 2/9] usb: chipidea: usb OTG fsm initlization.

2014-01-19 Thread Li Jun
This patch adds OTG fsm related initizations when do otg init, add a seperate file for OTG fsm related utilities. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/Makefile |1 + drivers/usb/chipidea/ci.h |1 + drivers/usb/chipidea/otg.c |7 drivers

[PATCH v2 5/9] usb: chipidea: add OTG fsm operation functions implemenation.

2014-01-19 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/bits.h| 11 ++ drivers

[PATCH v2 1/9] usb: phy-fsm: update OTG HNP state transition conditions according to OTG and EH 2.0 spec.

2014-01-19 Thread Li Jun
if a_wait_vfall_tmout Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/phy/phy-fsm-usb.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy-fsm-usb.c b/drivers/usb/phy/phy-fsm-usb.c index 7aa314e..c47e5a6 100644 --- a/drivers/usb/phy/phy-fsm-usb.c +++ b

[PATCH v2 8/9] usb: chipidea: add sys inputs for OTG fsm input.

2014-01-19 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/otg.c |1 + drivers/usb/chipidea/otg_fsm.c | 192

[PATCH v2 1/6] usb: otg-fsm: add HNP polling operation function.

2014-01-19 Thread Li Jun
This patch adds HNP polling operation function for OTG fsm. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/phy/phy-fsm-usb.c |2 ++ include/linux/usb/otg-fsm.h |9 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-fsm-usb.c b

[PATCH v2 0/6] usb: chipidea: add OTG HNP polling support.

2014-01-19 Thread Li Jun
the HNP polling patch in V1([PATCH 08/10] usb: chipidea: add OTG HNP polling support) Li Jun (6): usb: otg-fsm: add HNP polling operation function. usb: otg-fsm: add host request flag for HNP polling. usb: chipidea: udc: add OTG status request handling. usb: chipidea: set host request flag

[PATCH v2 2/6] usb: otg-fsm: add host request flag for HNP polling.

2014-01-19 Thread Li Jun
This patch adds host request flag in usb_gadget and clears it when leaves host state in OTG fsm driver, which will be set in gadget driver if the peripheral wishes to become host. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/phy/phy-fsm-usb.c |4 include/linux/usb/gadget.h

[PATCH v2 4/6] usb: chipidea: set host request flag via sys input.

2014-01-19 Thread Li Jun
This patch sets host request flag in sys input when a A device set a_bus_req or a B device set b_bus_req in peripheral role. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/otg_fsm.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH v2 3/6] usb: chipidea: udc: add OTG status request handling.

2014-01-19 Thread Li Jun
Peripheral answers OTG status selector request from host according to host request flag of gadget, this flag may be set via kernel interface by application. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/udc.c | 12 ++-- 1 files changed, 10 insertions(+), 2

[PATCH v2 6/6] usb: chipidea: OTG fsm driver HNP polling implementation.

2014-01-19 Thread Li Jun
This patch implements OTG host request polling and does role switch when peripheral sets the host request flag. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/ci.h |1 + drivers/usb/chipidea/otg_fsm.c | 81 drivers/usb

[PATCH v2 5/6] usb: otg-fsm: add a timer for polling host request flag from peripheral.

2014-01-19 Thread Li Jun
This patch adds a timer in otg_fsm structure, with this timer, host can query the peripheral if it wishes to become host periodically. Signed-off-by: Li Jun b47...@freescale.com --- include/linux/usb/otg-fsm.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux

[PATCH 03/10] usb: chipidea: host:vbus control change for OTG HNP.

2014-01-08 Thread Li Jun
Leave vbus on/off hanlded by OTG fsm if in OTG mode, init OTG port number. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/host.c | 13 + drivers/usb/chipidea/host.h |9 + 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/usb

[PATCH 02/10] usb: chipidea: usb OTG fsm initlization.

2014-01-08 Thread Li Jun
This patch adds OTG fsm related initizations when do otg init, add a seperate file for OTG fsm related utilities. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/Makefile |1 + drivers/usb/chipidea/ci.h |1 + drivers/usb/chipidea/otg.c |6 +++ drivers

[PATCH 04/10] usb: chipidea: udc:driver update for OTG HNP.

2014-01-08 Thread Li Jun
Add b_hnp_enable request handling and enable gadget-is_otg Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/udc.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 73a39ef..ccdc277

[PATCH 00/10] usb: chipidea: Add USB OTG HNP and SRP support on Chipidea usb driver.

2014-01-08 Thread Li Jun
. Reference to: On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification July 27, 2012 Revision 2.0 version 1.1a Li Jun (10): usb: otg-fsm: update OTG HNP state transition conditions according to OTG and EH 2.0 spec. usb: chipidea: usb OTG fsm initlization. usb

[PATCH 01/10] usb: phy-fsm: update OTG HNP state transition conditions according to OTG and EH 2.0 spec.

2014-01-08 Thread Li Jun
if a_wait_vfall_tmout Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/phy/phy-fsm-usb.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy-fsm-usb.c b/drivers/usb/phy/phy-fsm-usb.c index 7aa314e..c47e5a6 100644 --- a/drivers/usb/phy/phy-fsm-usb.c +++ b

[PATCH 08/10] usb: chipidea: add OTG HNP polling support.

2014-01-08 Thread Li Jun
This patch add OTG HNP polling support for both A and B device. After A/B in host state, host request polling message will be sent from host to peripheral every 1.5s, if host found the host request flag is set to be 1 by peripheral, a role switch will be started. Signed-off-by: Li Jun b47

[PATCH 10/10] usb: chipidea: debug: add debug file for OTG variables show and registers dump.

2014-01-08 Thread Li Jun
This patch add a debug file for OTG vairables show and registers dump. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/debug.c | 100 ++ 1 files changed, 100 insertions(+), 0 deletions(-) diff --git a/drivers/usb/chipidea/debug.c b

[PATCH 07/10] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-01-08 Thread Li Jun
USB OTG interrupt handling and fsm transition according to USB OTG spec 2.0, update otg timer time out handlers. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/bits.h|3 + drivers/usb/chipidea/core.c| 10 ++- drivers/usb/chipidea/otg.c |6 + drivers/usb

[PATCH 06/10] usb: chipidea: OTG fsm timers initialization.

2014-01-08 Thread Li Jun
This patch adds OTG fsm timers initialization, which use controller's 1ms interrupt as time out counter, also adds some local timers which are not in otg_fsm_timer list. Signed-off-by: Li Jun b47...@freescale.com --- drivers/usb/chipidea/otg_fsm.c | 111

[PATCH 05/10] usb: chipidea: add OTG fsm operation functions implemenation.

2014-01-08 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/bits.h| 11 ++ drivers

[PATCH 09/10] usb: chipidea: add sys inputs for OTG fsm input.

2014-01-08 Thread Li Jun
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 b47...@freescale.com --- drivers/usb/chipidea/otg.c |1 + drivers/usb/chipidea/otg_fsm.c | 204

<    3   4   5   6   7   8