coreboot: only init usb if necessary
PATCH 1/1 coreboot: only init usb if necessary
From: Thomas RIENOESSL <[email protected]>
Up until now the call to initialize the USB subsystem was hardcoded for U-Boot running as a coreboot payload. This was used to enable the use of a USB keyboard in the U-Boot shell. However not all boards might need this functionality. As initializing the USB subsystem can take a considerable amount of time (several seconds on some boards), we now initialize the USB subsystem only if U-Boot is configured to use USB keyboards.
--- arch/x86/cpu/coreboot/coreboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/cpu/coreboot/coreboot.c +2 -1
@@ -77,7 +77,8 @@ int last_stage_init(void)timestamp_add_to_bootstage ();/* start usb so that usb keyboard can be used as input device */ -usb_init (); +if (IS_ENABLED (CONFIG_USB_KEYBOARD )) +usb_init ();board_final_cleanup ();
Signature · 1 line
2.19.1
PATCH 1/1 coreboot: only init usb if necessary
Hi Christian/Thomas,
Quoted 13 lines · Christian Gmeiner
From: Thomas RIENOESSL <[email protected]>
Up until now the call to initialize the USB subsystem was hardcoded for U-Boot running as a coreboot payload. This was used to enable the use of a USB keyboard in the U-Boot shell. However not all boards might need this functionality. As initializing the USB subsystem can take a considerable amount of time (several seconds on some boards), we now initialize the USB subsystem only if U-Boot is configured to use USB keyboards.
Quoted 5 lines
Signed-off-by Thomas RIENOESSL <[email protected]>--- arch/x86/cpu/coreboot/coreboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Looks good to me. Can we also fix the efi-payload one?
Regards,
Bin
PATCH 1/1 coreboot: only init usb if necessary
Hi Bin
Am Mo., 12. Nov. 2018 um 14:44 Uhr schrieb Bin Meng <[email protected]>:
Quoted 18 lines
Hi Christian/Thomas,
Quoted 13 lines · Christian Gmeiner
From: Thomas RIENOESSL <[email protected]>
Up until now the call to initialize the USB subsystem was hardcoded for U-Boot running as a coreboot payload. This was used to enable the use of a USB keyboard in the U-Boot shell. However not all boards might need this functionality. As initializing the USB subsystem can take a considerable amount of time (several seconds on some boards), we now initialize the USB subsystem only if U-Boot is configured to use USB keyboards.
Quoted 8 lines
Quoted 5 lines
Signed-off-by Thomas RIENOESSL <[email protected]>--- arch/x86/cpu/coreboot/coreboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Looks good to me. Can we also fix the efi-payload one?
Sure - do you prefer two patches (one for coreboot and one for x86:
efi: payload) or
shall we put both changes into one patch?
Signature · 5 lines
greets -- Christian Gmeiner, MSc https://christian-gmeiner.info
PATCH 1/1 coreboot: only init usb if necessary
Hi Christian,
Quoted 28 lines · Christian Gmeiner
Hi Bin
Am Mo., 12. Nov. 2018 um 14:44 Uhr schrieb Bin Meng <[email protected]>:
Quoted 24 lines
Hi Christian/Thomas,
Quoted 18 lines · Christian Gmeiner
From: Thomas RIENOESSL <[email protected]>
Up until now the call to initialize the USB subsystem was hardcoded for U-Boot running as a coreboot payload. This was used to enable the use of a USB keyboard in the U-Boot shell. However not all boards might need this functionality. As initializing the USB subsystem can take a considerable amount of time (several seconds on some boards), we now initialize the USB subsystem only if U-Boot is configured to use USB keyboards.
Signed-off-by Thomas RIENOESSL <[email protected]>--- arch/x86/cpu/coreboot/coreboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 6 lines
Quoted 2 lines
Looks good to me. Can we also fix the efi-payload one?
Sure - do you prefer two patches (one for coreboot and one for x86:
efi: payload) or
shall we put both changes into one patch?
I don't have preference. You can use either way :)
Regards,
Bin
PATCH 1/1 coreboot: only init usb if necessary
Hi Christian,
Quoted 33 lines · Bin Meng
Hi Christian,
Quoted 28 lines · Christian Gmeiner
Hi Bin
Am Mo., 12. Nov. 2018 um 14:44 Uhr schrieb Bin Meng <[email protected]>:
Quoted 24 lines
Hi Christian/Thomas,
Quoted 18 lines · Christian Gmeiner
From: Thomas RIENOESSL <[email protected]>
Up until now the call to initialize the USB subsystem was hardcoded for U-Boot running as a coreboot payload. This was used to enable the use of a USB keyboard in the U-Boot shell. However not all boards might need this functionality. As initializing the USB subsystem can take a considerable amount of time (several seconds on some boards), we now initialize the USB subsystem only if U-Boot is configured to use USB keyboards.
Signed-off-by Thomas RIENOESSL <[email protected]>--- arch/x86/cpu/coreboot/coreboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Looks good to me. Can we also fix the efi-payload one?
Sure - do you prefer two patches (one for coreboot and one for x86:
efi: payload) or
shall we put both changes into one patch?I don't have preference. You can use either way :)
Since I don't see new version patch posted to include the EFI payload, I just did this and sent a series @
http://patchwork.ozlabs.org/project/uboot/list/?series=78952
Regards,
Bin