RE: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Peter Chen
pp Zabel ; Paweł Moll ; > Greg KH ; linux-usb@vger.kernel.org; > pat...@kowalczyk.ws; Rob Herring ; > st...@rowland.harvard.edu; ker...@pengutronix.de; Shawn Guo > ; linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic > onboa

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Lucas Stach
Am Mittwoch, den 09.12.2015, 17:00 +0800 schrieb Peter Chen: > On Wed, Dec 09, 2015 at 09:57:40AM +0100, Lucas Stach wrote: > > Am Mittwoch, den 09.12.2015, 16:50 +0800 schrieb Peter Chen: > > > On Tue, Dec 08, 2015 at 08:36:00AM -0700, Mathieu Poirier wrote: > > > > On 7 December 2015 at 18:37, Pe

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Peter Chen
On Wed, Dec 09, 2015 at 10:10:51AM +0100, Arnd Bergmann wrote: > On Wednesday 09 December 2015 09:57:40 Lucas Stach wrote: > > Am Mittwoch, den 09.12.2015, 16:50 +0800 schrieb Peter Chen: > > > On Tue, Dec 08, 2015 at 08:36:00AM -0700, Mathieu Poirier wrote: > > > > On 7 December 2015 at 18:37, Pet

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Arnd Bergmann
On Wednesday 09 December 2015 09:57:40 Lucas Stach wrote: > Am Mittwoch, den 09.12.2015, 16:50 +0800 schrieb Peter Chen: > > On Tue, Dec 08, 2015 at 08:36:00AM -0700, Mathieu Poirier wrote: > > > On 7 December 2015 at 18:37, Peter Chen wrote: > > > > + > > > > + if (dev->of_node) { > > > > +

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Peter Chen
On Wed, Dec 09, 2015 at 09:57:40AM +0100, Lucas Stach wrote: > Am Mittwoch, den 09.12.2015, 16:50 +0800 schrieb Peter Chen: > > On Tue, Dec 08, 2015 at 08:36:00AM -0700, Mathieu Poirier wrote: > > > On 7 December 2015 at 18:37, Peter Chen wrote: > > > > + > > > > + if (dev->of_node) { > > >

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Lucas Stach
Am Mittwoch, den 09.12.2015, 16:50 +0800 schrieb Peter Chen: > On Tue, Dec 08, 2015 at 08:36:00AM -0700, Mathieu Poirier wrote: > > On 7 December 2015 at 18:37, Peter Chen wrote: > > > + > > > + if (dev->of_node) { > > > + struct device_node *node = dev->of_node; > > > + > > >

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Peter Chen
On Tue, Dec 08, 2015 at 08:36:00AM -0700, Mathieu Poirier wrote: > On 7 December 2015 at 18:37, Peter Chen wrote: > > + > > + if (dev->of_node) { > > + struct device_node *node = dev->of_node; > > + > > + hub_data->clk = devm_clk_get(dev, "external_clk"); > > +

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Peter Chen
On Tue, Dec 08, 2015 at 07:55:05AM -0600, Felipe Balbi wrote: > > Hi, > > Peter Chen writes: > >> seriously ? Is this really all ? What about that reset line below ? > > > > The clock is PHY input clock on the HUB, this clock may from SoC's > > PLL. > > oh, you might have misunderstood my comme

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Peter Chen
On Tue, Dec 08, 2015 at 10:44:02AM +0100, Sascha Hauer wrote: > On Tue, Dec 08, 2015 at 05:26:56PM +0800, Peter Chen wrote: > > On Tue, Dec 08, 2015 at 07:19:05AM +0100, Sascha Hauer wrote: > > > > + hub_data = devm_kzalloc(dev, sizeof(*hub_data), GFP_KERNEL); > > > > + if (!hub_data) >

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-09 Thread Peter Chen
On Tue, Dec 08, 2015 at 10:48:28AM +0100, Arnd Bergmann wrote: > On Tuesday 08 December 2015 09:37:48 Peter Chen wrote: > > > +struct usb_hub_generic_data { > > + struct clk *clk; > > +}; > > + > > +static int usb_hub_generic_probe(struct platform_device *pdev) > > +{ > > + struct device *dev

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-08 Thread Mathieu Poirier
On 7 December 2015 at 18:37, Peter Chen wrote: > Current USB HUB driver lacks of platform interfaces to configure > external signal on HUB chip, eg, the PHY input clock and gpio reset > pin for HUB, these kinds of HUBs are usually soldered at the board, > and they are not hot-plug USB devices. > >

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-08 Thread Felipe Balbi
Hi, Peter Chen writes: >> seriously ? Is this really all ? What about that reset line below ? > > The clock is PHY input clock on the HUB, this clock may from SoC's > PLL. oh, you might have misunderstood my comment. I'm saying that there is more than one thing you could cache in your private s

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-08 Thread Arnd Bergmann
On Tuesday 08 December 2015 09:37:48 Peter Chen wrote: > +struct usb_hub_generic_data { > + struct clk *clk; > +}; > + > +static int usb_hub_generic_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; > + struct usb_hub_generic_platform_data *pdata = dev->plat

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-08 Thread Sascha Hauer
On Tue, Dec 08, 2015 at 05:26:56PM +0800, Peter Chen wrote: > On Tue, Dec 08, 2015 at 07:19:05AM +0100, Sascha Hauer wrote: > > > + hub_data = devm_kzalloc(dev, sizeof(*hub_data), GFP_KERNEL); > > > + if (!hub_data) > > > + return -ENOMEM; > > > + > > > + if (dev->of_node) { > > > +

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-08 Thread Peter Chen
On Tue, Dec 08, 2015 at 11:16:31AM +0800, kbuild test robot wrote: > Hi Peter, > > [auto build test ERROR on usb/usb-testing] > [also build test ERROR on v4.4-rc4 next-20151207] > > url: > https://github.com/0day-ci/linux/commits/Peter-Chen/USB-add-generic-onboard-USB-HUB-driver/20151208-0944

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-08 Thread Peter Chen
On Tue, Dec 08, 2015 at 07:19:05AM +0100, Sascha Hauer wrote: > > + hub_data = devm_kzalloc(dev, sizeof(*hub_data), GFP_KERNEL); > > + if (!hub_data) > > + return -ENOMEM; > > + > > + if (dev->of_node) { > > + struct device_node *node = dev->of_node; > > + > > +

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-08 Thread Peter Chen
On Mon, Dec 07, 2015 at 08:59:19PM -0600, Felipe Balbi wrote: > > Hi, > > Peter Chen writes: > > diff --git a/drivers/usb/misc/Makefile b/drivers/usb/misc/Makefile > > index 45fd4ac..da52e9a 100644 > > --- a/drivers/usb/misc/Makefile > > +++ b/drivers/usb/misc/Makefile > > @@ -29,3 +29,4 @@ obj-

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-07 Thread Sascha Hauer
On Tue, Dec 08, 2015 at 09:37:48AM +0800, Peter Chen wrote: > Current USB HUB driver lacks of platform interfaces to configure > external signal on HUB chip, eg, the PHY input clock and gpio reset > pin for HUB, these kinds of HUBs are usually soldered at the board, > and they are not hot-plug USB

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-07 Thread kbuild test robot
Hi Peter, [auto build test ERROR on usb/usb-testing] [also build test ERROR on v4.4-rc4 next-20151207] url: https://github.com/0day-ci/linux/commits/Peter-Chen/USB-add-generic-onboard-USB-HUB-driver/20151208-094428 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-te

Re: [PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-07 Thread Felipe Balbi
Hi, Peter Chen writes: > diff --git a/drivers/usb/misc/Makefile b/drivers/usb/misc/Makefile > index 45fd4ac..da52e9a 100644 > --- a/drivers/usb/misc/Makefile > +++ b/drivers/usb/misc/Makefile > @@ -29,3 +29,4 @@ obj-$(CONFIG_USB_CHAOSKEY) += chaoskey.o > > obj-$(CONFIG_USB_SISUSBVGA)

[PATCH 1/3] usb: misc: generic_onboard_hub: add generic onboard USB HUB driver

2015-12-07 Thread Peter Chen
Current USB HUB driver lacks of platform interfaces to configure external signal on HUB chip, eg, the PHY input clock and gpio reset pin for HUB, these kinds of HUBs are usually soldered at the board, and they are not hot-plug USB devices. With this patch, the user can configure the HUB's pins at