Hello,
there must be a misunderstanding;
There is a functional change, because with the line/patch ".reset_resume =
usb_audio_resume," the mixer of the usb headset was not removed during
suspend/resume and so the master channel in KDE Mixer was not changed (Headset), which is
the correct beha
The idea of this message is: the non-ep0 should not use ctrl
transfer. But it does not cover the ep0in which uses ctrl
transfer too.
This commit deletes the warning message at interrupt handler,
and adds judgement at ep_enable, if non-ep0 requests ctrl transfer,
it will indicate an error.
Reporte
On Fri, Jan 17, 2014 at 04:52:30PM +0100, Matthieu CASTET wrote:
> ENDPTFLUSH and ENDPTPRIME registers are set by software and clear
> by hardware. There is a bit for each endpoint. When we are setting
> a bit for an endpoint we should make sure we do not touch other
> endpoint bit. There is a race
USB OTG interrupt handling and fsm transition according to USB OTG
spec 2.0, update otg timer timeout handlers.
Signed-off-by: Li Jun
---
drivers/usb/chipidea/bits.h|2 +
drivers/usb/chipidea/core.c| 10 ++-
drivers/usb/chipidea/otg.c |9 ++-
drivers/usb/chipidea/otg_fsm.c
Add b_hnp_enable request handling and enable gadget->is_otg
Signed-off-by: Li Jun
---
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 100644
--- a/drivers
This patch add a debug file for OTG vairables show and registers dump.
Signed-off-by: Li Jun
---
drivers/usb/chipidea/debug.c | 102 ++
1 files changed, 102 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/chipidea/debug.c b/drivers/usb/chipidea/de
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 CONFIG_USB_OTG_FSM, OTG HNP and SRP will be
supported.
Reference to:
"On-The-Go and Embedded Host Supplement to the USB Revision 2
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
---
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
---
drivers/usb/chipidea/host.c | 13 +
drivers/usb/chipidea/host.h |9 +
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/chipidea/host.c b/drive
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
---
drivers/usb/chipidea/Makefile |1 +
drivers/usb/chipidea/ci.h |1 +
drivers/usb/chipidea/otg.c |7
drivers/usb/chipidea/otg_fsm.c
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
---
drivers/usb/chipidea/bits.h| 11 ++
drivers/usb/chipidea/ci.h
According to:"On-The-Go and Embedded Host Supplement to the USB Revision 2.0
Specification July 27, 2012 Revision 2.0 version 1.1a"
- From a_host to a_wait_bcon if !b_conn
- Add transition from a_host to a_wait_vfall if id state is high or a_bus_drop
- From a_wait_vfall to a_idle if a_wait_vfall_tm
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
---
drivers/usb/chipidea/otg.c |1 +
drivers/usb/chipidea/otg_fsm.c | 192
driv
This patch adds HNP polling operation function for OTG fsm.
Signed-off-by: Li Jun
---
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/drivers/usb/phy/phy-fsm-u
This patchset adds 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 finds the host request
flag is set to be 1 by peripheral, a role switch will be started.
Changes from V1 to V2:
Split t
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
---
drivers/usb/phy/phy-fsm-usb.c |4
include/linux/usb/gadget.h|1 +
include
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
---
drivers/usb/chipidea/otg_fsm.c | 12 +++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/chipidea/otg_fsm.
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
---
drivers/usb/chipidea/udc.c | 12 ++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/d
This patch implements OTG host request polling and does role switch
when peripheral sets the host request flag.
Signed-off-by: Li Jun
---
drivers/usb/chipidea/ci.h |1 +
drivers/usb/chipidea/otg_fsm.c | 81
drivers/usb/chipidea/otg_fsm.h |4
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
---
include/linux/usb/otg-fsm.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/usb/otg-fsm.h b/incl
Hi J,
On 01/18/2014 01:20 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
On 10:59 Fri 17 Jan , Bo Shen wrote:
In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS
is only 7. So, fix it for sama5d3 SoC using the udc->num_ep.
Signed-off-by: Bo Shen
---
drivers/usb/gadget/atmel_u
On Wed, Jan 15, 2014 at 06:25:24PM +0800, Li Jun-B47624 wrote:
> On Wed, Jan 08, 2014 at 05:06:17PM +0800, Li Jun wrote:
> > 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
> > ---
> > drivers/us
>^and
> What does the OTG port number mean? It is always 1?
> If there are two OTG port, how about the value of the otg_port?
> [Li Jun] Here the OTG port number means the USB host port number to which a
> device attaches, which is 1 based, since
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.
Would you have ci_vbus_handler to handle both OTG and non-OTG condition?
Besides, after doing that, you can have another patch only for init OTG
port number.
Peter
>
> Hi Felipe & Shawn,
>
> The serial adds power management support for MXS PHY, it includes:
>
> - Add one PHY API .set_wakeup, and related API implementation at mxs phy
> driver
> - misc changes and bug fixes for mxs phy to support low power mode and
> wakeup.
>
> It is based on the laste
Fix possible NULL pointer dereference introduced in
219580e64f035bb9018dbb08d340f90b0ac50f8c
usb: f_fs: check quirk to pad epout buf size when not aligned to
maxpacketsize
In cases we do wait with:
wait_event_interruptible(epfile->wait, (ep = epfile->ep));
for endpoint to be enabled, functionfs
26 matches
Mail list logo