[PATCH 1/3] usb: gadget: udc: renesas_usb3: add debugfs to set the b-device mode

2017-07-28 Thread Yoshihiro Shimoda
This patch adds debugfs to set the "b-device" mode for using a board which is not connected to the ID pin (e.g. CN11 on Salvator-X). If we want to use peripheral mode on such a board, we have to disable VBUS output first. So, this patch can set such a mode as the following: # mount -t debugfs

[PATCH 0/3] usb: gadget: udc: renesas_usb3: add support for some R-Car Gen3 SoCs

2017-07-28 Thread Yoshihiro Shimoda
This patch set is based on the latest Felipe's usb.git / testing/next branch (the commit id = 5771a8c08880cdca3bfb4a3fc6d309d6bba20877) Yoshihiro Shimoda (3): usb: gadget: udc: renesas_usb3: add debugfs to set the b-device mode usb: gadget: udc: renesas_usb3: add support for R-Car H3 ES2.0

[PATCH 3/3] usb: gadget: udc: renesas_usb3: add support for R-Car M3-W

2017-07-28 Thread Yoshihiro Shimoda
This patch adds support for R-Car M3-W. This patch also adds R-Car Gen3 generic version's compatible. Signed-off-by: Yoshihiro Shimoda --- Documentation/devicetree/bindings/usb/renesas_usb3.txt | 16 +--- drivers/usb/gadget/udc/renesas_usb3.c

[PATCH] usb: renesas_usbhs: gadget: fix unused-but-set-variable warning

2017-07-28 Thread Yoshihiro Shimoda
The commit b8b9c974afee ("usb: renesas_usbhs: gadget: disable all eps when the driver stops") causes the unused-but-set-variable warning. But, if the usbhsg_ep_disable() will return non-zero value, udc/core.c doesn't clear the ep->enabled flag. So, this driver should not return non-zero value, if

[PATCH 2/3] usb: gadget: udc: renesas_usb3: add support for R-Car H3 ES2.0

2017-07-28 Thread Yoshihiro Shimoda
This patch adds support for R-Car H3 ES2.0. Since this SoC revision doesn't need workaround for vbus detection and number of ramif is increased. So, this driver uses soc_device_match() to detect it. Signed-off-by: Yoshihiro Shimoda ---

Re: [PATCH v2 3/8] usb: chipidea: Add support for Tegra20/30/114/124

2017-07-28 Thread Michał Mirosław
On Fri, Jul 28, 2017 at 01:00:32PM +0300, Dmitry Osipenko wrote: > On 28.07.2017 01:32, Michał Mirosław wrote: > > On Thu, Jul 27, 2017 at 07:46:07PM +0300, Dmitry Osipenko wrote: > >> From: Thierry Reding > >> > >> All of these Tegra SoC generations have a ChipIdea UDC IP

Re: [PATCH v2 3/8] usb: chipidea: Add support for Tegra20/30/114/124

2017-07-28 Thread Dmitry Osipenko
On 28.07.2017 01:32, Michał Mirosław wrote: > On Thu, Jul 27, 2017 at 07:46:07PM +0300, Dmitry Osipenko wrote: >> From: Thierry Reding >> >> All of these Tegra SoC generations have a ChipIdea UDC IP block that can >> be used for device mode communication with a host. Implement

[PATCH 05/11] usb: host: u132-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/u132-hcd.c |2 +- 1 file

[PATCH 07/11] isp116x-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/isp116x-hcd.c |2 +- 1

[PATCH 08/11] USB: HWA: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/hwa-hc.c |2 +- 1 file

[PATCH 11/11] c67x00-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/c67x00/c67x00-hcd.c |2 +- 1

[PATCH 06/11] usb: renesas_usbhs: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/renesas_usbhs/mod_host.c |2 +-

[PATCH 01/11] isp1362-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/isp1362-hcd.c |2 +- 1

[PATCH 04/11] usb: host/sl811-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/sl811-hcd.c |2 +- 1 file

[PATCH 03/11] usb: r8a66597-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/r8a66597-hcd.c |2 +- 1

[PATCH 00/11] constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct hc_driver i@p = { ... };

[PATCH 02/11] usb: host: max3421-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/max3421-hcd.c |2 +- 1

[PATCH 09/11] USB: whci-hcd: constify hc_driver structures

2017-07-28 Thread Julia Lawall
The hc_driver structure is only passed as the first argument to usb_create_hcd, which is declared as const. Thus the hc_driver structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/host/whci/hcd.c |2 +- 1 file

Re: USB disk speed regression WD Elements - with bisect result 22547c4cc4fe20698a6a85a55b8788859134b8e4

2017-07-28 Thread Alan Stern
On Thu, 27 Jul 2017, Zdenek Kabelac wrote: > > Zdenek, you check this explanation by commenting out these last two > > lines at the end of hub_port_connect() in drivers/usb/core/hub.c: > > > > if (hcd->driver->relinquish_port && !hub->hdev->parent) > >

[PATCH] HID: add ALWAYS_POLL quirk for Logitech 0xc077

2017-07-28 Thread Aaron Sierra
From: Kyle Roarty Without a quirk or the X Window System, this device disconnects every 60 seconds. This patch also renames the define associated with the Logitech 0xc007 product ID, which appeared to have a conflicting typo. Cc: Oliver Neukum

Re: USB disk speed regression WD Elements - with bisect result 22547c4cc4fe20698a6a85a55b8788859134b8e4

2017-07-28 Thread Alan Stern
On Fri, 28 Jul 2017, Zdenek Kabelac wrote: > Dne 28.7.2017 v 20:33 Alan Stern napsal(a): > > On Thu, 27 Jul 2017, Zdenek Kabelac wrote: > > > >>> Zdenek, you check this explanation by commenting out these last two > >>> lines at the end of hub_port_connect() in drivers/usb/core/hub.c: > >>> >