splash: Accommodate DM_USB in splash_init_usb()
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.
--- common/splash_source.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
common/splash_source.c +5 -1
@@ -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
PATCH 1/1 splash: Accommodate DM_USB in splash_init_usb()
Quoted 12 lines · Alexey Brodkin
Current implementation of
splash_init_usb()requiresusb_stor_scan()which doesn't exist in case ofDM_USBsimply because real probing happens right inusb_init().So disable usage of
usb_stor_scan()in case ofDM_USB.Signed-off-by Alexey Brodkin <[email protected]>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(-)
PATCH 1/1 splash: Accommodate DM_USB in splash_init_usb()
In reply to Alexey BrodkinHi Alexey,
Quoted 12 lines · On Fri, 1 Jul 2016 22:47:36 +0300 Alexey Brodkin Alexey.Brodkin at…
Current implementation of
splash_init_usb()requiresusb_stor_scan()which doesn't exist in case ofDM_USBsimply because real probing happens right inusb_init().So disable usage of
usb_stor_scan()in case ofDM_USB.Signed-off-by Alexey Brodkin <[email protected]>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