Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-23 Thread Greg Kroah-Hartman
On Wed, Sep 23, 2020 at 03:25:45PM -0700, Matthias Kaehlcke wrote: > On Mon, Sep 21, 2020 at 06:18:37PM -0700, Matthias Kaehlcke wrote: > > On Sun, Sep 20, 2020 at 04:17:20PM +0200, Greg Kroah-Hartman wrote: > > > On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > > > > > > > > ..

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-23 Thread Matthias Kaehlcke
On Mon, Sep 21, 2020 at 06:18:37PM -0700, Matthias Kaehlcke wrote: > On Sun, Sep 20, 2020 at 04:17:20PM +0200, Greg Kroah-Hartman wrote: > > On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > > > > > > ... > > > > > > +static int __init onboard_hub_init(void) > > > +{ > > > + int

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-21 Thread Matthias Kaehlcke
On Mon, Sep 21, 2020 at 09:08:12PM -0400, Alan Stern wrote: > On Mon, Sep 21, 2020 at 05:41:58PM -0700, Matthias Kaehlcke wrote: > > > > + put_device(hub->dev); > > > > > > Is there a matching get_device somewhere (like in _find_onboard_hub)? > > > If so, I didn't see it. And I don't see an

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-21 Thread Matthias Kaehlcke
Hi Greg, thanks for the review! On Sun, Sep 20, 2020 at 04:17:20PM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > > The main issue this driver addresses is that a USB hub needs to be > > powered before it can be discovered. For onboard hubs

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-21 Thread Alan Stern
On Mon, Sep 21, 2020 at 05:41:58PM -0700, Matthias Kaehlcke wrote: > > > + put_device(hub->dev); > > > > Is there a matching get_device somewhere (like in _find_onboard_hub)? > > If so, I didn't see it. And I don't see any reason for it. > > Yes, implicitly, of_find_device_by_node() "takes a ref

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-21 Thread Matthias Kaehlcke
Hi Peter, On Fri, Sep 18, 2020 at 01:30:20AM +, Peter Chen wrote: > On 20-09-17 11:46:22, Matthias Kaehlcke wrote: > > The main issue this driver addresses is that a USB hub needs to be > > powered before it can be discovered. For onboard hubs this is often > > solved by supplying the hub with

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-21 Thread Matthias Kaehlcke
Hi Alan, thanks for taking time to review! On Thu, Sep 17, 2020 at 03:54:16PM -0400, Alan Stern wrote: > On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > > The main issue this driver addresses is that a USB hub needs to be > > powered before it can be discovered. For onboard h

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-20 Thread Greg Kroah-Hartman
On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > The main issue this driver addresses is that a USB hub needs to be > powered before it can be discovered. For onboard hubs this is often > solved by supplying the hub with an 'always-on' regulator, which is > kind of a hack. Some

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-17 Thread Peter Chen
On 20-09-17 11:46:22, Matthias Kaehlcke wrote: > The main issue this driver addresses is that a USB hub needs to be > powered before it can be discovered. For onboard hubs this is often > solved by supplying the hub with an 'always-on' regulator, which is > kind of a hack. Some onboard hubs may req

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-17 Thread Alan Stern
On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > The main issue this driver addresses is that a USB hub needs to be > powered before it can be discovered. For onboard hubs this is often > solved by supplying the hub with an 'always-on' regulator, which is > kind of a hack. Some

[PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-17 Thread Matthias Kaehlcke
The main issue this driver addresses is that a USB hub needs to be powered before it can be discovered. For onboard hubs this is often solved by supplying the hub with an 'always-on' regulator, which is kind of a hack. Some onboard hubs may require further initialization steps, like changing the st