author | Arnd Bergmann <arnd@arndb.de> | |
Sun, 2 Oct 2011 14:45:45 +0000 (16:45 +0200) | ||
committer | Vaibhav Hiremath <hvaibhav@ti.com> | |
Mon, 23 Jan 2012 19:13:59 +0000 (00:43 +0530) | ||
commit | 7f1c39dbcff05f582de37328a4b937f8b835fcbb | |
tree | 61d7a46d46d210b3748a65f97ac7f43db231d43e | tree | snapshot (tar.xz tar.gz zip) |
parent | 45c64bce8df420440f74b1280952cd67956ba1fa | commit | diff |
usb: musb: use a Kconfig choice to pick the right DMA method
The logic to allow only one DMA driver in MUSB is currently
flawed, because it also allows picking no DMA driver at all
and also not selecting PIO mode.
Using a choice statement makes this foolproof for now and
also simplifies the Makefile.
Unfortunately, we will have to revisit this when we start
supporting multiple ARM platforms in a single kernel binary,
because at that point we will actually need to select
multiple DMA drivers and pick the right one at run-time.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
The logic to allow only one DMA driver in MUSB is currently
flawed, because it also allows picking no DMA driver at all
and also not selecting PIO mode.
Using a choice statement makes this foolproof for now and
also simplifies the Makefile.
Unfortunately, we will have to revisit this when we start
supporting multiple ARM platforms in a single kernel binary,
because at that point we will actually need to select
multiple DMA drivers and pick the right one at run-time.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/Kconfig | diff | blob | history | |
drivers/usb/musb/Makefile | diff | blob | history |