Fwd: [Bug 102101] USB 3 storage device disconnects after S3 resume,and re-enumerate it.

2015-07-31 Thread Aaron Zhou
There is a USB 3 bug . Are you have any suggests? Aaron Chou -- Forwarded message -- From: Date: Wed, Jul 29, 2015 at 10:13 PM Subject: [Bug 102101] USB 3 storage device disconnects after S3 resume,and re-enumerate it. To: zhoubb.aa...@gmail.com https://bugzilla.kernel.org/sho

[PATCH 2/3] phy-sun4i-sub: Move vbus-detect helper functions up in the file

2015-07-31 Thread Hans de Goede
Move vbus-detect helper functions up in the file, just moving some code around, no functional changes what so ever. Signed-off-by: Hans de Goede --- drivers/phy/phy-sun4i-usb.c | 48 ++--- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/dri

[PATCH 3/3] phy-sun4i-usb: Only check vbus-det on power-on on boards with vbus-det

2015-07-31 Thread Hans de Goede
data->vbus_det is always 1 on boards without a (working) vbus-det, skip the vbus_det test on such boards. This fixes the sun4i usb phy code never turning on Vbus on such boards. Signed-off-by: Hans de Goede --- drivers/phy/phy-sun4i-usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 0/3] phy-sun4i-usb: 3 misc. fixes

2015-07-31 Thread Hans de Goede
Hi Kishon, Here are 3 small patches for the phy-sun4i-usb code. The first patch is a small bugfix for building the sun4i musb code as module which seems to have fallen through the cracks. The second patch is a preparation patch for the third patch which fixes the case of boards with a working VB

[PATCH 1/3] phy-sun4i-usb: Add missing EXPORT_SYMBOL for sun4i_usb_phy_set_squelch_detect

2015-07-31 Thread Hans de Goede
sun4i_usb_phy_set_squelch_detect is used by other code, which may be built as a module, so it should be exported. Signed-off-by: Hans de Goede --- Changes in v6: -New patch in v6 of the sunxi musb support series --- drivers/phy/phy-sun4i-usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH 2/3] Doc: ABI: testing: configfs-usb-gadget-sourcesink

2015-07-31 Thread Peter Chen
Fix the name of attribute Cc: Signed-off-by: Peter Chen --- Documentation/ABI/testing/configfs-usb-gadget-sourcesink | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ABI/testing/configfs-usb-gadget-sourcesink b/Documentation/ABI/testing/configfs-usb-gadget-sour

[PATCH 1/3] Doc: ABI: testing: configfs-usb-gadget-loopback

2015-07-31 Thread Peter Chen
Fix the name of attribute Cc: Signed-off-by: Peter Chen --- Documentation/ABI/testing/configfs-usb-gadget-loopback | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ABI/testing/configfs-usb-gadget-loopback b/Documentation/ABI/testing/configfs-usb-gadget-loopback

[PATCH 3/3] doc: usb: gadget-testing: using the updated testusb.c

2015-07-31 Thread Peter Chen
testusb.c at http://www.linux-usb.org/usbtest/ is out of date, using the one at the kernel source folder. Cc: Signed-off-by: Peter Chen --- Documentation/usb/gadget-testing.txt | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Documentation/usb/gadget-testing.txt b/Doc

Re: [PATCH v9 3/4] USB: io_ti: Add firmware image sanity checks

2015-07-31 Thread Johan Hovold
On Fri, Jul 31, 2015 at 01:55:07AM -0500, Peter E. Berger wrote: > From: "Peter E. Berger" > +static int check_fw_sanity(struct edgeport_serial *serial, > + const struct firmware *fw) > +{ > + u16 length_total; > + u8 checksum = 0; > + int pos; > + struct device *dev

Re: [PATCH v9 4/4] USB: io_ti: Add heartbeat to keep idle EP/416 ports from disconnecting

2015-07-31 Thread Johan Hovold
On Fri, Jul 31, 2015 at 01:55:08AM -0500, Peter E. Berger wrote: > From: "Peter E. Berger" > > When using Edgeport/416 models with newer firmware (sometime after > firmware version 4.80.0), idle ports are automatically bounced > (disconnected and then reconnected) approximately every 60 seconds.

[PATCH] usb: gadget: mass_storage: Fix freeing luns sysfs implementation

2015-07-31 Thread Krzysztof Opasiak
Use device_is_registered() instad of sysfs flag to determine if we should free sysfs representation of particular LUN. sysfs flag in fsg common determines if luns attributes should be exposed using sysfs. This flag is used when creating and freeing luns. Unfortunately there is no guarantee that th

[PATCH v2] usb: gadget: mass_storage: Use static array for luns

2015-07-31 Thread Krzysztof Opasiak
This patch replace dynamicly allocated luns array with static one. This simplifies the code of mass storage function and modules. Signed-off-by: Krzysztof Opasiak Acked-by: Michal Nazarewicz -- IMPORTANT: This patch depends on patch: usb: gadget: mass_storage: Fix freeing luns sysfs implementat

Re: [PATCH] usb: gadget: mass_storage: Fix freeing luns sysfs implementation

2015-07-31 Thread Michal Nazarewicz
On Fri, Jul 31 2015, Krzysztof Opasiak wrote: > Use device_is_registered() instad of sysfs flag to determine if > we should free sysfs representation of particular LUN. […] > > Signed-off-by: Krzysztof Opasiak Acked-by: Michal Nazarewicz > --- > drivers/usb/gadget/function/f_mass_storage.c |

Re: [PATCH] usb: gadget: mass_storage: Use static array for luns

2015-07-31 Thread Krzysztof Opasiak
Hi, On 07/30/2015 06:43 PM, Felipe Balbi wrote: Hi, On Thu, Jul 23, 2015 at 07:57:49PM +0200, Krzysztof Opasiak wrote: This patch replace dynamicly allocated luns array with static one. This simplifies the code of mass storage function and modules. Signed-off-by: Krzysztof Opasiak Acked-by:

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread chunfeng yun
hi, On Tue, 2015-07-28 at 11:17 +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Sunday 26 July 2015 08:21 AM, chunfeng yun wrote: > > hi, > > On Wed, 2015-07-22 at 09:21 -0500, Felipe Balbi wrote: > >> Hi, > >> > >> On Wed, Jul 22, 2015 at 10:05:43PM +0800, Chunfeng Yun wrote: > >>> support usb3

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread chunfeng yun
hi Ricky, On Mon, 2015-07-27 at 21:58 +0800, Ricky Liang wrote: > Hi Chungfeng, > > Comments inline. > > On Wed, Jul 22, 2015 at 10:05 PM, Chunfeng Yun > wrote: > > support usb3.0 phy of mt65xx SoCs > > > > Signed-off-by: Chunfeng Yun > > --- > > drivers/phy/Kconfig | 9 + > > driv

[PATCH v4 5/5] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-07-31 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 17 + arch/arm64/boot/dts/mediatek/mt8173.dtsi| 29 + 2 files changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek

[PATCH v4 4/5] xhci: mediatek: support MTK xHCI host controller

2015-07-31 Thread Chunfeng Yun
MTK xhci host controller defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context Signed-off-by: Chunfeng Yun --- drivers/usb/host/Kconfig|

[PATCH v4 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread Chunfeng Yun
support usb3.0 phy of mt65xx SoCs Signed-off-by: Chunfeng Yun --- drivers/phy/Kconfig | 9 + drivers/phy/Makefile | 1 + drivers/phy/phy-mt65xx-usb3.c | 419 ++ 3 files changed, 429 insertions(+) create mode 100644 drivers/phy/phy-m

Mediatek xHCI support

2015-07-31 Thread Chunfeng Yun
>From 8babf12102cda26752771c1aebd0aff38514847f Mon Sep 17 00:00:00 2001 From: Chunfeng Yun Date: Fri, 31 Jul 2015 20:44:17 +0800 Subject: [PATCH v4 0/5] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1. The interval is specified in

[PATCH v4 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-31 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt8173-xhci.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mt81

[PATCH v4 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-07-31 Thread Chunfeng Yun
add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mt65xx-usb.tx

Re: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-31 Thread Mark Rutland
Hi, > > > + - mediatek,usb-wakeup: to access usb wakeup control register > > > > What exactly does this property imply? > > > There are some control registers for usb wakeup which are put in another > module, here to get the node of that module, and then use regmap and > syscon to operate it. O

Re: [PATCH v4 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-31 Thread Mark Rutland
Hi, Sorry for my late reply to a prior version of this series, but I still have concerns with some of the properties. I'll repeat those below. On Fri, Jul 31, 2015 at 02:03:53PM +0100, Chunfeng Yun wrote: > add a DT binding documentation of xHCI host controller for the > MT8173 SoC from Mediatek

Re: [PATCH] usb: gadget: mass_storage: Use static array for luns

2015-07-31 Thread Felipe Balbi
Hi, On Fri, Jul 31, 2015 at 02:08:04PM +0200, Krzysztof Opasiak wrote: > Hi, > > On 07/30/2015 06:43 PM, Felipe Balbi wrote: > >Hi, > > > >On Thu, Jul 23, 2015 at 07:57:49PM +0200, Krzysztof Opasiak wrote: > >>This patch replace dynamicly allocated luns array with static one. > >>This simplifies

[PATCH v5 05/46] usb: chipidea: udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/chipidea/udc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index b7cca3e..4aaa476 100644 --- a/drivers/usb/chipi

[PATCH v5 18/46] usb: gadget: gr_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/gr_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c index c886887..8aa2593 100644 --- a/drive

[PATCH v5 42/46] usb: gadget: move ep_matches() from epautoconf to udc-core

2015-07-31 Thread Robert Baldyga
Move ep_matches() function to udc-core and rename it to usb_gadget_ep_match_desc(). This function can be used by UDC drivers in 'match_ep' callback to avoid writing lots of repetitive code. Replace all calls of ep_matches() with usb_gadget_ep_match_desc(). Signed-off-by: Robert Baldyga --- driv

[PATCH v5 41/46] usb: gadget: add 'ep_match' callback to usb_gadget_ops

2015-07-31 Thread Robert Baldyga
Add callback that is called by epautoconf to allow UDC driver match the best endpoint for specific descriptor. It's intended to supply mechanism which allows to get rid of chip-specific endpoint matching code from epautoconf. If gadget has set 'ep_match' callback we prefer to call it first, and if

[PATCH v5 40/46] usb: gadget: epautoconf: rework ep_matches() function

2015-07-31 Thread Robert Baldyga
Rework ep_matches() function to make it shorter and more readable. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 87 + 1 file changed, 35 insertions(+), 52 deletions(-) diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadge

[PATCH v5 46/46] usb: musb: gadget: add musb_match_ep() function

2015-07-31 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga --

[PATCH v5 43/46] usb: gadget: move find_ep() from epautoconf to gadget.h

2015-07-31 Thread Robert Baldyga
Move find_ep() function to gadget.h, rename it to gadget_find_ep_by_name() and make it static inline. It can be used in UDC drivers, especially in 'match_ep' callback after moving chip-specific endpoint matching logic from epautoconf to UDC drivers. Replace all calls of find_ep() function with gad

[PATCH v5 45/46] usb: gadget: goku_udc: add goku_match_ep() function

2015-07-31 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga --

[PATCH v5 44/46] usb: gadget: net2280: add net2280_match_ep() function

2015-07-31 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga --

[PATCH v5 30/46] usb: gadget: s3c-hsudc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c-hsudc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/gadget/udc/s3c-hsudc.c index 85a712a..e9def42 1006

[PATCH v5 32/46] usb: gadget: udc-xilinx: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/udc-xilinx.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index 1f24274..1cbb0ac 100644 --

[PATCH v5 33/46] usb: isp1760: udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/isp1760/isp1760-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c index 3699962..1c3d0fd 100644 ---

[PATCH v5 36/46] usb: gadget: atmel_usba_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/atmel_usba_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 37d414e..2

[PATCH v5 34/46] usb: musb: gadget: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/musb/musb_gadget.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 9e18178..4150baf 100644 --- a/drivers

[PATCH v5 37/46] usb: gadget: epautoconf: add endpoint capabilities flags verification

2015-07-31 Thread Robert Baldyga
Introduce endpoint matching mechanism basing on endpoint capabilities flags. We check if endpoint supports transfer type and direction requested in ep descriptor. Since we have this new endpoint matching mechanism there is no need to have old code guessing endpoint capabilities basing on its name,

[PATCH v5 29/46] usb: gadget: r8a66597-udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/r8a66597-udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index 0293f71..baa0609

[PATCH v5 28/46] usb: gadget: pxa27x_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pxa27x_udc.h | 40 +++-- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/udc/pxa27x_udc.h b/drivers/usb/gadget/ud

[PATCH v5 35/46] usb: renesas: gadget: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/renesas_usbhs/mod_gadget.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 494dfe0..de4f97d 100

[PATCH v5 38/46] usb: gadget: epautoconf: remove pxa quirk from ep_matches()

2015-07-31 Thread Robert Baldyga
The same effect can be achieved by using capabilities flags, so now we can get rid of handling of hardware specific limitations in generic code. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 5 - drivers/usb/gadget/udc/pxa25x_udc.c | 9 +++-- 2 files changed, 3

[PATCH v5 27/46] usb: gadget: pxa25x_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pxa25x_udc.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c index 2

[PATCH v5 26/46] usb: gadget: pch_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pch_udc.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index dcf5def..fa9e

[PATCH v5 19/46] usb: gadget: lpc32xx_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/lpc32xx_udc.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c inde

[PATCH v5 17/46] usb: gadget: goku_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/goku_udc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 9e8d842..46b8d14 100644 --- a/dri

[PATCH v5 22/46] usb: gadget: mv_udc_core: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/mv_udc_core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c index 5da37c9..339af51 100644

[PATCH v5 21/46] usb: gadget: mv_u3d_core: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/mv_u3d_core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index ea35a24..4c48969 100644

[PATCH v5 24/46] usb: gadget: net2280: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2280.c | 67 +--- 1 file changed, 55 insertions(+), 12 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/ne

[PATCH v5 20/46] usb: gadget: m66592-udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/m66592-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c index 9704053..b1cfa96 10064

[PATCH v5 25/46] usb: gadget: omap_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/omap_udc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c index e2fcdb8..9b7d394

[PATCH v5 23/46] usb: gadget: net2272: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2272.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index c2ed5da..18f5ebd 100644 --- a/dr

[PATCH v5 39/46] usb: gadget: epautoconf: remove ep and desc configuration from ep_matches()

2015-07-31 Thread Robert Baldyga
As function ep_matches() is used to match endpoint with usb descriptor it's highly unintuitive that it modifies endpoint and descriptor structures fields. This patch moves code configuring ep and desc from ep_matches() to usb_ep_autoconfig_ss(), so now function ep_matches() does nothing more than i

[PATCH v5 31/46] usb: gadget: s3c2410_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c2410_udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c index 5d9aa81..eb3571e 100

[PATCH v5 08/46] usb: gadget: amd5536udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/amd5536udc.c | 88 - 1 file changed, 78 insertions(+), 10 deletions(-) diff --git a/drivers/usb/gadget/udc/amd5536udc.c b/drivers/usb/gadget/ud

[PATCH v5 11/46] usb: gadget: bdc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.c b/drivers/usb/gadget/udc/bdc/bdc_ep.c index b04980c..f9a8f57 100644 --

[PATCH v5 12/46] usb: gadget: dummy-hcd: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/dummy_hcd.c | 95 -- 1 file changed, 80 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc

[PATCH v5 09/46] usb: gadget: at91_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/at91_udc.c | 38 +- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at

[PATCH v5 10/46] usb: gadget: bcm63xx_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/bcm63xx_udc.c | 29 + 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/usb/gadget/udc/bcm63

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread Kishon Vijay Abraham I
Hi, On Friday 31 July 2015 05:55 PM, chunfeng yun wrote: > hi, > On Tue, 2015-07-28 at 11:17 +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Sunday 26 July 2015 08:21 AM, chunfeng yun wrote: >>> hi, >>> On Wed, 2015-07-22 at 09:21 -0500, Felipe Balbi wrote: Hi, On Wed, Jul 22,

[PATCH v5 15/46] usb: gadget: fsl_udc_core: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_udc_core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index c60022b..aab52

[PATCH v5 16/46] usb: gadget: fusb300_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fusb300_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c index 3970f45..948845c 10

[PATCH v5 14/46] usb: gadget: fsl_qe_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_qe_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index e0822f1..5fb6f8b 10064

[PATCH v5 13/46] usb: gadget: fotg210-udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fotg210-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index a99ed6d..6ba122c 10

[PATCH v5 04/46] staging: emxx_udc: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Fixed typo in "epc-nulk" to "epc-bulk". Signed-off-by: Robert Baldyga --- drivers/staging/emxx_udc/emxx_udc.c | 73 + 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/drivers/staging/emx

[PATCH v5 06/46] usb: dwc2: gadget: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 731b13d..3ee5b4c 100644 --- a/drivers/usb/dwc2/gadg

[PATCH v5 00/46] usb: gadget: rework ep matching and claiming mechanism

2015-07-31 Thread Robert Baldyga
Hello, This patch series reworks endpoint matching and claiming mechanism in epautoconf. From v2 there are couple of new patches adding 'ep_match' to usb_gadget_ops and removing chip-specific quirk handling from generic code of autoconfig. I'm not sure if this patch set isn't too long, as it has

[PATCH v5 07/46] usb: dwc3: gadget: add ep capabilities support

2015-07-31 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/dwc3/gadget.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 2feed9e..bd4c3db 100644 --- a/drivers/usb/dwc3/gadg

[PATCH v5 01/46] usb: gadget: encapsulate endpoint claiming mechanism

2015-07-31 Thread Robert Baldyga
So far it was necessary for usb functions to set ep->driver_data in endpoint obtained from autoconfig to non-null value, to indicate that endpoint is claimed by function (in autoconfig it was checked if endpoint has set this field to non-null value, and if it has, it was assumed that it is claimed)

Re: [linux-sunxi] [PATCH v5 2/7] phy-sun4i-usb: Add extcon support for the otg phy (phy0)

2015-07-31 Thread Jonathan Liu
Hi Hans, On 13/06/2015 10:37 PM, Hans de Goede wrote: The sunxi musb glue needs to know if a host or normal usb cable is plugged in, add extcon support so that the musb glue can monitor the host status. Signed-off-by: Hans de Goede --- Changes in v5: -Split out of the "Add id and vbus detectio

Re: [linux-sunxi] [PATCH v5 2/7] phy-sun4i-usb: Add extcon support for the otg phy (phy0)

2015-07-31 Thread Hans de Goede
Hi, On 31-07-15 16:23, Jonathan Liu wrote: Hi Hans, On 13/06/2015 10:37 PM, Hans de Goede wrote: The sunxi musb glue needs to know if a host or normal usb cable is plugged in, add extcon support so that the musb glue can monitor the host status. Signed-off-by: Hans de Goede --- Changes in v5

[PATCH v5 03/46] usb: gadget: add endpoint capabilities helper macros

2015-07-31 Thread Robert Baldyga
Add macros useful while initializing array of endpoint capabilities structures. These macros makes structure initialization more compact to decrease number of code lines and increase readability of code. Signed-off-by: Robert Baldyga --- include/linux/usb/gadget.h | 20 1 fi

[PATCH v5 02/46] usb: gadget: add endpoint capabilities flags

2015-07-31 Thread Robert Baldyga
Introduce struct usb_ep_caps which contains information about capabilities of usb endpoints - supported transfer types and directions. This structure should be filled by UDC driver for each of its endpoints, and will be used in epautoconf in new ep matching mechanism which will replace ugly guessin

Re: [PATCH] drivers/usb/: Simplify return statements

2015-07-31 Thread Felipe Balbi
Hi, (no top-posting) On Fri, Jul 31, 2015 at 05:06:07AM +, Karajgaonkar, Saurabh (S.) wrote: > Sure, I'll do that. Just wanted to know whether I should split the > patches and send them in this same mail thread (may be something like > [PATCH 01/04 V2]) or should I start new threads and send

Add commit 3f2cee73b650 ("USB: usbfs: allow URBs to be reaped after disconnection") to -stable

2015-07-31 Thread Alan Stern
Greg: The $SUBJECT commit was added in the 4.0 kernel, but I forgot to mark it for inclusion in the -stable kernels. The problem it fixes is a nasty one, affecting people who use libusb: When a device is disconnected while a libusb transfer is in progress, libusb never receives a completion n

Re: [PATCH v9 4/4] USB: io_ti: Add heartbeat to keep idle EP/416 ports from disconnecting

2015-07-31 Thread Peter Berger
On Fri, 2015-07-31 at 12:21 +0200, Johan Hovold wrote: > On Fri, Jul 31, 2015 at 01:55:08AM -0500, Peter E. Berger wrote: > > From: "Peter E. Berger" > > > > When using Edgeport/416 models with newer firmware (sometime after > > firmware version 4.80.0), idle ports are automatically bounced > > (

Re: [PATCH v5 02/46] usb: gadget: add endpoint capabilities flags

2015-07-31 Thread Felipe Balbi
Hi, On Fri, Jul 31, 2015 at 03:51:52PM +, David Laight wrote: > From: Robert Baldyga > > Sent: 31 July 2015 15:00 > > Introduce struct usb_ep_caps which contains information about capabilities > > of usb endpoints - supported transfer types and directions. This structure > > should be filled b

Re: linux-next: Tree for Jul 31 (usb/phy/phy-qcom-8x16-usb.c)

2015-07-31 Thread Randy Dunlap
On 07/30/15 22:47, Stephen Rothwell wrote: > Hi all, > > Changes since 20150730: > on i386: when CONFIG_EXTCON=m: drivers/built-in.o: In function `phy_8x16_remove': phy-qcom-8x16-usb.c:(.text+0x24170a): undefined reference to `extcon_unregister_interest' drivers/built-in.o: In function `phy_

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Alan Stern
On Thu, 30 Jul 2015, Giulio Bernardi wrote: > > You should check that scsi_report_lun_scan() really does return 1. If > > it returns 0 instead (because BLIST_NOLUN is set in bflags or for any > > other reason), that would cause the behavior you see. > > > > I found the reason of this behavior: t

Re: Fwd: [Bug 102101] USB 3 storage device disconnects after S3 resume,and re-enumerate it.

2015-07-31 Thread Alan Stern
On Fri, 31 Jul 2015, Aaron Zhou wrote: > There is a USB 3 bug . > Are you have any suggests? Please try the 4.2-rc4 kernel. The bug may have been fixed already. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.

RE: [PATCH v5 02/46] usb: gadget: add endpoint capabilities flags

2015-07-31 Thread David Laight
From: Robert Baldyga > Sent: 31 July 2015 15:00 > Introduce struct usb_ep_caps which contains information about capabilities > of usb endpoints - supported transfer types and directions. This structure > should be filled by UDC driver for each of its endpoints, and will be > used in epautoconf in n

Re: [PATCH] drivers: usb: fsl: Workaround for USB erratum-A005275

2015-07-31 Thread Alan Stern
On Fri, 31 Jul 2015, Nikhil Badola wrote: > Incoming packets in high speed are randomly corrupted by h/w > resulting in multiple errors. This workaround makes FS as > default mode in all affected socs by disabling HS chirp > signalling.This errata does not affect FS and LS mode. > > Forces all HS

Re: Add commit 3f2cee73b650 ("USB: usbfs: allow URBs to be reaped after disconnection") to -stable

2015-07-31 Thread Greg KH
On Fri, Jul 31, 2015 at 10:56:20AM -0400, Alan Stern wrote: > Greg: > > The $SUBJECT commit was added in the 4.0 kernel, but I forgot to mark > it for inclusion in the -stable kernels. The problem it fixes is a > nasty one, affecting people who use libusb: When a device is > disconnected while

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Giulio Bernardi
On 31/07/2015 18:05, Alan Stern wrote: On Thu, 30 Jul 2015, Giulio Bernardi wrote: You should check that scsi_report_lun_scan() really does return 1. If it returns 0 instead (because BLIST_NOLUN is set in bflags or for any other reason), that would cause the behavior you see. I found the re

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Giulio Bernardi
On 31/07/2015 20:05, Giulio Bernardi wrote: On 31/07/2015 18:05, Alan Stern wrote: On Thu, 30 Jul 2015, Giulio Bernardi wrote: You should check that scsi_report_lun_scan() really does return 1. If it returns 0 instead (because BLIST_NOLUN is set in bflags or for any other reason), that would

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Alan Stern
On Fri, 31 Jul 2015, Giulio Bernardi wrote: > On 31/07/2015 18:05, Alan Stern wrote: > > On Thu, 30 Jul 2015, Giulio Bernardi wrote: > > > >>> You should check that scsi_report_lun_scan() really does return 1. If > >>> it returns 0 instead (because BLIST_NOLUN is set in bflags or for any > >>> ot

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Alan Stern
On Fri, 31 Jul 2015, Giulio Bernardi wrote: > Okay, i checked a little bit and now I understand, sorry. They are pointers > to > different offset of the same string (the inquiry result), that's why it's > only > meaningful to check first 8 and subsequent 16 characters. Sorry. > > The problem

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Giulio Bernardi
On 31/07/2015 20:36, Alan Stern wrote: These things are not wildcards. Go look more carefully at my patch and figure out what is really happening. Alan Stern Ok, it turns out your patch is ok and I can confirm everything works as expected: this docking station is sometimes a bit loose so

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Giulio Bernardi
On 31/07/2015 22:10, Giulio Bernardi wrote: On 31/07/2015 20:36, Alan Stern wrote: These things are not wildcards. Go look more carefully at my patch and figure out what is really happening. Alan Stern Ok, it turns out your patch is ok and I can confirm everything works as expected: this

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Alan Stern
On Fri, 31 Jul 2015, Giulio Bernardi wrote: > P.S: it looks like scsi_dev_info_list_del_keyed() shares the same code, so > maybe > it should be modified too? You're right. I'll split this into two patches: one to remove the duplicate code, and one to fix the matching. The patches are attached

Re: [PATCH net-next] r8152: disable the capability of zero length

2015-07-31 Thread David Miller
From: Hayes Wang Date: Fri, 31 Jul 2015 11:23:39 +0800 > The UEFI driver would enable zero length, and the Linux driver doesn't > need it. Zero length let the hw complete the transfer with length 0, > when there is no received packet. It would add the load of USB host > controller and reduce the

Re: [PATCH v3 3/5] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-07-31 Thread chunfeng yun
On Fri, 2015-07-31 at 19:48 +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 31 July 2015 05:55 PM, chunfeng yun wrote: > > hi, > > On Tue, 2015-07-28 at 11:17 +0530, Kishon Vijay Abraham I wrote: > >> Hi, > >> > >> On Sunday 26 July 2015 08:21 AM, chunfeng yun wrote: > >>> hi, > >>> On We

Re: [PATCH v3 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-07-31 Thread chunfeng yun
hi, On Fri, 2015-07-31 at 14:37 +0100, Mark Rutland wrote: > Hi, > > > > > + - mediatek,usb-wakeup: to access usb wakeup control register > > > > > > What exactly does this property imply? > > > > > There are some control registers for usb wakeup which are put in another > > module, here to get

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-31 Thread Giulio Bernardi
On 31/07/2015 23:02, Alan Stern wrote: On Fri, 31 Jul 2015, Giulio Bernardi wrote: P.S: it looks like scsi_dev_info_list_del_keyed() shares the same code, so maybe it should be modified too? You're right. I'll split this into two patches: one to remove the duplicate code, and one to fix the