* [PATCH] ARM: OMAP: fix apollon USB device support
@ 2006-10-30 10:54 Kyungmin Park
0 siblings, 0 replies; only message in thread
From: Kyungmin Park @ 2006-10-30 10:54 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
Hi David,
In the previous patch, there's some changes in UDC.
It makes the apollon USB can't work.
After some work, I found that you changed the double-buffering condition. It breaks the apollon behavior.
Please append apollon board condition when we use the pio mode, then don't use double-buffering.
and also fix some compiler warning
ARM: OMAP: fix apollon USB device support
- Add apollon use the non-double-buffering in PIO mode
- fix compiler warning
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
--
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
index ceba0a4..449b76b 100644
--- a/drivers/usb/gadget/omap_udc.c
+++ b/drivers/usb/gadget/omap_udc.c
@@ -2579,6 +2579,7 @@ omap_ep_setup(char *name, u8 addr, u8 ty
* (for more reliable behavior)
*/
if ((!use_dma && (addr & USB_DIR_IN))
+ || machine_is_omap_apollon()
|| cpu_is_omap15xx())
dbuf = 0;
@@ -2963,9 +2964,10 @@ known:
}
create_proc_file();
- device_add(&udc->gadget.dev);
- return 0;
-
+ status = device_add(&udc->gadget.dev);
+ if (!status)
+ return status;
+ /* If fail, fall through */
#ifdef USE_ISO
cleanup3:
free_irq(pdev->resource[2].start, udc);
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-30 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30 10:54 [PATCH] ARM: OMAP: fix apollon USB device support Kyungmin Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox