Sync USB code with mainline
authorTony Lindgren <tony@atomide.com>
Fri, 5 Sep 2008 00:56:05 +0000 (17:56 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 5 Sep 2008 00:56:05 +0000 (17:56 -0700)
Based on comments from Dave:

NAK.  The Apollon-specific bit should be done some other way,
and whatever silicon issue it's covering up is not specific to
that board ...

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/gadget/omap_udc.c

index 3d81193..af76a25 100644 (file)
@@ -2604,9 +2604,7 @@ omap_ep_setup(char *name, u8 addr, u8 type,
                 * and ignored for PIO-IN on newer chips
                 * (for more reliable behavior)
                 */
-               if ((!use_dma && (addr & USB_DIR_IN))
-                               || machine_is_omap_apollon()
-                               || cpu_is_omap15xx())
+               if (!use_dma || cpu_is_omap15xx() || cpu_is_omap24xx())
                        dbuf = 0;
 
                switch (maxp) {