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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
701 - 759 of 759 matches
Mail list logo