Re: Fwd: Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600

2014-01-19 Thread baumber
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

[PATCH 1/1] usb: chipidea: udc: delete wrong warning message for ep0in

2014-01-19 Thread Peter Chen
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

Re: [PATCH] usb: chipidea: need to mask when writting endptflush and endptprime

2014-01-19 Thread Peter Chen
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

[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 --- drivers/usb/chipidea/bits.h|2 + drivers/usb/chipidea/core.c| 10 ++- drivers/usb/chipidea/otg.c |9 ++- drivers/usb/chipidea/otg_fsm.c

[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 --- 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

[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 --- 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

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

2014-01-19 Thread Li Jun
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

[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 --- 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 --- 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

[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 --- drivers/usb/chipidea/Makefile |1 + drivers/usb/chipidea/ci.h |1 + drivers/usb/chipidea/otg.c |7 drivers/usb/chipidea/otg_fsm.c

[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 --- drivers/usb/chipidea/bits.h| 11 ++ drivers/usb/chipidea/ci.h

[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
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

[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 --- drivers/usb/chipidea/otg.c |1 + drivers/usb/chipidea/otg_fsm.c | 192 driv

[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 --- 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

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

2014-01-19 Thread Li Jun
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

[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 --- drivers/usb/phy/phy-fsm-usb.c |4 include/linux/usb/gadget.h|1 + include

[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 --- drivers/usb/chipidea/otg_fsm.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/usb/chipidea/otg_fsm.

[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 --- drivers/usb/chipidea/udc.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/d

[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 --- drivers/usb/chipidea/ci.h |1 + drivers/usb/chipidea/otg_fsm.c | 81 drivers/usb/chipidea/otg_fsm.h |4

[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 --- 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

Re: [PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-19 Thread Bo Shen
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

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

2014-01-19 Thread Peter Chen
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

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

2014-01-19 Thread Peter Chen
>^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

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

2014-01-19 Thread Peter Chen
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

RE: [PATCH v9 00/12] Add power management support for mxs phy

2014-01-19 Thread Peter Chen
> > 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

[PATCH v2] usb: gadget: fix NULL pointer dereference

2014-01-19 Thread Andrzej Pietrasiewicz
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