Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-16 Thread Jean-Jacques Hiblot

On 01/11/2018 17:55, Lukasz Majewski wrote:

Hi Tom,


On Thu, Nov 01, 2018 at 04:56:46PM +0100, Lukasz Majewski wrote:

Hi Michal,
   

On 28. 10. 18 21:50, Lukasz Majewski wrote:

Dear All,
 

Andy, Kerver, Lin,

could you give a try to this series on evb-rk3328 please ?
This has been blocked for a long time already.

Yes, agree. Could somebody (who has this SoC) test this patch
set?

TBH if there is no reaction after gentle asking you should queue
these patches for next u-boot version. If this patchset breaks
anybody they can fix in RC phase.

Yes, I do agree...

I've added Tom to CC so he would know the circumstances.

So I should expect Marek to be pulling this in, post v2018.11 right?

Yes, I will prepare PR to Marek, and he will send PR to you.


Thanks Lukasz

I hope it will hit the tree soon. I have a few other series ready that 
rely on this one.


JJ




Thanks!




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Lukasz Majewski
Hi Tom,

> On Thu, Nov 01, 2018 at 04:56:46PM +0100, Lukasz Majewski wrote:
> > Hi Michal,
> >   
> > > On 28. 10. 18 21:50, Lukasz Majewski wrote:  
> > > > Dear All,
> > > > 
> > > >> Andy, Kerver, Lin,
> > > >>
> > > >> could you give a try to this series on evb-rk3328 please ?
> > > >> This has been blocked for a long time already.
> > > > 
> > > > Yes, agree. Could somebody (who has this SoC) test this patch
> > > > set?
> > > 
> > > TBH if there is no reaction after gentle asking you should queue
> > > these patches for next u-boot version. If this patchset breaks
> > > anybody they can fix in RC phase.  
> > 
> > Yes, I do agree...
> > 
> > I've added Tom to CC so he would know the circumstances.  
> 
> So I should expect Marek to be pulling this in, post v2018.11 right?

Yes, I will prepare PR to Marek, and he will send PR to you.

> Thanks!




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de


pgpXeLlX_ZjJy.pgp
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Tom Rini
On Thu, Nov 01, 2018 at 04:56:46PM +0100, Lukasz Majewski wrote:
> Hi Michal,
> 
> > On 28. 10. 18 21:50, Lukasz Majewski wrote:
> > > Dear All,
> > >   
> > >> Andy, Kerver, Lin,
> > >>
> > >> could you give a try to this series on evb-rk3328 please ? This has
> > >> been blocked for a long time already.  
> > > 
> > > Yes, agree. Could somebody (who has this SoC) test this patch set?  
> > 
> > TBH if there is no reaction after gentle asking you should queue these
> > patches for next u-boot version. If this patchset breaks anybody they
> > can fix in RC phase.
> 
> Yes, I do agree...
> 
> I've added Tom to CC so he would know the circumstances.

So I should expect Marek to be pulling this in, post v2018.11 right?
Thanks!
-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Lukasz Majewski
Hi Michal,

> On 28. 10. 18 21:50, Lukasz Majewski wrote:
> > Dear All,
> >   
> >> Andy, Kerver, Lin,
> >>
> >> could you give a try to this series on evb-rk3328 please ? This has
> >> been blocked for a long time already.  
> > 
> > Yes, agree. Could somebody (who has this SoC) test this patch set?  
> 
> TBH if there is no reaction after gentle asking you should queue these
> patches for next u-boot version. If this patchset breaks anybody they
> can fix in RC phase.

Yes, I do agree...

I've added Tom to CC so he would know the circumstances.

> 
> Thanks,
> Michal




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de


pgpFah4jLNhOg.pgp
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-11-01 Thread Michal Simek
On 28. 10. 18 21:50, Lukasz Majewski wrote:
> Dear All,
> 
>> Andy, Kerver, Lin,
>>
>> could you give a try to this series on evb-rk3328 please ? This has
>> been blocked for a long time already.
> 
> Yes, agree. Could somebody (who has this SoC) test this patch set?

TBH if there is no reaction after gentle asking you should queue these
patches for next u-boot version. If this patchset breaks anybody they
can fix in RC phase.

Thanks,
Michal
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-28 Thread Lukasz Majewski
Dear All,

> Andy, Kerver, Lin,
> 
> could you give a try to this series on evb-rk3328 please ? This has
> been blocked for a long time already.

Yes, agree. Could somebody (who has this SoC) test this patch set?

Thanks in advance,
Łukasz

> 
> Thanks,
> 
> JJ
> 
> On 22/10/2018 18:24, Jean-Jacques Hiblot wrote:
> >
> >
> > On 22/10/2018 18:16, Lukasz Majewski wrote:  
> >> Hi Jean-Jacques,
> >>  
> >>> Hi Lukasz,
> >>>
> >>> gentle ping on the status on this series.  
> >> Do we have tested by from somebody from RockChip community?  
> > I haven't seen anything on the ML. I pinged Kever Yang earlier
> > today about it.
> >
> > JJ  
> >>  
> >>> JJ
> >>>
> >>>
> >>> On 09/10/2018 16:29, Loic Devulder wrote:  
>  On 9/25/18 11:03 AM, Jean-Jacques Hiblot wrote:  
> > This series aims at bringing improvements to the dwc3_generic
> > driver so that it can be used by most of the platforms using the
> > dwc3 controller.
> >
> > I tested this on with DRA7 and AM57x platforms for both
> > Peripheral and Host operations. The code to enable DM USB host
> > & dev support for those platforms will be submitted in a
> > separate series.
> >
> > Michal Simek has tested this series:
> > " I have tested it on zcu100 with usb stick, usb to ethernet
> > converter and also dfu.
> > Tested-by: Michal Simek "  
>  Tested-by: Loic Devulder 
> 
>  I tested this series of patches on Khadas VIM as well as
>  Libretech-cc board and it resolved this issue ("USB0:
>  "Synchronous Abort" handler, esr 0x96000210") I had on both cards
>  (I think on all s905x Amlogic SBC)!  
> > Enhancements:
> > - use separate Kconfig option for DM USB Periphal and DM USB
> > Host. This allow platforms to keep their non-DM USB peripheral
> > code and use the DM USB host.
> > - fixes the bind/probe confusion in dwc3_generic. The probe is
> > done when the USB device is first needed.
> > - handles PHYs when in the peripheral mode. The code to handle
> > the PHYs is shared with the host side
> > - handles clock and reset
> > - bind host controller to the more generic driver 'xhci-dwc3'
> >
> >
> > Changes in v3:
> > - fixes bug dwc3_setup_phy(): the phy arrays wasn't returned.
> > This was visible only when the device is removed.
> > - Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is
> > false. This fixes all build issues but one (evb-rk3328).
> > - Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3.
> > This has little impact on the footprint and should not break the
> > runtime as the xhci-rockchip driver has its own probe function.
> >     Nevertheless this was !!! NOT TESTED !!! by lack of hw
> >
> > Changes in v2:
> > - Updated commit log
> > - Fixed typo in thordown.c
> > - select DM_USB_DEV by default for zynqmp platforms
> >
> > Jean-Jacques Hiblot (8):
> >     usb: gadget: Do not call board_usb_xxx() directly in USB
> > gadget drivers
> >     usb: introduce a separate config option for DM USB device
> >     usb: udc: implement DM versions of
> > usb_gadget_initialize()/_release()/_handle_interrupt()
> >     dwc3_generic: do not probe the USB device driver when it's
> > bound dwc3: move phy operation to core.c
> >     configs: evb-rk3328: Enable CONFIG_USB_DWC3
> >     dwc3-generic: Handle the PHYs, the clocks and the reset
> > lines dwc3-generic: Add select_dr_mode operation
> >
> >    arch/arm/Kconfig  |   2 +
> >    cmd/fastboot.c    |   4 +-
> >    cmd/rockusb.c |   4 +-
> >    cmd/thordown.c    |   4 +-
> >    cmd/usb_gadget_sdp.c  |   4 +-
> >    cmd/usb_mass_storage.c    |   4 +-
> >    common/dfu.c  |   6 +-
> >    configs/evb-rk3328_defconfig  |   1 +
> >    drivers/usb/Kconfig   |   6 ++
> >    drivers/usb/dwc3/Kconfig  |   7 +-
> >    drivers/usb/dwc3/core.c   |  89 +++-
> >    drivers/usb/dwc3/dwc3-generic.c   | 207
> > +-
> > drivers/usb/dwc3/ep0.c    |   1 -
> > drivers/usb/gadget/ether.c    |  38 +--
> > drivers/usb/gadget/udc/udc-core.c |  44 +++-
> > drivers/usb/host/xhci-dwc3.c  |  95 ++---
> > include/dwc3-uboot.h  |  19 
> > include/linux/usb/gadget.h    |  18  18 files changed,
> > 367 insertions(+), 186 deletions(-)  
> >>
> >>
> >>
> >> Best regards,
> >>
> >> Lukasz Majewski
> >>
> >> -- 
> >>
> >> DENX Software Engineering GmbH,  Managing Director: Wolfgang
> >> Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell,
> >> Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email:
> >> w...@denx.de  
> >
> > 

Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-26 Thread Jean-Jacques Hiblot

Andy, Kerver, Lin,

could you give a try to this series on evb-rk3328 please ? This has been 
blocked for a long time already.


Thanks,

JJ

On 22/10/2018 18:24, Jean-Jacques Hiblot wrote:



On 22/10/2018 18:16, Lukasz Majewski wrote:

Hi Jean-Jacques,


Hi Lukasz,

gentle ping on the status on this series.

Do we have tested by from somebody from RockChip community?
I haven't seen anything on the ML. I pinged Kever Yang earlier today 
about it.


JJ



JJ


On 09/10/2018 16:29, Loic Devulder wrote:

On 9/25/18 11:03 AM, Jean-Jacques Hiblot wrote:

This series aims at bringing improvements to the dwc3_generic
driver so that it can be used by most of the platforms using the
dwc3 controller.

I tested this on with DRA7 and AM57x platforms for both Peripheral
and Host operations. The code to enable DM USB host & dev support
for those platforms will be submitted in a separate series.

Michal Simek has tested this series:
" I have tested it on zcu100 with usb stick, usb to ethernet
converter and also dfu.
Tested-by: Michal Simek "

Tested-by: Loic Devulder 

I tested this series of patches on Khadas VIM as well as
Libretech-cc board and it resolved this issue ("USB0:
"Synchronous Abort" handler, esr 0x96000210") I had on both cards
(I think on all s905x Amlogic SBC)!

Enhancements:
- use separate Kconfig option for DM USB Periphal and DM USB Host.
This allow platforms to keep their non-DM USB peripheral code and
use the DM USB host.
- fixes the bind/probe confusion in dwc3_generic. The probe is
done when the USB device is first needed.
- handles PHYs when in the peripheral mode. The code to handle the
PHYs is shared with the host side
- handles clock and reset
- bind host controller to the more generic driver 'xhci-dwc3'


Changes in v3:
- fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This
was visible only when the device is removed.
- Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
    This fixes all build issues but one (evb-rk3328).
- Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3.
This has little impact on the footprint and should not break the
runtime as the xhci-rockchip driver has its own probe function.
    Nevertheless this was !!! NOT TESTED !!! by lack of hw

Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
- select DM_USB_DEV by default for zynqmp platforms

Jean-Jacques Hiblot (8):
    usb: gadget: Do not call board_usb_xxx() directly in USB gadget
  drivers
    usb: introduce a separate config option for DM USB device
    usb: udc: implement DM versions of
usb_gadget_initialize()/_release()/_handle_interrupt()
    dwc3_generic: do not probe the USB device driver when it's bound
    dwc3: move phy operation to core.c
    configs: evb-rk3328: Enable CONFIG_USB_DWC3
    dwc3-generic: Handle the PHYs, the clocks and the reset lines
    dwc3-generic: Add select_dr_mode operation

   arch/arm/Kconfig  |   2 +
   cmd/fastboot.c    |   4 +-
   cmd/rockusb.c |   4 +-
   cmd/thordown.c    |   4 +-
   cmd/usb_gadget_sdp.c  |   4 +-
   cmd/usb_mass_storage.c    |   4 +-
   common/dfu.c  |   6 +-
   configs/evb-rk3328_defconfig  |   1 +
   drivers/usb/Kconfig   |   6 ++
   drivers/usb/dwc3/Kconfig  |   7 +-
   drivers/usb/dwc3/core.c   |  89 +++-
   drivers/usb/dwc3/dwc3-generic.c   | 207
+-
drivers/usb/dwc3/ep0.c    |   1 -
drivers/usb/gadget/ether.c    |  38 +--
drivers/usb/gadget/udc/udc-core.c |  44 +++-
drivers/usb/host/xhci-dwc3.c  |  95 ++---
include/dwc3-uboot.h  |  19 
include/linux/usb/gadget.h    |  18  18 files changed, 367
insertions(+), 186 deletions(-)




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de


___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-22 Thread Jean-Jacques Hiblot



On 22/10/2018 18:16, Lukasz Majewski wrote:

Hi Jean-Jacques,


Hi Lukasz,

gentle ping on the status on this series.

Do we have tested by from somebody from RockChip community?
I haven't seen anything on the ML. I pinged Kever Yang earlier today 
about it.


JJ



JJ


On 09/10/2018 16:29, Loic Devulder wrote:

On 9/25/18 11:03 AM, Jean-Jacques Hiblot wrote:

This series aims at bringing improvements to the dwc3_generic
driver so that it can be used by most of the platforms using the
dwc3 controller.

I tested this on with DRA7 and AM57x platforms for both Peripheral
and Host operations. The code to enable DM USB host & dev support
for those platforms will be submitted in a separate series.

Michal Simek has tested this series:
" I have tested it on zcu100 with usb stick, usb to ethernet
converter and also dfu.
Tested-by: Michal Simek "
  

Tested-by: Loic Devulder 

I tested this series of patches on Khadas VIM as well as
Libretech-cc board and it resolved this issue ("USB0:
"Synchronous Abort" handler, esr 0x96000210") I had on both cards
(I think on all s905x Amlogic SBC)!

Enhancements:
- use separate Kconfig option for DM USB Periphal and DM USB Host.
This allow platforms to keep their non-DM USB peripheral code and
use the DM USB host.
- fixes the bind/probe confusion in dwc3_generic. The probe is
done when the USB device is first needed.
- handles PHYs when in the peripheral mode. The code to handle the
PHYs is shared with the host side
- handles clock and reset
- bind host controller to the more generic driver 'xhci-dwc3'


Changes in v3:
- fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This
was visible only when the device is removed.
- Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
This fixes all build issues but one (evb-rk3328).
- Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3.
This has little impact on the footprint and should not break the
runtime as the xhci-rockchip driver has its own probe function.
Nevertheless this was !!! NOT TESTED !!! by lack of hw

Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
- select DM_USB_DEV by default for zynqmp platforms

Jean-Jacques Hiblot (8):
usb: gadget: Do not call board_usb_xxx() directly in USB gadget
  drivers
usb: introduce a separate config option for DM USB device
usb: udc: implement DM versions of
  usb_gadget_initialize()/_release()/_handle_interrupt()
dwc3_generic: do not probe the USB device driver when it's bound
dwc3: move phy operation to core.c
configs: evb-rk3328: Enable CONFIG_USB_DWC3
dwc3-generic: Handle the PHYs, the clocks and the reset lines
dwc3-generic: Add select_dr_mode operation

   arch/arm/Kconfig  |   2 +
   cmd/fastboot.c|   4 +-
   cmd/rockusb.c |   4 +-
   cmd/thordown.c|   4 +-
   cmd/usb_gadget_sdp.c  |   4 +-
   cmd/usb_mass_storage.c|   4 +-
   common/dfu.c  |   6 +-
   configs/evb-rk3328_defconfig  |   1 +
   drivers/usb/Kconfig   |   6 ++
   drivers/usb/dwc3/Kconfig  |   7 +-
   drivers/usb/dwc3/core.c   |  89 +++-
   drivers/usb/dwc3/dwc3-generic.c   | 207
+-
drivers/usb/dwc3/ep0.c|   1 -
drivers/usb/gadget/ether.c|  38 +--
drivers/usb/gadget/udc/udc-core.c |  44 +++-
drivers/usb/host/xhci-dwc3.c  |  95 ++---
include/dwc3-uboot.h  |  19 
include/linux/usb/gadget.h|  18  18 files changed, 367
insertions(+), 186 deletions(-)




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de


___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-22 Thread Lukasz Majewski
Hi Jean-Jacques,

> Hi Lukasz,
> 
> gentle ping on the status on this series.

Do we have tested by from somebody from RockChip community?

> 
> JJ
> 
> 
> On 09/10/2018 16:29, Loic Devulder wrote:
> >
> > On 9/25/18 11:03 AM, Jean-Jacques Hiblot wrote:  
> >> This series aims at bringing improvements to the dwc3_generic
> >> driver so that it can be used by most of the platforms using the
> >> dwc3 controller.
> >>
> >> I tested this on with DRA7 and AM57x platforms for both Peripheral
> >> and Host operations. The code to enable DM USB host & dev support
> >> for those platforms will be submitted in a separate series.
> >>
> >> Michal Simek has tested this series:
> >> " I have tested it on zcu100 with usb stick, usb to ethernet
> >> converter and also dfu.
> >> Tested-by: Michal Simek "
> >>  
> > Tested-by: Loic Devulder 
> >
> > I tested this series of patches on Khadas VIM as well as
> > Libretech-cc board and it resolved this issue ("USB0:
> > "Synchronous Abort" handler, esr 0x96000210") I had on both cards
> > (I think on all s905x Amlogic SBC)! 
> >> Enhancements:
> >> - use separate Kconfig option for DM USB Periphal and DM USB Host.
> >> This allow platforms to keep their non-DM USB peripheral code and
> >> use the DM USB host.
> >> - fixes the bind/probe confusion in dwc3_generic. The probe is
> >> done when the USB device is first needed.
> >> - handles PHYs when in the peripheral mode. The code to handle the
> >> PHYs is shared with the host side
> >> - handles clock and reset
> >> - bind host controller to the more generic driver 'xhci-dwc3'
> >>
> >>
> >> Changes in v3:
> >> - fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This
> >> was visible only when the device is removed.
> >> - Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
> >>This fixes all build issues but one (evb-rk3328).
> >> - Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3.
> >> This has little impact on the footprint and should not break the
> >> runtime as the xhci-rockchip driver has its own probe function.
> >>Nevertheless this was !!! NOT TESTED !!! by lack of hw
> >>
> >> Changes in v2:
> >> - Updated commit log
> >> - Fixed typo in thordown.c
> >> - select DM_USB_DEV by default for zynqmp platforms
> >>
> >> Jean-Jacques Hiblot (8):
> >>usb: gadget: Do not call board_usb_xxx() directly in USB gadget
> >>  drivers
> >>usb: introduce a separate config option for DM USB device
> >>usb: udc: implement DM versions of
> >>  usb_gadget_initialize()/_release()/_handle_interrupt()
> >>dwc3_generic: do not probe the USB device driver when it's bound
> >>dwc3: move phy operation to core.c
> >>configs: evb-rk3328: Enable CONFIG_USB_DWC3
> >>dwc3-generic: Handle the PHYs, the clocks and the reset lines
> >>dwc3-generic: Add select_dr_mode operation
> >>
> >>   arch/arm/Kconfig  |   2 +
> >>   cmd/fastboot.c|   4 +-
> >>   cmd/rockusb.c |   4 +-
> >>   cmd/thordown.c|   4 +-
> >>   cmd/usb_gadget_sdp.c  |   4 +-
> >>   cmd/usb_mass_storage.c|   4 +-
> >>   common/dfu.c  |   6 +-
> >>   configs/evb-rk3328_defconfig  |   1 +
> >>   drivers/usb/Kconfig   |   6 ++
> >>   drivers/usb/dwc3/Kconfig  |   7 +-
> >>   drivers/usb/dwc3/core.c   |  89 +++-
> >>   drivers/usb/dwc3/dwc3-generic.c   | 207
> >> +-
> >> drivers/usb/dwc3/ep0.c|   1 -
> >> drivers/usb/gadget/ether.c|  38 +--
> >> drivers/usb/gadget/udc/udc-core.c |  44 +++-
> >> drivers/usb/host/xhci-dwc3.c  |  95 ++---
> >> include/dwc3-uboot.h  |  19 
> >> include/linux/usb/gadget.h|  18  18 files changed, 367
> >> insertions(+), 186 deletions(-) 
> 




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de


pgpnDDq64EZrW.pgp
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-22 Thread Jean-Jacques Hiblot

Hi Lukasz,

gentle ping on the status on this series.

JJ


On 09/10/2018 16:29, Loic Devulder wrote:


On 9/25/18 11:03 AM, Jean-Jacques Hiblot wrote:

This series aims at bringing improvements to the dwc3_generic driver so
that it can be used by most of the platforms using the dwc3 controller.

I tested this on with DRA7 and AM57x platforms for both Peripheral and Host
operations. The code to enable DM USB host & dev support for those
platforms will be submitted in a separate series.

Michal Simek has tested this series:
" I have tested it on zcu100 with usb stick, usb to ethernet converter and
also dfu.
Tested-by: Michal Simek "


Tested-by: Loic Devulder 

I tested this series of patches on Khadas VIM as well as Libretech-cc
board and it resolved this issue ("USB0:   "Synchronous Abort" handler,
esr 0x96000210") I had on both cards (I think on all s905x Amlogic SBC)!


Enhancements:
- use separate Kconfig option for DM USB Periphal and DM USB Host. This
allow platforms to keep their non-DM USB peripheral code and use the DM
USB host.
- fixes the bind/probe confusion in dwc3_generic. The probe is done when
the USB device is first needed.
- handles PHYs when in the peripheral mode. The code to handle the PHYs is
shared with the host side
- handles clock and reset
- bind host controller to the more generic driver 'xhci-dwc3'


Changes in v3:
- fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This was
   visible only when the device is removed.
- Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
   This fixes all build issues but one (evb-rk3328).
- Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3. This has
   little impact on the footprint and should not break the runtime as the
   xhci-rockchip driver has its own probe function.
   Nevertheless this was !!! NOT TESTED !!! by lack of hw

Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
- select DM_USB_DEV by default for zynqmp platforms

Jean-Jacques Hiblot (8):
   usb: gadget: Do not call board_usb_xxx() directly in USB gadget
 drivers
   usb: introduce a separate config option for DM USB device
   usb: udc: implement DM versions of
 usb_gadget_initialize()/_release()/_handle_interrupt()
   dwc3_generic: do not probe the USB device driver when it's bound
   dwc3: move phy operation to core.c
   configs: evb-rk3328: Enable CONFIG_USB_DWC3
   dwc3-generic: Handle the PHYs, the clocks and the reset lines
   dwc3-generic: Add select_dr_mode operation

  arch/arm/Kconfig  |   2 +
  cmd/fastboot.c|   4 +-
  cmd/rockusb.c |   4 +-
  cmd/thordown.c|   4 +-
  cmd/usb_gadget_sdp.c  |   4 +-
  cmd/usb_mass_storage.c|   4 +-
  common/dfu.c  |   6 +-
  configs/evb-rk3328_defconfig  |   1 +
  drivers/usb/Kconfig   |   6 ++
  drivers/usb/dwc3/Kconfig  |   7 +-
  drivers/usb/dwc3/core.c   |  89 +++-
  drivers/usb/dwc3/dwc3-generic.c   | 207 +-
  drivers/usb/dwc3/ep0.c|   1 -
  drivers/usb/gadget/ether.c|  38 +--
  drivers/usb/gadget/udc/udc-core.c |  44 +++-
  drivers/usb/host/xhci-dwc3.c  |  95 ++---
  include/dwc3-uboot.h  |  19 
  include/linux/usb/gadget.h|  18 
  18 files changed, 367 insertions(+), 186 deletions(-)



___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-22 Thread Jean-Jacques Hiblot

Hi Kever,

have you been able to run the tests on evb-rk3328 ?

Thanks,

JJ



On 08/10/2018 04:07, Kever Yang wrote:


Hi Philipp,


On 10/01/2018 09:26 PM, Philipp Tomsich wrote:

Kever,

Could you test this?
I assume you have the board, as the evb-rk3328 has you listed as a 
maintainer...


Sure, I can do it.
Sorry for reply late, I just come back to work from Chinese National 
Day holiday.


Thanks,
- Kever


Thanks,
Philipp.

On 01.10.2018, at 14:51, Lukasz Majewski > wrote:


On Tue, 25 Sep 2018 13:28:14 +0200
Lukasz Majewski mailto:lu...@denx.de>> wrote:


Dear All,


This series aims at bringing improvements to the dwc3_generic driver
so that it can be used by most of the platforms using the dwc3
controller.

I tested this on with DRA7 and AM57x platforms for both Peripheral
and Host operations. The code to enable DM USB host & dev support
for those platforms will be submitted in a separate series.

Michal Simek has tested this series:
" I have tested it on zcu100 with usb stick, usb to ethernet
converter and also dfu.
Tested-by: Michal Simek >"


Enhancements:
- use separate Kconfig option for DM USB Periphal and DM USB Host.
This allow platforms to keep their non-DM USB peripheral code and
use the DM USB host.
- fixes the bind/probe confusion in dwc3_generic. The probe is done
when the USB device is first needed.
- handles PHYs when in the peripheral mode. The code to handle the
PHYs is shared with the host side
- handles clock and reset
- bind host controller to the more generic driver 'xhci-dwc3'


Changes in v3:
- fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This
was visible only when the device is removed.
- Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
 This fixes all build issues but one (evb-rk3328).
- Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3. This
has little impact on the footprint and should not break the runtime
as the xhci-rockchip driver has its own probe function.
 Nevertheless this was !!! NOT TESTED !!! by lack of hw


Can somebody test this patch set on rk3328 and provide Tested-by tag?


Anyone could test this patch series?

Thanks in advance :-)





Changes in v2:
- Updated commit log
- Fixed typo in thordown.c
- select DM_USB_DEV by default for zynqmp platforms

Jean-Jacques Hiblot (8):
 usb: gadget: Do not call board_usb_xxx() directly in USB gadget
   drivers
 usb: introduce a separate config option for DM USB device
 usb: udc: implement DM versions of
   usb_gadget_initialize()/_release()/_handle_interrupt()
 dwc3_generic: do not probe the USB device driver when it's bound
 dwc3: move phy operation to core.c
 configs: evb-rk3328: Enable CONFIG_USB_DWC3
 dwc3-generic: Handle the PHYs, the clocks and the reset lines
 dwc3-generic: Add select_dr_mode operation

arch/arm/Kconfig  |   2 +
cmd/fastboot.c    |   4 +-
cmd/rockusb.c |   4 +-
cmd/thordown.c    |   4 +-
cmd/usb_gadget_sdp.c  |   4 +-
cmd/usb_mass_storage.c    |   4 +-
common/dfu.c  |   6 +-
configs/evb-rk3328_defconfig  |   1 +
drivers/usb/Kconfig   |   6 ++
drivers/usb/dwc3/Kconfig  |   7 +-
drivers/usb/dwc3/core.c   |  89 +++-
drivers/usb/dwc3/dwc3-generic.c   | 207
+-
drivers/usb/dwc3/ep0.c    |   1 -
drivers/usb/gadget/ether.c    |  38 +--
drivers/usb/gadget/udc/udc-core.c |  44 +++-
drivers/usb/host/xhci-dwc3.c  |  95 ++---
include/dwc3-uboot.h  |  19 
include/linux/usb/gadget.h    |  18  18 files changed, 367
insertions(+), 186 deletions(-)






Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: 
w...@denx.de 





Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email:w...@denx.de 







___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-09 Thread Loic Devulder


On 9/25/18 11:03 AM, Jean-Jacques Hiblot wrote:
> 
> This series aims at bringing improvements to the dwc3_generic driver so
> that it can be used by most of the platforms using the dwc3 controller.
> 
> I tested this on with DRA7 and AM57x platforms for both Peripheral and Host
> operations. The code to enable DM USB host & dev support for those
> platforms will be submitted in a separate series.
> 
> Michal Simek has tested this series:
> " I have tested it on zcu100 with usb stick, usb to ethernet converter and
> also dfu.
> Tested-by: Michal Simek "
> 

Tested-by: Loic Devulder 

I tested this series of patches on Khadas VIM as well as Libretech-cc
board and it resolved this issue ("USB0:   "Synchronous Abort" handler,
esr 0x96000210") I had on both cards (I think on all s905x Amlogic SBC)!

> Enhancements:
> - use separate Kconfig option for DM USB Periphal and DM USB Host. This
> allow platforms to keep their non-DM USB peripheral code and use the DM
> USB host.
> - fixes the bind/probe confusion in dwc3_generic. The probe is done when
> the USB device is first needed.
> - handles PHYs when in the peripheral mode. The code to handle the PHYs is
> shared with the host side
> - handles clock and reset
> - bind host controller to the more generic driver 'xhci-dwc3'
> 
> 
> Changes in v3:
> - fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This was
>   visible only when the device is removed.
> - Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
>   This fixes all build issues but one (evb-rk3328).
> - Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3. This has
>   little impact on the footprint and should not break the runtime as the
>   xhci-rockchip driver has its own probe function.
>   Nevertheless this was !!! NOT TESTED !!! by lack of hw
> 
> Changes in v2:
> - Updated commit log
> - Fixed typo in thordown.c
> - select DM_USB_DEV by default for zynqmp platforms
> 
> Jean-Jacques Hiblot (8):
>   usb: gadget: Do not call board_usb_xxx() directly in USB gadget
> drivers
>   usb: introduce a separate config option for DM USB device
>   usb: udc: implement DM versions of
> usb_gadget_initialize()/_release()/_handle_interrupt()
>   dwc3_generic: do not probe the USB device driver when it's bound
>   dwc3: move phy operation to core.c
>   configs: evb-rk3328: Enable CONFIG_USB_DWC3
>   dwc3-generic: Handle the PHYs, the clocks and the reset lines
>   dwc3-generic: Add select_dr_mode operation
> 
>  arch/arm/Kconfig  |   2 +
>  cmd/fastboot.c|   4 +-
>  cmd/rockusb.c |   4 +-
>  cmd/thordown.c|   4 +-
>  cmd/usb_gadget_sdp.c  |   4 +-
>  cmd/usb_mass_storage.c|   4 +-
>  common/dfu.c  |   6 +-
>  configs/evb-rk3328_defconfig  |   1 +
>  drivers/usb/Kconfig   |   6 ++
>  drivers/usb/dwc3/Kconfig  |   7 +-
>  drivers/usb/dwc3/core.c   |  89 +++-
>  drivers/usb/dwc3/dwc3-generic.c   | 207 
> +-
>  drivers/usb/dwc3/ep0.c|   1 -
>  drivers/usb/gadget/ether.c|  38 +--
>  drivers/usb/gadget/udc/udc-core.c |  44 +++-
>  drivers/usb/host/xhci-dwc3.c  |  95 ++---
>  include/dwc3-uboot.h  |  19 
>  include/linux/usb/gadget.h|  18 
>  18 files changed, 367 insertions(+), 186 deletions(-)
> 

-- 
Loic Devulder  | ldevulder@irc
0x175A963893C85F55 | D220 DEF5 56A3 DE00 9DAA 78BA 175A 9638 93C8 5F55
Senior QA Engineer | Container & Storage Solutions Quality Assurance
team (qa-css)
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB,
21284 (AG Nuernberg)



signature.asc
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-07 Thread Kever Yang
Hi Philipp,


On 10/01/2018 09:26 PM, Philipp Tomsich wrote:
> Kever,
>
> Could you test this?
> I assume you have the board, as the evb-rk3328 has you listed as a
> maintainer...

Sure, I can do it.
Sorry for reply late, I just come back to work from Chinese National Day
holiday.

Thanks,
- Kever
>
> Thanks,
> Philipp.
>
>> On 01.10.2018, at 14:51, Lukasz Majewski > > wrote:
>>
>> On Tue, 25 Sep 2018 13:28:14 +0200
>> Lukasz Majewski mailto:lu...@denx.de>> wrote:
>>
>>> Dear All,
>>>
 This series aims at bringing improvements to the dwc3_generic driver
 so that it can be used by most of the platforms using the dwc3
 controller.

 I tested this on with DRA7 and AM57x platforms for both Peripheral
 and Host operations. The code to enable DM USB host & dev support
 for those platforms will be submitted in a separate series.

 Michal Simek has tested this series:
 " I have tested it on zcu100 with usb stick, usb to ethernet
 converter and also dfu.
 Tested-by: Michal Simek >>> >"

 Enhancements:
 - use separate Kconfig option for DM USB Periphal and DM USB Host.
 This allow platforms to keep their non-DM USB peripheral code and
 use the DM USB host.
 - fixes the bind/probe confusion in dwc3_generic. The probe is done
 when the USB device is first needed.
 - handles PHYs when in the peripheral mode. The code to handle the
 PHYs is shared with the host side
 - handles clock and reset
 - bind host controller to the more generic driver 'xhci-dwc3'


 Changes in v3:
 - fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This
 was visible only when the device is removed.
 - Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
  This fixes all build issues but one (evb-rk3328).
 - Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3. This
 has little impact on the footprint and should not break the runtime
 as the xhci-rockchip driver has its own probe function.
  Nevertheless this was !!! NOT TESTED !!! by lack of hw  
>>>
>>> Can somebody test this patch set on rk3328 and provide Tested-by tag?
>>
>> Anyone could test this patch series?
>>
>> Thanks in advance :-)
>>
>>>

 Changes in v2:
 - Updated commit log
 - Fixed typo in thordown.c
 - select DM_USB_DEV by default for zynqmp platforms

 Jean-Jacques Hiblot (8):
  usb: gadget: Do not call board_usb_xxx() directly in USB gadget
    drivers
  usb: introduce a separate config option for DM USB device
  usb: udc: implement DM versions of
    usb_gadget_initialize()/_release()/_handle_interrupt()
  dwc3_generic: do not probe the USB device driver when it's bound
  dwc3: move phy operation to core.c
  configs: evb-rk3328: Enable CONFIG_USB_DWC3
  dwc3-generic: Handle the PHYs, the clocks and the reset lines
  dwc3-generic: Add select_dr_mode operation

 arch/arm/Kconfig  |   2 +
 cmd/fastboot.c    |   4 +-
 cmd/rockusb.c |   4 +-
 cmd/thordown.c    |   4 +-
 cmd/usb_gadget_sdp.c  |   4 +-
 cmd/usb_mass_storage.c    |   4 +-
 common/dfu.c  |   6 +-
 configs/evb-rk3328_defconfig  |   1 +
 drivers/usb/Kconfig   |   6 ++
 drivers/usb/dwc3/Kconfig  |   7 +-
 drivers/usb/dwc3/core.c   |  89 +++-
 drivers/usb/dwc3/dwc3-generic.c   | 207
 +-
 drivers/usb/dwc3/ep0.c    |   1 -
 drivers/usb/gadget/ether.c    |  38 +--
 drivers/usb/gadget/udc/udc-core.c |  44 +++-
 drivers/usb/host/xhci-dwc3.c  |  95 ++---
 include/dwc3-uboot.h  |  19 
 include/linux/usb/gadget.h    |  18  18 files changed, 367
 insertions(+), 186 deletions(-)

>>>
>>>
>>>
>>>
>>> Best regards,
>>>
>>> Lukasz Majewski
>>>
>>> --
>>>
>>> DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
>>> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>>> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email:
>>> w...@denx.de 
>>
>>
>>
>>
>> Best regards,
>>
>> Lukasz Majewski
>>
>> --
>>
>> DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
>> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
>> 
>

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-01 Thread Philipp Tomsich
Kever,

Could you test this?
I assume you have the board, as the evb-rk3328 has you listed as a maintainer...

Thanks,
Philipp.

> On 01.10.2018, at 14:51, Lukasz Majewski  wrote:
> 
> On Tue, 25 Sep 2018 13:28:14 +0200
> Lukasz Majewski mailto:lu...@denx.de>> wrote:
> 
>> Dear All,
>> 
>>> This series aims at bringing improvements to the dwc3_generic driver
>>> so that it can be used by most of the platforms using the dwc3
>>> controller.
>>> 
>>> I tested this on with DRA7 and AM57x platforms for both Peripheral
>>> and Host operations. The code to enable DM USB host & dev support
>>> for those platforms will be submitted in a separate series.
>>> 
>>> Michal Simek has tested this series:
>>> " I have tested it on zcu100 with usb stick, usb to ethernet
>>> converter and also dfu.
>>> Tested-by: Michal Simek "
>>> 
>>> Enhancements:
>>> - use separate Kconfig option for DM USB Periphal and DM USB Host.
>>> This allow platforms to keep their non-DM USB peripheral code and
>>> use the DM USB host.
>>> - fixes the bind/probe confusion in dwc3_generic. The probe is done
>>> when the USB device is first needed.
>>> - handles PHYs when in the peripheral mode. The code to handle the
>>> PHYs is shared with the host side
>>> - handles clock and reset
>>> - bind host controller to the more generic driver 'xhci-dwc3'
>>> 
>>> 
>>> Changes in v3:
>>> - fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This
>>> was visible only when the device is removed.
>>> - Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
>>>  This fixes all build issues but one (evb-rk3328).
>>> - Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3. This
>>> has little impact on the footprint and should not break the runtime
>>> as the xhci-rockchip driver has its own probe function.
>>>  Nevertheless this was !!! NOT TESTED !!! by lack of hw  
>> 
>> Can somebody test this patch set on rk3328 and provide Tested-by tag?
> 
> Anyone could test this patch series?
> 
> Thanks in advance :-)
> 
>> 
>>> 
>>> Changes in v2:
>>> - Updated commit log
>>> - Fixed typo in thordown.c
>>> - select DM_USB_DEV by default for zynqmp platforms
>>> 
>>> Jean-Jacques Hiblot (8):
>>>  usb: gadget: Do not call board_usb_xxx() directly in USB gadget
>>>drivers
>>>  usb: introduce a separate config option for DM USB device
>>>  usb: udc: implement DM versions of
>>>usb_gadget_initialize()/_release()/_handle_interrupt()
>>>  dwc3_generic: do not probe the USB device driver when it's bound
>>>  dwc3: move phy operation to core.c
>>>  configs: evb-rk3328: Enable CONFIG_USB_DWC3
>>>  dwc3-generic: Handle the PHYs, the clocks and the reset lines
>>>  dwc3-generic: Add select_dr_mode operation
>>> 
>>> arch/arm/Kconfig  |   2 +
>>> cmd/fastboot.c|   4 +-
>>> cmd/rockusb.c |   4 +-
>>> cmd/thordown.c|   4 +-
>>> cmd/usb_gadget_sdp.c  |   4 +-
>>> cmd/usb_mass_storage.c|   4 +-
>>> common/dfu.c  |   6 +-
>>> configs/evb-rk3328_defconfig  |   1 +
>>> drivers/usb/Kconfig   |   6 ++
>>> drivers/usb/dwc3/Kconfig  |   7 +-
>>> drivers/usb/dwc3/core.c   |  89 +++-
>>> drivers/usb/dwc3/dwc3-generic.c   | 207
>>> +-
>>> drivers/usb/dwc3/ep0.c|   1 -
>>> drivers/usb/gadget/ether.c|  38 +--
>>> drivers/usb/gadget/udc/udc-core.c |  44 +++-
>>> drivers/usb/host/xhci-dwc3.c  |  95 ++---
>>> include/dwc3-uboot.h  |  19 
>>> include/linux/usb/gadget.h|  18  18 files changed, 367
>>> insertions(+), 186 deletions(-)
>>> 
>> 
>> 
>> 
>> 
>> Best regards,
>> 
>> Lukasz Majewski
>> 
>> --
>> 
>> DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
>> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
> 
> 
> 
> 
> Best regards,
> 
> Lukasz Majewski
> 
> --
> 
> DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de 
> 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-10-01 Thread Lukasz Majewski
On Tue, 25 Sep 2018 13:28:14 +0200
Lukasz Majewski  wrote:

> Dear All,
> 
> > This series aims at bringing improvements to the dwc3_generic driver
> > so that it can be used by most of the platforms using the dwc3
> > controller.
> > 
> > I tested this on with DRA7 and AM57x platforms for both Peripheral
> > and Host operations. The code to enable DM USB host & dev support
> > for those platforms will be submitted in a separate series.
> > 
> > Michal Simek has tested this series:
> > " I have tested it on zcu100 with usb stick, usb to ethernet
> > converter and also dfu.
> > Tested-by: Michal Simek "
> > 
> > Enhancements:
> > - use separate Kconfig option for DM USB Periphal and DM USB Host.
> > This allow platforms to keep their non-DM USB peripheral code and
> > use the DM USB host.
> > - fixes the bind/probe confusion in dwc3_generic. The probe is done
> > when the USB device is first needed.
> > - handles PHYs when in the peripheral mode. The code to handle the
> > PHYs is shared with the host side
> > - handles clock and reset
> > - bind host controller to the more generic driver 'xhci-dwc3'
> > 
> > 
> > Changes in v3:
> > - fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This
> > was visible only when the device is removed.
> > - Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
> >   This fixes all build issues but one (evb-rk3328).
> > - Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3. This
> > has little impact on the footprint and should not break the runtime
> > as the xhci-rockchip driver has its own probe function.
> >   Nevertheless this was !!! NOT TESTED !!! by lack of hw  
> 
> Can somebody test this patch set on rk3328 and provide Tested-by tag?

Anyone could test this patch series?

Thanks in advance :-)

> 
> > 
> > Changes in v2:
> > - Updated commit log
> > - Fixed typo in thordown.c
> > - select DM_USB_DEV by default for zynqmp platforms
> > 
> > Jean-Jacques Hiblot (8):
> >   usb: gadget: Do not call board_usb_xxx() directly in USB gadget
> > drivers
> >   usb: introduce a separate config option for DM USB device
> >   usb: udc: implement DM versions of
> > usb_gadget_initialize()/_release()/_handle_interrupt()
> >   dwc3_generic: do not probe the USB device driver when it's bound
> >   dwc3: move phy operation to core.c
> >   configs: evb-rk3328: Enable CONFIG_USB_DWC3
> >   dwc3-generic: Handle the PHYs, the clocks and the reset lines
> >   dwc3-generic: Add select_dr_mode operation
> > 
> >  arch/arm/Kconfig  |   2 +
> >  cmd/fastboot.c|   4 +-
> >  cmd/rockusb.c |   4 +-
> >  cmd/thordown.c|   4 +-
> >  cmd/usb_gadget_sdp.c  |   4 +-
> >  cmd/usb_mass_storage.c|   4 +-
> >  common/dfu.c  |   6 +-
> >  configs/evb-rk3328_defconfig  |   1 +
> >  drivers/usb/Kconfig   |   6 ++
> >  drivers/usb/dwc3/Kconfig  |   7 +-
> >  drivers/usb/dwc3/core.c   |  89 +++-
> >  drivers/usb/dwc3/dwc3-generic.c   | 207
> > +-
> > drivers/usb/dwc3/ep0.c|   1 -
> > drivers/usb/gadget/ether.c|  38 +--
> > drivers/usb/gadget/udc/udc-core.c |  44 +++-
> > drivers/usb/host/xhci-dwc3.c  |  95 ++---
> > include/dwc3-uboot.h  |  19 
> > include/linux/usb/gadget.h|  18  18 files changed, 367
> > insertions(+), 186 deletions(-)
> >   
> 
> 
> 
> 
> Best regards,
> 
> Lukasz Majewski
> 
> --
> 
> DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de


pgpp56nyndkG9.pgp
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v3 0/8] Improvements for the dwc3_generic driver

2018-09-25 Thread Lukasz Majewski
Dear All,

> This series aims at bringing improvements to the dwc3_generic driver
> so that it can be used by most of the platforms using the dwc3
> controller.
> 
> I tested this on with DRA7 and AM57x platforms for both Peripheral
> and Host operations. The code to enable DM USB host & dev support for
> those platforms will be submitted in a separate series.
> 
> Michal Simek has tested this series:
> " I have tested it on zcu100 with usb stick, usb to ethernet
> converter and also dfu.
> Tested-by: Michal Simek "
> 
> Enhancements:
> - use separate Kconfig option for DM USB Periphal and DM USB Host.
> This allow platforms to keep their non-DM USB peripheral code and use
> the DM USB host.
> - fixes the bind/probe confusion in dwc3_generic. The probe is done
> when the USB device is first needed.
> - handles PHYs when in the peripheral mode. The code to handle the
> PHYs is shared with the host side
> - handles clock and reset
> - bind host controller to the more generic driver 'xhci-dwc3'
> 
> 
> Changes in v3:
> - fixes bug dwc3_setup_phy(): the phy arrays wasn't returned. This was
>   visible only when the device is removed.
> - Stub the DWC3 PHY operations if CONFIG_IS_ENABLED(PHY) is false.
>   This fixes all build issues but one (evb-rk3328).
> - Fix build issue with evb-rk3328 by enabling CONFIG_USB_DWC3. This
> has little impact on the footprint and should not break the runtime
> as the xhci-rockchip driver has its own probe function.
>   Nevertheless this was !!! NOT TESTED !!! by lack of hw

Can somebody test this patch set on rk3328 and provide Tested-by tag?

> 
> Changes in v2:
> - Updated commit log
> - Fixed typo in thordown.c
> - select DM_USB_DEV by default for zynqmp platforms
> 
> Jean-Jacques Hiblot (8):
>   usb: gadget: Do not call board_usb_xxx() directly in USB gadget
> drivers
>   usb: introduce a separate config option for DM USB device
>   usb: udc: implement DM versions of
> usb_gadget_initialize()/_release()/_handle_interrupt()
>   dwc3_generic: do not probe the USB device driver when it's bound
>   dwc3: move phy operation to core.c
>   configs: evb-rk3328: Enable CONFIG_USB_DWC3
>   dwc3-generic: Handle the PHYs, the clocks and the reset lines
>   dwc3-generic: Add select_dr_mode operation
> 
>  arch/arm/Kconfig  |   2 +
>  cmd/fastboot.c|   4 +-
>  cmd/rockusb.c |   4 +-
>  cmd/thordown.c|   4 +-
>  cmd/usb_gadget_sdp.c  |   4 +-
>  cmd/usb_mass_storage.c|   4 +-
>  common/dfu.c  |   6 +-
>  configs/evb-rk3328_defconfig  |   1 +
>  drivers/usb/Kconfig   |   6 ++
>  drivers/usb/dwc3/Kconfig  |   7 +-
>  drivers/usb/dwc3/core.c   |  89 +++-
>  drivers/usb/dwc3/dwc3-generic.c   | 207
> +-
> drivers/usb/dwc3/ep0.c|   1 -
> drivers/usb/gadget/ether.c|  38 +--
> drivers/usb/gadget/udc/udc-core.c |  44 +++-
> drivers/usb/host/xhci-dwc3.c  |  95 ++---
> include/dwc3-uboot.h  |  19 
> include/linux/usb/gadget.h|  18  18 files changed, 367
> insertions(+), 186 deletions(-)
> 




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de


pgpbiboLNPIAZ.pgp
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot