[PATCH v3 6/9] usb: gadget: s3c-hsotg: get phy bus width from phy subsystem

2013-11-25 Thread Matt Porter
Adds support for querying the phy bus width from the generic phy subsystem. Configure UTMI bus width in GUSBCFG based on this value. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/s3c-hsotg.c | 14 +- drivers/usb/gadget/s3c-hsotg.h | 1 + 2 files changed

[PATCH v3 7/9] phy: add Broadcom Kona USB2 PHY DT binding

2013-11-25 Thread Matt Porter
Add a binding that describes the Broadcom Kona USB2 PHY found on the BCM281xx family of SoCs. Signed-off-by: Matt Porter matt.por...@linaro.org --- .../devicetree/bindings/phy/bcm-kona-usb2-phy.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation

[PATCH v3 9/9] ARM: dts: add usb udc support to bcm281xx

2013-11-25 Thread Matt Porter
Adds USB OTG/PHY and clock support to BCM281xx and enables UDC support on the bcm11351-brt and bcm28155-ap boards. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed-by: Tim Kryger tim.kry...@linaro.org --- arch/arm/boot/dts/bcm11351

[PATCH v3 4/9] usb: gadget: s3c-hsotg: add snps,dwc2 compatible string

2013-11-25 Thread Matt Porter
Enable support for the dwc2 binding. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/s3c-hsotg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index a8e6c3d..da3879b 100644 --- a/drivers/usb/gadget/s3c

[PATCH v3 8/9] phy: add Broadcom Kona USB2 PHY driver

2013-11-25 Thread Matt Porter
Add a driver for the internal Broadcom Kona USB 2.0 PHY found on the BCM281xx family of SoCs. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/phy/Kconfig | 6 ++ drivers/phy/Makefile| 1 + drivers/phy/phy-bcm-kona-usb2.c | 158

[PATCH v3 5/9] usb: gadget: s3c-hsotg: use generic phy_init()/phy_exit() support

2013-11-25 Thread Matt Porter
If a generic phy is present, call phy_init()/phy_exit(). This supports generic phys that must be soft reset before power on. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/s3c-hsotg.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/gadget/s3c

[PATCH v3 2/9] staging: dwc2: update DT binding to add generic clock/phy properties

2013-11-25 Thread Matt Porter
dwc2/s3c-hsotg require a single clock to be specified and optionally a generic phy. On the s3c-hsotg driver old style USB phy support is present as a fallback so the generic phy properties are optional. Signed-off-by: Matt Porter matt.por...@linaro.org --- Documentation/devicetree/bindings

[PATCH v3 3/9] usb: gadget: s3c-hsotg: enable build for other platforms

2013-11-25 Thread Matt Porter
Remove unused Samsung-specific machine include and Kconfig dependency on S3C. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed-by: Tim Kryger tim.kry...@linaro.org --- drivers/usb/gadget/Kconfig | 7 +++ drivers/usb/gadget/s3c

[PATCH v3 1/9] phy: add phy_get_bus_width()/phy_set_bus_width() calls

2013-11-25 Thread Matt Porter
to properly configure the controller. Signed-off-by: Matt Porter matt.por...@linaro.org --- include/linux/phy/phy.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 6d72269..6ca6c61 100644 --- a/include/linux/phy/phy.h

Re: [PATCH v3 3/3] usb: s3c-hsotg: Use the new Exynos USB phy driver with the generic phy framework

2013-11-25 Thread Matt Porter
. I do add phy_init/phy_exit support which is probably better coming in with my series as my phy driver makes use of the init method. Tested-by: Matt Porter matt.por...@linaro.org -Matt [1] http://www.kernelhub.org/?msg=367354p=2 -- To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH v3 1/2] libusbg: Moved mkdir functions, added MAX_LENGTH MAX_PATH_LENGTH

2013-11-05 Thread Matt Porter
On Tue, Nov 05, 2013 at 03:22:53PM +0100, Stanislaw Wadas wrote: mkdir() function is now performed after successful memory allocation and gadget function creation. Added inline to gadget_write_string(). 256 hard coded value has been replaced by two defined constants MAX_LENGTH and

Re: [PATCH v3 2/2] libusbg: added fputs()/fgets() error handling

2013-11-05 Thread Matt Porter
On Tue, Nov 05, 2013 at 03:22:54PM +0100, Stanislaw Wadas wrote: Error handling was added to fputs()/fgets() functions. Signed-off-by: Stanislaw Wadas s.wa...@samsung.com --- Changes since v2: - fixed code indentation - removed unused variable ret Changes since v1: -

Re: [PATCH 2/2](fix) added fputs() fgets() error handling

2013-11-04 Thread Matt Porter
On Mon, Nov 04, 2013 at 04:09:39PM +0100, Stanislaw Wadas wrote: Change-Id: I787380dda981c7cee6508a4ff566d7ca9fb273cf Signed-off-by: Stanislaw Wadas s.wa...@samsung.com Need a commit log entry for this one. Can you please follow kernel conventions when posting/reposting? Submit the updated

Re: libusbg clean up and error handling

2013-11-04 Thread Matt Porter
On Mon, Nov 04, 2013 at 02:55:46PM +0100, Stanislaw Wadas wrote: In reference to the message sent by Andrzej Pietrasiewicz (about libusbg (formerly libgadget)) I would like to propose some changes to libusbg. Along the lines in my other reply, it would be preferred if you could send this type

Re: [PATCH v2 1/9] phy: add phy_get_bus_width()/phy_set_bus_width() calls

2013-11-02 Thread Matt Porter
On Sat, Nov 02, 2013 at 10:46:55PM +0530, Kishon Vijay Abraham I wrote: Hi Tomasz, On Saturday 02 November 2013 06:44 PM, Tomasz Figa wrote: Hi Matt, On Friday 01 of November 2013 15:45:50 Matt Porter wrote: This adds a pair of APIs that allows the generic PHY subsystem to provide

Re: [PATCH v2 5/9] usb: gadget: s3c-hsotg: enable generic phy support

2013-11-02 Thread Matt Porter
On Sat, Nov 02, 2013 at 02:09:21PM +0100, Tomasz Figa wrote: Hi Matt. On Friday 01 of November 2013 15:45:54 Matt Porter wrote: Adds support for the generic PHY subsystem. Generic PHY support is probed and then the driver falls back to checking for an old style USB PHY and pdata

Re: Gadget tool proposition

2013-11-02 Thread 'Matt Porter'
On Thu, Oct 31, 2013 at 01:35:45PM +0100, Krzysztof Opasiak wrote: Hi, -Original Message- From: Felipe Balbi [mailto:ba...@ti.com] Sent: Wednesday, October 30, 2013 6:33 PM To: Krzysztof Opasiak Cc: linux-usb@vger.kernel.org; Matt Porter Subject: Re: Gadget tool proposition

[PATCH v2 7/9] phy: add Broadcom Kona USB2 PHY DT binding

2013-11-01 Thread Matt Porter
Add a binding that describes the Broadcom Kona USB2 PHY found on the BCM281xx family of SoCs. Signed-off-by: Matt Porter matt.por...@linaro.org --- .../devicetree/bindings/phy/bcm-kona-usb2-phy.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation

[PATCH v2 4/9] usb: gadget: s3c-hsotg: add snps,dwc2 compatible string

2013-11-01 Thread Matt Porter
Enable support for the dwc2 binding. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/s3c-hsotg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 258bc73..3e0c124 100644 --- a/drivers/usb/gadget/s3c

[PATCH v2 3/9] usb: gadget: s3c-hsotg: enable build for other platforms

2013-11-01 Thread Matt Porter
Remove unused Samsung-specific machine include and Kconfig dependency on S3C. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed-by: Tim Kryger tim.kry...@linaro.org --- drivers/usb/gadget/Kconfig | 7 +++ drivers/usb/gadget/s3c

[PATCH v2 6/9] usb: gadget: s3c-hsotg: get phy bus width from phy subsystem

2013-11-01 Thread Matt Porter
Adds support for querying the phy bus width from the generic phy subsystem. Configure UTMI bus width in GUSBCFG based on this value. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/s3c-hsotg.c | 14 +- drivers/usb/gadget/s3c-hsotg.h | 1 + 2 files changed

[PATCH v2 9/9] ARM: dts: add usb udc support to bcm281xx

2013-11-01 Thread Matt Porter
Adds USB OTG/PHY and clock support to BCM281xx and enables UDC support on the bcm11351-brt and bcm28155-ap boards. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed-by: Tim Kryger tim.kry...@linaro.org --- arch/arm/boot/dts/bcm11351

[PATCH v2 8/9] phy: add Broadcom Kona USB2 PHY driver

2013-11-01 Thread Matt Porter
Add a driver for the internal Broadcom Kona USB 2.0 PHY found on the BCM281xx family of SoCs. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/phy/Kconfig | 6 ++ drivers/phy/Makefile| 2 + drivers/phy/phy-bcm-kona-usb2.c | 161

