From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/13] at91: move usb driver to drivers/usb
Date: Wed, 1 Apr 2009 18:31:43 +0200 [thread overview]
Message-ID: <20090401163143.GG14366@game.jcrosoft.org> (raw)
In-Reply-To: <49D3904C.1090301@gandalf.sssup.it>
On 18:03 Wed 01 Apr , Michael Trimarchi wrote:
> ksi at koi8.net wrote:
>> On Wed, 1 Apr 2009, Stefan Roese wrote:
>>
>>
>>> On Tuesday 31 March 2009, Wolfgang Denk wrote:
>>>
>>>> In message <20090331192117.GF24923@game.jcrosoft.org> you wrote:
>>>>
>>>>>>> drivers/usb/Makefile > | 1 +
>>>>>>> .../at91/usb.c => drivers/usb/atmel_usb.c | > 0
>>>>>>> rename cpu/arm926ejs/at91/usb.c => drivers/usb/atmel_usb.c
>>>>>>>
>>> (100%)
>>>
>>>>>> Same here, this is architecture specific code, why move it to
>>>>>>
>>> generic
>>>
>>>>>> cod> e?
>>>>>>
>>>>> it's the at91 usb drivers and we need to have it in the driver/usb
>>>>>
>>>> Why do we need to have it in the driver/usb ?
>>>>
>>>> Please explain in detail.
>>>>
>>> >From what I remember we all agreed to move the device drivers (e.g.
>>> ethernet, NAND, USB, serial etc) from the architecture/board (cpu/...
>>> board/...)
>>> to the drivers directories at some time.
>>>
>>> Speaking for PPC4xx, the 4xx ethernet driver has recently been moved
>>> from cpu/ppc4xx to drivers/net. And I'm planning to move the 4xx NAND
>>> driver
>>> (and others) soon too.
>>>
>>> So if this atmel_usb.c driver isn't just platform USB init code, but a
>>> real USB driver, then I'm voting to move it to drivers/usb as well.
>>>
>>
>> I also vote for moving _ALL_ the drivers (i2c, usb, net, etc.) to
>> appropriate directories under drivers/ no matter architecture specific they
>> are or not.
>>
>> This will make the tree more logical and one wouldn't have to chase say USB
>> driver all over the source tree.
>>
>> Also it is a first step to general overhaul that would allow for multiple
>> drivers support. The fact some SoC has a built-in, say USB controller does
>> _NOT_ mean there is no more USB controllers on the same board. Some can be
>> on PCI bus etc. The same is true for each and every other driver. And we
>> should _NOT_ treat some drivers (e.g. SPI) as marginal. AT91RM9200 for
>> example can _NOT_ boot off of parallel flash because of silicon error so it
>> boots off of SPI DataFlash thus making SPI driver essential for the system.
>>
>> To contain drivers is a reason for drivers/* to exist, isn't it?
>>
>> ---
>> ******************************************************************
>> * KSI at home KOI8 Net < > The impossible we do immediately. *
>> * Las Vegas NV, USA < > Miracles require 24-hour notice. *
>> ******************************************************************
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>>
> Somenthing like that for usb?
>
> :-----core
> : :-----include
> :-----device
> : :-----include
> :-----host
> : :-----include
include is a few overkill
code
host
gadget
I've in mind
Best Regards,
J.
next prev parent reply other threads:[~2009-04-01 16:31 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-27 22:30 [U-Boot] [PATCH 01/13 V2] at91sam9/at91cap: spi init add hardware chip select support Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 02/13 V2] at91sam9: add watchdog support Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 03/13] at91: rename DATAFLASH_MMC_SELECT to CONFIG_DATAFLASH_MMC_SELECT Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 04/13] at91rm9200dk: Move conditional compilation to Makefile Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 05/13] add dataflash mmc mux missing support Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 06/13] Add support for the AT91RM9200EK Board Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 07/13] at91rm9200: move serial driver to drivers/serial Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 08/13] at91rm9200: move serial shutdown code to serial drivers Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 09/13] at91rm9200: Reset update Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 10/13] at91: move usb driver to drivers/usb Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 11/13] at91: move dataflash spi driver to drivers/spi Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 12/13] at91: add hardware i2c drivers Jean-Christophe PLAGNIOL-VILLARD
2009-03-27 22:30 ` [U-Boot] [PATCH 13/13] at91sam9263ek: active hush and auto compelete support Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 20:35 ` Wolfgang Denk
2009-03-31 22:42 ` Stelian Pop
2009-03-30 5:53 ` [U-Boot] [PATCH 12/13] at91: add hardware i2c drivers Heiko Schocher
2009-03-30 7:24 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-30 8:26 ` Heiko Schocher
2009-03-30 8:50 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-30 10:43 ` Wolfgang Denk
2009-03-30 11:55 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 20:40 ` Wolfgang Denk
2009-05-14 6:06 ` Daniel Gorsulowski
2009-03-31 18:28 ` [U-Boot] [PATCH 10/13] at91: move usb driver to drivers/usb Remy Bohmer
2009-03-31 19:21 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 20:38 ` Wolfgang Denk
2009-03-31 21:55 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-01 6:55 ` Stefan Roese
2009-04-01 7:25 ` Remy Bohmer
2009-04-01 7:22 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-01 7:57 ` Remy Bohmer
2009-04-01 8:01 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-01 9:07 ` Wolfgang Denk
2009-04-01 8:13 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-01 8:59 ` Michael Trimarchi
2009-04-01 9:27 ` Stefan Roese
2009-04-01 9:44 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-01 12:19 ` Stefan Roese
2009-04-01 17:21 ` [U-Boot] [RFC PATCH] drivers/usb: regorganisation Jean-Christophe PLAGNIOL-VILLARD
2009-04-01 22:12 ` Wolfgang Denk
2009-04-02 5:22 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-02 15:26 ` Remy Bohmer
2009-04-02 16:55 ` [U-Boot] [RFC PATCH V2] " Jean-Christophe PLAGNIOL-VILLARD
2009-04-02 18:07 ` Wolfgang Denk
2009-04-02 19:27 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-02 23:06 ` Wolfgang Denk
2009-04-03 5:10 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-03 10:46 ` [U-Boot] [PATCH] " Jean-Christophe PLAGNIOL-VILLARD
2009-04-03 11:19 ` Remy Bohmer
2009-04-02 11:11 ` [U-Boot] [RFC PATCH] " Mike Frysinger
2009-04-01 15:56 ` [U-Boot] [PATCH 10/13] at91: move usb driver to drivers/usb ksi at koi8.net
2009-04-01 15:53 ` ksi at koi8.net
2009-04-01 15:48 ` ksi at koi8.net
2009-04-01 16:03 ` Michael Trimarchi
2009-04-01 16:31 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-04-01 16:28 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-01 19:42 ` Scott Wood
2009-03-31 21:22 ` Remy Bohmer
2009-03-31 20:36 ` Wolfgang Denk
2009-04-01 22:15 ` [U-Boot] [PATCH 08/13] at91rm9200: move serial shutdown code to serial drivers Wolfgang Denk
2009-04-01 22:14 ` [U-Boot] [PATCH 07/13] at91rm9200: move serial driver to drivers/serial Wolfgang Denk
2009-05-26 15:47 ` [U-Boot] [PATCH 06/13] Add support for the AT91RM9200EK Board Haavard Skinnemoen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090401163143.GG14366@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.