summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:23:57 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:23:57 -0600
commite4889414c894a016441ed56b34a3d672250a2e78 (patch)
tree4f474c6cdf7dafcb790d362f655359301805a36e
parent6ebdc11c26d24528a29140f0dda03503e2bad6af (diff)
USB: Even more descriptive device registration messages.
Patch to fix Bugzilla 748. More descriptive USB device registration messages. Add transceiver info. Applies to linux 2.6.22 kernel for MX27 platform. http://www.bitshrine.org/gpp/linux-2.6.22-mx-USB-Even-more-descriptive-device-registrat.patch
-rw-r--r--arch/arm/mach-mx27/usb.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-mx27/usb.c b/arch/arm/mach-mx27/usb.c
index 07672ee78f16..3aa63e3dab4b 100644
--- a/arch/arm/mach-mx27/usb.c
+++ b/arch/arm/mach-mx27/usb.c
@@ -130,7 +130,7 @@ static struct resource usbh2_resources[] = {
#if defined(CONFIG_USB_EHCI_ARC_OTG) || defined(CONFIG_USB_GADGET_ARC) || defined(CONFIG_OTG_BTC_ARC)
#if defined(CONFIG_MC13783_MXC)
static struct fsl_usb2_platform_data mxc_serial_host_config = {
- .name = "OTG serial host",
+ .name = "OTG",
.platform_init = usbotg_init,
.platform_uninit = usbotg_uninit,
.usbmode = (u32) &UOG_USBMODE,
@@ -144,7 +144,7 @@ static struct fsl_usb2_platform_data mxc_serial_host_config = {
};
#elif defined(CONFIG_ISP1301_MXC)
static struct fsl_usb2_platform_data mxc_serial_host_config = {
- .name = "OTG serial host",
+ .name = "OTG",
.platform_init = usbotg_init,
.platform_uninit = usbotg_uninit,
.usbmode = (u32) &UOG_USBMODE,
@@ -159,7 +159,7 @@ static struct fsl_usb2_platform_data mxc_serial_host_config = {
#endif
#if defined(CONFIG_ISP1504_MXC)
static struct fsl_usb2_platform_data mxc_isp1504_config = {
- .name = "OTG ULPI host",
+ .name = "OTG",
.platform_init = usbotg_init,
.platform_uninit = usbotg_uninit,
.usbmode = (u32) &UOG_USBMODE,
@@ -299,6 +299,8 @@ static struct platform_device fsl_device = {
static int __init mx27_usb_init(void)
{
+ struct fsl_usb2_platform_data __attribute__((unused)) *pdata;
+
pr_debug("%s: \n", __FUNCTION__);
#ifdef CONFIG_USB_EHCI_ARC_H1
@@ -322,10 +324,13 @@ static int __init mx27_usb_init(void)
#endif
#if defined(CONFIG_USB_GADGET_ARC) || defined(CONFIG_OTG_BTC_ARC)
- if (platform_device_register(&otg_udc_device))
+ if (platform_device_register(&otg_udc_device)) {
printk(KERN_ERR "usb: can't register OTG Gadget\n");
- else
- printk(KERN_INFO "usb: OTG Gadget registered\n");
+ } else {
+ pdata = otg_udc_device.dev.platform_data;
+ printk(KERN_INFO "usb: OTG gadget (%s) registered\n",
+ pdata->transceiver);
+ }
#endif
#ifdef CONFIG_USB_OTG