[PATCH v4] USB: serial: add Moxa UPORT 11x0 driver

2015-11-11 Thread Mathieu OTHACEHE
Add a driver which supports : - UPort 1110 : 1 port RS-232 USB to Serial Hub. - UPort 1130 : 1 port RS-422/485 USB to Serial Hub. - UPort 1130I : 1 port RS-422/485 USB to Serial Hub with Isolation. - UPort 1150 : 1 port RS-232/422/485 USB to Serial Hub. - UPort 1150I : 1 port RS-232/422/485

Re: [PATCH v5 6/7] usb: gadget: f_midi: set altsettings only for MIDIStreaming interface

2015-11-11 Thread Felipe Ferreri Tonello
Hi Sergei, On 10/11/15 18:43, Sergei Shtylyov wrote: > Hello. > > On 11/10/2015 08:52 PM, Felipe F. Tonello wrote: > >> This avoids duplication of USB requests for OUT endpoint and >> re-enabling endpoints. >> >> Signed-off-by: Felipe F. Tonello >> --- >>

[PATCH v3 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-11 Thread Dave Penkler
Background: When performing a read on an instrument that is executing a function that runs longer than the USB timeout the instrument may hang and require a device reset to recover. The READ_STATUS_BYTE operation always returns even when the instrument is busy permitting to poll for the

[PATCH v3 2/5] Add support for USBTMC USB488 SRQ notification with fasync

2015-11-11 Thread Dave Penkler
Background: By configuring an instrument's event status register various conditions can be reported via an SRQ notification. This complements the synchronous polling approach using the READ_STATUS_BYTE ioctl with an asynchronous notification. Signed-off-by: Dave Penkler ---

[PATCH v3 3/5] Add support for receiving USBTMC USB488 SRQ notifications via poll/select

2015-11-11 Thread Dave Penkler
Background: In many situations operations on multiple instruments need to be synchronized. poll/select provide a convenient way of waiting on a number of different instruments and other peripherals simultaneously. Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c |

Re: [PATCH 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-11 Thread kbuild test robot
Hi Lu, [auto build test WARNING on v4.3-rc7] [also build test WARNING on next-2015] url: https://github.com/0day-ci/linux/commits/Lu-Baolu/usb-core-lpm-add-sysfs-node-for-usb3-lpm-permit/2015-160805 reproduce: make htmldocs All warnings (new ones prefixed by >>): include

Re: [PATCH v4] USB: serial: add Moxa UPORT 11x0 driver

2015-11-11 Thread Johan Hovold
On Wed, Nov 11, 2015 at 10:35:47AM +0100, Mathieu OTHACEHE wrote: > Add a driver which supports : > > - UPort 1110 : 1 port RS-232 USB to Serial Hub. > - UPort 1130 : 1 port RS-422/485 USB to Serial Hub. > - UPort 1130I : 1 port RS-422/485 USB to Serial Hub with Isolation. > - UPort 1150 : 1

[PATCH v3 0/5] usb: usbtmc: Add support for missing functions in USBTMC-USB488 spec

2015-11-11 Thread Dave Penkler
Implement support for the USB488 defined READ_STATUS_BYTE ioctl (1/5) and SRQ notifications with fasync (2/5) and poll/select (3/5) in order to be able to synchronize with variable duration instrument operations. Add ioctls for other USB488 requests: REN_CONTROL, GOTO_LOCAL and LOCAL_LOCKOUT.

[PATCH v3 5/5] Add ioctls to enable and disable local controls on an instrument

2015-11-11 Thread Dave Penkler
These ioctls provide support for the USBTMC-USB488 control requests for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c | 76 include/uapi/linux/usb/tmc.h | 9 +- 2

[PATCH] fix compare_const_fl.cocci warnings

2015-11-11 Thread Julia Lawall
Move constants to the right of binary operators. Semantic patch information: Depends on personal taste in some cases. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci CC: Dave Penkler Signed-off-by: Fengguang Wu Signed-off-by: Julia

Re: usb: dwc2: regression during boot on Raspberry Pi

2015-11-11 Thread Alexander Aring
Hi, On Tue, Nov 10, 2015 at 11:21:56PM +, John Youn wrote: > On 11/9/2015 12:43 PM, Stefan Wahren wrote: > > Hi, > > > > Am 09.11.2015 um 12:53 schrieb Marek Szyprowski: > >> Hello, > >> > >> > >> This change looks reasonable, I remember the similar issue was in > >> s3c-hsotg driver > >>

Re: [PATCH 1/2] cdc_acm: Ignore Infineon Flash Loader utility

2015-11-11 Thread Daniele Palmas
Hi Johan, 2015-11-06 12:24 GMT+01:00 Johan Hovold : > On Thu, Nov 05, 2015 at 01:57:43PM +0100, Jonas Jonsson wrote: >> Some modems, such as the Telit UE910, are using an Infineon Flash Loader >> utility. It has two interfaces, 2/2/0 (Abstract Modem) and 10/0/0 (CDC >> Data).

Re: [PATCH 2/2] usb: phy: msm: fix connect/disconnect bug for dragonboard OTG port

2015-11-11 Thread Tim Bird
On 11/10/2015 07:14 PM, Peter Chen wrote: > On Tue, Nov 10, 2015 at 04:46:51PM -0800, Tim Bird wrote: >> This fixes a bug where if you disconnect and re-connect the USB cable, >> the gadget driver stops working. >> >> Add support for async_irq to wake up driver from low power mode. >> Without

Re: [PATCH v5 6/7] usb: gadget: f_midi: set altsettings only for MIDIStreaming interface

2015-11-11 Thread Sergei Shtylyov
Hello. On 11/11/2015 12:38 PM, Felipe Ferreri Tonello wrote: This avoids duplication of USB requests for OUT endpoint and re-enabling endpoints. Signed-off-by: Felipe F. Tonello --- drivers/usb/gadget/function/f_midi.c | 4 +++- 1 file changed, 3 insertions(+), 1

Re: scsi-sd fails with error "Invalid field in cdb" for SATA-to-USB adapter JMicron

2015-11-11 Thread Alan Stern
On Tue, 10 Nov 2015, Dmitry Katsubo wrote: > On 10/11/2015 16:00, Alan Stern wrote: > > On Tue, 10 Nov 2015, Dmitry Katsubo wrote: > > > >> Hello everyone, > >> > >> Sorry for cross-posting from linux-s...@vger.kernel.org > >> > >> In continuation to the issue described in [1] and [2]: > >> > >>

Re: [PATCH 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-11 Thread Alan Stern
On Wed, 11 Nov 2015, Lu Baolu wrote: > Commit 8306095fd2c1 ("USB: Disable USB 3.0 LPM in critical sections.") > adds usb3_lpm_enabled member to struct usb_device. There is no reference > to this member now. Hence, it could be removed. > > Signed-off-by: Lu Baolu > ---

Re: [PATCH v4] USB: serial: add Moxa UPORT 11x0 driver

2015-11-11 Thread Mathieu OTHACEHE
Hi Johan Ok, I'll include a changelog in future patches. Here is the current changlog : Changes in v2: * Use generic implementation for read/write code * Use TIOCSRS485/TIOCGRS485 instead of moxa specific ioctl * Other problems pointed out by Johan review Changes in v3: * Drop unused defines *

[PATCH v3 4/5] Add ioctl to retrieve USBTMC-USB488 capabilities

2015-11-11 Thread Dave Penkler
This is a convenience function to obtain an instrument's capabilities from its file descriptor without having to access sysfs from the user program. Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c | 12 include/uapi/linux/usb/tmc.h | 21

[PATCH 3/3] usb: renesas_usbhs: Modify ep.caps.type_xxx and usb_ep_maxpacket_limit()

2015-11-11 Thread Yoshihiro Shimoda
This patch modifies the ep.caps.type_{iso,bulk,int} setting and the second argument of usb_ep_maxpacket_limit() using the dparam.pipe_configs. In the previous code, all the type_{iso,bulk,int} were set to true. However, to avoid waste time for finding suitable pipe in usb_ep_enable(), this driver

Re: [PATCH v3 00/12] usb: early: add support for early printk through USB3 debug port

2015-11-11 Thread Dave Young
Hi, Baolu On 11/12/15 at 10:45am, Lu, Baolu wrote: > Hi Dave, > > Which device are you testing with? This implementation was developed > and tested on Intel Skylake devices. > > It doesn't surprise me if it doesn't work with other silicons. But it do > remind me to create a verified-list and

Re: [PATCH v3 00/12] usb: early: add support for early printk through USB3 debug port

2015-11-11 Thread Lu, Baolu
Hi Dave, Which device are you testing with? This implementation was developed and tested on Intel Skylake devices. It doesn't surprise me if it doesn't work with other silicons. But it do remind me to create a verified-list and put those known-to-work devices in it. Thanks, Baolu On

[PATCH v2 2/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-11 Thread Lu Baolu
USB3 LPM is default on in Linux kernel if both xHCI host controller and the USB devices declare to be LPM-capable. Unfortunately, some devices are known to work well with LPM disabled, but to be broken if LPM is enabled, although it declares the LPM capability. Users won't be able to use this

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-11 Thread John Youn
On 11/11/2015 4:22 PM, Doug Anderson wrote: > John, > > On Fri, Nov 6, 2015 at 2:04 AM, Yunzhi Li wrote: >> hi John , >> >> As we talked yesterday, I tried to fix the split schedule sequence. This >> patch will >> avoid scheduling SSPLIT-IN packet for another device

[PATCH 1/3] usb: renesas_usbhs: gadget: Fix NULL pointer dereference in usbhsg_ep_dequeue()

2015-11-11 Thread Yoshihiro Shimoda
This patch fixes an issue that NULL pointer dereference happens when a gadget driver calls usb_ep_dequeue() after usb_ep_disable(). Signed-off-by: Yoshihiro Shimoda --- drivers/usb/renesas_usbhs/mod_gadget.c | 11 +-- 1 file changed, 9 insertions(+), 2

[PATCH 2/3] usb: renesas_usbhs: Modify pipe configuration

2015-11-11 Thread Yoshihiro Shimoda
The current code has info->bufnmb_last to calculate the BUFNMB bits of PIPEBUF register. However, since the bufnmb_last is initialized in the usbhs_pipe_init() only, this driver is possible to set unexpected value to the register if usb_ep_{enable,disable}() are called many times. So, this patch

[PATCH 0/3] usb: renesas_usbhs: gadget: modifications for g_audio

2015-11-11 Thread Yoshihiro Shimoda
This patch is based on the latest Felipe's usb.git / testing/next branch. (The commit id = 81e9d14a53eb1abfbe6ac828a87a2deb4702b5f1) Yoshihiro Shimoda (3): usb: renesas_usbhs: gadget: Fix NULL pointer dereference in usbhsg_ep_dequeue() usb: renesas_usbhs: Modify pipe configuration usb:

Re: [PATCH 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-11 Thread Lu, Baolu
On 11/11/2015 11:10 PM, Alan Stern wrote: On Wed, 11 Nov 2015, Lu Baolu wrote: Commit 8306095fd2c1 ("USB: Disable USB 3.0 LPM in critical sections.") adds usb3_lpm_enabled member to struct usb_device. There is no reference to this member now. Hence, it could be removed. Signed-off-by: Lu

[PATCH v2 1/3] usb: core: lpm: fix usb3_hardware_lpm sysfs node

2015-11-11 Thread Lu Baolu
Commit 655fe4effe0f ("usbcore: add sysfs support to xHCI usb3 hardware LPM") introduced usb3_hardware_lpm sysfs node. This doesn't show the correct status of USB3 U1 and U2 LPM status. This patch fixes this by replacing usb3_hardware_lpm with two nodes, usb3_hardware_lpm_u1 (for U1) and

[PATCH v2 0/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-11 Thread Lu Baolu
Hi, This patch series is about to add a sysfs attribute, through which users can disable or enable USB3 LPM (link power management) from a USB port. Once LPM is disabled from the USB port, LPM between the downstreaming device and the hub port will not be activated. This helps users to use any

[PATCH v2 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-11 Thread Lu Baolu
Commit 8306095fd2c1 ("USB: Disable USB 3.0 LPM in critical sections.") adds usb3_lpm_enabled member to struct usb_device. There is no reference to this member now. Hence, it could be removed. Signed-off-by: Lu Baolu --- include/linux/usb.h | 2 -- 1 file changed, 2

Re: usb: dwc2: regression during boot on Raspberry Pi

2015-11-11 Thread John Youn
On 11/11/2015 3:20 PM, Stefan Wahren wrote: > Hi John, > > Am 11.11.2015 um 00:21 schrieb John Youn: >> On 11/9/2015 12:43 PM, Stefan Wahren wrote: >>> Hi, >> >> The gadget side required it but it looks like the host side >> didn't. >> >> When Marek did the low-level hw refactor, some of the

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-11 Thread Doug Anderson
John, On Wed, Nov 11, 2015 at 8:29 PM, John Youn wrote: > I also feel it is not quite right as the SSPLIT should be able to > happen during the SSPLIT of another device. I tried to reproduce > and see the same scheduling but don't see any hang due to it. > > Yunzhi, any

Re: usb: dwc2: regression during boot on Raspberry Pi

2015-11-11 Thread Stefan Wahren
Am 12.11.2015 um 05:39 schrieb John Youn: On 11/11/2015 3:20 PM, Stefan Wahren wrote: Hi John, Am 11.11.2015 um 00:21 schrieb John Youn: On 11/9/2015 12:43 PM, Stefan Wahren wrote: Hi, The gadget side required it but it looks like the host side didn't. When Marek did the low-level hw

[PATCH] usb: phy: msm: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Renaming id to of_id (like all others do) in the process. Reported-by: coverity (CID 1324133) Signed-off-by: LABBE Corentin --- drivers/usb/phy/phy-msm-usb.c | 9 ++--- 1 file

[PATCH 2/2] usb: chipidea: imx: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Reported-by: coverity (CID 1324138) Signed-off-by: LABBE Corentin --- drivers/usb/chipidea/ci_hdrc_imx.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git

[PATCH 1/2] usb: chipidea: imx: fix a possible NULL dereference

2015-11-11 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Renaming tmp_dev to of_id (like all others do) in the process. Reported-by: coverity (CID 1324135) Signed-off-by: LABBE Corentin --- drivers/usb/chipidea/usbmisc_imx.c | 10 ++ 1

Re: usb: dwc2: regression during boot on Raspberry Pi

2015-11-11 Thread Stefan Wahren
Am 11.11.2015 um 22:58 schrieb John Youn: On 11/8/2015 2:13 AM, Stefan Wahren wrote: --->8 diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 5859b0f..0e80087 100644 --- a/drivers/usb/dwc2/platform.c

Re: [PATCH 1/1] usblp: do not set TASK_INTERRUPTIBLE before lock

2015-11-11 Thread Pete Zaitcev
On Mon, 2 Nov 2015 10:27:00 +0100 Jiri Slaby wrote: > Signed-off-by: Jiri Slaby > --- a/drivers/usb/class/usblp.c > +++ b/drivers/usb/class/usblp.c > @@ -884,11 +884,11 @@ static int usblp_wwait(struct usblp *usblp, int > nonblock) > >

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-11 Thread Doug Anderson
John, On Fri, Nov 6, 2015 at 2:04 AM, Yunzhi Li wrote: > hi John , > > As we talked yesterday, I tried to fix the split schedule sequence. This > patch will > avoid scheduling SSPLIT-IN packet for another device between > SSPLIT-OUT-begin and > SSPLIT-OUT-end, now the

[PATCH] USB: serial: option: add support for Novatel MiFi USB620L

2015-11-11 Thread Aleksander Morgado
Also known as Verizon U620L. The device is modeswitched from 1410:9020 to 1410:9022 by selecting the 4th USB configuration: $ sudo usb_modeswitch –v 0x1410 –p 0x9020 –u 4 This configuration provides a ECM interface as well as TTYs ('Enterprise Mode' according to the U620 Linux integration

Re: [PATCH v3 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-11 Thread Andy Shevchenko
On Wed, Nov 11, 2015 at 1:16 PM, Dave Penkler wrote: > Background: > When performing a read on an instrument that is executing a function > that runs longer than the USB timeout the instrument may hang and require > a device reset to recover. The READ_STATUS_BYTE operation

Re: [PATCH v3 3/5] Add support for receiving USBTMC USB488 SRQ notifications via poll/select

2015-11-11 Thread Andy Shevchenko
On Wed, Nov 11, 2015 at 1:16 PM, Dave Penkler wrote: > Background: > In many situations operations on multiple instruments need to be > synchronized. poll/select provide a convenient way of waiting on a number > of different instruments and other peripherals simultaneously. >

[PATCH RESEND 0/2] usb: dwc2: Fix issues with getting PHY during probe

2015-11-11 Thread John Youn
This series address a couple issues with setting up and checking the PHY during probe. Resending to linux-usb list with fixed up headers and fixed cover letter subject. John Youn (2): usb: dwc2: Make PHY optional usb: dwc2: Return errors from PHY drivers/usb/dwc2/platform.c | 36

Re: [PATCH v3 4/5] Add ioctl to retrieve USBTMC-USB488 capabilities

2015-11-11 Thread Andy Shevchenko
On Wed, Nov 11, 2015 at 1:20 PM, Dave Penkler wrote: > This is a convenience function to obtain an instrument's capabilities > from its file descriptor without having to access sysfs from the user > program. > > Signed-off-by: Dave Penkler > --- >

[PATCH RESEND 1/2] usb: dwc2: Make PHY optional

2015-11-11 Thread John Youn
Fixes commit 09a75e85 "usb: dwc2: refactor common low-level hw code to platform.c" The above commit consolidated the low-level phy access into a common location. This change introduced a check from the gadget requiring that a PHY is specified. This requirement never existed on the host side and

[REPOST PATCH] usb: dwc2: host: Support immediate retries for split transactions

2015-11-11 Thread Douglas Anderson
In some cases, like when you've got a "Microsoft Wireless Keyboard 2000" connected to dwc2 with a hub, expected that we'll get some transfer errors sometimes. The controller is expected to try at least 3 times before giving up. See figure "Figure A-67. Normal HS CSPLIT 3 Strikes Smash" in the

Re: usb: dwc2: regression during boot on Raspberry Pi

2015-11-11 Thread John Youn
On 11/11/2015 9:57 AM, Alexander Aring wrote: > Hi, > > On Tue, Nov 10, 2015 at 11:21:56PM +, John Youn wrote: >> On 11/9/2015 12:43 PM, Stefan Wahren wrote: >>> Hi, >>> >>> Am 09.11.2015 um 12:53 schrieb Marek Szyprowski: Hello, This change looks reasonable, I remember

Re: [PATCH v3 5/5] Add ioctls to enable and disable local controls on an instrument

2015-11-11 Thread Andy Shevchenko
On Wed, Nov 11, 2015 at 1:21 PM, Dave Penkler wrote: > These ioctls provide support for the USBTMC-USB488 control requests > for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT > > Signed-off-by: Dave Penkler > --- > drivers/usb/class/usbtmc.c | 76 >

[PATCH RESEND 2/2] usb: dwc2: Return errors from PHY

2015-11-11 Thread John Youn
When searching for PHYs, any error was treated as if the PHY did not exist or was not specified (-ENODEV). Thus the probe function did not correctly return error conditions such as -EPROBE_DEFER. Fixed so that only -ENODEV is ignored and any other error is returned. Reported-by: Alexander Aring

Re: [PATCH v3 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-11 Thread Sergei Shtylyov
Hello. On 11/11/2015 10:03 PM, Andy Shevchenko wrote: Background: When performing a read on an instrument that is executing a function that runs longer than the USB timeout the instrument may hang and require a device reset to recover. The READ_STATUS_BYTE operation always returns even when

[PATCH] WIP: usb: dwc2: host: Support immediate retries for split transactions

2015-11-11 Thread Douglas Anderson
In some cases, like when you've got a "Microsoft Wireless Keyboard 2000" connected to dwc2 with a hub, expected that we'll get some transfer errors sometimes. The controller is expected to try at least 3 times before giving up. See figure "Figure A-67. Normal HS CSPLIT 3 Strikes Smash" in the

Re: [PATCH v3 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-11 Thread Andy Shevchenko
On Wed, Nov 11, 2015 at 9:48 PM, Sergei Shtylyov wrote: > On 11/11/2015 10:03 PM, Andy Shevchenko wrote: >> Won't comment precisely by line, but common nitpicks about style: >> - added empty lines where no need >> - redundant parens >> - pieces of code

Re: [PATCH RESEND 2/2] usb: dwc2: Return errors from PHY

2015-11-11 Thread Sergei Shtylyov
Hello. On 11/11/2015 10:36 PM, John Youn wrote: When searching for PHYs, any error was treated as if the PHY did not exist or was not specified (-ENODEV). Thus the probe function did not correctly return error conditions such as -EPROBE_DEFER. Fixed so that only -ENODEV is ignored and any

Re: [PATCH v3 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-11 Thread Greg Kroah-Hartman
On Wed, Nov 11, 2015 at 09:03:14PM +0200, Andy Shevchenko wrote: > On Wed, Nov 11, 2015 at 1:16 PM, Dave Penkler wrote: > > Background: > > When performing a read on an instrument that is executing a function > > that runs longer than the USB timeout the instrument may hang

Re: [PATCH 1/2] Documentation: dt-bindings: add async_irq to msm_hsusb

2015-11-11 Thread Rob Herring
On Tue, Nov 10, 2015 at 04:46:50PM -0800, Tim Bird wrote: > Add optional async_irq to msm_hsusb binding doc. > > Signed-off-by: Tim Bird Acked-by: Rob Herring > --- > Documentation/devicetree/bindings/usb/msm-hsusb.txt | 10 -- > 1 file

[PATCH RESEND] USB: serial: cp210x: Add tx_empty()

2015-11-11 Thread Konstantin Shkolnyy
Without this function, when the port is closed the data in the chip's transmit FIFO are lost. If the actual byte count is reported the close can be delayed until all data are sent. Signed-off-by: Konstantin Shkolnyy --- drivers/usb/serial/cp210x.c | 60

Re: usb: dwc2: regression during boot on Raspberry Pi

2015-11-11 Thread John Youn
On 11/8/2015 2:13 AM, Stefan Wahren wrote: > Hi Stephen, > > Am 08.11.2015 um 06:06 schrieb Stephen Warren: >> On 11/07/2015 05:16 PM, Stefan Wahren wrote: >>> Hi, >>> [...] >>>* phys (optional) >>>* phy-names (optional) >>> >>> So here are my questions: >>> >>> How to fix the kernel oops

Re: usb: dwc2: regression during boot on Raspberry Pi

2015-11-11 Thread Stefan Wahren
Hi John, Am 11.11.2015 um 00:21 schrieb John Youn: On 11/9/2015 12:43 PM, Stefan Wahren wrote: Hi, The gadget side required it but it looks like the host side didn't. When Marek did the low-level hw refactor, some of the gadget stuff was brought up to the common layer, including the

[PATCH 0/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-11 Thread Lu Baolu
Hi, This patch series is about to add a sysfs attribute, through which users can disable or enable USB3 LPM (link power management) from a USB port. Once LPM is disabled from the USB port, LPM between the downstreaming device and the hub port will not be activated. This helps users to use any

[PATCH 1/3] usb: core: lpm: fix usb3_hardware_lpm sysfs node

2015-11-11 Thread Lu Baolu
Commit 655fe4effe0f ("usbcore: add sysfs support to xHCI usb3 hardware LPM") introduced usb3_hardware_lpm sysfs node. This doesn't show the correct status of USB3 U1 and U2 LPM status. This patch fixes this by replacing usb3_hardware_lpm with two nodes, usb3_hardware_lpm_u1 (for U1) and

[PATCH 2/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-11 Thread Lu Baolu
USB3 LPM is default on in Linux kernel if both xHCI host controller and the USB devices declare to be LPM-capable. Unfortunately, some devices are known to work well with LPM disabled, but to be broken if LPM is enabled, although it declares the LPM capability. Users won't be able to use this

[PATCH 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-11 Thread Lu Baolu
Commit 8306095fd2c1 ("USB: Disable USB 3.0 LPM in critical sections.") adds usb3_lpm_enabled member to struct usb_device. There is no reference to this member now. Hence, it could be removed. Signed-off-by: Lu Baolu --- include/linux/usb.h | 1 - 1 file changed, 1