* [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller
@ 2014-04-20 16:23 Punnaiah Choudary Kalluri
0 siblings, 0 replies; 7+ messages in thread
From: Punnaiah Choudary Kalluri @ 2014-04-20 16:23 UTC (permalink / raw)
To: leoli, balbi, michal.simek
Cc: Punnaiah Choudary Kalluri, linux-usb, linuxppc-dev, linux-kernel,
linux-arm-kernel
Zynq soc contains a dual role usb controller and this IP is from synopsys. We
observed that there is driver available for this controller from freescale and
decided to reuse this driver for zynq use.
Here is the link for zynq soc TRM. Please refer chapter 15 for usb controller
related information.
http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
The following series of patches add initial support for zynq soc in fsl gadget controller
driver and fsl host controller driver.
Based on these patches, I have the following concerns and sugesstions
Since the freescale usb driver is for synopsys IP, Please consider rebranding
this driver name and config options to reflect that it is a sysnopsys IP. So
that other vendors who using this IP can reuse thie driver.
Also the ehci-fsl.c is for powerpc based soc's, and zynq is ARM based, i have
protected the code which is specifc to freescale with CONFIG_FSL_SOC. Please
suggest if there is a better way of doing this?
Punnaiah Choudary Kalluri (2):
usb: gadget: fsl_udc: Add support for zynq usb device controller
usb: ehci-fsl: Add support for zynq usb host controller
drivers/usb/gadget/Kconfig | 2 +-
drivers/usb/gadget/Makefile | 1 +
drivers/usb/gadget/fsl_mxc_udc.c | 21 ++++++++++++
drivers/usb/gadget/fsl_udc_core.c | 5 +++
drivers/usb/gadget/fsl_usb2_udc.h | 2 +-
drivers/usb/host/Kconfig | 2 +-
drivers/usb/host/ehci-fsl.c | 63 ++++++++++++++++++++++++++++++++++++-
drivers/usb/host/fsl-mph-dr-of.c | 9 +++++
8 files changed, 101 insertions(+), 4 deletions(-)
--
1.7.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller
@ 2014-04-20 16:27 Punnaiah Choudary Kalluri
2014-04-20 16:58 ` Greg KH
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Punnaiah Choudary Kalluri @ 2014-04-20 16:27 UTC (permalink / raw)
To: leoli, balbi, michal.simek
Cc: linux-usb, linux-kernel, kalluripunnaiahchoudary, kpc528,
Punnaiah Choudary Kalluri, linuxppc-dev, linux-arm-kernel
Zynq soc contains a dual role usb controller and this IP is from synopsys. We
observed that there is driver available for this controller from freescale and
decided to reuse this driver for zynq use.
Here is the link for zynq soc TRM. Please refer chapter 15 for usb controller
related information.
http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
The following series of patches add initial support for zynq soc in fsl gadget controller
driver and fsl host controller driver.
Based on these patches, I have the following concerns and sugesstions
Since the freescale usb driver is for synopsys IP, Please consider rebranding
this driver name and config options to reflect that it is a sysnopsys IP. So
that other vendors who using this IP can reuse thie driver.
Also the ehci-fsl.c is for powerpc based soc's, and zynq is ARM based, i have
protected the code which is specifc to freescale with CONFIG_FSL_SOC. Please
suggest if there is a better way of doing this?
Punnaiah Choudary Kalluri (2):
usb: gadget: fsl_udc: Add support for zynq usb device controller
usb: ehci-fsl: Add support for zynq usb host controller
drivers/usb/gadget/Kconfig | 2 +-
drivers/usb/gadget/Makefile | 1 +
drivers/usb/gadget/fsl_mxc_udc.c | 21 ++++++++++++
drivers/usb/gadget/fsl_udc_core.c | 5 +++
drivers/usb/gadget/fsl_usb2_udc.h | 2 +-
drivers/usb/host/Kconfig | 2 +-
drivers/usb/host/ehci-fsl.c | 63 ++++++++++++++++++++++++++++++++++++-
drivers/usb/host/fsl-mph-dr-of.c | 9 +++++
8 files changed, 101 insertions(+), 4 deletions(-)
--
1.7.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller
2014-04-20 16:27 [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller Punnaiah Choudary Kalluri
@ 2014-04-20 16:58 ` Greg KH
2014-04-20 17:56 ` Alan Stern
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2014-04-20 16:58 UTC (permalink / raw)
To: Punnaiah Choudary Kalluri
Cc: linux-usb, michal.simek, balbi, linux-kernel,
kalluripunnaiahchoudary, kpc528, Punnaiah Choudary Kalluri,
linuxppc-dev, linux-arm-kernel
On Sun, Apr 20, 2014 at 09:57:03PM +0530, Punnaiah Choudary Kalluri wrote:
> Zynq soc contains a dual role usb controller and this IP is from synopsys. We
> observed that there is driver available for this controller from freescale and
> decided to reuse this driver for zynq use.
>
> Here is the link for zynq soc TRM. Please refer chapter 15 for usb controller
> related information.
> http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
>
> The following series of patches add initial support for zynq soc in fsl gadget controller
> driver and fsl host controller driver.
>
> Based on these patches, I have the following concerns and sugesstions
>
> Since the freescale usb driver is for synopsys IP, Please consider rebranding
> this driver name and config options to reflect that it is a sysnopsys IP. So
> that other vendors who using this IP can reuse thie driver.
The config options can be edited to show the new hardware support, but
we don't usually rename kernel drivers, sorry. That just gets messy in
the end, and the "first one here gets to name it" is usually enforced.
No users ever see a kernel driver name, especially for a gadget driver,
so it shouldn't ever really matter.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller
2014-04-20 16:27 [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller Punnaiah Choudary Kalluri
2014-04-20 16:58 ` Greg KH
@ 2014-04-20 17:56 ` Alan Stern
2014-04-20 18:52 ` Marc Kleine-Budde
2014-04-21 15:18 ` Felipe Balbi
3 siblings, 0 replies; 7+ messages in thread
From: Alan Stern @ 2014-04-20 17:56 UTC (permalink / raw)
To: Punnaiah Choudary Kalluri
Cc: linux-usb, michal.simek, balbi, linux-kernel,
kalluripunnaiahchoudary, kpc528, Punnaiah Choudary Kalluri,
linuxppc-dev, linux-arm-kernel
On Sun, 20 Apr 2014, Punnaiah Choudary Kalluri wrote:
> Zynq soc contains a dual role usb controller and this IP is from synopsys. We
> observed that there is driver available for this controller from freescale and
> decided to reuse this driver for zynq use.
>
> Here is the link for zynq soc TRM. Please refer chapter 15 for usb controller
> related information.
> http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
>
> The following series of patches add initial support for zynq soc in fsl gadget controller
> driver and fsl host controller driver.
>
> Based on these patches, I have the following concerns and sugesstions
>
> Since the freescale usb driver is for synopsys IP, Please consider rebranding
> this driver name and config options to reflect that it is a sysnopsys IP. So
> that other vendors who using this IP can reuse thie driver.
>
> Also the ehci-fsl.c is for powerpc based soc's, and zynq is ARM based, i have
> protected the code which is specifc to freescale with CONFIG_FSL_SOC. Please
> suggest if there is a better way of doing this?
Filling the code with #ifdef lines is definitely not a good way to go.
Ordinary "if" statements would be a lot better, if you can't figure out
a reasonable way to encapsulate the differences.
Alan Stern
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller
2014-04-20 16:27 [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller Punnaiah Choudary Kalluri
2014-04-20 16:58 ` Greg KH
2014-04-20 17:56 ` Alan Stern
@ 2014-04-20 18:52 ` Marc Kleine-Budde
2014-04-21 4:53 ` punnaiah choudary kalluri
2014-04-21 15:18 ` Felipe Balbi
3 siblings, 1 reply; 7+ messages in thread
From: Marc Kleine-Budde @ 2014-04-20 18:52 UTC (permalink / raw)
To: Punnaiah Choudary Kalluri, leoli, balbi, michal.simek
Cc: linux-usb, linux-kernel, Peter Chen, kalluripunnaiahchoudary,
kpc528, Punnaiah Choudary Kalluri, linuxppc-dev, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 678 bytes --]
On 04/20/2014 06:27 PM, Punnaiah Choudary Kalluri wrote:
> Zynq soc contains a dual role usb controller and this IP is from synopsys. We
> observed that there is driver available for this controller from freescale and
> decided to reuse this driver for zynq use.
Have a look drivers/usb/chipidea. It's maintained by Peter Chen (Cc'ed)
and is in better shape than the freescale driver.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller
2014-04-20 18:52 ` Marc Kleine-Budde
@ 2014-04-21 4:53 ` punnaiah choudary kalluri
0 siblings, 0 replies; 7+ messages in thread
From: punnaiah choudary kalluri @ 2014-04-21 4:53 UTC (permalink / raw)
To: Marc Kleine-Budde
Cc: linux-usb, michal.simek@xilinx.com, balbi,
linux-kernel@vger.kernel.org, Punnaiah Choudary, Peter Chen,
Punnaiah Choudary Kalluri, linuxppc-dev, linux-arm-kernel
On Mon, Apr 21, 2014 at 12:22 AM, Marc Kleine-Budde <mkl@pengutronix.de> wrote:
> On 04/20/2014 06:27 PM, Punnaiah Choudary Kalluri wrote:
>> Zynq soc contains a dual role usb controller and this IP is from synopsys. We
>> observed that there is driver available for this controller from freescale and
>> decided to reuse this driver for zynq use.
>
> Have a look drivers/usb/chipidea. It's maintained by Peter Chen (Cc'ed)
> and is in better shape than the freescale driver.
Thanks. I will check this implementation and also check with Peter Chen if
i have any concerns about this implementation.
Punnaiah.
>
> Marc
>
> --
> Pengutronix e.K. | Marc Kleine-Budde |
> Industrial Linux Solutions | Phone: +49-231-2826-924 |
> Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
> Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller
2014-04-20 16:27 [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller Punnaiah Choudary Kalluri
` (2 preceding siblings ...)
2014-04-20 18:52 ` Marc Kleine-Budde
@ 2014-04-21 15:18 ` Felipe Balbi
3 siblings, 0 replies; 7+ messages in thread
From: Felipe Balbi @ 2014-04-21 15:18 UTC (permalink / raw)
To: Punnaiah Choudary Kalluri
Cc: linux-usb, michal.simek, balbi, linux-kernel,
kalluripunnaiahchoudary, kpc528, Punnaiah Choudary Kalluri,
linuxppc-dev, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 1879 bytes --]
On Sun, Apr 20, 2014 at 09:57:03PM +0530, Punnaiah Choudary Kalluri wrote:
> Zynq soc contains a dual role usb controller and this IP is from synopsys. We
> observed that there is driver available for this controller from freescale and
> decided to reuse this driver for zynq use.
>
> Here is the link for zynq soc TRM. Please refer chapter 15 for usb controller
> related information.
> http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
>
> The following series of patches add initial support for zynq soc in fsl gadget controller
> driver and fsl host controller driver.
>
> Based on these patches, I have the following concerns and sugesstions
>
> Since the freescale usb driver is for synopsys IP, Please consider rebranding
> this driver name and config options to reflect that it is a sysnopsys IP. So
> that other vendors who using this IP can reuse thie driver.
>
> Also the ehci-fsl.c is for powerpc based soc's, and zynq is ARM based, i have
> protected the code which is specifc to freescale with CONFIG_FSL_SOC. Please
> suggest if there is a better way of doing this?
>
> Punnaiah Choudary Kalluri (2):
> usb: gadget: fsl_udc: Add support for zynq usb device controller
> usb: ehci-fsl: Add support for zynq usb host controller
>
> drivers/usb/gadget/Kconfig | 2 +-
> drivers/usb/gadget/Makefile | 1 +
> drivers/usb/gadget/fsl_mxc_udc.c | 21 ++++++++++++
> drivers/usb/gadget/fsl_udc_core.c | 5 +++
> drivers/usb/gadget/fsl_usb2_udc.h | 2 +-
> drivers/usb/host/Kconfig | 2 +-
> drivers/usb/host/ehci-fsl.c | 63 ++++++++++++++++++++++++++++++++++++-
> drivers/usb/host/fsl-mph-dr-of.c | 9 +++++
> 8 files changed, 101 insertions(+), 4 deletions(-)
as somebody else already mentioned, chipidea is the way to go.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-04-22 2:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-20 16:27 [RFC PATCH 0/2] usb: Reuse fsl driver code for synopsys usb controller Punnaiah Choudary Kalluri
2014-04-20 16:58 ` Greg KH
2014-04-20 17:56 ` Alan Stern
2014-04-20 18:52 ` Marc Kleine-Budde
2014-04-21 4:53 ` punnaiah choudary kalluri
2014-04-21 15:18 ` Felipe Balbi
-- strict thread matches above, loose matches on Subject: below --
2014-04-20 16:23 Punnaiah Choudary Kalluri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).