Skip to contentSkip to conversation

usb: musb: omap: fix crash when musb glue (omap) gets initialized

PATCH RESEND In review Kishon Vijay Abraham I 3 participants 6 messages Mar 22, 2012 1 message not in the archive

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

PATCH RESEND 1/1 usb: musb: omap: fix crash when musb glue (omap) gets initialized

Upstream Commit: 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026 Upstream Kernel Tag: v2.6.38-rc5-94-g7acc619

pm_runtime_enable is being called after omap2430_musb_init. Hence pm_runtime_get_sync in omap2430_musb_init does not have any effect (does not enable clocks) resulting in a crash during register access. It is fixed here.

---
Tested MUSB in 4430SDP.

 drivers/usb/musb/omap2430.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/usb/musb/omap2430.c +2 -2
index 2ae0bb3..73bd5ed 100644
@@ -452,14 +452,14 @@ static int __devinit omap2430_probe(struct platform_device *pdev)
 		goto err2;
 	}
 
+	pm_runtime_enable(&pdev->dev);
+
 	ret = platform_device_add(musb);
 	if (ret) {
 		dev_err(&pdev->dev, "failed to register musb device\n");
 		goto err2;
 	}
 
-	pm_runtime_enable(&pdev->dev);
-
 	return 0;
 
 err2:
Signature · 1 line
1.7.0.4
maintainer
#1 lore raw
Quoted 2 lines · Kishon Vijay Abraham I

Upstream Commit: 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026 Upstream Kernel Tag: v2.6.38-rc5-94-g7acc619

<snip>

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.

</formletter>

#2 lore raw

Hi Greg,

Quoted 6 lines · Greg KH
Quoted 2 lines · Kishon Vijay Abraham I

Upstream Commit: 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026 Upstream Kernel Tag: v2.6.38-rc5-94-g7acc619

<snip>

Quoted 7 lines

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree.  Please read Documentation/stable_kernel_rules.txt for how to do this properly.

</formletter>

I really couldn't get what I'm missing after reading the Documentation/stable_kernel_rules.txt :-( Can you kindly let me know what I'm missing here?

Thanks
Kishon
--
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

maintainer
#3 lore raw
Quoted 15 lines · KISHON VIJAY

Hi Greg,

Quoted 12 lines · Greg KH
Quoted 2 lines · Kishon Vijay Abraham I

Upstream Commit: 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026 Upstream Kernel Tag: v2.6.38-rc5-94-g7acc619

<snip>

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree.  Please read Documentation/stable_kernel_rules.txt for how to do this properly.

Quoted 5 lines
Quoted 1 line

</formletter>

I really couldn't get what I'm missing after reading the Documentation/stable_kernel_rules.txt :-( Can you kindly let me know what I'm missing here?

Read the version of that file in the 3.3 kernel release, it should explain what you are forgetting (hint, do you really want it applied to the 2.4 kernel tree?)

greg k-h
--
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

#5 lore raw
In reply to a message not in the archive

Hi Greg,

Quoted 18 lines · Greg KH
Quoted 17 lines · KISHON VIJAY

Hi Greg,

Quoted 13 lines · Greg KH
Quoted 2 lines · Kishon Vijay Abraham I

Upstream Commit: 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026 Upstream Kernel Tag: v2.6.38-rc5-94-g7acc619

<snip>

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree.  Please read Documentation/stable_kernel_rules.txt for how to do this properly.

</formletter>

Quoted 7 lines
Quoted 3 lines

I really couldn't get what I'm missing after reading the Documentation/stable_kernel_rules.txt :-( Can you kindly let me know what I'm missing here?

Read the version of that file in the 3.3 kernel release, it should explain what you are forgetting (hint, do you really want it applied to the 2.4 kernel tree?)

I actually intended this patch to be back-ported to previous releases which will have the issue. I'm not sure if it is right?

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

maintainer
#6 lore raw
Quoted 25 lines · KISHON VIJAY

Hi Greg,

Quoted 22 lines · Greg KH
Quoted 20 lines · KISHON VIJAY

Hi Greg,

Quoted 6 lines · Greg KH
Quoted 2 lines · Kishon Vijay Abraham I

Upstream Commit: 7acc6197b76edd0b932a7cbcc6cfad0a8a87f026 Upstream Kernel Tag: v2.6.38-rc5-94-g7acc619

<snip>

Quoted 7 lines

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree.  Please read Documentation/stable_kernel_rules.txt for how to do this properly.

</formletter>

I really couldn't get what I'm missing after reading the Documentation/stable_kernel_rules.txt :-( Can you kindly let me know what I'm missing here?

Quoted 6 lines
Quoted 3 lines

Read the version of that file in the 3.3 kernel release, it should explain what you are forgetting (hint, do you really want it applied to the 2.4 kernel tree?)

I actually intended this patch to be back-ported to previous releases which will have the issue. I'm not sure if it is right?

And what releases are those?

Hint, you need to tell us exactly what trees you want your patch applied to, otherwise we will just guess, and usually, incorrectly.

Be specific.

greg k-h
--
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