Li Jun | 16 Sep 09:52 2015

[PATCH v2 1/2] usb: chipidea: imx: add imx6ul usb support

From: Peter Chen <peter.chen@...>

Add imx6ul usb support.

Signed-off-by: Peter chen <peter.chen@...>
Signed-off-by: Li Jun <jun.li@...>
---
Change for v2:
- remove CI_HDRC_DISABLE_HOST_STREAMING.

 drivers/usb/chipidea/ci_hdrc_imx.c | 6 ++++++
 drivers/usb/chipidea/usbmisc_imx.c | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index c7f127f..6ccbf60 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
 <at>  <at>  -56,6 +56,11  <at>  <at>  static const struct ci_hdrc_imx_platform_flag imx6sx_usb_data = {
 		CI_HDRC_DISABLE_HOST_STREAMING,
 };

+static const struct ci_hdrc_imx_platform_flag imx6ul_usb_data = {
+	.flags = CI_HDRC_SUPPORTS_RUNTIME_PM |
+		CI_HDRC_TURN_VBUS_EARLY_ON,
+};
+
 static const struct ci_hdrc_imx_platform_flag imx7d_usb_data = {
 	.flags = CI_HDRC_SUPPORTS_RUNTIME_PM,
 };
(Continue reading)

Li Jun | 16 Sep 08:46 2015

[PATCH v2 1/1] usb: chipidea: imx: fix a typo for imx6sx

Use imx6sx instead of imx6sl's platform flags for imx6sx.

Fixes: e14db48dfcf3 ("usb: chipidea: imx: add runtime power management support")
Cc: <stable@...> # v4.1+
Signed-off-by: Li Jun <jun.li@...>
---
 drivers/usb/chipidea/ci_hdrc_imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index c038bca..c7f127f 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
 <at>  <at>  -65,7 +65,7  <at>  <at>  static const struct of_device_id ci_hdrc_imx_dt_ids[] = {
 	{ .compatible = "fsl,imx27-usb", .data = &imx27_usb_data},
 	{ .compatible = "fsl,imx6q-usb", .data = &imx6q_usb_data},
 	{ .compatible = "fsl,imx6sl-usb", .data = &imx6sl_usb_data},
-	{ .compatible = "fsl,imx6sx-usb", .data = &imx6sl_usb_data},
+	{ .compatible = "fsl,imx6sx-usb", .data = &imx6sx_usb_data},
 	{ .compatible = "fsl,imx7d-usb", .data = &imx7d_usb_data},
 	{ /* sentinel */ }
 };
--

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Li Jun | 16 Sep 08:50 2015

[PATCH 1/2] usb: chipidea: imx: add imx6ul usb support

From: Peter Chen <peter.chen@...>

Add imx6ul usb support.

Signed-off-by: Peter chen <peter.chen@...>
Signed-off-by: Li Jun <jun.li@...>
---
 drivers/usb/chipidea/ci_hdrc_imx.c | 7 +++++++
 drivers/usb/chipidea/usbmisc_imx.c | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index c7f127f..9a59d5a 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
 <at>  <at>  -56,6 +56,12  <at>  <at>  static const struct ci_hdrc_imx_platform_flag imx6sx_usb_data = {
 		CI_HDRC_DISABLE_HOST_STREAMING,
 };

