Commit 313980c9 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: omap_udc updates (mostly cleanups)

Various USB patches, mostly for portability:

  - Fifo mode 1 didn't work previously (oopsed), so now it's fixed and
    (why not) defines even more endpoints for composite devices.

  - OMAP 1710 doesn't have an internal transceiver.

  - Small PM update:  if the USB link is suspended, don't disconnect on
    entry to deep sleep.

  - Be more correct about handling zero length control reads.  OMAP
    seems to mis-handle that protocol peculiarity though; best avoided.

  - Platform device resources (for UDC and OTG controllers) now use
    physical addresses, so /proc/iomem is more consistent.

  - Minor cleanups, notably (by volume) for "sparse" NULL warnings.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
parent d794ac7a
...@@ -288,8 +288,8 @@ static void usb_release(struct device *dev) ...@@ -288,8 +288,8 @@ static void usb_release(struct device *dev)
static struct resource udc_resources[] = { static struct resource udc_resources[] = {
/* order is significant! */ /* order is significant! */
{ /* registers */ { /* registers */
.start = IO_ADDRESS(UDC_BASE), .start = UDC_BASE,
.end = IO_ADDRESS(UDC_BASE + 0xff), .end = UDC_BASE + 0xff,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, { /* general IRQ */ }, { /* general IRQ */
.start = IH2_BASE + 20, .start = IH2_BASE + 20,
...@@ -355,8 +355,8 @@ static struct platform_device ohci_device = { ...@@ -355,8 +355,8 @@ static struct platform_device ohci_device = {
static struct resource otg_resources[] = { static struct resource otg_resources[] = {
/* order is significant! */ /* order is significant! */
{ {
.start = IO_ADDRESS(OTG_BASE), .start = OTG_BASE,
.end = IO_ADDRESS(OTG_BASE + 0xff), .end = OTG_BASE + 0xff,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, { }, {
.start = IH2_BASE + 8, .start = IH2_BASE + 8,
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment