* [U-Boot] [PATCH] ARM: tegra: enable STDIO deregistration
@ 2015-04-13 17:11 Stephen Warren
2015-04-13 17:22 ` Simon Glass
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2015-04-13 17:11 UTC (permalink / raw)
To: u-boot
From: Stephen Warren <swarren@nvidia.com>
At the very least when USB keyboard support is enabled, we need to enable
CONFIG_SYS_STDIO_DEREGISTER, so the "usb reset" is able to re-scan USB
ports and find new devices.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
This feels like a nice fix for the upcoming release if possible. Even if
this causes horrible fallout (which I do not expect), it'll only affect
Seaboard and Ventana boards, both of which have quite limited
distribution.
---
include/configs/tegra-common-post.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index 31096d068bb1..e792e02fd923 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -26,10 +26,11 @@
#define STDIN_KBD_KBC ""
#endif
-#ifdef CONFIG_USB_KEYBOARD
+#if defined(CONFIG_USB_KEYBOARD) && !defined(CONFIG_SPL_BUILD)
#define STDIN_KBD_USB ",usbkbd"
#define CONFIG_SYS_USB_EVENT_POLL
#define CONFIG_PREBOOT "usb start"
+#define CONFIG_SYS_STDIO_DEREGISTER
#else
#define STDIN_KBD_USB ""
#endif
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] ARM: tegra: enable STDIO deregistration
2015-04-13 17:11 [U-Boot] [PATCH] ARM: tegra: enable STDIO deregistration Stephen Warren
@ 2015-04-13 17:22 ` Simon Glass
2015-04-13 19:17 ` Stephen Warren
0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2015-04-13 17:22 UTC (permalink / raw)
To: u-boot
Hi Stephen,
On 13 April 2015 at 11:11, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> At the very least when USB keyboard support is enabled, we need to enable
> CONFIG_SYS_STDIO_DEREGISTER, so the "usb reset" is able to re-scan USB
> ports and find new devices.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
> This feels like a nice fix for the upcoming release if possible. Even if
> this causes horrible fallout (which I do not expect), it'll only affect
> Seaboard and Ventana boards, both of which have quite limited
> distribution.
Reviewed-by: Simon Glass <sjg@chromium.org>
I wonder whether you might want to (post-release) enable this always
on Tegra, except for SPL?
> ---
> include/configs/tegra-common-post.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
> index 31096d068bb1..e792e02fd923 100644
> --- a/include/configs/tegra-common-post.h
> +++ b/include/configs/tegra-common-post.h
> @@ -26,10 +26,11 @@
> #define STDIN_KBD_KBC ""
> #endif
>
> -#ifdef CONFIG_USB_KEYBOARD
> +#if defined(CONFIG_USB_KEYBOARD) && !defined(CONFIG_SPL_BUILD)
> #define STDIN_KBD_USB ",usbkbd"
> #define CONFIG_SYS_USB_EVENT_POLL
> #define CONFIG_PREBOOT "usb start"
> +#define CONFIG_SYS_STDIO_DEREGISTER
> #else
> #define STDIN_KBD_USB ""
> #endif
> --
> 1.9.1
>
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] ARM: tegra: enable STDIO deregistration
2015-04-13 17:22 ` Simon Glass
@ 2015-04-13 19:17 ` Stephen Warren
2015-04-13 20:19 ` Simon Glass
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2015-04-13 19:17 UTC (permalink / raw)
To: u-boot
On 04/13/2015 11:22 AM, Simon Glass wrote:
> Hi Stephen,
>
> On 13 April 2015 at 11:11, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> At the very least when USB keyboard support is enabled, we need to enable
>> CONFIG_SYS_STDIO_DEREGISTER, so the "usb reset" is able to re-scan USB
>> ports and find new devices.
>>
>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>> ---
>> This feels like a nice fix for the upcoming release if possible. Even if
>> this causes horrible fallout (which I do not expect), it'll only affect
>> Seaboard and Ventana boards, both of which have quite limited
>> distribution.
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> I wonder whether you might want to (post-release) enable this always
> on Tegra, except for SPL?
Was that referring to CONFIG_SYS_STDIO_DEREGISTER or USB keyboard
support? I suspect we should simply enable USB keyboard support
everywhere, since most systems don't have built-in keyboards? It's
certainly missing from devices like Trimslice that need it. Or would you
rather only enable keyboard support on devices without a keyboard, and
enable CONFIG_SYS_STDIO_DEREGISTER everywhere?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] ARM: tegra: enable STDIO deregistration
2015-04-13 19:17 ` Stephen Warren
@ 2015-04-13 20:19 ` Simon Glass
0 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2015-04-13 20:19 UTC (permalink / raw)
To: u-boot
Hi Stephen,
On 13 April 2015 at 13:17, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 04/13/2015 11:22 AM, Simon Glass wrote:
>>
>> Hi Stephen,
>>
>> On 13 April 2015 at 11:11, Stephen Warren <swarren@wwwdotorg.org> wrote:
>>>
>>> From: Stephen Warren <swarren@nvidia.com>
>>>
>>> At the very least when USB keyboard support is enabled, we need to enable
>>> CONFIG_SYS_STDIO_DEREGISTER, so the "usb reset" is able to re-scan USB
>>> ports and find new devices.
>>>
>>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>>> ---
>>> This feels like a nice fix for the upcoming release if possible. Even if
>>> this causes horrible fallout (which I do not expect), it'll only affect
>>> Seaboard and Ventana boards, both of which have quite limited
>>> distribution.
>>
>>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>
>> I wonder whether you might want to (post-release) enable this always
>> on Tegra, except for SPL?
>
>
> Was that referring to CONFIG_SYS_STDIO_DEREGISTER or USB keyboard support? I
> suspect we should simply enable USB keyboard support everywhere, since most
> systems don't have built-in keyboards? It's certainly missing from devices
> like Trimslice that need it. Or would you rather only enable keyboard
> support on devices without a keyboard, and enable
> CONFIG_SYS_STDIO_DEREGISTER everywhere?
I was thinking of the latter - enable CONFIG_SYS_STDIO_DEREGISTER
everywhere. Removing this is only a small win, and is mostly intended
for SPL.
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-13 20:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-13 17:11 [U-Boot] [PATCH] ARM: tegra: enable STDIO deregistration Stephen Warren
2015-04-13 17:22 ` Simon Glass
2015-04-13 19:17 ` Stephen Warren
2015-04-13 20:19 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox