* [U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux
@ 2013-04-20 16:42 Mike Dunn
2013-04-20 17:13 ` Otavio Salvador
2013-04-25 2:59 ` Marek Vasut
0 siblings, 2 replies; 4+ messages in thread
From: Mike Dunn @ 2013-04-20 16:42 UTC (permalink / raw)
To: u-boot
On the pxa270, if the udc device is not disabled before jumping to linux, the
device fails to initialize in linux because it was left in a running state, and
the linux driver assumes that it is in a disabled state.
Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
---
Arguably, this is a bug in the linux driver, but it seemed pretty simple and
benign to just disable it in u-boot. I'll also send a patch to upstream kernel
to fix its udc driver.
arch/arm/include/asm/bootm.h | 1 +
arch/arm/lib/bootm.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/include/asm/bootm.h b/arch/arm/include/asm/bootm.h
index db2ff94..68189cc 100644
--- a/arch/arm/include/asm/bootm.h
+++ b/arch/arm/include/asm/bootm.h
@@ -21,6 +21,7 @@
#ifdef CONFIG_USB_DEVICE
extern void udc_disconnect(void);
+extern void udc_disable(void);
#endif
#endif
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index f3b30c5..6daa7bf 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -105,6 +105,7 @@ static void announce_and_cleanup(void)
#ifdef CONFIG_USB_DEVICE
udc_disconnect();
+ udc_disable();
#endif
cleanup_before_linux();
}
--
1.7.8.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux
2013-04-20 16:42 [U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux Mike Dunn
@ 2013-04-20 17:13 ` Otavio Salvador
2013-04-20 17:17 ` Marek Vasut
2013-04-25 2:59 ` Marek Vasut
1 sibling, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2013-04-20 17:13 UTC (permalink / raw)
To: u-boot
On Sat, Apr 20, 2013 at 1:42 PM, Mike Dunn <mikedunn@newsguy.com> wrote:
> On the pxa270, if the udc device is not disabled before jumping to linux, the
> device fails to initialize in linux because it was left in a running state, and
> the linux driver assumes that it is in a disabled state.
>
> Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Shouldn't it be fixed in Linux, in this case?
--
Otavio Salvador O.S. Systems
E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux
2013-04-20 17:13 ` Otavio Salvador
@ 2013-04-20 17:17 ` Marek Vasut
0 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2013-04-20 17:17 UTC (permalink / raw)
To: u-boot
Dear Otavio Salvador,
> On Sat, Apr 20, 2013 at 1:42 PM, Mike Dunn <mikedunn@newsguy.com> wrote:
> > On the pxa270, if the udc device is not disabled before jumping to linux,
> > the device fails to initialize in linux because it was left in a running
> > state, and the linux driver assumes that it is in a disabled state.
> >
> > Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
>
> Shouldn't it be fixed in Linux, in this case?
There is a whole thread about this in the previous version if this patch, dig it
up in the mailing list, you'll surely find your answer there shortly.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux
2013-04-20 16:42 [U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux Mike Dunn
2013-04-20 17:13 ` Otavio Salvador
@ 2013-04-25 2:59 ` Marek Vasut
1 sibling, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2013-04-25 2:59 UTC (permalink / raw)
To: u-boot
Dear Mike Dunn,
> On the pxa270, if the udc device is not disabled before jumping to linux,
> the device fails to initialize in linux because it was left in a running
> state, and the linux driver assumes that it is in a disabled state.
>
> Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Applied this and the USB patch.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-25 2:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-20 16:42 [U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux Mike Dunn
2013-04-20 17:13 ` Otavio Salvador
2013-04-20 17:17 ` Marek Vasut
2013-04-25 2:59 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox