Skip to contentSkip to conversation

mach-omap1: Fix call to omap_cfg_reg

PATCH In review Nicholas Krause 2 participants 4 messages Jul 4, 2014 – Jul 8, 2014

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

PATCH 1/1 mach-omap1: Fix call to omap_cfg_reg

This patch fixes the call to ompa_cfg_reg(USB2_SPEED) in the case that the cpu is a omap16xx and the nwires are not equal to 3.

---
 arch/arm/mach-omap1/usb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-omap1/usb.c +1 -2
index 4118db5..17e3139 100644
@@ -504,8 +504,7 @@ static u32 __init omap1_usb2_init(unsigned nwires, unsigned alt_pingroup)
 		omap_cfg_reg(W9_USB2_TXEN);
 		omap_cfg_reg(W5_USB2_SE0);
 		if (nwires != 3)
-			omap_cfg_reg(Y5_USB2_RCV);
-		// FIXME omap_cfg_reg(USB2_SPEED);
+			omap_cfg_reg(USB2_SPEED)
 	} else {
 		pr_debug("usb%d cpu unrecognized\n", 1);
 		return 0;
Signature · 1 line
1.9.1
reviewer
#1 lore raw
Quoted 2 lines · Nicholas Krause

This patch fixes the call to ompa_cfg_reg(USB2_SPEED) in the case that the cpu is a omap16xx and the nwires are not equal to 3.

This is most likely unsafe to do as the pin is probably shared with some other device and we have to rely for the bootloader to do the right thing for the board.

Regards,

Tony

Quoted 22 lines
---
 arch/arm/mach-omap1/usb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-omap1/usb.c +1 -2
index 4118db5..17e3139 100644
@@ -504,8 +504,7 @@ static u32 __init omap1_usb2_init(unsigned nwires, unsigned alt_pingroup)
 		omap_cfg_reg(W9_USB2_TXEN);
 		omap_cfg_reg(W5_USB2_SE0);
 		if (nwires != 3)
-			omap_cfg_reg(Y5_USB2_RCV);
-		// FIXME omap_cfg_reg(USB2_SPEED);
+			omap_cfg_reg(USB2_SPEED)
 	} else {
 		pr_debug("usb%d cpu unrecognized\n", 1);
 		return 0;
Signature · 1 line
1.9.1
#2 lore raw

Hey Tony,
This seems to be a false positive then.Please reply if it is so I can remove the Fix me message.
Cheers Nick

Quoted 34 lines · Tony Lindgren
Quoted 2 lines · Nicholas Krause

This patch fixes the call to ompa_cfg_reg(USB2_SPEED) in the case that the cpu is a omap16xx and the nwires are not equal to 3.

This is most likely unsafe to do as the pin is probably shared with some other device and we have to rely for the bootloader to do the right thing for the board.

Regards,

Tony

Quoted 22 lines
---
 arch/arm/mach-omap1/usb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-omap1/usb.c +1 -3
index 4118db5..17e3139 100644
@@ -504,8 +504,7 @@ static u32 __init omap1_usb2_init(unsigned nwires, unsigned alt_pingroup)
              omap_cfg_reg(W9_USB2_TXEN);
              omap_cfg_reg(W5_USB2_SE0);
              if (nwires != 3)
-                     omap_cfg_reg(Y5_USB2_RCV);
-             // FIXME omap_cfg_reg(USB2_SPEED);
+                     omap_cfg_reg(USB2_SPEED)
      } else {
              pr_debug("usb%d cpu unrecognized\n", 1);
              return 0;
--

1.9.1

reviewer
#3 lore raw
Quoted 3 lines · Nick Krause

Hey Tony,
This seems to be a false positive then.Please reply if it is so I can remove the Fix me message.

Yes, just replace the FIXME with a comment please.

Regards,

Tony