Re: [PATCH] usb-storage: stop using block layer bounce buffers

2018-04-26 Thread Christoph Hellwig
On Sun, Apr 15, 2018 at 11:24:11AM -0400, Alan Stern wrote: > On Sun, 15 Apr 2018, Christoph Hellwig wrote: > > > USB host controllers now must handle highmem, so we can get rid of bounce > > buffering highmem pages in the block layer. > > Sorry, I don't quite understand what you are saying. Do

RE: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread 林上智
> > Option is likely the right driver for this device. > > qcaux was mainly for mobile phones that have a TTY (often cdc-acm) as the > modem port > and a secondary DIAG/DM port driven by qcaux. The DM port doesn't have an > interrupt > endpoint thus it's not a normal modem port requiring

Re: [RFC PATCH] usb: gadget: composite Allow for larger configuration descriptors

2018-04-26 Thread Joel Pepper
And here is the actual packet capture that should have been attached in the last mail On 26.04.2018 20:26, Joel Pepper wrote: > I have been doing some work with uvc gadgets, which mirrors the > capabilities of actual webcams attached to a host port. > During testing I ran into -EPIPE errors when

Re: [PATCH stable v4.4+] r8152: add Linksys USB3GIGV1 id

2018-04-26 Thread Grant Grundler
On Thu, Apr 26, 2018 at 12:56 AM, Krzysztof Kozlowski wrote: > On Thu, Apr 26, 2018 at 2:40 AM, Grant Grundler wrote: >> On Wed, Apr 25, 2018 at 2:54 AM, Krzysztof Kozlowski >> wrote: >>> >>> commit

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Dan Williams
On Thu, 2018-04-26 at 18:29 +0200, Johan Hovold wrote: > On Thu, Apr 26, 2018 at 11:22:25PM +0700, Lars Melin wrote: > > On 4/26/2018 23:12, Johan Hovold wrote: > > > On Thu, Apr 26, 2018 at 06:40:46PM +0700, Lars Melin wrote: > > > > On 4/26/2018 18:39, Lars Melin wrote: > > > > > On 4/26/2018

Re: USB mouse and PS2 Keyboard freeze all of a sudden in Ubuntu Mate 16.04.4

2018-04-26 Thread Greg KH
On Thu, Apr 26, 2018 at 05:45:46PM +0300, Kyprianos Papadimitriou wrote: > > > On 26/04/2018 01:12 μμ, Kyprianos Papadimitriou wrote: > > > > > > On 26/04/2018 11:39 πμ, Greg KH wrote: > > > A: Because it messes up the order in which people normally read text. > > > Q: Why is top-posting such

Re: USB mouse and PS2 Keyboard freeze all of a sudden in Ubuntu Mate 16.04.4

2018-04-26 Thread Greg KH
On Thu, Apr 26, 2018 at 01:12:19PM +0300, Kyprianos Papadimitriou wrote: > > On 26/04/2018 11:39 πμ, Greg KH wrote: > > A: Because it messes up the order in which people normally read text. > > Q: Why is top-posting such a bad thing? > > A: Top-posting. > > Q: What is the most annoying thing in

[RFC PATCH] usb: gadget: composite Allow for larger configuration descriptors

2018-04-26 Thread Joel Pepper
The composite framework allows us to create gadgets composed from many different functions, which need to fit into a single configuration descriptor. Some functions (like uvc) can produce configuration descriptors upwards of 2500 bytes on their own. This patch increases the limit from 1024 bytes

[RFC PATCH] usb: gadget: composite Allow for larger configuration descriptors

2018-04-26 Thread Joel Pepper
I have been doing some work with uvc gadgets, which mirrors the capabilities of actual webcams attached to a host port. During testing I ran into -EPIPE errors when trying to retrieve configurations for more complex devices. I tracked the errors down to running over the rather conservative buffer

Re: [GIT PULL] USB-serial fixes for v4.17-rc3

2018-04-26 Thread Greg Kroah-Hartman
On Thu, Apr 26, 2018 at 06:23:16PM +0200, Johan Hovold wrote: > The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: > > Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) > > are available in the Git repository at: > >

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Johan Hovold
On Thu, Apr 26, 2018 at 11:22:25PM +0700, Lars Melin wrote: > On 4/26/2018 23:12, Johan Hovold wrote: > > On Thu, Apr 26, 2018 at 06:40:46PM +0700, Lars Melin wrote: > >> On 4/26/2018 18:39, Lars Melin wrote: > >>> On 4/26/2018 18:19, Bjørn Mork wrote: > Anyway, Qualcomm based designs are

[GIT PULL] USB-serial fixes for v4.17-rc3

2018-04-26 Thread Johan Hovold
The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git tags/usb-serial-4.17-rc3 for you to fetch changes up to

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Lars Melin
On 4/26/2018 23:12, Johan Hovold wrote: On Thu, Apr 26, 2018 at 06:40:46PM +0700, Lars Melin wrote: On 4/26/2018 18:39, Lars Melin wrote: On 4/26/2018 18:19, Bjørn Mork wrote: Anyway, Qualcomm based designs are definitely handled by both drivers. Using qcserial only makes sense if the

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Johan Hovold
On Thu, Apr 26, 2018 at 06:40:46PM +0700, Lars Melin wrote: > On 4/26/2018 18:39, Lars Melin wrote: > > On 4/26/2018 18:19, Bjørn Mork wrote: > >> Anyway, Qualcomm based designs are definitely handled by both drivers. > >> Using qcserial only makes sense if the interface layout matches one of > >>

[PATCH V2 3/3] usb: xhci: tegra: Add support for managing powergates

2018-04-26 Thread Jon Hunter
The Tegra XHCI controller requires that the XUSBA (for superspeed) and XUSBC (for host) power-domains are enabled. Commit 8df127456f29 ("soc/tegra: pmc: Enable XUSB partitions on boot") was added to force on these power-domains if the XHCI driver is enabled while proper power-domain support is

[PATCH V2 2/3] usb: xhci: tegra: Add runtime PM support

2018-04-26 Thread Jon Hunter
Add runtime PM support to the Tegra XHCI driver and move the function calls to enable/disable the clocks, regulators and PHY into the runtime PM callbacks. Signed-off-by: Jon Hunter --- Changes since V1: - Re-worked change to handle case where runtime PM is disabled.

[PATCH V2 1/3] usb: xhci: tegra: Prepare for adding runtime PM support

2018-04-26 Thread Jon Hunter
When adding runtime PM support to the Tegra XHCI driver, it is desirable to move the function calls to enable the clocks, regulators and PHY from the tegra_xusb_probe into the runtime PM handlers. Currently, the clocks, regulators and PHY are all enabled before we call usb_create_hcd() in

Re: [PATCH 1/3] usb: musb: gadget: fix to_musb_request() to not return NULL

2018-04-26 Thread Bin Liu
On Thu, Apr 26, 2018 at 11:25:16AM +0530, Sekhar Nori wrote: > On Thursday 26 April 2018 11:23 AM, Sekhar Nori wrote: > > On Thursday 19 April 2018 01:35 AM, Bin Liu wrote: > >> The gadget function drivers should ensure the usb_request parameter > >> passed in is not NULL. UDC core doesn't check

[PATCH 3/3] usb: musb: host: fix potential NULL pointer dereference

2018-04-26 Thread Bin Liu
musb_start_urb() doesn't check the 3rd pass-in parameter if it is NULL. But in musb_bulk_nak_timeout() the parameter passed to musb_start_urb() is returned from first_qh(), which could be NULL. So wrap the musb_start_urb() call here with a if condition check to avoid the potential NULL pointer

[PATCH v2 2/3] usb: musb: gadget: fix to_musb_ep() to not return NULL

2018-04-26 Thread Bin Liu
UDC core ensures the usb_ep parameter passed in is not NULL, so checking if (ep != NULL) is pointless. Convert to_musb_ep() to a simple macro to not directly return NULL to avoid warnings from code static analysis tools. Signed-off-by: Bin Liu --- v2: revised the parentheses.

[PATCH v2 1/3] usb: musb: gadget: fix to_musb_request() to not return NULL

2018-04-26 Thread Bin Liu
The gadget function drivers should ensure the usb_request parameter passed in is not NULL. UDC core doesn't check if it is NULL, so MUSB driver shouldn't have to check it either. Convert to_musb_request() to a simple macro to not directly return NULL to avoid warnings from code static analysis

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Lars Melin
On 4/26/2018 18:39, Lars Melin wrote: On 4/26/2018 18:19, Bjørn Mork wrote: Anyway, Qualcomm based designs are definitely handled by both drivers. Using qcserial only makes sense if the interface layout matches one of the defined shared schemes, which currently are: QCSERIAL_G2K = 0,    /*

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Lars Melin
On 4/26/2018 18:19, Bjørn Mork wrote: Anyway, Qualcomm based designs are definitely handled by both drivers. Using qcserial only makes sense if the interface layout matches one of the defined shared schemes, which currently are: QCSERIAL_G2K = 0, /* Gobi 2000 */

[PATCH/RFC v2 5/6] usb: gadget: udc: renesas_usb3: add support for a usb role switch

2018-04-26 Thread Yoshihiro Shimoda
This patch adds support for a usb role switch driver. And then, this driver uses the usb role switch APIs instead of hardware access to initialize usb host side at specific timings. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/gadget/udc/Kconfig| 1

[PATCH/RFC v2 4/6] usb: role: rcar-usb3-role-switch: add support for R-Car SoCs

2018-04-26 Thread Yoshihiro Shimoda
This patch adds role switch support for R-Car SoCs. Some R-Car SoCs (e.g. R-Car H3) have USB 3.0 dual-role device controller which has the USB 3.0 xHCI host and Renesas USB 3.0 peripheral. Unfortunately, the mode change register contains the USB 3.0 peripheral controller side only. So, the USB

[PATCH/RFC v2 2/6] base: devcon: add a new API to find the graph

2018-04-26 Thread Yoshihiro Shimoda
This patch adds a new API "device_connection_find_by_graph()" to find device connection by using graph. Signed-off-by: Yoshihiro Shimoda --- Documentation/driver-api/device_connection.rst | 4 +-- drivers/base/devcon.c | 43

[PATCH/RFC v2 3/6] usb: common: roles: add a new API to find the graph

2018-04-26 Thread Yoshihiro Shimoda
This patch adds a new API "usb_role_switch_get_by_graph()" to find device connection by using graph. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/common/roles.c | 30 ++ include/linux/usb/role.h | 2 ++ 2 files changed, 32

[PATCH/RFC v2 6/6] arm64: dts: renesas: r8a7795: add OF graph for usb role switch

2018-04-26 Thread Yoshihiro Shimoda
This patch adds OF graph properties for usb role switch in r8a7795. TODO: - separate a few patches to add new properties into each node. Signed-off-by: Yoshihiro Shimoda --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 38 1

[PATCH/RFC v2 1/6] dt-bindings: usb: add Renesas R-Car USB 3.0 role switch

2018-04-26 Thread Yoshihiro Shimoda
This patch adds a new documentation for Renesas R-Car USB 3.0 role switch that can change the USB 3.0 role to either host or peripheral by a hardware register that is included in USB3.0 peripheral module. Signed-off-by: Yoshihiro Shimoda ---

[PATCH/RFC v2 0/6] usb: role: rcar-usb3-role-switch: add support for R-Car SoCs

2018-04-26 Thread Yoshihiro Shimoda
This patch set is based on renesas-drivers-2018-04-17-v4.17-rc1 tag of renesas-drivers.git In last week, I submitted a patch as RFC [1]. But, I completely misunderstood the discussion of previous' one [2]. I marked this patch set as "RFC" because dtsi patch and udc patch are not good for

[PATCH] thermal: samsung: Remove support for Exynos5440

2018-04-26 Thread Bartlomiej Zolnierkiewicz
From: Krzysztof Kozlowski Subject: [PATCH] thermal: samsung: Remove support for Exynos5440 The Exynos5440 is not actively developed, there are no development boards available and probably there are no real products with it. Remove wide-tree support for Exynos5440.

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Bjørn Mork
Johan Hovold writes: > On Thu, Apr 26, 2018 at 02:48:54PM +0700, Lars Melin wrote: >> On 4/26/2018 14:09, Johan Hovold wrote: >> > On Thu, Apr 26, 2018 at 02:28:31PM +0800, SZ Lin (林上智) wrote: >> >> This patch adds support for ublox R410M PID 0x90b2 USB modem to option >> >>

Re: [PATCH v8 0/6] typec: tcpm: Add sink side support for PPS

2018-04-26 Thread Sebastian Reichel
Hi, On Thu, Apr 26, 2018 at 09:33:26AM +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 25, 2018 at 02:30:45PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Apr 25, 2018 at 01:26:33AM +0200, Sebastian Reichel wrote: > > > Hi Greg, > > > > > > On Tue, Apr 24, 2018 at 03:57:49PM +0200, Greg

Re: [PATCH] NET: usb: qmi_wwan: add support for ublox R410M PID 0x90b2

2018-04-26 Thread Bjørn Mork
"SZ Lin (林上智)" writes: > This patch adds support for PID 0x90b2 of ublox R410M. Acked-by: Bjørn Mork -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH v6 0/2] Fix host unable to negotiate framesizes other than first

2018-04-26 Thread Joel Pepper
This patch set is mostly concerned with fixing a bug with the driver setting incorrect bFrameIndexes, for details refer to the second patch. However part of the fix also depends on fixing an unrelated bug, which involved the "linked" flag on formats not beig set. v6: This is mostly a resubmit of

[PATCH v6 1/2] usb/gadget/uvc-configfs Fix linked flag in a format not being set when format is linked into streaming header

2018-04-26 Thread Joel Pepper
While checks are in place to avoid attributes and children of a format being manipulated after the format is linked into the streaming header, the linked flag was never actually set, invalidating the protections. Signed-off-by: Joel Pepper ---

[PATCH v6 2/2] usb/gadget/uvc-configfs Fix host unable to negotiate framesizes other than first

2018-04-26 Thread Joel Pepper
- Add bFrameIndex as a UVCG_FRAME_ATTR_RO for each frame size. - Automatically assign ascending bFrameIndex to each frame in a format. Before all "bFrameindex" attributes were set to "1" with no way to configure the gadget otherwise. This resulted in the host always negotiating for bFrameIndex 1

Re: USB mouse and PS2 Keyboard freeze all of a sudden in Ubuntu Mate 16.04.4

2018-04-26 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Thu, Apr 26, 2018 at

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Johan Hovold
On Thu, Apr 26, 2018 at 02:48:54PM +0700, Lars Melin wrote: > On 4/26/2018 14:09, Johan Hovold wrote: > > On Thu, Apr 26, 2018 at 02:28:31PM +0800, SZ Lin (林上智) wrote: > >> This patch adds support for ublox R410M PID 0x90b2 USB modem to option > >> driver, this module supports LTE Cat M1 / NB1. >

Re: [RFC 06/10] thermal: samsung: Remove support for Exynos5440

2018-04-26 Thread Krzysztof Kozlowski
On Thu, Apr 26, 2018 at 3:41 AM, Chanwoo Choi wrote: > Hi Krzysztof, > > On 2018년 04월 25일 05:32, Krzysztof Kozlowski wrote: >> The Exynos5440 is not actively developed, there are no development >> boards available and probably there are no real products with it. >> Remove

Re: [PATCH stable v4.4+] r8152: add Linksys USB3GIGV1 id

2018-04-26 Thread Krzysztof Kozlowski
On Thu, Apr 26, 2018 at 2:40 AM, Grant Grundler wrote: > On Wed, Apr 25, 2018 at 2:54 AM, Krzysztof Kozlowski > wrote: >> >> commit 90841047a01b452cc8c3f9b990698b264143334a upstream >> >> This linksys dongle by default comes up in cdc_ether mode. >> This

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Lars Melin
On 4/26/2018 14:09, Johan Hovold wrote: On Thu, Apr 26, 2018 at 02:28:31PM +0800, SZ Lin (林上智) wrote: This patch adds support for ublox R410M PID 0x90b2 USB modem to option driver, this module supports LTE Cat M1 / NB1. Interface layout: 0: QCDM/DIAG 1: ADB 2: AT 3: RMNET Signed-off-by: SZ

Re: USB mouse and PS2 Keyboard freeze all of a sudden in Ubuntu Mate 16.04.4

2018-04-26 Thread Greg KH
On Thu, Apr 26, 2018 at 10:27:17AM +0300, Kyprianos Papadimitriou wrote: > > Thanks for the prompt response! see below > > On 26/04/2018 09:58 πμ, Greg KH wrote: > > On Wed, Apr 25, 2018 at 09:22:47PM +0300, Kyprianos Papadimitriou wrote: > > > Dear sir/madam, > > > > > > I am facing the

Re: [PATCH v8 0/6] typec: tcpm: Add sink side support for PPS

2018-04-26 Thread Greg Kroah-Hartman
On Wed, Apr 25, 2018 at 02:30:45PM +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 25, 2018 at 01:26:33AM +0200, Sebastian Reichel wrote: > > Hi Greg, > > > > On Tue, Apr 24, 2018 at 03:57:49PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Apr 23, 2018 at 03:10:55PM +0100, Adam Thomson wrote: > >

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread Johan Hovold
On Thu, Apr 26, 2018 at 02:28:31PM +0800, SZ Lin (林上智) wrote: > This patch adds support for ublox R410M PID 0x90b2 USB modem to option > driver, this module supports LTE Cat M1 / NB1. > > Interface layout: > 0: QCDM/DIAG > 1: ADB > 2: AT > 3: RMNET > > Signed-off-by: SZ Lin (林上智)

Re: USB mouse and PS2 Keyboard freeze all of a sudden in Ubuntu Mate 16.04.4

2018-04-26 Thread Greg KH
On Wed, Apr 25, 2018 at 09:22:47PM +0300, Kyprianos Papadimitriou wrote: > > Dear sir/madam, > > I am facing the following problem: > > My computer randomly stops responding to the usb mouse and keyboard. > Unplugging them and plugging them back into a different port does not fix > the problem.

[PATCH] NET: usb: qmi_wwan: add support for ublox R410M PID 0x90b2

2018-04-26 Thread 林上智
This patch adds support for PID 0x90b2 of ublox R410M. qmicli -d /dev/cdc-wdm0 --dms-get-manufacturer [/dev/cdc-wdm0] Device manufacturer retrieved: Manufacturer: 'u-blox' qmicli -d /dev/cdc-wdm0 --dms-get-model [/dev/cdc-wdm0] Device model retrieved: Model: 'SARA-R410M-02B'

[PATCH] USB: serial: option: adding support for ublox R410M

2018-04-26 Thread 林上智
This patch adds support for ublox R410M PID 0x90b2 USB modem to option driver, this module supports LTE Cat M1 / NB1. Interface layout: 0: QCDM/DIAG 1: ADB 2: AT 3: RMNET Signed-off-by: SZ Lin (林上智) Cc: stable --- Please refer to following lsusb