,Your urgent confirmation

2018-03-07 Thread James Williams
Attn: Beneficiary, We have contacted the Federal Ministry of Finance on your Behalf and they have brought a solution to your problem by coordinating your payment in total (10,000,000.00) Ten Million Dollars in an atm card which you can use to withdraw money from any ATM MACHINE CENTER anywhere in

[PATCH AUTOSEL for 4.9 002/190] usb: dwc2: Make sure we disconnect the gadget state

2018-03-07 Thread Sasha Levin
From: John Stultz [ Upstream commit dad3f793f20fbb5c0c342f0f5a0bdf69a4d76089 ] I had seen some odd behavior with HiKey's usb-gadget interface that I finally seemed to have chased down. Basically every other time I plugged in the OTG port, the gadget interface would

[PATCH AUTOSEL for 4.4 001/101] usb: dwc2: Make sure we disconnect the gadget state

2018-03-07 Thread Sasha Levin
From: John Stultz [ Upstream commit dad3f793f20fbb5c0c342f0f5a0bdf69a4d76089 ] I had seen some odd behavior with HiKey's usb-gadget interface that I finally seemed to have chased down. Basically every other time I plugged in the OTG port, the gadget interface would

[PATCH v5] usb: core: Add "quirks" parameter for usbcore

2018-03-07 Thread Kai-Heng Feng
Trying quirks in usbcore needs to rebuild the driver or the entire kernel if it's builtin. It can save a lot of time if usbcore has similar ability like "usbhid.quirks=" and "usb-storage.quirks=". Rename the original quirk detection function to "static" as we introduce this new "dynamic"

Re: [PATCH v5 0/6] dt-bindings: add bindings for USB physical connector

2018-03-07 Thread Chanwoo Choi
Hi Andrzej, Archit, On 2018년 03월 07일 20:13, Andrzej Hajda wrote: > Hi Chanwoo, Archit, > > On 07.03.2018 05:48, Chanwoo Choi wrote: >> On 2018년 03월 07일 11:12, Chanwoo Choi wrote: >>> Hi Rob and Andrzej, >>> >>> On 2018년 03월 06일 21:53, Andrzej Hajda wrote: Hi Rob, Chanwoo, Krzysztof,

RE: [PATCH v2 10/12] dt-bindings: connector: add properties for typec power delivery

2018-03-07 Thread Jun Li
Hi > -Original Message- > From: Heikki Krogerus [mailto:heikki.kroge...@linux.intel.com] > Sent: 2018年3月6日 20:02 > To: Jun Li > Cc: Andrzej Hajda ; gre...@linuxfoundation.org; > robh...@kernel.org; li...@roeck-us.net; mark.rutl...@arm.com; >

Re: [PATCH v5 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 04:59:10PM +0800, Ran Wang wrote: > Property "snps,incr-burst-type-adjustment = , ..." for USB3.0 DWC3. > When only one value means INCRx mode with fix burst type. > When more than one value, means undefined length burst mode, USB controller > can use the length less than

Re: [PATCH v5 3/3] USB3/DWC3: Enable undefined length INCR burst type

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 04:59:11PM +0800, Ran Wang wrote: > Enable the undefined length INCR burst type and set INCRx. > Different platform may has the different burst size type. > In order to get best performance, we need to tune the burst size to > one special value, instead of the default

Re: usb: musb: error when trying to unbind musb-hdrc.0.auto

2018-03-07 Thread Merlijn Wajer
Hi, I suspected that the issue was similar to the one fixed in this commit: 0c3aae9bd59978fb8c3557d7883380bef0f2cfa1 (USB: musb: fix late external abort on suspend) I've applied a similar fix to the musb_remove function (as well as moving musb_platform_exit just before spin_unlock_irqrestore),

Re: High CPU load produced by USB (DW2)

2018-03-07 Thread Marek Vasut
On 03/06/2018 09:09 AM, Minas Harutyunyan wrote: Hi, On 3/6/2018 10:45 AM, Minas Harutyunyan wrote: Hi, On 3/5/2018 11:14 PM, Marek Vasut wrote: On 02/20/2018 06:51 AM, Minas Harutyunyan wrote: [...] Is there a way to reduce that or is that the absolute minimum in HS mode? We already

usb: musb: error when trying to unbind musb-hdrc.0.auto

2018-03-07 Thread Merlijn Wajer
Hi, I am trying to unbind the musb driver on my Nokia N900, but I get the following kernel oops [1]. This is the command that I issued: root@n900devuan:/sys/bus/platform/drivers/musb-hdrc# echo musb-hdrc.0.auto > unbind This might be omap specific. I thought that as with the vbus issue, calls

Re: [PATCH v1 1/1] USB: serial: Add boundry check for read_urbs array access

2018-03-07 Thread sathyanarayanan kuppuswamy
On 03/07/2018 12:58 PM, Greg KH wrote: On Wed, Mar 07, 2018 at 12:23:56PM -0800, sathyanarayanan.kuppusw...@linux.intel.com wrote: From: Kuppuswamy Sathyanarayanan In usb_serial_generic_submit_read_urb() function we are accessing the

Re: [PATCH v1 1/1] USB: serial: Add boundry check for read_urbs array access

2018-03-07 Thread Greg KH
On Wed, Mar 07, 2018 at 12:23:56PM -0800, sathyanarayanan.kuppusw...@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > In usb_serial_generic_submit_read_urb() function we are accessing the > port->read_urbs array without any boundry

[PATCH 2/3] usbip: usbip_host_common: Use new error codes to return request status

2018-03-07 Thread Shuah Khan
Currently ST_OK and ST_NA are the only values used to communicate status of a request from a client. Use new error codes to clearly indicate what failed. For example, when client sends request to import a device that isn't export-able, send ST_DEV_BUSY to the client. Signed-off-by: Shuah Khan

[PATCH 1/3] usbip: tools: add more error codes for usbip request/reply messages

2018-03-07 Thread Shuah Khan
Currently ST_OK and ST_NA are the only values defined to communicate status of a request from a client. Add more error codes to clearly indicate what failed. For example, when client sends request to import a device that isn't export-able, server can send a specific error code to the client.

[PATCH 3/3] usbip: tools: change to use new error codes in server reply messages

2018-03-07 Thread Shuah Khan
Changed usbip_network, usbip_attach, usbip_list, and usbipd to use and propagate the new error codes in server reply messages. usbip_net_recv_op_common() is changed to take a pointer to status return the status returned in the op_common.status to callers. usbip_attach and usbip_list use the

[PATCH 0/3] More error codes for usbip request/reply messages

2018-03-07 Thread Shuah Khan
Currently ST_OK and ST_NA are the only values defined to communicate status of a request from a client. Client doesn't know what failed and prints a cryptic error message that something failed. This patch series adds more error codes to clearly indicate what failed. For example, when client sends

Re: [PATCH net-next 1/2] net: kalmia: clean up bind error path

2018-03-07 Thread David Miller
From: Johan Hovold Date: Wed, 7 Mar 2018 10:46:57 +0100 > Drop bogus call to usb_driver_release_interface() from an error path in > the usbnet bind() callback, which is called during interface probe. At > this point the interface is not bound and usb_driver_release_interface()

Re: [PATCH net-next 2/2] net: cdc_eem: clean up bind error path

2018-03-07 Thread David Miller
From: Johan Hovold Date: Wed, 7 Mar 2018 10:46:58 +0100 > Drop bogus call to usb_driver_release_interface() from an error path in > the usbnet bind() callback, which is called during interface probe. At > this point the interface is not bound and usb_driver_release_interface()

[PATCH v1 1/1] USB: serial: Add boundry check for read_urbs array access

2018-03-07 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan In usb_serial_generic_submit_read_urb() function we are accessing the port->read_urbs array without any boundry checks. This might lead to kernel panic when index value goes above array length. One posible call path

Re: [PATCH] USB: serial: option: reimplement interface masking

2018-03-07 Thread Greg Kroah-Hartman
On Wed, Mar 07, 2018 at 05:40:48PM +0100, Johan Hovold wrote: > Reimplement interface masking using device flags stored directly in the > device-id table. This will make it easier to add and maintain device-id > entries by using a more compact and readable notation compared to the > current

Re: [PATCH v2] usb: isp1760: Use kasprintf

2018-03-07 Thread Kees Cook
On Wed, Mar 7, 2018 at 10:38 AM, Himanshu Jha wrote: > Use kasprintf instead of combination of kmalloc and sprintf and > therefore avoid unnecessary computation of string length. > Also, remove the useless local variable. > > Signed-off-by: Himanshu Jha

[PATCH v2] usb: isp1760: Use kasprintf

2018-03-07 Thread Himanshu Jha
Use kasprintf instead of combination of kmalloc and sprintf and therefore avoid unnecessary computation of string length. Also, remove the useless local variable. Signed-off-by: Himanshu Jha --- drivers/usb/isp1760/isp1760-udc.c | 6 +- 1 file changed, 1

Re: [PATCH] usb: isp1760: Use kasprintf

2018-03-07 Thread Himanshu Jha
On Wed, Mar 07, 2018 at 08:20:54PM +0200, Andy Shevchenko wrote: > On Wed, Mar 7, 2018 at 8:08 PM, Himanshu Jha > wrote: > > Use kasprintf instead of combination of kmalloc and sprintf and > > therefore avoid unnecessary computation of string length. > > >

Re: [PATCH] usb: isp1760: Use kasprintf

2018-03-07 Thread Andy Shevchenko
On Wed, Mar 7, 2018 at 8:08 PM, Himanshu Jha wrote: > Use kasprintf instead of combination of kmalloc and sprintf and > therefore avoid unnecessary computation of string length. > devname = dev_name(isp->dev); Do you still need this temporary variable? > -

[PATCH] usb: isp1760: Use kasprintf

2018-03-07 Thread Himanshu Jha
Use kasprintf instead of combination of kmalloc and sprintf and therefore avoid unnecessary computation of string length. Signed-off-by: Himanshu Jha --- drivers/usb/isp1760/isp1760-udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH net] net: usbnet: fix potential deadlock on 32bit hosts

2018-03-07 Thread David Miller
From: Eric Dumazet Date: Mon, 05 Mar 2018 11:41:13 -0800 > From: Eric Dumazet > > Marek reported a LOCKDEP issue occurring on 32bit host, > that we tracked down to the fact that usbnet could either > run from soft or hard irqs. > > This patch adds

[PATCH] USB: serial: option: reimplement interface masking

2018-03-07 Thread Johan Hovold
Reimplement interface masking using device flags stored directly in the device-id table. This will make it easier to add and maintain device-id entries by using a more compact and readable notation compared to the current implementation (which manages pairs of masks in separate blacklist structs).

Re: [Regression] xhci: some hard drives cannot be seen using a JMicron JMS56x enclosure

2018-03-07 Thread Mathias Nyman
On 06.03.2018 04:24, Cyril Roelandt wrote: Hi, On 02/28/18 15:55, Mathias Nyman wrote: I have a series of even more custom debugging patches. attached patches apply on 4.13, but seris for both 4.13 and 4.15 can be found in the streams-debug-4.13 and streams-debug-4.15 branches at

Re: [PATCH] [media] cpia2_usb: drop bogus interface-release call

2018-03-07 Thread Greg KH
On Wed, Mar 07, 2018 at 10:49:36AM +0100, Johan Hovold wrote: > Drop bogus call to usb_driver_release_interface() from the disconnect() > callback. As the interface is already being unbound at this point, > usb_driver_release_interface() simply returns early. > > Signed-off-by: Johan Hovold

[PATCHv3] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4

2018-03-07 Thread Tony Lindgren
Let's add support for the GPIO controlled USB PHY on the MDM6600 modem. It is used on some Motorola Mapphone series of phones and tablets such as Droid 4. The MDM6600 is hardwired to the first OHCI port in the Droid 4 case, and is controlled by several GPIOs. The USB PHY is integrated into the

Re: [PATCH 2/2] USB: serial: option: use mass-storage class define

2018-03-07 Thread Greg KH
On Wed, Mar 07, 2018 at 11:49:56AM +0100, Johan Hovold wrote: > Use the USB class define rather than a magic number when refusing to > bind to mass-storage interfaces. > > Signed-off-by: Johan Hovold Reviewed-by: Greg Kroah-Hartman -- To

Re: [PATCH 1/2] USB: serial: option: drop redundant interface-class test

2018-03-07 Thread Greg KH
On Wed, Mar 07, 2018 at 11:49:55AM +0100, Johan Hovold wrote: > Drop redundant interface-class test for Samsung GT-B3730 modems for > which we only match and probe the CDC data interface. > > Signed-off-by: Johan Hovold Reviewed-by: Greg Kroah-Hartman

Re: [PATCH net-next 2/2] net: cdc_eem: clean up bind error path

2018-03-07 Thread Greg KH
On Wed, Mar 07, 2018 at 10:46:58AM +0100, Johan Hovold wrote: > Drop bogus call to usb_driver_release_interface() from an error path in > the usbnet bind() callback, which is called during interface probe. At > this point the interface is not bound and usb_driver_release_interface() > returns

Re: [PATCH net-next 1/2] net: kalmia: clean up bind error path

2018-03-07 Thread Greg KH
On Wed, Mar 07, 2018 at 10:46:57AM +0100, Johan Hovold wrote: > Drop bogus call to usb_driver_release_interface() from an error path in > the usbnet bind() callback, which is called during interface probe. At > this point the interface is not bound and usb_driver_release_interface() > returns

Re: [PATCH usb-next v2 0/3] DWC3 support for Amlogic Meson AXG and GXL SoCs

2018-03-07 Thread Neil Armstrong
On 11/02/2018 22:15, Martin Blumenstingl wrote: > Amlogic Meson AXG and GXL SoCs can use the dwc3-of-simple with little > modifications. These SoCs use: > - a gate clock for the USB components (DWC3, USB PHYs) > - a reset line which is shared across all USB components (DWC3, USB2 and > USB3

Re: [usb-next PATCH v11 0/8] initialize (multiple) PHYs for a HCD

2018-03-07 Thread Neil Armstrong
On 03/03/2018 22:43, Martin Blumenstingl wrote: > The goal of this series is to initialize multiple PHYs on a USB host > controller, which is needed on Amlogic Meson GXL and GXM SoCs. > - Amlogic Meson GXL and GXM SoCs come with a dwc3 IP block which has two > or three USB2 ports enabled on the

Re: Problem with xhci_hcd on Gigabyte Z170X Gaming 7-EK

2018-03-07 Thread Dennis Wassenberg
Hi all, are there any news regarding this issue? I have a similar issue using a Lenovo ThinkPad T480s with Lenovo UltraDock CS18. If I undock the CS18 dock I will get the following messages (kernel 4.14.24): [ 64.127294] usb usb4-port1: Cannot enable. Maybe the USB cable is bad? [

Re: [PATCH v5 0/6] dt-bindings: add bindings for USB physical connector

2018-03-07 Thread Andrzej Hajda
On 07.03.2018 12:22, Krzysztof Kozlowski wrote: > On Wed, Mar 7, 2018 at 12:13 PM, Andrzej Hajda wrote: >> Hi Chanwoo, Archit, >> >> On 07.03.2018 05:48, Chanwoo Choi wrote: >>> On 2018년 03월 07일 11:12, Chanwoo Choi wrote: Hi Rob and Andrzej, On 2018년 03월 06일

Re: [PATCH v5 0/6] dt-bindings: add bindings for USB physical connector

2018-03-07 Thread Krzysztof Kozlowski
On Wed, Mar 7, 2018 at 12:13 PM, Andrzej Hajda wrote: > Hi Chanwoo, Archit, > > On 07.03.2018 05:48, Chanwoo Choi wrote: >> On 2018년 03월 07일 11:12, Chanwoo Choi wrote: >>> Hi Rob and Andrzej, >>> >>> On 2018년 03월 06일 21:53, Andrzej Hajda wrote: Hi Rob, Chanwoo,

Re: [PATCH v5 0/6] dt-bindings: add bindings for USB physical connector

2018-03-07 Thread Andrzej Hajda
Hi Chanwoo, Archit, On 07.03.2018 05:48, Chanwoo Choi wrote: > On 2018년 03월 07일 11:12, Chanwoo Choi wrote: >> Hi Rob and Andrzej, >> >> On 2018년 03월 06일 21:53, Andrzej Hajda wrote: >>> Hi Rob, Chanwoo, Krzysztof, >>> >>> >>> On 27.02.2018 08:11, Andrzej Hajda wrote: Hi, Thanks for

[PATCH 2/2] USB: serial: option: use mass-storage class define

2018-03-07 Thread Johan Hovold
Use the USB class define rather than a magic number when refusing to bind to mass-storage interfaces. Signed-off-by: Johan Hovold --- drivers/usb/serial/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/serial/option.c

[PATCH 1/2] USB: serial: option: drop redundant interface-class test

2018-03-07 Thread Johan Hovold
Drop redundant interface-class test for Samsung GT-B3730 modems for which we only match and probe the CDC data interface. Signed-off-by: Johan Hovold --- drivers/usb/serial/option.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/usb/serial/option.c

Re: [PATCH net-next 2/2] net: cdc_eem: clean up bind error path

2018-03-07 Thread Oliver Neukum
Am Mittwoch, den 07.03.2018, 10:46 +0100 schrieb Johan Hovold: > Drop bogus call to usb_driver_release_interface() from an error path in > the usbnet bind() callback, which is called during interface probe. At > this point the interface is not bound and usb_driver_release_interface() > returns

[PATCH] [media] cpia2_usb: drop bogus interface-release call

2018-03-07 Thread Johan Hovold
Drop bogus call to usb_driver_release_interface() from the disconnect() callback. As the interface is already being unbound at this point, usb_driver_release_interface() simply returns early. Signed-off-by: Johan Hovold --- drivers/media/usb/cpia2/cpia2_usb.c | 3 --- 1 file

[PATCH net-next 2/2] net: cdc_eem: clean up bind error path

2018-03-07 Thread Johan Hovold
Drop bogus call to usb_driver_release_interface() from an error path in the usbnet bind() callback, which is called during interface probe. At this point the interface is not bound and usb_driver_release_interface() returns early. Also remove the bogus call to clear the interface data, which is

[PATCH net-next 1/2] net: kalmia: clean up bind error path

2018-03-07 Thread Johan Hovold
Drop bogus call to usb_driver_release_interface() from an error path in the usbnet bind() callback, which is called during interface probe. At this point the interface is not bound and usb_driver_release_interface() returns early. Also remove the bogus call to clear the interface data, which is