+static const struct ci_hdrc_imx_platform_flag imx6ul_usb_data = {
+	.flags = CI_HDRC_SUPPORTS_RUNTIME_PM |
+		CI_HDRC_TURN_VBUS_EARLY_ON |
+		CI_HDRC_DISABLE_HOST_STREAMING,
+};
+
 static const struct ci_hdrc_imx_platform_flag imx7d_usb_data = {
 	.flags = CI_HDRC_SUPPORTS_RUNTIME_PM,
 };
 <at>  <at>  -66,6 +72,7  <at>  <at>  static const struct of_device_id ci_hdrc_imx_dt_ids[] = {
 	{ .compatible = "fsl,imx6q-usb", .data = &imx6q_usb_data},
(Continue reading)

Peter Chen | 16 Sep 07:20 2015

[PATCH v2 0/6] usb: change clock information

This patch set changes usb clock information for legacy i.mx platforms.
At these platforms, they needs three clocks to let controller work.

Changes for v2:
- Add imx25 & imx27 dts change
- Add Fabio's tested-by and Cc: <stable@...> #v3.19+
- Some typo and commit description

Peter Chen (6):
  doc: dt-binding: ci-hdrc-usb2: split vendor specific properties
  doc: dt-binding: ci-hdrc-usb2: add i.mx specific binding
    "need-three-clocks"
  ARM: dts: imx27.dtsi: change the clock information for usb
  ARM: dts: imx25.dtsi: change the clock information for usb
  ARM: dts: imx35.dtsi: change the clock information for usb
  usb: chipidea: imx: refine clock operations to adapt for all platforms

 .../devicetree/bindings/usb/ci-hdrc-usb2.txt       |  13 +-
 arch/arm/boot/dts/imx25.dtsi                       |  10 +-
 arch/arm/boot/dts/imx27.dtsi                       |  19 ++-
 arch/arm/boot/dts/imx35.dtsi                       |  10 +-
 drivers/usb/chipidea/ci_hdrc_imx.c                 | 138 ++++++++++++++++++---
 5 files changed, 156 insertions(+), 34 deletions(-)

--

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
(Continue reading)

Peter Chen | 16 Sep 03:49 2015

[PATCH 1/4] doc: dt-binding: ci-hdrc-usb2: split vendor specific properties

Each vendor may have its specific properties, they are not belonged
to common optional properties, split them from common's.

Signed-off-by: Peter Chen <peter.chen@...>
---
 Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
index d543e8e..f15a317 100644
--- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
+++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
 <at>  <at>  -26,10 +26,6  <at>  <at>  Optional properties:
 - vbus-supply: reference to the VBUS regulator
 - maximum-speed: limit the maximum connection speed to "full-speed".
 - tpl-support: TPL (Targeted Peripheral List) feature for targeted hosts
-- fsl,usbmisc: (FSL only) phandler of non-core register device, with one
-  argument that indicate usb controller index
-- disable-over-current: (FSL only) disable over current detect
-- external-vbus-divider: (FSL only) enables off-chip resistor divider for Vbus
 - itc-setting: interrupt threshold control register control, the setting
   should be aligned with ITC bits at register USBCMD.
 - ahb-burst-config: it is vendor dependent, the required value should be
 <at>  <at>  -53,6 +49,12  <at>  <at>  Optional properties:
 - phy-clkgate-delay-us: the delay time (us) between putting the PHY into
   low power mode and gating the PHY clock.

+i.mx specific properties
+- fsl,usbmisc: phandler of non-core register device, with one
+  argument that indicate usb controller index
(Continue reading)

David Miller | 15 Sep 21:44 2015
Picon

Re: [PATCH 2/5] cdc-ncm: use common parser

From: Oliver Neukum <oneukum@...>
Date: Mon,  7 Sep 2015 16:05:39 +0200

> This moves cdc-ncm to the common parser for CDC user
> to reduce code duplication.
> 
> Signed-off-by: Oliver Neukum <oneukum@...>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

David Miller | 15 Sep 21:43 2015
Picon

Re: [PATCH 1/5] CDC: common parser for extra headers

From: Oliver Neukum <oneukum@...>
Date: Mon,  7 Sep 2015 16:05:38 +0200

> CDC drivers all implement their own parser for the extra headers.
> This patch fixes the code duplication introducing a single common
> parser in usbnet.
> 
> Signed-off-by: Oliver Neukum <oneukum@...>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Felipe Balbi | 15 Sep 21:16 2015
Picon

[PATCH v2 0/5] usb: dwc3: throughput improvement

Hi,

with these patches (and, no, the mass storage patch is not extremely important
although it gives some nice extra improvement - about 1 MiB/sec extra in some
cases - at least not for USB2, I tested without that as well), I increased USB2
on a AM437x board with g_mass_storage using RAM as backing store from 17MiB/sec
to 39MiB/sec as measured by dd (with oflag/iflag=direct depending on whether I
was writing or reading from g_mass_storage).

I'm yet to test all other gadget drivers to make sure there are no
regressions, but it's looking promissing.

cheers

Changes since V1:
	- fix regression with isochronous transfers

Felipe Balbi (5):
  usb: dwc3: gadget: start requests as soon as they come
  usb: dwc3: gadget: start using Update Transfer more often
  usb: dwc3: gadget: clear DWC3_PENDING_REQUEST when request is queued
  usb: dwc3: gadget: remove 'start_new' parameter
  usb: gadget: mass_storage: allow for deeper queue lengths

 drivers/usb/dwc3/gadget.c                    | 68 +++++++++++++++-------------
 drivers/usb/gadget/Kconfig                   |  2 +-
 drivers/usb/gadget/function/f_mass_storage.c |  2 +-
 3 files changed, 38 insertions(+), 34 deletions(-)

--

-- 
(Continue reading)

Bin Liu | 15 Sep 20:58 2015
Picon

[PATCH v2 0/3] usb: phy: phy-am335x: support tying VBUS to 5V in host-only mode

To save cost and simply the design, most host-only application will directly
tie VBUS to 5V power rail, but this prevents AM335x MUSB to transition to host
mode due VBUS sensing for OTG state machine.

These patches disable the first VBUS sensing in AM335x MUSB for host-only mode
to enable this use case.

Other usb phy drivers might have to handle differently for each dr_mode of the
associated controller, so the function which queries dr_mode is added to usb
common library for other use.

Bin Liu (3):
  usb: of: add an api to get dr_mode by the phy node
  usb: phy: correct the am335x phy header filename
  usb: phy: phy-am335x: ignore first VBUS sensing for host-only mode

 drivers/usb/Kconfig                                |  2 +-
 drivers/usb/common/common.c                        | 27 ++++++++++++++++++++++
 drivers/usb/phy/phy-am335x-control.c               | 16 +++++++++----
 .../{am35x-phy-control.h => phy-am335x-control.h}  |  8 ++++---
 drivers/usb/phy/phy-am335x.c                       | 17 +++++++++-----
 include/linux/usb/of.h                             |  6 +++++
 6 files changed, 62 insertions(+), 14 deletions(-)
 rename drivers/usb/phy/{am35x-phy-control.h => phy-am335x-control.h} (68%)

--

-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
(Continue reading)

Felipe Balbi | 15 Sep 19:52 2015
Picon

[PATCH 0/5] usb: dwc3: throughput improvement

Hi,

with these patches (and, no, the mass storage patch is not important;
at least not for USB2, I tested without that as well), I increased
USB2 on a AM437x board with g_mass_storage using RAM as backing store
from 17MiB/sec to 39MiB/sec as measured by dd (with oflag/iflag=direct
depending on whether I was writing or reading from g_mass_storage).

I'm yet to test all other gadget drivers to make sure there are no
regressions, but it's looking promissing.

cheers

Felipe Balbi (5):
  usb: dwc3: gadget: start requests as soon as they come
  usb: dwc3: gadget: start using Update Transfer more often
  usb: dwc3: gadget: clear DWC3_PENDING_REQUEST when request is queued
  usb: dwc3: gadget: remove 'start_new' parameter
  usb: gadget: mass_storage: allow for deeper queue lengths

 drivers/usb/dwc3/gadget.c                    | 67 +++++++++++++++-------------
 drivers/usb/gadget/Kconfig                   |  2 +-
 drivers/usb/gadget/function/f_mass_storage.c |  2 +-
 3 files changed, 37 insertions(+), 34 deletions(-)

--

-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
(Continue reading)

Igor Kotrasinski | 15 Sep 16:55 2015

[PATCH v4 0/4] usb: gadget: dummy_hcd: fix errors in simulated transfer

Fix some issues with dummy_hcd transfer simulation - incorrect
short packets and overwritten bandwidth limits.

Igor Kotrasinski (4):
  usb: gadget: dummy_hcd: emulate sending zlp in packet logic
  usb: gadget: dummy_hcd: fix unneeded else-if condition
  usb: gadget: dummy_hcd: fix rescan logic for transfer
  usb: gadget: dummy_hcd: in transfer(), return data sent, not limit

 drivers/usb/gadget/udc/dummy_hcd.c | 46 +++++++++++++++++++++++++-------------
 1 file changed, 30 insertions(+), 16 deletions(-)

--

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane