Re: [PATCH 2/2] usb: chipidea: usbmisc: set over current polarity for imx6 and imx7

2016-07-15 Thread Peter Chen
On Tue, Jul 12, 2016 at 03:24:49PM +0800, Li Jun wrote: > As all usb power supply use low active for over current flag on imx6 > imx7 boards, and the default register setting(0) is for high active, > this patch is to correct it. > We may can't ensure all USB power switch chips work like that, I s

Re: [PATCH v2 1/5] drivers: usb: chipidea: Add qoriq platform driver

2016-07-15 Thread Peter Chen
On Tue, Jul 12, 2016 at 03:59:07AM +, Rajesh Bhagat wrote: > > > + > > > +err_clks: > > > + ci_hdrc_qoriq_disable_unprepare_clks(pdev); > > > > If you have only one clock, it is unnecessary to use dedicated APIs for > > clock operation. > > > > We do have multiple clocks, but currently one

Re: [PATCH v2 2/5] usb: DT binding documentation for qoriq usb 2.0 controller

2016-07-15 Thread Peter Chen
On Tue, Jul 12, 2016 at 03:59:14AM +, Rajesh Bhagat wrote: > > > > -Original Message- > > From: Peter Chen [mailto:hzpeterc...@gmail.com] > > Sent: Monday, July 11, 2016 12:19 PM > > To: Rajesh Bhagat > > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; > > devicet...@vge

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Felipe Balbi
Bin Gao writes: > This patch implements a simple USB Power Delivery sink port state machine. > It assumes the hardware only handles PD packet transmitting and receiving > over the CC line of the USB Type-C connector. The state transition is > completely controlled by software. This patch only imp

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-15 Thread Clemens Ladisch
>> On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol >> wrote: >>> it may break current usecase for some people And what are the benefits that justify breaking the kernel API? Regards, Clemens -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majo

RE: [PATCH v2 2/5] usb: DT binding documentation for qoriq usb 2.0 controller

2016-07-15 Thread Rajesh Bhagat
> -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Friday, July 15, 2016 12:45 PM > To: Rajesh Bhagat > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; > devicet...@vger.kernel.org; Peter Chen ; > gre...@linuxfoundation.org; kis...@ti.com; robh...

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Oliver Neukum
On Fri, 2016-07-15 at 10:25 +0300, Felipe Balbi wrote: > > +int pd_sink_queue_msg(struct pd_sink_msg *msg) > > +{ > > + unsigned long flags; > > + struct pd_sink_port *port; > > + > > + if (msg->port < 0 || msg->port >= MAX_NR_SINK_PORTS) { > > + pr_err("Invalid port number\

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-15 Thread Oliver Neukum
On Fri, 2016-07-15 at 08:14 +0900, Greg KH wrote: > Doh, nevermind, that's what I get for writing emails early in the > morning while jet-lagged. > > Sorry for the noise, you are correct. No problem. Do you want me to resubmit? Regards Oliver -- To unsubscribe from this

[PATCH 2/4] usb: host: xhci: Introduce one new 'usb3_slow_suspend' member for xhci private data

2016-07-15 Thread Baolin Wang
Now some usb controllers (such as dwc3 controller) need 'XHCI_SLOW_SUSPEND' quirk when suspending the xhci, thus we need to add 'usb3_slow_suspend' member in xhci platform data to support this. Signed-off-by: Baolin Wang --- drivers/usb/host/xhci-plat.c |3 +++ include/linux/usb/xhci_pdr

[PATCH 3/4] usb: dwc3: core: Move the mode setting to the right place

2016-07-15 Thread Baolin Wang
When dwc3 core enters into suspend mode, the system (especially for mobile device) may power off the dwc3 controller for power saving, that will cause dwc3 controller lost the mode operation when resuming dwc3 core. Thus we can move the mode setting into dwc3_core_init() function to avoid this iss

[PATCH 0/4] Support dwc3 host suspend/resume

2016-07-15 Thread Baolin Wang
For mobile devices, they usually require very strict power management. Such as dwc3 controller, we should enter suspend mode when no cable plug in, then we can power off the dwc3 controller for saving power. Now dwc3 gadget can support suspend/resume well, but we also want to suspend/ resume the h

[PATCH 4/4] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-07-15 Thread Baolin Wang
For some mobile devices with strict power management, we also want to suspend the host when the slave is detached for power saving. Thus we add the host suspend/resume functions to support this requirement, and we also should enable the 'XHCI_SLOW_SUSPEND' quirk for extraordinary delay when suspen

[PATCH 1/4] usb: host: xhci: Move the xhci quirks checking to the right place

2016-07-15 Thread Baolin Wang
It will reset the xhci quirks in xhci_gen_setup() function when xhci try to add one hcd, thus we need to move the XHCI_LPM_SUPPORT quirk checking after adding hcd. Signed-off-by: Baolin Wang --- drivers/usb/host/xhci-plat.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff -

Re: [PATCH 2/2] usb: chipidea: usbmisc: set over current polarity for imx6 and imx7

2016-07-15 Thread Peter Chen
On Fri, Jul 15, 2016 at 07:38:23AM +, Jun Li wrote: > Hi, > > -Original Message- > > From: Peter Chen [mailto:hzpeterc...@gmail.com] > > Sent: Friday, July 15, 2016 3:02 PM > > To: Jun Li > > Cc: Peter Chen ; linux-usb@vger.kernel.org > > Subject: Re: [PATCH 2/2] usb: chipidea: usbmisc

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-15 Thread Johan Hovold
On Fri, Jul 15, 2016 at 10:45:36AM +0200, Oliver Neukum wrote: > On Fri, 2016-07-15 at 08:14 +0900, Greg KH wrote: > > Doh, nevermind, that's what I get for writing emails early in the > > morning while jet-lagged. > > > > Sorry for the noise, you are correct. > > No problem. Do you want me to re

Re: [PATCH V2 0/1] usb: add HCD providers

2016-07-15 Thread Rafał Miłecki
On 15 July 2016 at 08:22, Peter Chen wrote: > On Fri, Jul 15, 2016 at 07:48:11AM +0200, Rafał Miłecki wrote: >> >> > Below I supply another thought, please check if it is feasible. >> >> > In below design, you don't need to change any usb codes. >> >> > >> >> > dts: >> >> > >> >> > led_1 { >> >> >

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Felipe Balbi
Hi, Oliver Neukum writes: > On Fri, 2016-07-15 at 10:25 +0300, Felipe Balbi wrote: >> > +int pd_sink_queue_msg(struct pd_sink_msg *msg) >> > +{ >> > + unsigned long flags; >> > + struct pd_sink_port *port; >> > + >> > + if (msg->port < 0 || msg->port >= MAX_NR_SINK_PORTS) { >> > +

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Felipe Balbi
Hi, Bin Gao writes: > +static void print_message(int port, bool is_cmsg, u8 msg, bool recv) > +{ > + pr_info("sink port %d: %s message %s %s\n", port, > + is_cmsg ? "Control" : "Data", > + msg_to_string(is_cmsg, msg), > + r

USB headset doesn't work with USB 3.0 port in kernel 2.6.37 - xhci_hcd error: "ERROR Transfer event TRB DMA ptr not part of current TD"

2016-07-15 Thread Goutham BG
Hi, I'm working on a project to support USB headset on a device containing TI chipset DM8168 SoC. It runs Linux kernel version 2.6.37. The headset works fine with proper audio when connected to USB 2.0 ports which uses musb host controller driver. However, when I connect the headset to USB 3.0 por

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-15 Thread Oliver Neukum
On Fri, 2016-07-15 at 11:35 +0200, Johan Hovold wrote: > which I find much harder to parse. We don't always enforce a common > prefix for function names, making grouping related functions even > harder. > > Usually, what is printed in a debug message only makes sense in > combination with the func

Re: [PATCH 00/36] usb: serial: ti_usb_3410_5052: clean driver

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:32AM +0200, Mathieu OTHACEHE wrote: > Hi, > > The now reverted mxu11x0 turned out to be a copy of ti_usb_3410_5052 driver. > This aim of this serie is to apply all of the cleanups we did in mxu11x0 to > ti_usb_3410_5052. I apologise for the late review of this one. I

Re: [PATCH 03/36] usb: serial: ti_usb_3410_5052: Remove ti_usb_3410_5052.h

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:35AM +0200, Mathieu OTHACEHE wrote: > The definitions in ti_usb_3410_5052.h are only used in > ti_usb_3410_5052.c. > The content of the header is copied in ti_usb_3410_5052.c. > > Also correct a typo in macro TI_PIPE_MODE_CONTINOUS. > > Signed-off-by: Mathieu OTHACEH

Re: [PATCH 04/36] usb: serial: ti_usb_3410_5052: Use inline functions rather than macro

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 03:00:39PM +0300, Sergei Shtylyov wrote: > Hello. > > On 5/12/2016 11:48 AM, Mathieu OTHACEHE wrote: > > > Inline functions are preferable to macros resembling functions. > > > > Signed-off-by: Mathieu OTHACEHE > > --- > > drivers/usb/serial/ti_usb_3410_5052.c | 16 +

Re: [PATCH 05/36] usb: serial: ti_usb_3410_5052: Remove unused data structures

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:37AM +0200, Mathieu OTHACEHE wrote: > ti_read_data_request, ti_read_data_bytes and ti_interrupt are unused. > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/serial/ti_usb_3410_5052.c | 21 - > 1 file changed, 21 deletions(-) > > diff --gi

Re: [PATCH 06/36] usb: serial: ti_usb_3410_5052: Do not use __uX types

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:38AM +0200, Mathieu OTHACEHE wrote: > __uX types should only be used for user-space interactions. > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/serial/ti_usb_3410_5052.c | 66 > ++- > 1 file changed, 34 insertions(+), 32 de

Re: USB headset doesn't work with USB 3.0 port in kernel 2.6.37 - xhci_hcd error: "ERROR Transfer event TRB DMA ptr not part of current TD"

2016-07-15 Thread Greg KH
On Fri, Jul 15, 2016 at 10:38:04AM +, Goutham BG wrote: > Hi, > > I'm working on a project to support USB headset on a device containing TI > chipset DM8168 SoC. It runs Linux kernel version 2.6.37. Wow that's an obsolete and very very old kernel version, many hundreds of thousands of changes

Re: [PATCH 07/36] usb: serial: ti_usb_3410_5052: Remove closing_wait module parameter

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:39AM +0200, Mathieu OTHACEHE wrote: > Closing wait delay is configurable per device using TIOCSSERIAL. Please try to make the commit messages self-contained and not rely on the commit summary to make sense. > Also initialise tty_port closing_wait in port_probe with d

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Greg Kroah-Hartman
On Fri, Jul 15, 2016 at 01:38:12PM +0300, Felipe Balbi wrote: > > Hi, > > Bin Gao writes: > > +static void print_message(int port, bool is_cmsg, u8 msg, bool recv) > > +{ > > + pr_info("sink port %d: %s message %s %s\n", port, > > + is_cmsg ? "Control" : "Data", > > +

Re: [PATCH 08/36] usb: serial: ti_usb_3410_5052: Remove useless dev_dbg messages

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:40AM +0200, Mathieu OTHACEHE wrote: > Remove useless or redundant dev_dbg messages. > Fix debug-message typos. > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/serial/ti_usb_3410_5052.c | 28 +--- > 1 file changed, 9 insertions(+), 19

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-15 Thread Greg KH
On Fri, Jul 15, 2016 at 12:40:45PM +0200, Oliver Neukum wrote: > On Fri, 2016-07-15 at 11:35 +0200, Johan Hovold wrote: > > which I find much harder to parse. We don't always enforce a common > > prefix for function names, making grouping related functions even > > harder. > > > > Usually, what is

[patch] usb: gadget: fsl_qe_udc: signedness bug in qe_get_frame()

2016-07-15 Thread Dan Carpenter
We can't assign -EINVAL to a u16. Fixes: 3948f0e0c999 ('usb: add Freescale QE/CPM USB peripheral controller driver') Signed-off-by: Dan Carpenter diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index 93d28cb..901366f 100644 --- a/drivers/usb/gadget/udc/fs

Re: [PATCH 12/36] usb: serial: ti_usb_3410_5052: Use generic read/write callbacks

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:44AM +0200, Mathieu OTHACEHE wrote: > Remove read_bulk_callback, write_bulk_callback, write, write_room, > chars_in_buffer, throttle and unthrottle callbacks who uselessly > reimplements generic functions. > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/seri

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Felipe Balbi
Hi, Greg Kroah-Hartman writes: > On Fri, Jul 15, 2016 at 01:38:12PM +0300, Felipe Balbi wrote: >> >> Hi, >> >> Bin Gao writes: >> > +static void print_message(int port, bool is_cmsg, u8 msg, bool recv) >> > +{ >> > + pr_info("sink port %d: %s message %s %s\n", port, >> > +

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-15 Thread Greg KH
On Fri, Jul 15, 2016 at 08:14:26PM +0900, Greg KH wrote: > On Fri, Jul 15, 2016 at 12:40:45PM +0200, Oliver Neukum wrote: > > On Fri, 2016-07-15 at 11:35 +0200, Johan Hovold wrote: > > > which I find much harder to parse. We don't always enforce a common > > > prefix for function names, making grou

Re: [PATCH 16/36] usb: serial: ti_usb_3410_5052: Use bulk_out_size in TIOCGSERIAL

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:48AM +0200, Mathieu OTHACEHE wrote: > Use bulk_out_size instead of recalculate it with kfifo_size > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/serial/ti_usb_3410_5052.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/

Re: [PATCH 17/36] usb: serial: ti_usb_3410_5052: Remove useless tty_wakeup

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:49AM +0200, Mathieu OTHACEHE wrote: > The generic driver doesn't call tty_wakeup in > usb_serial_generic_msr_changed so this tty_wakeup seems useless. While we strive to have the generic implementation as complete as possible, it not doing something does not mean it m

Re: [PATCH 18/36] usb: serial: ti_usb_3410_5052: Change ti_write_byte function arguments

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:50AM +0200, Mathieu OTHACEHE wrote: > Remove useless ti_device pointer, and change addr to u32. > Move function upper to avoid function prototyping. That's just noise. Having an occasional prototype is just fine. You may want to consider reordering functions for the f

RE: [PATCH v2 1/5] drivers: usb: chipidea: Add qoriq platform driver

2016-07-15 Thread Rajesh Bhagat
> -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Friday, July 15, 2016 12:43 PM > To: Rajesh Bhagat > Cc: linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org; > devicet...@vger.kernel.org; Peter Chen ; > gre...@linuxfoundation.org; kis...@ti.com; robh...

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-15 Thread Johan Hovold
On Fri, Jul 15, 2016 at 08:26:25PM +0900, Greg Kroah-Hartman wrote: > On Fri, Jul 15, 2016 at 08:14:26PM +0900, Greg KH wrote: > > On Fri, Jul 15, 2016 at 12:40:45PM +0200, Oliver Neukum wrote: > > > On Fri, 2016-07-15 at 11:35 +0200, Johan Hovold wrote: > > > > which I find much harder to parse. W

Re: [PATCH 21/36] usb: serial: ti_usb_3410_5052: Use generic close function

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:53AM +0200, Mathieu OTHACEHE wrote: > Use usb_serial_generic_close in close callback. > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/serial/ti_usb_3410_5052.c | 12 ++-- > 1 file changed, 2 insertions(+), 10 deletions(-) > > diff --git a/drivers/usb

Re: [PATCH 22/36] usb: serial: ti_usb_3410_5052: Change ti_get/set_serial_info function arguments

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:54AM +0200, Mathieu OTHACEHE wrote: > It is sufficient to pass usb_serial_port structure to ti_get_serial_info > and ti_set_serial_info. > > Also move functions above ioctl to avoid function prototyping > and use unsigned int instead of unsigned for cwait variable. A

Re: [PATCH 24/36] usb: serial: ti_usb_3410_5052: Use usb_serial_generic_open

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:56AM +0200, Mathieu OTHACEHE wrote: > Use usb_serial_generic_open in open callback to start read urb. > Also remove useless usb_device pointer. > > Signed-off-by: Mathieu OTHACEHE > --- > drivers/usb/serial/ti_usb_3410_5052.c | 21 - > 1 file cha

Re: [PATCH 25/36] usb: serial: ti_usb_3410_5052: Check old_termios parameter in set_termios

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:48:57AM +0200, Mathieu OTHACEHE wrote: > The old_termios parameter is never used in set_termios callback. There we go. :) > Add a check to old_termios to see if we can return right away because > there is nothing to change. > Add a check to old_termios CBAUD to see if w

Re: [PATCH 35/36] usb: serial: ti_usb_3410_5052: Remove function prototypes

2016-07-15 Thread Johan Hovold
On Thu, May 12, 2016 at 10:49:07AM +0200, Mathieu OTHACEHE wrote: > Declare functions in a the right order to avoid prototyping. > There is no functional change here. I'm not sure this is needed. Thanks, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of

Re: [PATCH 00/36] usb: serial: ti_usb_3410_5052: clean driver

2016-07-15 Thread Johan Hovold
On Fri, Jul 15, 2016 at 12:48:25PM +0200, Johan Hovold wrote: > On Thu, May 12, 2016 at 10:48:32AM +0200, Mathieu OTHACEHE wrote: > > Hi, > > > > The now reverted mxu11x0 turned out to be a copy of ti_usb_3410_5052 driver. > > This aim of this serie is to apply all of the cleanups we did in mxu11x

Re: [PATCH] USB: serial: cp210x: use kmemdup

2016-07-15 Thread Johan Hovold
On Thu, May 19, 2016 at 07:34:36PM +0530, Muhammad Falak R Wani wrote: > Use kmemdup when some other buffer is immediately copied into allocated > region. It replaces call to allocation followed by memcpy, by a single > call to kmemdup. > > Signed-off-by: Muhammad Falak R Wani Now applied, thank

Re: [PATCH 1/1] USB: serial: option: add support for Telit LE910 PID 0x1206

2016-07-15 Thread Johan Hovold
On Mon, Jun 06, 2016 at 12:38:17PM +0200, Daniele Palmas wrote: > This patch adds support for 0x1206 PID of Telit LE910. > > Since the interfaces positions are the same than the ones for > 0x1043 PID of Telit LE922, telit_le922_blacklist_usbcfg3 is used. > > Signed-off-by: Daniele Palmas Now ap

Re: [PATCH v2 1/5] usb: serial: use variable for status

2016-07-15 Thread Johan Hovold
On Thu, Jul 14, 2016 at 03:01:40PM +0200, Oliver Neukum wrote: > This patch turns status in a variable read once from the URB. > The long term plan is to deliver status to the callback. > In addition it makes the code a bit more elegant. > > Signed-off-by: Oliver Neukum I've applied this one, an

[PATCH] usb/gadget: fix gadgetfs aio support.

2016-07-15 Thread Mathieu Laurendeau
Fix io submissions failing with ENODEV. Signed-off-by: Mathieu Laurendeau Fixes: 7fe3976e0f3a ("gadget: switch ep_io_operations to ->read_iter/->write_iter") --- drivers/usb/gadget/legacy/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/legacy/inode

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Felipe Balbi
Hi again, Felipe Balbi writes: > Oliver Neukum writes: >> On Fri, 2016-07-15 at 10:25 +0300, Felipe Balbi wrote: >>> > +int pd_sink_queue_msg(struct pd_sink_msg *msg) >>> > +{ >>> > + unsigned long flags; >>> > + struct pd_sink_port *port; >>> > + >>> > + if (msg->port < 0 || msg->p

RE: [PATCH 2/2] usb: chipidea: usbmisc: set over current polarity for imx6 and imx7

2016-07-15 Thread Jun Li
> -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Friday, July 15, 2016 5:21 PM > To: Jun Li > Cc: Peter Chen ; linux-usb@vger.kernel.org > Subject: Re: [PATCH 2/2] usb: chipidea: usbmisc: set over current polarity > for imx6 and imx7 > > On Fri, Jul 15, 201

[PATCH] net: usb: ax88172x: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/usb/ax88172a.c | 22 ++ 1 files changed, 2 insertions(+), 20 deletions(-) diff --git a/

Re: bug 120981 - usb controller reset / disconnect -

2016-07-15 Thread Alan Stern
On Thu, 14 Jul 2016, Warren Postma wrote: > I am also able to reproduce this USB disconnect glitch on a Dell Xeon > workstation. Is there any way I can get more verbose output to dmesg: > > > On Sat, Jun 25, 2016 at 12:29:39PM +, > bugzilla-dae...@bugzilla.kernel.org wrote: > > https://bugz

Re: [PATCH v2 2/5] usb: serial: removing redundant __func__

2016-07-15 Thread Oliver Neukum
On Fri, 2016-07-15 at 13:52 +0200, Johan Hovold wrote: > > Johan, how are you enabling dynamic debug for these modules? If you > > just use "+p" no function name should be there, you have to add > "+mf" to > > get module and function names, right? > > Usually I just use "+p", but I could start us

RE: [PATCH 2/2] usb: chipidea: usbmisc: set over current polarity for imx6 and imx7

2016-07-15 Thread Jun Li
Hi, > -Original Message- > From: Peter Chen [mailto:hzpeterc...@gmail.com] > Sent: Friday, July 15, 2016 3:02 PM > To: Jun Li > Cc: Peter Chen ; linux-usb@vger.kernel.org > Subject: Re: [PATCH 2/2] usb: chipidea: usbmisc: set over current polarity > for imx6 and imx7 > > On Tue, Jul 12, 2

Re: [PATCH 4/4] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-07-15 Thread kbuild test robot
Hi, [auto build test ERROR on balbi-usb/next] [cannot apply to v4.7-rc7 next-20160715] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Baolin-Wang/Support-dwc3-host-suspend-resume/20160715

RE: [PATCH] rndis_host: Set random MAC for ZTE MF910

2016-07-15 Thread David Laight
From: Bjørn Mork > Sent: 13 July 2016 23:23 ... > Or how about the more generic?: > > if (bp[0] & 0x02) > eth_hw_addr_random(net); > else > ether_addr_copy(net->dev_addr, bp); > > That would catch similar screwups from other vendors too. Not really, that

Re: [PATCH] rndis_host: Set random MAC for ZTE MF910

2016-07-15 Thread Bjørn Mork
David Laight writes: > From: Bjørn Mork >> Sent: 13 July 2016 23:23 > ... >> Or how about the more generic?: >> >> if (bp[0] & 0x02) >> eth_hw_addr_random(net); >> else >> ether_addr_copy(net->dev_addr, bp); >> >> That would catch similar screwups from othe

Re: [PATCH 4/4] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-07-15 Thread kbuild test robot
Hi, [auto build test ERROR on balbi-usb/next] [cannot apply to v4.7-rc7 next-20160715] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Baolin-Wang/Support-dwc3-host-suspend-resume/20160715

Re: [PATCH 0 / 5] move the common CDC parser

2016-07-15 Thread David Miller
From: Oliver Neukum Date: Thu, 14 Jul 2016 15:41:29 +0200 > Experience has shown that making all CDC drivers depend on usbnet > is not practical, because some of them are not network drivers. > So this patch moves the common parser from usbnet into the messages > helpers of usbcore. > The rest of

Re: [PATCH] usb: MAINTAINERS: Oliver Neukum is the new uas maintainer

2016-07-15 Thread Martin K. Petersen
> "Hans" == Hans de Goede writes: Hans> Oliver Neukum is taking over uas maintainership from me and Gerd Hans> Hoffmann. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a m

Re: [PATCH] usb: ohci-platform: use helper variables in probe function

2016-07-15 Thread Alan Stern
On Fri, 15 Jul 2016, Rafał Miłecki wrote: > Probing function was using &dev->dev and dev->dev.of_node over 20 times > so I believe it made sense to use helper variables for both of them. > To avoid some uncommon variable name for struct device I first replaced > existing dev variable with pdev. >

[PATCH V2] leds: trigger: Introduce an USB port trigger

2016-07-15 Thread Rafał Miłecki
This commit adds a new trigger that can turn on LED when USB device gets connected to the USB port. This can be useful for various home routers that have USB port and a proper LED telling user a device is connected. Right now this trigger is usable with a proper DT only, there isn't a way to speci

Re: [PATCH] r8152: add MODULE_VERSION

2016-07-15 Thread David Miller
From: Grant Grundler Date: Thu, 14 Jul 2016 11:27:16 -0700 > ethtool -i provides a driver version that is hard coded. > Export the same value via "modinfo". > > Signed-off-by: Grant Grundler Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a messa

Re: [PATCH] r8152: add MODULE_VERSION

2016-07-15 Thread Grant Grundler
On Fri, Jul 15, 2016 at 2:25 PM, David Miller wrote: > From: Grant Grundler > Date: Thu, 14 Jul 2016 11:27:16 -0700 > >> ethtool -i provides a driver version that is hard coded. >> Export the same value via "modinfo". >> >> Signed-off-by: Grant Grundler > > Applied. Excellent - thank you. :) g

Re: [PATCH 0 / 5] move the common CDC parser

2016-07-15 Thread Greg KH
On Fri, Jul 15, 2016 at 11:51:47AM -0700, David Miller wrote: > From: Oliver Neukum > Date: Thu, 14 Jul 2016 15:41:29 +0200 > > > Experience has shown that making all CDC drivers depend on usbnet > > is not practical, because some of them are not network drivers. > > So this patch moves the commo

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Bin Gao
On Fri, Jul 15, 2016 at 08:31:08AM +0200, Oliver Neukum wrote: > > +static void ack_message(struct pd_sink_port *port, int msg_id) > > +{ > > + struct pd_msg_header *header = kzalloc(PD_MSG_HEADER_LEN, GFP_KERNEL); > > This must be GFP_NOIO. We are in a cycle that can lead to deadlock. > > Assu

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Bin Gao
On Fri, Jul 15, 2016 at 02:21:48PM +0300, Felipe Balbi wrote: > Greg Kroah-Hartman writes: > > On Fri, Jul 15, 2016 at 01:38:12PM +0300, Felipe Balbi wrote: > >> > >> Hi, > >> > >> Bin Gao writes: > >> > +static void print_message(int port, bool is_cmsg, u8 msg, bool recv) > >> > +{ > >> > +

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Bin Gao
On Fri, Jul 15, 2016 at 10:25:36AM +0300, Felipe Balbi wrote: > Bin Gao writes: > > > This patch implements a simple USB Power Delivery sink port state machine. > > It assumes the hardware only handles PD packet transmitting and receiving > > over the CC line of the USB Type-C connector. The stat

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Greg Kroah-Hartman
On Fri, Jul 15, 2016 at 03:41:10PM -0700, Bin Gao wrote: > On Fri, Jul 15, 2016 at 02:21:48PM +0300, Felipe Balbi wrote: > > Greg Kroah-Hartman writes: > > > On Fri, Jul 15, 2016 at 01:38:12PM +0300, Felipe Balbi wrote: > > >> > > >> Hi, > > >> > > >> Bin Gao writes: > > >> > +static void print

Re: [PATCH v2 2/5] usb: DT binding documentation for qoriq usb 2.0 controller

2016-07-15 Thread Rob Herring
On Sat, Jul 09, 2016 at 10:00:53AM +0530, Rajesh Bhagat wrote: > Describes the qoriq usb 2.0 controller driver binding, currently used > for LS1021A and LS1012A platform. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v2: > - Adds DT binding documentation for qoriq usb 2.0 controller > -

Re: [PATCH v2 4/5] phy: DT binding documentation for qoriq usb 2.0 phy

2016-07-15 Thread Rob Herring
On Sat, Jul 09, 2016 at 10:00:55AM +0530, Rajesh Bhagat wrote: > Describes the qoriq usb 2.0 phy driver binding, currently used > for LS1021A and LS1012A platform. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v2: > - Adds DT binding documentation for qoriq usb 2.0 phy > - Changed the com

[PATCH 1/2] usb: gadget: composite: Fix return value in case of error

2016-07-15 Thread Christophe JAILLET
In 'composite_os_desc_req_prepare', if one of the memory allocations fail, 0 will be returned, which means success. We should return -ENOMEM instead. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/composite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 2/2] usb: gadget: composite: Fix function used to free memory

2016-07-15 Thread Christophe JAILLET
'cdev->os_desc_req' has been allocated with 'usb_ep_alloc_request' so 'usb_ep_free_request' should be used to free it. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers

[PATCH] usb: gadget: composite: Fix function used to free memory

2016-07-15 Thread Christophe JAILLET
'cdev->os_desc_req' has been allocated with 'usb_ep_alloc_request' so 'usb_ep_free_request' should be used to free it. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers