Commit 18577a61 authored by Domen Puncer's avatar Domen Puncer Committed by Greg Kroah-Hartman

[PATCH] USB: au1xxx: compile fixes for OHCI for au1200

Compile fixes for au1200 ohci.

First part looks a bit hackish... but it works for me.
Signed-off-by: default avatarDomen Puncer <domen.puncer@ultra.si>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 155dbfd8
...@@ -101,9 +101,11 @@ static void au1xxx_start_ohc(struct platform_device *dev) ...@@ -101,9 +101,11 @@ static void au1xxx_start_ohc(struct platform_device *dev)
#endif /* Au1200 */ #endif /* Au1200 */
#ifndef CONFIG_SOC_AU1200
/* wait for reset complete (read register twice; see au1500 errata) */ /* wait for reset complete (read register twice; see au1500 errata) */
while (au_readl(USB_HOST_CONFIG), while (au_readl(USB_HOST_CONFIG),
!(au_readl(USB_HOST_CONFIG) & USBH_ENABLE_RD)) !(au_readl(USB_HOST_CONFIG) & USBH_ENABLE_RD))
#endif
udelay(1000); udelay(1000);
printk(KERN_DEBUG __FILE__ printk(KERN_DEBUG __FILE__
...@@ -157,9 +159,9 @@ static int usb_ohci_au1xxx_probe(const struct hc_driver *driver, ...@@ -157,9 +159,9 @@ static int usb_ohci_au1xxx_probe(const struct hc_driver *driver,
/* Au1200 AB USB does not support coherent memory */ /* Au1200 AB USB does not support coherent memory */
if (!(read_c0_prid() & 0xff)) { if (!(read_c0_prid() & 0xff)) {
pr_info("%s: this is chip revision AB !!\n", pr_info("%s: this is chip revision AB !!\n",
dev->dev.name); dev->name);
pr_info("%s: update your board or re-configure the kernel\n", pr_info("%s: update your board or re-configure the kernel\n",
dev->dev.name); dev->name);
return -ENODEV; return -ENODEV;
} }
#endif #endif
......
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