[U-Boot-Users] [PATCH] drivers/usb : move usb drivers to drivers/usb

plagnioj at jcrosoft.com
2007-10-13T15:14:26Z

On 09:49 Fri 12 Oct , Markus Klotzb?cher wrote:
> Jean-Christophe,
>
> Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
>
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > ---
> > drivers/Makefile | 11 -----------
> > drivers/usb/Makefile | 8 +++++++-
> > drivers/{ => usb}/isp116x-hcd.c | 0
>
> We had an discussion some time ago on how and where to put the different
> parts of the U-Boot USB stack. Basically we agreed to move all usb code
> to drivers/usb/ but furthermore we wanted to structure it in a similar
> way as the linux kernel does. Please see the following thread:
>
> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/28154/focus=28177
>
> Can restructure the drivers like this?
>

I've read the thread,
and I agree with the conclusion and propose to merge the usb directory
as follow

drivers/usb/host/

- generic and specific host controller drivers (ohci, uhci)

drivers/usb/core/

- usb core logic

drivers/usb/storage/

- storage class related code

drivers/usb/serial/

- e.g. serial support

drivers/usb/keyboard/

- e.g. serial support

drivers/usb/gadget/

- usb gadget drivers

drivers/usb/misc/

- usb misc drivers

with the following nomenclature
[type]-cpu.{h,c}

as example
ohci-ppc4xx.c

I propose to begin with the drivers present in drivers and after merge
the cpu drivers which an invasive work

Best Regards

Jean-Christophe PLAGNIOL-VILLARD