[PATCH v2 5/9] usb: gadget: s3c-hsotg: enable generic phy support

2013-11-01 Thread Matt Porter
Adds support for the generic PHY subsystem. Generic PHY support is probed and then the driver falls back to checking for an old style USB PHY and pdata if not found. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/s3c-hsotg.c | 54

[PATCH v2 2/9] staging: dwc2: update DT binding to add generic clock/phy properties

2013-11-01 Thread Matt Porter
dwc2/s3c-hsotg require a single clock to be specified and optionally a generic phy. On the s3c-hsotg driver old style USB phy support is present as a fallback so the generic phy properties are optional. Signed-off-by: Matt Porter matt.por...@linaro.org --- Documentation/devicetree/bindings

[PATCH v2 0/9] USB Device Controller support for BCM281xx

2013-11-01 Thread Matt Porter
). The dependencies noted for that series are already queued for 3.13. It also depends on the generic PHY subsystem which has also been queued for 3.13. Matt Porter (9): phy: add phy_get_bus_width()/phy_set_bus_width() calls staging: dwc2: update DT binding to add generic clock/phy properties usb: gadget

[PATCH v2 1/9] phy: add phy_get_bus_width()/phy_set_bus_width() calls

2013-11-01 Thread Matt Porter
to properly configure the controller. Signed-off-by: Matt Porter matt.por...@linaro.org --- include/linux/phy/phy.h | 16 1 file changed, 16 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 6d72269..e858ce1 100644 --- a/include/linux/phy/phy.h +++ b

Re: [PATCH v2 9/9] ARM: dts: add usb udc support to bcm281xx

2013-11-01 Thread Matt Porter
On Fri, Nov 01, 2013 at 11:56:33PM +0300, Sergei Shtylyov wrote: Hello. On 11/01/2013 10:45 PM, Matt Porter wrote: Adds USB OTG/PHY and clock support to BCM281xx and enables UDC support on the bcm11351-brt and bcm28155-ap boards. Signed-off-by: Matt Porter matt.por...@linaro.org

Re: [PATCH v2 7/9] phy: add Broadcom Kona USB2 PHY DT binding

2013-11-01 Thread Matt Porter
On Fri, Nov 01, 2013 at 09:54:10PM +0100, Arend van Spriel wrote: On 11/01/2013 08:45 PM, Matt Porter wrote: Add a binding that describes the Broadcom Kona USB2 PHY found on the BCM281xx family of SoCs. Signed-off-by: Matt Porter matt.por...@linaro.org --- .../devicetree/bindings/phy/bcm

Re: [RFC] Does PHY UTMI data width belong to DWC2 or PHY binding?

2013-10-25 Thread Matt Porter
On Wed, Oct 23, 2013 at 09:29:22PM +, Paul Zimmerman wrote: From: Matt Porter [mailto:matt.por...@linaro.org] Sent: Wednesday, October 23, 2013 7:43 AM On Tue, Oct 22, 2013 at 04:38:52PM -0500, Rob Herring wrote: On 10/22/2013 06:25 AM, Matt Porter wrote: On Tue, Oct 22, 2013

Re: [RFC] Does PHY UTMI data width belong to DWC2 or PHY binding?

2013-10-25 Thread Matt Porter
On Thu, Oct 24, 2013 at 10:51:43AM +0530, Kishon Vijay Abraham I wrote: Hi, On Wednesday 23 October 2013 08:12 PM, Matt Porter wrote: On Tue, Oct 22, 2013 at 04:38:52PM -0500, Rob Herring wrote: On 10/22/2013 06:25 AM, Matt Porter wrote: On Tue, Oct 22, 2013 at 12:48:29PM +0200, Matthijs

Re: [RFC] Does PHY UTMI data width belong to DWC2 or PHY binding?

2013-10-23 Thread Matt Porter
On Tue, Oct 22, 2013 at 04:38:52PM -0500, Rob Herring wrote: On 10/22/2013 06:25 AM, Matt Porter wrote: On Tue, Oct 22, 2013 at 12:48:29PM +0200, Matthijs Kooijman wrote: Hi Kishon, On Mon, Oct 21, 2013 at 02:57:26PM +0530, Kishon Vijay Abraham I wrote: I think it makes sense to keep

Re: [RFC] Does PHY UTMI data width belong to DWC2 or PHY binding?

2013-10-23 Thread Matt Porter
On Wed, Oct 23, 2013 at 01:11:15PM -0500, Felipe Balbi wrote: Hi, On Wed, Oct 23, 2013 at 10:42:42AM -0400, Matt Porter wrote: On Tue, Oct 22, 2013 at 04:38:52PM -0500, Rob Herring wrote: On 10/22/2013 06:25 AM, Matt Porter wrote: On Tue, Oct 22, 2013 at 12:48:29PM +0200, Matthijs

Re: [RFC] Does PHY UTMI data width belong to DWC2 or PHY binding?

2013-10-22 Thread Matt Porter
On Tue, Oct 22, 2013 at 12:48:29PM +0200, Matthijs Kooijman wrote: Hi Kishon, On Mon, Oct 21, 2013 at 02:57:26PM +0530, Kishon Vijay Abraham I wrote: I think it makes sense to keep the data width property in the dwc2 node itself. I mean it describes how the dwc2 IP is configured in that

[RFC] Does PHY UTMI data width belong to DWC2 or PHY binding?

2013-10-18 Thread Matt Porter
This is a summary of an unresolved issue resulting from this thread: http://www.spinics.net/lists/arm-kernel/msg277700.html The BCM281xx family of SoCs contain an OTG subsystem consisting of a DWC2 HSOTG controller and an internal UTMI PHY. This is appears as follows (monospace font requirement

Re: [PATCH 2/5] usb: gadget: s3c-hsotg: support configurable UTMI PHY width

2013-10-17 Thread Matt Porter
On Fri, Oct 11, 2013 at 08:37:31AM -0500, Felipe Balbi wrote: Hi, On Thu, Oct 10, 2013 at 11:21:30PM -0400, Matt Porter wrote: On 10/10/2013 03:07 PM, Matt Porter wrote: On 10/10/2013 01:57 PM, Paul Zimmerman wrote: From: Felipe Balbi [mailto:ba...@ti.com] Sent: Thursday, October 10

Re: [PATCH 3/5] usb: phy: add Broadcom Kona USB control driver

2013-10-11 Thread Matt Porter
On 10/10/2013 11:31 AM, Felipe Balbi wrote: Hi, On Mon, Oct 07, 2013 at 06:12:30AM -0400, Matt Porter wrote: Broadcom BCM281xx parts have a PHY control block that operates in conjunction with the DWC2 USB OTG. This driver exposes an API that allows control of power/reset for a connected USB

Re: [PATCH 2/5] usb: gadget: s3c-hsotg: support configurable UTMI PHY width

2013-10-10 Thread Matt Porter
On 10/10/2013 11:29 AM, Felipe Balbi wrote: On Mon, Oct 07, 2013 at 06:12:29AM -0400, Matt Porter wrote: Extend dwc2 binding with an optional utmi phy width property. Enable the s3c-hsotg.c driver to use standard dwc2 binding and enable configuration of the UTMI phy width based on the property

Re: [PATCH 2/5] usb: gadget: s3c-hsotg: support configurable UTMI PHY width

2013-10-10 Thread Matt Porter
On 10/10/2013 01:57 PM, Paul Zimmerman wrote: From: Felipe Balbi [mailto:ba...@ti.com] Sent: Thursday, October 10, 2013 10:46 AM On Thu, Oct 10, 2013 at 12:54:40PM -0400, Matt Porter wrote: On 10/10/2013 11:29 AM, Felipe Balbi wrote: On Mon, Oct 07, 2013 at 06:12:29AM -0400, Matt Porter wrote

Re: [PATCH 2/5] usb: gadget: s3c-hsotg: support configurable UTMI PHY width

2013-10-10 Thread Matt Porter
On 10/10/2013 03:07 PM, Matt Porter wrote: On 10/10/2013 01:57 PM, Paul Zimmerman wrote: From: Felipe Balbi [mailto:ba...@ti.com] Sent: Thursday, October 10, 2013 10:46 AM On Thu, Oct 10, 2013 at 12:54:40PM -0400, Matt Porter wrote: On 10/10/2013 11:29 AM, Felipe Balbi wrote: On Mon, Oct 07

[PATCH 2/5] usb: gadget: s3c-hsotg: support configurable UTMI PHY width

2013-10-07 Thread Matt Porter
Extend dwc2 binding with an optional utmi phy width property. Enable the s3c-hsotg.c driver to use standard dwc2 binding and enable configuration of the UTMI phy width based on the property. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org

[PATCH 4/5] usb: phy: add Broadcom Kona USB PHY driver

2013-10-07 Thread Matt Porter
Add a USB PHY driver for BCM281xx devices. This driver makes use of the Broadcom Kona USB control driver to control init/shutdown of the PHY. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed-by: Tim Kryger tim.kry...@linaro.org

[PATCH 5/5] ARM: dts: add usb udc support to bcm281xx

2013-10-07 Thread Matt Porter
Adds USB OTG/Control/PHY and clock support to BCM281xx and enables UDC support on the bcm11351-brt and bcm28155-ap boards. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed-by: Tim Kryger tim.kry...@linaro.org --- arch/arm/boot/dts

[PATCH 3/5] usb: phy: add Broadcom Kona USB control driver

2013-10-07 Thread Matt Porter
Broadcom BCM281xx parts have a PHY control block that operates in conjunction with the DWC2 USB OTG. This driver exposes an API that allows control of power/reset for a connected USB PHY. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed

[PATCH 1/5] usb: gadget: s3c-hsotg: enable build for other platforms

2013-10-07 Thread Matt Porter
Remove unused Samsung-specific machine include and Kconfig dependency on S3C. Signed-off-by: Matt Porter matt.por...@linaro.org Reviewed-by: Markus Mayer markus.ma...@linaro.org Reviewed-by: Tim Kryger tim.kry...@linaro.org --- drivers/usb/gadget/Kconfig | 7 +++ drivers/usb/gadget/s3c

[PATCH 0/5] USB Device Controller support for BCM281xx

2013-10-07 Thread Matt Porter
/3/645). The dependencies noted for that series are already queued for 3.13. Matt Porter (5): usb: gadget: s3c-hsotg: enable build for other platforms usb: gadget: s3c-hsotg: support configurable UTMI PHY width usb: phy: add Broadcom Kona USB control driver usb: phy: add Broadcom Kona USB

Re: Introducing libgadget 0.0.1

2013-09-11 Thread Matt Porter
On 09/11/2013 03:42 AM, Jan Engelhardt wrote: On Wednesday 2013-09-04 19:25, Matt Porter wrote: With the move to configfs for creation of arbitrary USB composite gadgets, I found myself wanting a simple C library to configure and parse gadgets in a system. It has no other dependencies other

Introducing libgadget 0.0.1

2013-09-04 Thread Matt Porter
With the move to configfs for creation of arbitrary USB composite gadgets, I found myself wanting a simple C library to configure and parse gadgets in a system. It has no other dependencies other than libc itself. It can be found at: git://git.linaro.org/people/mporter/libgadget.git

[PATCH 0/2] g_ffs CDC ACM support

2013-08-16 Thread Matt Porter
This series fixes a build warning from USB Ethernet module parameters in g_ffs and adds an additional configuration for CDC ACM + FunctionFS. Matt Porter (2): usb: gadget: ffs: fix eth module parameters warning in pure-only config usb: gadget: ffs: add ACM + FunctionFS configuration

[PATCH 2/2] usb: gadget: ffs: add ACM + FunctionFS configuration

2013-08-16 Thread Matt Porter
Adds an additional configuration to g_ffs to allow for CDC ACM support in conjuction with FunctionFS. A module parameter is added to allow for multiple ACM ports to be instantiated. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/Kconfig |9 ++ drivers/usb/gadget

[PATCH 1/2] usb: gadget: ffs: fix eth module parameters warning in pure-only config

2013-08-16 Thread Matt Porter
Fixes the build warning spewed out by USB_ETHERNET_MODULE_PARAMETERS() which was unconditionally included even when ethernet configs are disabled. Signed-off-by: Matt Porter matt.por...@linaro.org --- drivers/usb/gadget/g_ffs.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

Re: [PATCH 2/2] usb: gadget: ffs: add ACM + FunctionFS configuration

2013-08-16 Thread Matt Porter
On 08/16/2013 11:32 AM, Felipe Balbi wrote: On Fri, Aug 16, 2013 at 11:27:48AM -0400, Matt Porter wrote: Adds an additional configuration to g_ffs to allow for CDC ACM support in conjuction with FunctionFS. A module parameter is added to allow for multiple ACM ports to be instantiated. Signed

[PATCH] Documentation: document all g_serial module parameters

2013-08-15 Thread Matt Porter
Add a table explaining the module parameters that g_serial digests. Signed-off-by: Matt Porter matt.por...@linaro.org --- Documentation/usb/gadget_serial.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/usb/gadget_serial.txt b/Documentation/usb

<    1   2