[PATCH v4] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread changbin . du
From: "Du, Changbin" Queue a request to disabled ep doesn't make sense, and induce caller make mistakes. Here is a example for the android mtp gadget function driver. A mem corruption can happen on below senario. 1) On disconnect, mtp driver disable its EPs, 2) During send_file_work and receive

Re: [PATCH v2 0/3] USB: add generic onboard USB HUB driver

2015-12-17 Thread Peter Chen
On Fri, Dec 18, 2015 at 12:13 AM, Alan Stern wrote: > On Wed, 16 Dec 2015, Rob Herring wrote: > >> On Mon, Dec 14, 2015 at 3:35 AM, Arnd Bergmann wrote: >> > On Monday 14 December 2015 15:26:11 Peter Chen wrote: >> >> Hi all, >> >> >> >> There is a known issue that the USB code can't handle USB H

Re: [PATCH v2 0/3] USB: add generic onboard USB HUB driver

2015-12-17 Thread Peter Chen
On Thu, Dec 17, 2015 at 9:49 PM, Rob Herring wrote: > On Wed, Dec 16, 2015 at 8:31 PM, Peter Chen wrote: >> On Thu, Dec 17, 2015 at 12:13:07AM +0100, Arnd Bergmann wrote: >>> On Wednesday 16 December 2015 16:59:39 Rob Herring wrote: >>> > On Mon, Dec 14, 2015 at 3:35 AM, Arnd Bergmann wrote: >>>

RE: [PATCH v3] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread Du, Changbin
> > > > diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h > > index 3d583a1..0c5d9ea 100644 > > --- a/include/linux/usb/gadget.h > > +++ b/include/linux/usb/gadget.h > > @@ -402,6 +402,9 @@ static inline void usb_ep_free_request(struct > usb_ep *ep, > > static inline int usb_ep_

Re: [PATCH 1/2] HID: Use multitouch driver for Type Covers

2015-12-17 Thread Akihiko Odaki
> The search, share, connect(?), and settings keys I tested the patch again with xev and found that those "charm" keys don't respond both on hid-microsoft and hid-multitouch, while other keys respond. I'll have a further look. Anyway, keys working with hid-microsoft also work with hid-multitouch,

Re: [PATCH V2] usb: dwc2: gadget: Repair DSTS register decoding

2015-12-17 Thread John Youn
On 12/17/2015 6:26 PM, Marek Vasut wrote: > The "enumspd" field is located in register DSTS[2:1], but the code > which checks the bitfield does not shift the value accordingly. This > in turn causes incorrect detection of gadget link partner speed in > dwc2_hsotg_irq_enumdone() . > > Shift the val

[PATCH V2] usb: dwc2: gadget: Repair DSTS register decoding

2015-12-17 Thread Marek Vasut
The "enumspd" field is located in register DSTS[2:1], but the code which checks the bitfield does not shift the value accordingly. This in turn causes incorrect detection of gadget link partner speed in dwc2_hsotg_irq_enumdone() . Shift the value accordingly to fix the problem with speed detection

Re: [PATCH] usb: dwc2: gadget: Repair DSTS register decoding

2015-12-17 Thread Marek Vasut
On Friday, December 18, 2015 at 12:45:56 AM, John Youn wrote: > On 12/17/2015 2:49 PM, Marek Vasut wrote: > > The "enumspd" field is located in register DSTS[2:1], but the current > > set of macros define the possible values without the necessary offset. > > This in turn causes incorrect detection

Re: [PATCH v4] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Chanwoo Choi
Hi Sergei, Except for just one comment below, Looks good to me. Acked-by: Chanwoo Choi I'll wait for a few days to get the review from DT maintainer before applying it on extcon-next branch. On 2015년 12월 18일 07:47, Sergei Shtylyov wrote: > Maxim Integrated MAX3355E chip integrates a charge pump

Re: [PATCH v3] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Chanwoo Choi
On 2015년 12월 18일 06:20, Sergei Shtylyov wrote: > Hello. > > On 12/17/2015 05:34 AM, Chanwoo Choi wrote: > >>> On 2015년 12월 17일 03:07, Sergei Shtylyov wrote: Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role tr

Re: [PATCH v3] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Krzysztof Kozlowski
On 17.12.2015 23:36, Sergei Shtylyov wrote: > Hello. > > On 12/17/2015 3:53 AM, Krzysztof Kozlowski wrote: > >>> Maxim Integrated MAX3355E chip integrates a charge pump and >>> comparators to >>> enable a system with an integrated USB OTG dual-role transceiver to >>> function as an USB OTG dual-r

Re: [PATCH] usb: dwc2: gadget: Repair DSTS register decoding

2015-12-17 Thread John Youn
On 12/17/2015 2:49 PM, Marek Vasut wrote: > The "enumspd" field is located in register DSTS[2:1], but the current > set of macros define the possible values without the necessary offset. > This in turn causes incorrect detection of gadget link partner speed > in dwc2_hsotg_irq_enumdone() . > > The

[PATCH] usb: dwc2: gadget: Repair DSTS register decoding

2015-12-17 Thread Marek Vasut
The "enumspd" field is located in register DSTS[2:1], but the current set of macros define the possible values without the necessary offset. This in turn causes incorrect detection of gadget link partner speed in dwc2_hsotg_irq_enumdone() . The rest of the macros in dwc2/hw.h always define possibl

[PATCH v4] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Sergei Shtylyov
Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition to sensing/controlling Vbus, the chip also passes thru the ID signal from the USB OTG connector. On som

Re: blk_update_request: I/O error on sdhc cards

2015-12-17 Thread Alan Stern
On Thu, 17 Dec 2015, Christian wrote: > T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > P: Vendor=05e3 ProdID=0745 Rev= 9.02 > S: Product=USB Storage > S: SerialNumber=0902 > C:* #Ifs= 1 Cfg#= 1 Atr=80 M

Re: [PATCH v3] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Sergei Shtylyov
Hello. On 12/17/2015 05:34 AM, Chanwoo Choi wrote: On 2015년 12월 17일 03:07, Sergei Shtylyov wrote: Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition

Re: [PATCH net-next] net: qmi_wwan: ignore bogus CDC Union descriptors

2015-12-17 Thread David Miller
From: Bjørn Mork Date: Thu, 17 Dec 2015 12:44:04 +0100 > The CDC descriptors found on these vendor specific functions should > not be considered authoritative. They seem to be ignored by drivers > for other systems, and the quality is therefore low. > > One device (1e0e:9001) has been reported

Re: blk_update_request: I/O error on sdhc cards

2015-12-17 Thread Christian
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=05e3 ProdID=0745 Rev= 9.02 S: Product=USB Storage S: SerialNumber=0902 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.)

Re: USB3 xHCI Error, unable to acces the disk

2015-12-17 Thread Sébastien Deligny
Hello all, No news since last week... Did someone have a look to my logfile? Any chance to find a patch? Seb. Le 13/12/2015 22:46, Sébastien Deligny a écrit : I've sent the logfile on Saturday, but I can't find my message in the archive, move to spam? So here is the logfile simply past as te

[PATCH v2 20/20] usb: dwc2: gadget: Remove call to dwc2_hsotg_init()

2015-12-17 Thread John Youn
Remove call to dwc2_hsotg_init() from dwc2_gadget_init(). The gadget_init function should not access any device registers because the mode isn't guaranteed here. Also, this is already called elsewhere before anything starts on the gadget so it is not necessary here. Signed-off-by: John Youn ---

[PATCH v2 02/20] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-12-17 Thread John Youn
From: Yunzhi Li We initiate dwc2 usb controller in BIOS, dwc2_core_reset() should be called before dwc2_get_hwparams() to reset core registers to default value. Without this the FIFO setting might be incorrect because calculating FIFO size need power-on value of GRXFSIZ/GNPTXFSIZ/HPTXFSIZ registe

[PATCH v2 17/20] usb: dwc2: gadget: Replace dwc2_hsotg_corereset()

2015-12-17 Thread John Youn
The dwc2_core_reset() function exists in the core so use that one instead. Signed-off-by: John Youn --- drivers/usb/dwc2/gadget.c | 50 +-- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadge

[PATCH v2 19/20] usb: dwc2: Remove redundant reset in probe

2015-12-17 Thread John Youn
Reset already happens before this so just force the dr_mode. Signed-off-by: John Youn --- drivers/usb/dwc2/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 5002806..a14d996 100644 --- a/drivers/usb/dwc2

[PATCH v2 18/20] usb: dwc2: Reduce delay when forcing mode in reset

2015-12-17 Thread John Youn
The delay for force mode is only 25ms according to the databook. Signed-off-by: John Youn --- drivers/usb/dwc2/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c index 097fd9f..73f2771 100644 --- a/drivers/usb/dwc2/core.c

[PATCH v2 09/20] usb: dwc2: Add dwc2_core_reset()

2015-12-17 Thread John Youn
dwc2_core_reset() was previously renamed to dwc2_core_reset_and_dr_force_mode(). Now add back dwc2_core_reset() which performs only a basic core reset without forcing the mode. Signed-off-by: John Youn --- drivers/usb/dwc2/core.c | 22 -- drivers/usb/dwc2/core.h | 1 + 2 fil

[PATCH v2 16/20] usb: dwc2: gadget: Use hw params from core

2015-12-17 Thread John Youn
Use the previously cached hw params in the gadget. This saves a reset and force mode in the gadget initialization during probe and makes getting the hardware parameters consistent between gadget and host. Signed-off-by: John Youn --- drivers/usb/dwc2/gadget.c | 41 ---

[PATCH v2 08/20] usb: dwc2: Rename dwc2_core_reset()

2015-12-17 Thread John Youn
Renamed dwc2_core_reset() to dwc2_core_reset_and_force_dr_mode(). This describes what it is doing more accurately. This is in preparation of introducing a plain dwc2_core_reset() function that only performs the reset and doesn't force the mode. Signed-off-by: John Youn --- drivers/usb/dwc2/core.

[PATCH v2 10/20] usb: dwc2: Add functions to check the HW OTG config

2015-12-17 Thread John Youn
Added functions to query the GHWCFG2.OTG_MODE. This tells us whether the controller hardware is configured for OTG, device-only, or host-only. Signed-off-by: John Youn Tested-by: Douglas Anderson Reviewed-by: Douglas Anderson --- drivers/usb/dwc2/core.c | 37 +++

[PATCH v2 05/20] usb: dwc2: reduce dwc2 driver probe time

2015-12-17 Thread John Youn
From: Yunzhi Li I found that the probe function of dwc2 driver takes much time when kernel boot up. There are many long delays in the probe function these take almost 1 second. This patch trying to reduce unnecessary delay time. In dwc2_core_reset() I see it use two at least 20ms delays to wait

[PATCH v2 13/20] usb: dwc2: Move reset into dwc2_get_hwparams()

2015-12-17 Thread John Youn
The reset is required to get reset values of the hardware parameters but the force mode is not. Move the base reset into dwc2_get_hwparams() and do the reset and force mode afterwards. Signed-off-by: John Youn --- drivers/usb/dwc2/core.c | 8 drivers/usb/dwc2/platform.c | 10 +++---

[PATCH v2 15/20] usb: dwc2: Improve handling of host and device hwparams

2015-12-17 Thread John Youn
Adds separate functions to get the host and device specific hardware parameters. The functions check whether the parameters need to be read at all, depending on dr_mode, and forces the mode only if necessary. This saves some delays during probe. This also adds two device mode parameters that will b

[PATCH v2 14/20] usb: dwc2: Add functions to set and clear force mode

2015-12-17 Thread John Youn
Added functions to set force mode for host and device. These functions will check the current mode and only force if needed thus avoiding unnecessary force mode delays. However clearing the mode is currently done unconditionally and with the delay in place. This is needed during the connector ID st

[PATCH v2 12/20] usb: dwc2: Move mode querying functions into core.h

2015-12-17 Thread John Youn
These functions should go in core.h where they can be called from core, device, or host. Signed-off-by: John Youn Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson --- drivers/usb/dwc2/core.h | 12 drivers/usb/dwc2/hcd.h | 12 2 files changed, 12 insertions(+

[PATCH v2 11/20] usb: dwc2: Fix dr_mode validation

2015-12-17 Thread John Youn
The dr_mode parameter was being checked against how the dwc2 module was being configured at compile time. But it wasn't checked against the hardware capabilities, nor were the hardware capabilities checked against the compilation parameters. This commit adds those checks and adjusts dr_mode to an

[PATCH v2 03/20] usb: dwc2: Avoid double-reset at boot time

2015-12-17 Thread John Youn
From: Douglas Anderson In (usb: dwc2: reset dwc2 core before dwc2_get_hwparams()) we added an extra reset to the probe path for the dwc2 USB controllers. This allowed proper detection of parameters even if the firmware had already used the USB part. Unfortunately, this extra reset is quite slow

[PATCH v2 06/20] usb: dwc2: Avoid more calls to dwc2_core_reset()

2015-12-17 Thread John Youn
From: Douglas Anderson Calls to dwc2_core_reset() are currently very slow, taking at least 150ms (possibly more). It behooves us to take as many of these calls out as possible. It turns out that the calls in dwc2_fs_phy_init() and dwc2_hs_phy_init() should (as documented in the code) only be ne

[PATCH v2 01/20] usb: dwc2: Restore GUSBCFG in dwc2_get_hwparams()

2015-12-17 Thread John Youn
From: Douglas Anderson Previously dwc2_get_hwparams() was changing GUSBCFG and not putting it back the way it was (specifically it set and cleared FORCEHOSTMODE). Since we want to move dwc2_core_reset() _before_ dwc2_get_hwparams() we should make sure dwc2_get_hwparams() isn't messing with things

[PATCH v2 04/20] usb: dwc2: Speed dwc2_get_hwparams() on some host-only ports

2015-12-17 Thread John Youn
From: Douglas Anderson On some host-only DWC2 ports (like the one in rk3288) when we set GUSBCFG_FORCEHOSTMODE in GUSBCFG and then read back, we don't see the bit set. Presumably that's because the port is always forced to HOST mode so there's no reason to implement these status bits. Since we

[PATCH v2 07/20] usb: dwc2: Reorder AHBIDLE and CSFTRST in dwc2_core_reset()

2015-12-17 Thread John Youn
According to the databook, the core soft reset should be done before checking for AHBIDLE. The gadget version of core reset had it correct but the hcd version did not. This fixes the hcd version. Signed-off-by: John Youn Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson --- drivers/usb

[PATCH v2 00/20] usb: dwc2: Reduce probe delays

2015-12-17 Thread John Youn
This series includes patches that were submitted earlier by Douglas Anderson and Yunzhi Li to reduce delays during probe and get the correct reset values of the hardware configuration registers. These are patches 1-6 in this series. I have additionally added patches to clean up the code around tha

Re: [PATCH v2 0/3] USB: add generic onboard USB HUB driver

2015-12-17 Thread Alan Stern
On Wed, 16 Dec 2015, Rob Herring wrote: > On Mon, Dec 14, 2015 at 3:35 AM, Arnd Bergmann wrote: > > On Monday 14 December 2015 15:26:11 Peter Chen wrote: > >> Hi all, > >> > >> There is a known issue that the USB code can't handle USB HUB's > >> external pins well, in that case, it may cause some

[PATCH] usb: of: fix build breakage on !OF

2015-12-17 Thread Felipe Balbi
If OF is disabled, we will try to define a stub for of_usb_get_dr_mode_by_phy(), however that missed a static inline annotation which made us redefine the stub over and over again. Fix that. Fixes: 98bfb3946695 ("usb: of: add an api to get dr_mode by the phy node") Signed-off-by: Felipe Ba

Re: blk_update_request: I/O error on sdhc cards

2015-12-17 Thread Alan Stern
On Thu, 17 Dec 2015, Christian wrote: > Hi, > > I have a problem with sdhc and sd-cards. I cannot access the cards because > I always get I/O errors according to dmesg. > > I tried 2 types of card readers and 3 types of sdhc cards. I also tried the > sdhc cards with sd-card adapters. > > I

RE: [balbi-usb:next 38/65] (.text+0x0): multiple definition of `of_usb_get_dr_mode_by_phy'

2015-12-17 Thread Felipe Balbi
Hi, David Laight writes: > From: Bin Liu >> Sent: 17 December 2015 15:55 > ... >> >> drivers/usb/common/built-in.o: In function >> >> `of_usb_get_dr_mode_by_phy': >> (.text+0x0): multiple definition of `of_usb_get_dr_mode_by_phy' >> >> drivers/usb/chipidea/built-in.o:(.text+0xd61):

RE: [balbi-usb:next 38/65] (.text+0x0): multiple definition of `of_usb_get_dr_mode_by_phy'

2015-12-17 Thread David Laight
From: Bin Liu > Sent: 17 December 2015 15:55 ... > >> drivers/usb/common/built-in.o: In function `of_usb_get_dr_mode_by_phy': > (.text+0x0): multiple definition of `of_usb_get_dr_mode_by_phy' > >> drivers/usb/chipidea/built-in.o:(.text+0xd61): first defined here > > > > > > seems like

Re: [balbi-usb:next 38/65] (.text+0x0): multiple definition of `of_usb_get_dr_mode_by_phy'

2015-12-17 Thread Bin Liu
Felipe, On 12/17/2015 09:52 AM, Felipe Balbi wrote: Hi, kbuild test robot writes: tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next head: b7bd98b7db9fc8fe19da1a5ff0215311c6b95e46 commit: 98bfb39466954c69d2a448e6ddcab6d91cd48e25 [38/65] usb: of: add an api to get d

Re: [balbi-usb:next 38/65] (.text+0x0): multiple definition of `of_usb_get_dr_mode_by_phy'

2015-12-17 Thread Felipe Balbi
Hi, kbuild test robot writes: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next > head: b7bd98b7db9fc8fe19da1a5ff0215311c6b95e46 > commit: 98bfb39466954c69d2a448e6ddcab6d91cd48e25 [38/65] usb: of: add an api > to get dr_mode by the phy node > config: x86_64-acpi-red

[balbi-usb:next 38/65] (.text+0x0): multiple definition of `of_usb_get_dr_mode_by_phy'

2015-12-17 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next head: b7bd98b7db9fc8fe19da1a5ff0215311c6b95e46 commit: 98bfb39466954c69d2a448e6ddcab6d91cd48e25 [38/65] usb: of: add an api to get dr_mode by the phy node config: x86_64-acpi-redef (attached as .config) reproduce:

Re: [PATCH v3] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread Felipe Balbi
Hi, changbin...@intel.com writes: > From: "Du, Changbin" > > Queue a request to disabled ep doesn't make sense, and induce caller > make mistakes. > > Here is a example for the android mtp gadget function driver. A mem > corruption can happen on below senario. > 1) On disconnect, mtp driver dis

Re: [PATCH v3] extcon: add Maxim MAX3355 driver

2015-12-17 Thread Sergei Shtylyov
Hello. On 12/17/2015 3:53 AM, Krzysztof Kozlowski wrote: Maxim Integrated MAX3355E chip integrates a charge pump and comparators to enable a system with an integrated USB OTG dual-role transceiver to function as an USB OTG dual-role device. In addition to sensing/controlling Vbus, the chip also

Re: [PATCH v2 0/3] USB: add generic onboard USB HUB driver

2015-12-17 Thread Rob Herring
On Wed, Dec 16, 2015 at 8:31 PM, Peter Chen wrote: > On Thu, Dec 17, 2015 at 12:13:07AM +0100, Arnd Bergmann wrote: >> On Wednesday 16 December 2015 16:59:39 Rob Herring wrote: >> > On Mon, Dec 14, 2015 at 3:35 AM, Arnd Bergmann wrote: >> > > On Monday 14 December 2015 15:26:11 Peter Chen wrote:

Re: USB 3 XHCI Host Controller in Ubuntu

2015-12-17 Thread Mathias Nyman
On 17.12.2015 15:26, Andor J Kiss wrote: Hi, I'll do my best - if you want more information, or I am unclear please let me know. I've been using Ubuntu (and Debian derived distros for about 10 years - so hopefully I'm slightly helpful). I have noticed that on Ubuntu 15.10 (on a new Syste

Re: USB 3 XHCI Host Controller in Ubuntu

2015-12-17 Thread Andor J Kiss
Hi, I'll do my best - if you want more information, or I am unclear please let me know. I've been using Ubuntu (and Debian derived distros for about 10 years - so hopefully I'm slightly helpful). I have noticed that on Ubuntu 15.10 (on a new System76 Lemur laptop - which I believe is ACER ba

Re: [PATCH 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices

2015-12-17 Thread Daniele Palmas
Hi Bjorn, 2015-12-17 13:21 GMT+01:00 Bjørn Mork : > Dan Williams writes: >> On Wed, 2015-12-16 at 10:39 +0100, Daniele Palmas wrote: >>> This patch series add support in the cdc_ncm driver for two devices >>> based on the same platform, that are different only for carrier >>> customization. >>> >

Re: [PATCH 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices

2015-12-17 Thread Daniele Palmas
Hi Dan, 2015-12-16 18:12 GMT+01:00 Dan Williams : > On Wed, 2015-12-16 at 10:39 +0100, Daniele Palmas wrote: >> This patch series add support in the cdc_ncm driver for two devices >> based on the same platform, that are different only for carrier >> customization. >> >> The devices do not have ARP

Re: [PATCH 0/2] net: usb: cdc_ncm: Adding support for two new Dell devices

2015-12-17 Thread Bjørn Mork
Dan Williams writes: > On Wed, 2015-12-16 at 10:39 +0100, Daniele Palmas wrote: >> This patch series add support in the cdc_ncm driver for two devices >> based on the same platform, that are different only for carrier >> customization. >> >> The devices do not have ARP capabilities. >> >> Daniel

[PATCH net-next] net: qmi_wwan: ignore bogus CDC Union descriptors

2015-12-17 Thread Bjørn Mork
The CDC descriptors found on these vendor specific functions should not be considered authoritative. They seem to be ignored by drivers for other systems, and the quality is therefore low. One device (1e0e:9001) has been reported to have such a bogus union descriptor on the QMI function, making i

Re: [PATCH v3 01/36] Documentation: usb: update usb-tools repository address

2015-12-17 Thread Felipe Ferreri Tonello
Hi Robert, On 11/12/15 11:24, Robert Baldyga wrote: > It seems that gitotious repository is no longer accessible, so we replace > it with address to active repository. > > Signed-off-by: Robert Baldyga > --- > Documentation/usb/gadget-testing.txt | 2 +- > 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH v6 0/3] USB MIDI Gadget improvements and bug fixes

2015-12-17 Thread Felipe Ferreri Tonello
Hi Balbi, On 16/12/15 16:03, Felipe Balbi wrote: > > Hi > > Felipe Ferreri Tonello writes: >> Hi all, >> >> On 01/12/15 18:30, Felipe F. Tonello wrote: >>> Fixed all comments suggested by the linux-usb list. >>> >>> changes in v6: >>> - Removed patches already applied in Balbi's tree >>> - Cl

[PATCH] drivers/usb : Set DMA_MASK of usb platform device

2015-12-17 Thread Sriram Dash
Set DMA_MASK of usb platform device properly. Signed-off-by: Sriram Dash Signed-off-by: Ramneek Mehresh --- drivers/usb/host/fsl-mph-dr-of.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index 0c3826

Re: [PATCH v3 00/36] usb: gadget: composite: introduce new function API

2015-12-17 Thread Robert Baldyga
Hi Felipe, I can see that you have applied the documentation fix patch to your tree. Have also you looked at the remaining patches of this series? What do you think about this concept? Any comments? Best regards, Robert On 12/11/2015 12:24 PM, Robert Baldyga wrote: > Hi Felipe, > > Here is my n

[PATCH v3] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread changbin . du
From: "Du, Changbin" Queue a request to disabled ep doesn't make sense, and induce caller make mistakes. Here is a example for the android mtp gadget function driver. A mem corruption can happen on below senario. 1) On disconnect, mtp driver disable its EPs, 2) During send_file_work and receive

RE: [PATCH v2] usb: gadget: forbid queuing request to a disabled ep

2015-12-17 Thread Du, Changbin
> >> 2.5.0 > > > > With this patch, ep0 transfer breaks. it because the 'enabled' of ep0 > > is not set. Ep0 is not enabled by usb_ep_enable, but in UDC driver. So > > there need another patch to set ep0's flag also. > > yeah, we don't like regressions :-) So the fix should come before > $subject

Re: USB 3 XHCI Host Controller in Ubuntu

2015-12-17 Thread Mathias Nyman
On 16.12.2015 17:51, Andor J Kiss wrote: Hello Mathias, I've noticed that in Ubuntu (and some other Debian distributions, not sure about Debian itself) that USB 3 to USB 3 doesn't work (USB3 port to USB2 thumbdrive okay, USB3 thumbdrive to USB3 port OK). I'm using Ubuntu 15.10 (4.2.0-21-gener

blk_update_request: I/O error on sdhc cards

2015-12-17 Thread Christian
Hi, I have a problem with sdhc and sd-cards. I cannot access the cards because I always get I/O errors according to dmesg. I tried 2 types of card readers and 3 types of sdhc cards. I also tried the sdhc cards with sd-card adapters. Interesting is, that i both cases, sdhc card directly and