Skip to contentSkip to conversation

splash: Accommodate DM_USB in splash_init_usb()

PATCH New Alexey Brodkin 3 participants 3 messages Jul 1, 2016 – Jul 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 splash: Accommodate DM_USB in splash_init_usb()

Current implementation of splash_init_usb() requires usb_stor_scan() which doesn't exist in case of DM_USB simply because real probing happens right in usb_init().

So disable usage of usb_stor_scan() in case of DM_USB.

Cc Nikita Kiryanov <[email protected]>
Cc Simon Glass <[email protected]>
Cc Jeroen Hofstee <[email protected]>
Cc Anatolij Gustschin <[email protected]>
Cc Robert Winkler <[email protected]>
---
 common/splash_source.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
common/splash_source.c +5 -1
index 914f12f..230b2db 100644
@@ -146,7 +146,11 @@ static int splash_init_usb(void)
 	if (err)
 		return err;
 
-	return usb_stor_scan(1) < 0 ? -ENODEV : 0;
+#ifndef CONFIG_DM_USB
+	err = usb_stor_scan(1) < 0 ? -ENODEV : 0;
+#endif
+
+	return err;
 }
 #else
 static inline int splash_init_usb(void)
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 splash: Accommodate DM_USB in splash_init_usb()

Quoted 12 lines · Alexey Brodkin

Current implementation of splash_init_usb() requires usb_stor_scan() which doesn't exist in case of DM_USB simply because real probing happens right in usb_init().

So disable usage of usb_stor_scan() in case of DM_USB.

Cc Nikita Kiryanov <[email protected]>
Cc Simon Glass <[email protected]>
Cc Jeroen Hofstee <[email protected]>
Cc Anatolij Gustschin <[email protected]>
Cc Robert Winkler <[email protected]>
Quoted 3 lines
---
 common/splash_source.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
#2 lore raw

PATCH 1/1 splash: Accommodate DM_USB in splash_init_usb()

In reply to Alexey Brodkin

Hi Alexey,

Quoted 12 lines · On Fri, 1 Jul 2016 22:47:36 +0300 Alexey Brodkin Alexey.Brodkin at…

Current implementation of splash_init_usb() requires usb_stor_scan() which doesn't exist in case of DM_USB simply because real probing happens right in usb_init().

So disable usage of usb_stor_scan() in case of DM_USB.

Cc Nikita Kiryanov <[email protected]>
Cc Simon Glass <[email protected]>
Cc Jeroen Hofstee <[email protected]>
Cc Anatolij Gustschin <[email protected]>
Cc Robert Winkler <[email protected]>
Quoted 3 lines
---
 common/splash_source.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

applied to u-boot-video/master, thanks!

Anatolij