Re: [PATCH net] r8152: return -EBUSY for runtime suspend

2014-10-17 Thread David Miller
From: Hayes Wang Date: Fri, 17 Oct 2014 16:55:08 +0800 > Remove calling cancel_delayed_work_sync() for runtime suspend, > because it would cause dead lock. Instead, return -EBUSY to > avoid the device enters suspending if the net is running and > the delayed work is pending or running. The delaye

[PATCH 3/4] usb: gadget: udc: net2272: do not call usb_gadget_unregister_driver()

2014-10-17 Thread Felipe Balbi
that call is completely unnecessary because usb_del_gadget_udc() already makes sure the gadget driver is properly unregistered from the UDC. Signed-off-by: Felipe Balbi --- found while reading code drivers/usb/gadget/udc/net2272.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/

[PATCH 2/4] usb: gadget: udc: dummy: do not call usb_gadget_unregister_driver()

2014-10-17 Thread Felipe Balbi
that call is completely unnecessary because usb_del_gadget_udc() already makes sure the gadget driver is properly unregistered from the UDC. Signed-off-by: Felipe Balbi --- found while reading code drivers/usb/gadget/udc/dummy_hcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/us

[PATCH 4/4] usb: gadget: udc: pxa27x: do not call usb_gadget_unregister_driver()

2014-10-17 Thread Felipe Balbi
that call is completely unnecessary because usb_del_gadget_udc() already makes sure the gadget driver is properly unregistered from the UDC. Signed-off-by: Felipe Balbi --- found while reading code drivers/usb/gadget/udc/pxa27x_udc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/u

[PATCH 1/4] usb: dwc2: gadget: do not call usb_gadget_unregister_driver()

2014-10-17 Thread Felipe Balbi
that call is completely unnecessary because usb_del_gadget_udc() already makes sure the gadget driver is properly unregistered from the UDC. Signed-off-by: Felipe Balbi --- found while reading code drivers/usb/dwc2/gadget.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/

[PATCH] usb: gadget: udc: core: prepend udc_attach_driver with usb_

2014-10-17 Thread Felipe Balbi
No functional changes, just adding a prefix which should have been there from the start. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/configfs.c | 2 +- drivers/usb/gadget/udc/udc-core.c | 4 ++-- include/linux/usb/gadget.h| 2 +- 3 files changed, 4 insertions(+), 4 deletions(-

[PATCH] drivers: depend on instead of select BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO

2014-10-17 Thread Jani Nikula
Documentation/kbuild/kconfig-language.txt warns to use select with care, and in general use select only for non-visible symbols and for symbols with no dependencies, because select will force a symbol to a value without visiting the dependencies. Select has become particularly problematic, interde

[PATCH v7 0/3] pxa27x remaing usb serie

2014-10-17 Thread Robert Jarzmik
These are the remaining patches from the initial serie. They have been tested on pxa27x : - on Felipe's testing/next branch (last commit "usb: gadget: remove unnecessary 'driver' argument") - with : echo disconnect > /sys/class/udc/pxa27x-udc/soft_connect && sleep 1 && echo connect > /s

[PATCH v7 2/3] usb: gadget: pxa27x_udc: use devm_* helpers

2014-10-17 Thread Robert Jarzmik
Use devm_* helpers in the probe function to simplify the error path and the remove path. Signed-off-by: Robert Jarzmik Cc: Sergei Shtylyov --- Since V1: Addressed Sergei's comments Since V2: Addressed Sergei's comments on includes Since V4: Addressed Sergei's comment on clk_uprepare in probe()

[PATCH v7 1/3] usb: gadget: pxa27x_udc device-tree documentation

2014-10-17 Thread Robert Jarzmik
Add documentation for device-tree binding of arm PXA 27x udc (usb device) driver. Signed-off-by: Robert Jarzmik Cc: devicet...@vger.kernel.org Acked-by: Arnd Bergmann --- Since V1: change OF id mrvl,pxa27x_udc -> marvell,pxa27x-udc This is a consequence of other DT reviews on the marv

[PATCH v7 3/3] usb: gadget: pxa27x_udc: fix clock prepare and enable

2014-10-17 Thread Robert Jarzmik
As the udc clock controls both the output signals and the internal IP, it must be enabled before any UDC register is touched. The bug is revealed when the clock framework disables the clock for a couple of milliseconds during the boot sequence, and the endpoint configuration is lost. The bug is hi

Re: usb_stor_control_msg() timeout argument

2014-10-17 Thread Alan Stern
On Fri, 17 Oct 2014, Mark Knibbs wrote: > On Fri, 17 Oct 2014 15:22:02 -0400 (EDT) > Alan Stern wrote: > > > On Fri, 17 Oct 2014, Mark Knibbs wrote: > > > > > ... > > > It looks like the 5000 timeout in usb_stor_euscsi_init() should be > > > replaced > > > by 5*HZ then? > > > > Yes, it does loo

[PATCH v2] storage: Enable multi-target mode as vendor driver does for SCM eUSCSI bridge

2014-10-17 Thread Mark Knibbs
Hi, v2: Remove incorrect use of USB_CTRL_SET_TIMEOUT (=5000); usb_stor_control_msg() timeout argument is actually specified in jiffies. usb_stor_euscsi_init() enables multi-target mode for SCM eUSB SCSI bridge devices. The control message it sends has wLength = 1 and the byte sent is 0x01. While

[PATCH] storage: Fix timeout in usb_stor_euscsi_init() and usb_stor_huawei_e220_init()

2014-10-17 Thread Mark Knibbs
Hi, After the recent linux-usb mailing list thread "usb_stor_control_msg() timeout argument"... The timeout argument to usb_stor_control_msg() is specified in jiffies, not milliseconds. Signed-off-by: Mark Knibbs --- diff -up linux-3.17/drivers/usb/storage/initializers.c.orig linux-3.17/drive

Re: usb_stor_control_msg() timeout argument

2014-10-17 Thread Mark Knibbs
On Fri, 17 Oct 2014 15:22:02 -0400 (EDT) Alan Stern wrote: > On Fri, 17 Oct 2014, Mark Knibbs wrote: > > > ... > > It looks like the 5000 timeout in usb_stor_euscsi_init() should be replaced > > by 5*HZ then? > > Yes, it does look wrong. There may be other places that also call the > function w

Re: usb_stor_control_msg() timeout argument

2014-10-17 Thread Alan Stern
On Fri, 17 Oct 2014, Mark Knibbs wrote: > Ah, thanks. Given that, it seems my recent patch > "[PATCH] storage: Replace magic number with define in usb_stor_euscsi_init()" > which replaced 5000 with USB_CTRL_SET_TIMEOUT wasn't correct, though that > patch wouldn't change the compiled code. > > It

Re: [PATCH 1/9] usb: dwc2/gadget: report disconnect event from 'end session' irq

2014-10-17 Thread Felipe Balbi
On Fri, Oct 17, 2014 at 12:35:39PM +0200, Marek Szyprowski wrote: > Hello, > > On 2014-10-16 15:33, Felipe Balbi wrote: > >On Thu, Oct 16, 2014 at 02:57:57PM +0200, Marek Szyprowski wrote: > >>This patch adds a call to s3c_hsotg_disconnect() from 'end session' > >>interrupt to correctly notify gad

[PATCH] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-17 Thread Felipe Balbi
From: Sudip Mukherjee sparse was giving the following warning: warning: context imbalance in 's3c_hsotg_ep_enable' - different lock contexts for basic block we were returning ENOMEM while still holding the spinlock. The sparse warning was fixed by releasing the sp

Re: [PATCH 15/67] usb: gadget: pxa27x_udc: add devicetree support

2014-10-17 Thread Felipe Balbi
On Fri, Oct 17, 2014 at 09:08:51PM +0200, Robert Jarzmik wrote: > Felipe Balbi writes: > > > Hi, > > > > On Fri, Oct 17, 2014 at 08:06:45PM +0200, Robert Jarzmik wrote: > >> Felipe Balbi writes: > >> > >> Thanks Felipe. > >> > >> Can I post now the remaining 3 patches of the partial serie, ie.

Re: [PATCH v3 1/2] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-17 Thread Felipe Balbi
On Fri, Oct 17, 2014 at 07:05:19PM +, Paul Zimmerman wrote: > > From: Felipe Balbi [mailto:ba...@ti.com] > > Sent: Friday, October 17, 2014 11:52 AM > > > > On Fri, Oct 17, 2014 at 06:50:19PM +, Paul Zimmerman wrote: > > > > From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > > > >

Re: [PATCH 15/67] usb: gadget: pxa27x_udc: add devicetree support

2014-10-17 Thread Robert Jarzmik
Felipe Balbi writes: > Hi, > > On Fri, Oct 17, 2014 at 08:06:45PM +0200, Robert Jarzmik wrote: >> Felipe Balbi writes: >> >> Thanks Felipe. >> >> Can I post now the remaining 3 patches of the partial serie, ie. : >> - usb: gadget: pxa27x_udc device-tree documentation >> - usb: gadget: pxa27x

RE: [PATCH v3 1/2] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-17 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Friday, October 17, 2014 11:52 AM > > On Fri, Oct 17, 2014 at 06:50:19PM +, Paul Zimmerman wrote: > > > From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > > > Sent: Thursday, October 16, 2014 9:44 PM > > > > > > sparse was giving the

[PATCH v2 51/67] usb: gadget: udc: net2280: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/net2280.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/driv

RE: [PATCH v3 2/2] usb: dwc2: gadget: modify return statement

2014-10-17 Thread Paul Zimmerman
> From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > Sent: Thursday, October 16, 2014 9:44 PM > > modified the function to have a single return statement at the end > instead of multiple return statement in the middle of the function > to improve the readability of the code. > > This pat

Re: [PATCH v3 1/2] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-17 Thread Felipe Balbi
On Fri, Oct 17, 2014 at 06:50:19PM +, Paul Zimmerman wrote: > > From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > > Sent: Thursday, October 16, 2014 9:44 PM > > > > sparse was giving the following warning: > > warning: context imbalance in 's3c_hsotg_ep_enable' > >

RE: [PATCH v3 1/2] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-17 Thread Paul Zimmerman
> From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > Sent: Thursday, October 16, 2014 9:44 PM > > sparse was giving the following warning: > warning: context imbalance in 's3c_hsotg_ep_enable' > - different lock contexts for basic block > > we were returning

Re: [PATCH v2 16/16] usb: dwc3: enable usb suspend phy

2014-10-17 Thread Felipe Balbi
Hi, On Fri, Oct 17, 2014 at 06:41:04PM +, Paul Zimmerman wrote: > > From: Felipe Balbi [mailto:ba...@ti.com] > > Sent: Friday, October 17, 2014 8:00 AM > > > > On Fri, Oct 17, 2014 at 04:53:41PM +0800, Huang Rui wrote: > > > AMD NL needs to suspend usb3 ss phy, but this doesn't enable on simu

RE: [PATCH v2 16/16] usb: dwc3: enable usb suspend phy

2014-10-17 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Friday, October 17, 2014 8:00 AM > > On Fri, Oct 17, 2014 at 04:53:41PM +0800, Huang Rui wrote: > > AMD NL needs to suspend usb3 ss phy, but this doesn't enable on simulation > > board. > > > > Signed-off-by: Huang Rui > > --- > > drivers/usb/dw

Re: [PATCH 15/67] usb: gadget: pxa27x_udc: add devicetree support

2014-10-17 Thread Felipe Balbi
Hi, On Fri, Oct 17, 2014 at 08:06:45PM +0200, Robert Jarzmik wrote: > Felipe Balbi writes: > > Thanks Felipe. > > Can I post now the remaining 3 patches of the partial serie, ie. : > - usb: gadget: pxa27x_udc device-tree documentation > - usb: gadget: pxa27x_udc: use devm_* helpers > - usb:

RE: [PATCH v3 2/2] usb: dwc2: gadget: modify return statement

2014-10-17 Thread Paul Zimmerman
> From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > Sent: Friday, October 17, 2014 3:03 AM > > On Fri, Oct 17, 2014 at 09:02:00AM +, David Laight wrote: > > From: Of Sudip Mukherjee > > > modified the function to have a single return statement at the end > > > instead of multiple ret

Re: [PATCH 15/67] usb: gadget: pxa27x_udc: add devicetree support

2014-10-17 Thread Robert Jarzmik
Felipe Balbi writes: Thanks Felipe. Can I post now the remaining 3 patches of the partial serie, ie. : - usb: gadget: pxa27x_udc device-tree documentation - usb: gadget: pxa27x_udc: use devm_* helpers - usb: gadget: pxa27x_udc: fix clock prepare and enable Do you want me to rebase against a

Re: usb_stor_control_msg() timeout argument

2014-10-17 Thread Mark Knibbs
On Fri, 17 Oct 2014 12:53:45 -0400 (EDT) Alan Stern wrote: > On Fri, 17 Oct 2014, Mark Knibbs wrote: > > > In include/linux/usb.h, there is > > /* > > * timeouts, in milliseconds, used for sending/receiving control messages > > * they typically complete within a few frames (msec) after they're

[PATCH 21/67] usb: gadget: udc: document our sysfs ABI

2014-10-17 Thread Felipe Balbi
I noticed that this has been missing for quite some time so I decided it was about time to document it. Signed-off-by: Felipe Balbi --- Documentation/ABI/stable/sysfs-class-udc | 93 1 file changed, 93 insertions(+) create mode 100644 Documentation/ABI/stable/sy

[PATCH 16/67] usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete()

2014-10-17 Thread Felipe Balbi
From: George Cherian Enabling the core interrupts in complete is too late for XHCI, and stops it from proper operation. The root of the problem is due to a disagreement between dwc3-omap and XHCI about when IRQs should be enabled. As it turns out, ->resume's documentation states that: "... gene

[PATCH 11/67] usb: renesas_usbhs: clean up rcar2.c to support a generic PHY

2014-10-17 Thread Felipe Balbi
From: Yoshihiro Shimoda To support both usb PHY and generic PHY, this patch cleans up rcar2.c. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Felipe Balbi --- drivers/usb/renesas_usbhs/rcar2.c | 48 +-- 1 file changed, 26 insertions(+), 22 deletions(-) di

[PATCH 56/67] usb: gadget: udc: pass a single argument to usb_gadget_udc_start/stop

2014-10-17 Thread Felipe Balbi
We know that our udc points to our gadget and our gadget_driver, simplify the interface by passing a single argument. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/udc-core.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/usb/gadget/ud

[PATCH 62/67] usb: gadget: udc: net2272: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/net2272.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/u

[PATCH 41/67] usb: renesas_usbhs: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/renesas_usbhs/common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/r

[PATCH 17/67] usb: dwc3: get rid of ->prepare()/->complete()

2014-10-17 Thread Felipe Balbi
Using ->prepare()/->complete() to mask/unmask IRQs is wrong at least for dwc3. We need to make sure that by the end of ->resume(), IRQs are working and ready to fire because a child device may need working IRQs for its own ->resume() method. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.

[PATCH 64/67] usb: gadget: udc: s3c-hsudc: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/s3c-hsudc.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/dri

[PATCH 37/67] usb: phy: phy-rcar-gen2-usb: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-rcar-gen2-usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb

[PATCH 59/67] usb: gadget: udc: dummy: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/dummy_hcd.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/gadget/udc/

[PATCH 50/67] usb: gadget: udc: net2272: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/net2272.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 57/67] usb: gadget: udc: at91: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/at91_udc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/

[PATCH 39/67] usb: phy: phy-msm-usb: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-msm-usb.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/ph

[PATCH 44/67] usb: gadget: udc: at91: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/at91_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH 14/67] usb: gadget: pxa27x_udc: transfer mach_info into pxa_udc

2014-10-17 Thread Felipe Balbi
From: Robert Jarzmik Convert the mach info, and store the udc_command in the pxa_udc control structure. It is to be noticed that the udc_is_connected() in mach info is not transfered. This was not used, as mioa701 machine doesn't need it, balloon3 doesn't really use it, and most importantly the

[PATCH 15/67] usb: gadget: pxa27x_udc: add devicetree support

2014-10-17 Thread Felipe Balbi
From: Robert Jarzmik Add support for device-tree device discovery. If devicetree is not provided, fallback to legacy platform data "discovery". Signed-off-by: Robert Jarzmik Cc: devicet...@vger.kernel.org Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/pxa27x_udc.c | 11 +++ 1

[PATCH 35/67] usb: phy: phy-tegra-usb: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-tegra-usb.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/ph

[PATCH 47/67] usb: gadget: udc: lpc32xx: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/lpc32xx_udc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/gadget/udc

[PATCH 66/67] usb: gadget: udc: core: fix unregistering message

2014-10-17 Thread Felipe Balbi
Currently, we're printing gadget driver name when registering and UDC name when unregistering. Standardize on always printing gadget driver name. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/udc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadg

[PATCH 49/67] usb: gadget: udc: mv_udc: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/mv_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 34/67] usb: phy: phy-rcar-usb: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-rcar-usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-rcar-usb.c b/drivers/usb/phy/phy-rc

[PATCH 09/67] usb: dwc3: ep0: trace ep0 TRBs too

2014-10-17 Thread Felipe Balbi
Add TRB tracepoints for ep0 TRBs as that might help finding bugs with ep0 handling. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/ep0.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index ee216c6..4182210 100644 --- a/drivers/usb/dwc

[PATCH 55/67] usb: musb: gadget: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/musb/musb_gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/us

[PATCH 13/67] usb: gadget: pxa27x_udc: prepare device-tree support

2014-10-17 Thread Felipe Balbi
From: Robert Jarzmik For this preparation, a preliminary cleanup is done : - convert the probing of pxa27x_udc to gpio_desc. The conversion is partial because : - the platform data still provides a gpio number, not a gpio desc Signed-off-by: Robert Jarzmik Signed-off-by: Felipe Balbi

[PATCH 27/67] usb: gadget: s3c-hsudc: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/s3c-hsudc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/g

[PATCH 38/67] usb: phy: phy-mxs-usb: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-mxs-usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-

[PATCH 28/67] usb: musb: davinci: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/musb/davinci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c ind

[PATCH 30/67] usb: musb: omap2430: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/musb/omap2430.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/usb/musb/omap2430.c b/drivers/us

[PATCH 45/67] usb: gadget: udc: dummy: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/dummy_hcd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH 58/67] usb: gadget: udc: atmel_usba: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/atmel_usba_udc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc

[PATCH 36/67] usb: phy: phy-am335x-control: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-am335x-control.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-am335x-control.c b/drivers/u

[PATCH 61/67] usb: gadget: udc: gr_udc: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/gr_udc.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/us

[PATCH 53/67] usb: gadget: udc: pxa27x: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/pxa27x_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/u

[PATCH 67/67] usb: gadget: remove unnecessary 'driver' argument

2014-10-17 Thread Felipe Balbi
now that no UDC driver relies on the extra 'driver' argument to ->udc_stop(), we can safely remove it. Signed-off-by: Felipe Balbi --- drivers/usb/chipidea/udc.c | 6 ++ drivers/usb/dwc2/gadget.c | 3 +-- drivers/usb/dwc3/gadget.c | 3 +-- drivers/usb

[PATCH 42/67] usb: musb: ux500_dma: use dmaengine_xxx() APIs

2014-10-17 Thread Felipe Balbi
From: Vinod Koul The drivers should use dmaengine_terminate_all() or dmaengine_slave_config() API instead of accessing the device_control which will be deprecated soon Signed-off-by: Vinod Koul Signed-off-by: Felipe Balbi --- drivers/usb/musb/ux500_dma.c | 7 ++- 1 file changed, 2 inserti

[PATCH 54/67] usb: gadget: udc: s3c-hsudc: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/s3c-hsudc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dr

[PATCH 05/67] usb: dwc3: add ACPI support

2014-10-17 Thread Felipe Balbi
From: Heikki Krogerus Adding ACPI ID used on newer Intel SoCs. Signed-off-by: Heikki Krogerus Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 1384300..4d4e854 100

[PATCH 08/67] usb: gadget: composite: conditionally dequeue os_desc and setup requests

2014-10-17 Thread Felipe Balbi
In case we unload a gadget driver while any of os_desc_req or req are still pending, we need to make sure to dequeue them. By using our setup_pending and os_desc_pending flags we achieve that in a way that doesn't cause any regressions because we won't dequeue a request which was already completed

[PATCH 43/67] usb: gadget: udc: amd5536: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/amd5536udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/u

[PATCH 48/67] usb: gadget: udc: mv_u3d: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/mv_u3d_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH 63/67] usb: gadget: udc: net2280: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/net2280.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers

[PATCH 01/67] usb: dwc3: core: write LINUX_VERSION_CODE to our GUID register

2014-10-17 Thread Felipe Balbi
DWC3's GUID register is supposed to be used to write any sort of version we might want. It helps when getting bug reports for platforms you don't have HW to know which kernel version of the driver was running on the platform. Because we don't really track driver version, but we _do_ track the kern

[PATCH 18/67] usb: gadget: udc-core: call ->disconnect() when soft disconnecting

2014-10-17 Thread Felipe Balbi
when disconnecting from host using our soft_connect sysfs interface, also let the gadget driver know about it by calling the gadget driver's ->disconnect() method. No problems have been found while not calling ->disconnect() so far, it's just good convention. Signed-off-by: Felipe Balbi --- dri

[PATCH 60/67] usb: gadget: udc: fsl_qe: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/fsl_qe_udc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/dr

[PATCH 26/67] usb: gadget: bcm63xx_udc: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/bcm63xx_udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/u

[PATCH 52/67] usb: gadget: udc: pxa25x: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/pxa25x_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/u

[PATCH 29/67] usb: musb: ux500: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/musb/ux500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c index dc6

[PATCH 23/67] usb: dwc3: gadget: WARN() on bogus usb_ep_queue()

2014-10-17 Thread Felipe Balbi
Some gadget/function drivers might want to do improper request recycling by allocating a single request from one particular endpoint and queueing it to another completely unrelated endpoint. One such case was found with f_loopback.c. To prevent such cases from happening again, let's WARN() so we

[PATCH 46/67] usb: gadget: udc: fsl_qe: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/fsl_qe_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 51/67] usb: gadget: udc: net2280: do not rely on 'driver' argument

2014-10-17 Thread Felipe Balbi
future patches will remove the extra 'driver' argument to ->udc_stop(), in order to do that, we must make sure that our UDC does not rely on it first. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/net2280.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/driver

[PATCH 65/67] usb: musb: gadget: remove bind/unbind messages

2014-10-17 Thread Felipe Balbi
now that we provide generic register/unregister debugging messages from udc-core, we can remove the same messages from this driver. Signed-off-by: Felipe Balbi --- drivers/usb/musb/musb_gadget.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/

[PATCH 40/67] usb: phy: phy-mv-usb: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-mv-usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/phy/phy-mv-usb.c b/drivers/usb/phy/phy-mv-usb

[PATCH 03/67] ACPI: platform: provide default DMA mask

2014-10-17 Thread Felipe Balbi
From: Heikki Krogerus Most devices are configured for 32-bit DMA addresses. Setting the mask to 32-bit here removes the need for the drivers to do it separately. Acked-by: Rafael J. Wysocki Signed-off-by: Heikki Krogerus Signed-off-by: Felipe Balbi --- drivers/acpi/acpi_platform.c | 2 ++ 1

[PATCH 33/67] usb: musb: musb_dsps: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/musb/musb_dsps.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsp

[PATCH 02/67] usb: dwc3: trace: remove unnecessary newline character

2014-10-17 Thread Felipe Balbi
tracing infrastructure already adds those for us. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/ep0.c | 18 +- drivers/usb/dwc3/trace.h | 8 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 0a34e

[PATCH 32/67] usb: musb: tusb6010: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/musb/tusb6010.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c

[PATCH 22/67] usb: dwc3: gadget: set state to NOT_ATTACHED on disconnect_irq

2014-10-17 Thread Felipe Balbi
whenever we get a Disconnect Interrupt, we should make sure to update out udc state to NOT_ATTACHED, otherwise sysfs will show wrong values. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/

[PATCH 25/67] usb: gadget: fsl_qe_udc: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/fsl_qe_udc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_u

[PATCH 07/67] usb: gadget: composite: set our req->context to cdev

2014-10-17 Thread Felipe Balbi
by doing that we will be able to match our requests against req and os_desc_req and also clear our pending flags from complete callback. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/composite.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/driv

[PATCH 19/67] usb: gadget: f_uac1: remove an unneeded NULL check

2014-10-17 Thread Felipe Balbi
From: Dan Carpenter This NULL check sets off a static checker warning because we already dereferenced "card" earlier in the function. However, since "card" is never NULL so we can just remove the check. Signed-off-by: Dan Carpenter Signed-off-by: Felipe Balbi --- drivers/usb/gadget/function/

[PATCH 10/67] usb: renesas_usbhs: rename phy to usb_phy in usbhs_priv

2014-10-17 Thread Felipe Balbi
From: Yoshihiro Shimoda To support a generic phy driver in this driver later, this patch renames "struct usb_phy *phy" to "struct usb_phy *usb_phy". Signed-off-by: Yoshihiro Shimoda Signed-off-by: Felipe Balbi --- drivers/usb/renesas_usbhs/common.h | 2 +- drivers/usb/renesas_usbhs/rcar2.c

[PATCH 12/67] usb: renesas_usbhs: add support for generic PHY

2014-10-17 Thread Felipe Balbi
From: Yoshihiro Shimoda This patch adds support for the generic PHY. The generic PHY will be used in multiplatform environment. Acked-by: Kishon Vijay Abraham I Signed-off-by: Yoshihiro Shimoda Signed-off-by: Felipe Balbi --- drivers/usb/renesas_usbhs/common.h | 1 + drivers/usb/renesas_usb

[PATCH 20/67] usb: gadget: configfs: add suspend/resume

2014-10-17 Thread Felipe Balbi
From: Andrzej Pietrasiewicz USB gadgets composed with configfs lack suspend and resume methods. This patch uses composite_suspend()/composite_resume() the same way e.g. composite_setup() or composite_disconnect() are used in a configfs-based gadget. Signed-off-by: Andrzej Pietrasiewicz Signed-o

[PATCH 31/67] usb: musb: blackfin: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/musb/blackfin.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackf

[PATCH 24/67] usb: gadget: mv_udc_core: delete unnecessary 'out of memory' messages

2014-10-17 Thread Felipe Balbi
From: Peter Chen The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- drivers/usb/gadget/udc/mv_udc_core.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers

[PATCH 06/67] usb: gadget: composite: introduce setup and os_desc pending flags

2014-10-17 Thread Felipe Balbi
These flags we be set to true whenever their matching request is queued. They will be cleared to false when that request completes. Signed-off-by: Felipe Balbi --- include/linux/usb/composite.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/usb/composite.h b/include/linux

[PATCH 04/67] usb: dwc3: core: only setting the dma_mask when needed

2014-10-17 Thread Felipe Balbi
From: Heikki Krogerus If the probe drivers have already set the dma_mask, not replacing the value. Signed-off-by: Heikki Krogerus Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drive

[PATCH 00/67] usb: pending changes for next merge window

2014-10-17 Thread Felipe Balbi
Hi folks, here's a giant set of patches which I already have pending for v3.19 merge window. They still sit in my testing/next and will only be moved to next once all fixes reach v3.18-rc. Until then, I will keep rebasing them. Note that for this set to properly work, we are still pending a fix

  1   2   3   >