Re: [U-Boot] [PATCH 04/16] usb: hub: Use 'struct usb_hub_device' as hub device's uclass_priv

2017-07-05 Thread Simon Glass
On 23 June 2017 at 03:54, Bin Meng wrote: > Use USB hub device's dev->uclass_priv to point to 'usb_hub_device' > so that with driver model usb_hub_reset() and usb_hub_allocate() > are no longer needed. > > Signed-off-by: Bin Meng > --- > > common/usb_hub.c | 10 +- > drivers

Re: [U-Boot] [PATCH 04/16] usb: hub: Use 'struct usb_hub_device' as hub device's uclass_priv

2017-06-23 Thread Marek Vasut
On 06/23/2017 11:54 AM, Bin Meng wrote: > Use USB hub device's dev->uclass_priv to point to 'usb_hub_device' > so that with driver model usb_hub_reset() and usb_hub_allocate() > are no longer needed. > > Signed-off-by: Bin Meng Can you trim down the ifdeffery somehow or keep it more contained ?

[U-Boot] [PATCH 04/16] usb: hub: Use 'struct usb_hub_device' as hub device's uclass_priv

2017-06-23 Thread Bin Meng
Use USB hub device's dev->uclass_priv to point to 'usb_hub_device' so that with driver model usb_hub_reset() and usb_hub_allocate() are no longer needed. Signed-off-by: Bin Meng --- common/usb_hub.c | 10 +- drivers/usb/host/usb-uclass.c | 2 -- 2 files changed, 9 insertio