Skip to contentSkip to conversation

usb: musb: adding support for registering nop xceiv

PATCH In review Ajay Kumar Gupta 4 participants 6 messages Jan 8, 2009 – Feb 20, 2009

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: musb: adding support for registering nop xceiv

Adding support for registering nop usb transceiver for musb platforms. Tested with OMAP35xx EVM having OTG phy ISP1504 which is autonomous and doesn't require any phy programming.

---
 arch/arm/mach-omap2/usb-musb.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/usb-musb.c +19 -0
index 61c5709..c202256 100644
@@ -155,10 +155,29 @@ static struct platform_device musb_device = {
 };
 #endif
 
+#ifdef CONFIG_NOP_USB_XCEIV
+static u64 nop_xceiv_dmamask = DMA_32BIT_MASK;
+
+static struct platform_device nop_xceiv_device = {
+	.name		= "nop_usb_xceiv",
+	.id		= -1,
+	.dev = {
+		.dma_mask		= &nop_xceiv_dmamask,
+		.coherent_dma_mask	= DMA_32BIT_MASK,
+		.platform_data		= NULL,
+	},
+};
+#endif
 
 void __init usb_musb_init(void)
 {
 #ifdef CONFIG_USB_MUSB_SOC
+#ifdef CONFIG_NOP_USB_XCEIV
+	if (platform_device_register(&nop_xceiv_device) < 0) {
+		printk(KERN_ERR "Unable to register NOP-XCEIV device\n");
+		return;
+	}
+#endif
 	if (platform_device_register(&musb_device) < 0) {
 		printk(KERN_ERR "Unable to register HS-USB (MUSB) device\n");
 		return;
Signature · 1 line
1.5.6
#1 lore raw
Quoted 5 lines · Ajay Kumar Gupta

Adding support for registering nop usb transceiver for musb platforms. Tested with OMAP35xx EVM having OTG phy ISP1504 which is autonomous and doesn't require any phy programming.

Tony, if Dave is ok with the nop-xceiv, we can apply this to l-o and people who doesn't use twl4030/tlw5030 xceiv will have to select this driver.

Quoted 45 lines
---
 arch/arm/mach-omap2/usb-musb.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/usb-musb.c +19 -0
index 61c5709..c202256 100644
@@ -155,10 +155,29 @@ static struct platform_device musb_device = {
 };
 #endif
 
+#ifdef CONFIG_NOP_USB_XCEIV
+static u64 nop_xceiv_dmamask = DMA_32BIT_MASK;
+
+static struct platform_device nop_xceiv_device = {
+	.name		= "nop_usb_xceiv",
+	.id		= -1,
+	.dev = {
+		.dma_mask		= &nop_xceiv_dmamask,
+		.coherent_dma_mask	= DMA_32BIT_MASK,
+		.platform_data		= NULL,
+	},
+};
+#endif
 
 void __init usb_musb_init(void)
 {
 #ifdef CONFIG_USB_MUSB_SOC
+#ifdef CONFIG_NOP_USB_XCEIV
+	if (platform_device_register(&nop_xceiv_device) < 0) {
+		printk(KERN_ERR "Unable to register NOP-XCEIV device\n");
+		return;
+	}
+#endif
 	if (platform_device_register(&musb_device) < 0) {
 		printk(KERN_ERR "Unable to register HS-USB (MUSB) device\n");
 		return;
Signature · 6 lines
1.5.6

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
balbi
#2 lore raw
Quoted 12 lines

-----Original Message-----
From: Felipe Balbi [mailto:[email protected]]
Sent: Tuesday, January 13, 2009 4:00 AM
To: Gupta, Ajay Kumar
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] usb: musb: adding support for registering nop xceiv

Quoted 4 lines · Ajay Kumar Gupta

Adding support for registering nop usb transceiver for musb platforms. Tested with OMAP35xx EVM having OTG phy ISP1504 which is autonomous and doesn't require any phy programming.

Quoted 5 lines
Quoted 1 line

Tony, if Dave is ok with the nop-xceiv, we can apply this to l-o and people who doesn't use twl4030/tlw5030 xceiv will have to select this driver.

Hi David,

Please review this one too.

Regards,
Ajay

Quoted 49 lines
Quoted 42 lines
---
 arch/arm/mach-omap2/usb-musb.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/usb-musb.c +19 -1
index 61c5709..c202256 100644
@@ -155,10 +155,29 @@ static struct platform_device musb_device = {
 };
 #endif
 
+#ifdef CONFIG_NOP_USB_XCEIV
+static u64 nop_xceiv_dmamask = DMA_32BIT_MASK;
+
+static struct platform_device nop_xceiv_device = {
+	.name		= "nop_usb_xceiv",
+	.id		= -1,
+	.dev = {
+		.dma_mask		= &nop_xceiv_dmamask,
+		.coherent_dma_mask	= DMA_32BIT_MASK,
+		.platform_data		= NULL,
+	},
+};
+#endif
 
 void __init usb_musb_init(void)
 {
 #ifdef CONFIG_USB_MUSB_SOC
+#ifdef CONFIG_NOP_USB_XCEIV
+	if (platform_device_register(&nop_xceiv_device) < 0) {
+		printk(KERN_ERR "Unable to register NOP-XCEIV device\n");
+		return;
+	}
+#endif
 	if (platform_device_register(&musb_device) < 0) {
 		printk(KERN_ERR "Unable to register HS-USB (MUSB) device\n");
 		return;
--

1.5.6

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
balbi

maintainer
#3 lore raw
Quoted 14 lines · Gupta, Ajay Kumar
Quoted 14 lines

-----Original Message-----
From: Felipe Balbi [mailto:[email protected]]
Sent: Tuesday, January 13, 2009 4:00 AM
To: Gupta, Ajay Kumar
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] usb: musb: adding support for registering nop xceiv

Quoted 5 lines · Ajay Kumar Gupta

Adding support for registering nop usb transceiver for musb platforms. Tested with OMAP35xx EVM having OTG phy ISP1504 which is autonomous and doesn't require any phy programming.

Quoted 7 lines
Quoted 3 lines

Tony, if Dave is ok with the nop-xceiv, we can apply this to l-o and people who doesn't use twl4030/tlw5030 xceiv will have to select this driver.

Hi David,

Please review this one too.

According to Felipe this is in Greg's queue, so I'll apply this to linux-omap to wait for it to fall down from mainline.

Tony

Quoted 58 lines

Regards,
Ajay

Quoted 42 lines
Quoted 42 lines
---
 arch/arm/mach-omap2/usb-musb.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/usb-musb.c +19 -1
index 61c5709..c202256 100644
@@ -155,10 +155,29 @@ static struct platform_device musb_device = {
 };
 #endif
 
+#ifdef CONFIG_NOP_USB_XCEIV
+static u64 nop_xceiv_dmamask = DMA_32BIT_MASK;
+
+static struct platform_device nop_xceiv_device = {
+	.name		= "nop_usb_xceiv",
+	.id		= -1,
+	.dev = {
+		.dma_mask		= &nop_xceiv_dmamask,
+		.coherent_dma_mask	= DMA_32BIT_MASK,
+		.platform_data		= NULL,
+	},
+};
+#endif
 
 void __init usb_musb_init(void)
 {
 #ifdef CONFIG_USB_MUSB_SOC
+#ifdef CONFIG_NOP_USB_XCEIV
+	if (platform_device_register(&nop_xceiv_device) < 0) {
+		printk(KERN_ERR "Unable to register NOP-XCEIV device\n");
+		return;
+	}
+#endif
 	if (platform_device_register(&musb_device) < 0) {
 		printk(KERN_ERR "Unable to register HS-USB (MUSB) device\n");
 		return;
--

1.5.6

Quoted 7 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
balbi

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 19 lines · Tony Lindgren
Quoted 18 lines · Gupta, Ajay Kumar
Quoted 17 lines

-----Original Message-----
From: Felipe Balbi [mailto:[email protected]]
Sent: Tuesday, January 13, 2009 4:00 AM
To: Gupta, Ajay Kumar
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] usb: musb: adding support for registering nop xceiv

Quoted 5 lines · Ajay Kumar Gupta

Adding support for registering nop usb transceiver for musb platforms. Tested with OMAP35xx EVM having OTG phy ISP1504 which is autonomous and doesn't require any phy programming.

Tony, if Dave is ok with the nop-xceiv, we can apply this to l-o and people who doesn't use twl4030/tlw5030 xceiv will have to select this driver.

Quoted 6 lines
Quoted 3 lines

Hi David,

Please review this one too.

According to Felipe this is in Greg's queue, so I'll apply this to linux-omap to wait for it to fall down from mainline.

well, the driver itself, not the usb-musb.c part. Well, this will help boards with use ispXXXX transceivers to work :-)

Signature · 1 line
balbi
#5 lore raw
In reply to Tony Lindgren
Quoted 5 lines · Tony Lindgren
Quoted 2 lines

Please review this one too.

According to Felipe this is in Greg's queue, so I'll apply this to linux-omap to wait for it to fall down from mainline.

Yeah, I had some issues with it but it looks like the simplest approach for now is to add patches on top of this.

- Dave