public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect
@ 2011-12-23 20:29 Allen Martin
  2012-01-04 19:07 ` Allen Martin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Allen Martin @ 2011-12-23 20:29 UTC (permalink / raw)
  To: u-boot

If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
device is detected.

Signed-off-by: Allen Martin <amartin@nvidia.com>
---
 common/usb_kbd.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index e94bb7e..577a1eb 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -493,6 +493,11 @@ int drv_usb_kbd_init(void)
 		if (error)
 			return error;
 
+#ifdef CONFIG_CONSOLE_MUX
+		error = iomux_doenv(stdin, stdinname);
+		if (error)
+			return error;
+#else
 		/* Check if this is the standard input device. */
 		if (strcmp(stdinname, DEVNAME))
 			return 1;
@@ -504,6 +509,7 @@ int drv_usb_kbd_init(void)
 		error = console_assign(stdin, DEVNAME);
 		if (error)
 			return error;
+#endif
 
 		return 1;
 	}
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect
  2011-12-23 20:29 [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect Allen Martin
@ 2012-01-04 19:07 ` Allen Martin
  2012-01-24 17:24   ` Allen Martin
  2012-01-15 20:20 ` Remy Bohmer
  2012-02-26 23:11 ` Marek Vasut
  2 siblings, 1 reply; 7+ messages in thread
From: Allen Martin @ 2012-01-04 19:07 UTC (permalink / raw)
  To: u-boot

> If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
> device is detected.
> 
> Signed-off-by: Allen Martin <amartin@nvidia.com>

ping, anyone have any comments/feedback?

-Allen

nvpublic

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect
  2011-12-23 20:29 [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect Allen Martin
  2012-01-04 19:07 ` Allen Martin
@ 2012-01-15 20:20 ` Remy Bohmer
  2012-02-26 23:11 ` Marek Vasut
  2 siblings, 0 replies; 7+ messages in thread
From: Remy Bohmer @ 2012-01-15 20:20 UTC (permalink / raw)
  To: u-boot

Hi,

2011/12/23 Allen Martin <amartin@nvidia.com>:
> If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
> device is detected.
>
> Signed-off-by: Allen Martin <amartin@nvidia.com>
> ---
> ?common/usb_kbd.c | ? ?6 ++++++
> ?1 files changed, 6 insertions(+), 0 deletions(-)

Applied to u-boot-usb. Thanks.

Kind regards,

Remy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect
  2012-01-04 19:07 ` Allen Martin
@ 2012-01-24 17:24   ` Allen Martin
  0 siblings, 0 replies; 7+ messages in thread
From: Allen Martin @ 2012-01-24 17:24 UTC (permalink / raw)
  To: u-boot

> > If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
> > device is detected.
> >
> > Signed-off-by: Allen Martin <amartin@nvidia.com>
> 
> ping, anyone have any comments/feedback?
> 

Hi, anyone want to give this patch some love so USB keyboard can work on EHCI again?

-Allen

nvpublic

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect
  2011-12-23 20:29 [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect Allen Martin
  2012-01-04 19:07 ` Allen Martin
  2012-01-15 20:20 ` Remy Bohmer
@ 2012-02-26 23:11 ` Marek Vasut
  2012-02-28  4:31   ` Allen Martin
  2 siblings, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2012-02-26 23:11 UTC (permalink / raw)
  To: u-boot

> If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
> device is detected.
> 
> Signed-off-by: Allen Martin <amartin@nvidia.com>
> ---

Hi,

what's the status of this patch/patchset?

Thanks
M

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect
  2012-02-26 23:11 ` Marek Vasut
@ 2012-02-28  4:31   ` Allen Martin
  2012-02-29 21:04     ` Marek Vasut
  0 siblings, 1 reply; 7+ messages in thread
From: Allen Martin @ 2012-02-28  4:31 UTC (permalink / raw)
  To: u-boot

> Subject: Re: [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd
> detect
> 
> > If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
> > device is detected.
> >
> > Signed-off-by: Allen Martin <amartin@nvidia.com>
> > ---
> 
> Hi,
> 
> what's the status of this patch/patchset?
> 

Both this and the keyboard polling patch have been accepted into u-boot-usb.git:

$ git log -2 u-boot-usb/master
commit b27c7b2e19a6c211d0ddca5bb62685685a36498b
Author: Allen Martin <amartin@nvidia.com>
Date:   Tue Dec 20 16:56:16 2011 -0800

    USB: move keyboard polling into kbd driver

    This moves keyboard polling logic from USB HCD drivers into USB
    keyboard driver.  Remove usb_event_poll() as keyboard polling was
    the only user of this API.  With this patch USB keyboard works with
    EHCI controllers again.  Tested on a tegra2 seaboard.

    Signed-off-by: Allen Martin <amartin@nvidia.com>

commit ce9da24a92707f0e84da901eaaa896c17c8b5630
Author: Allen Martin <amartin@nvidia.com>
Date:   Fri Dec 23 12:29:48 2011 -0800

    USB: reevaluate iomux stdin on USB kbd detect

    If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
    device is detected.

    Signed-off-by: Allen Martin <amartin@nvidia.com>

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect
  2012-02-28  4:31   ` Allen Martin
@ 2012-02-29 21:04     ` Marek Vasut
  0 siblings, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2012-02-29 21:04 UTC (permalink / raw)
  To: u-boot

> > Subject: Re: [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd
> > detect
> > 
> > > If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard
> > > device is detected.
> > > 
> > > Signed-off-by: Allen Martin <amartin@nvidia.com>
> > > ---
> > 
> > Hi,
> > 
> > what's the status of this patch/patchset?
> 
> Both this and the keyboard polling patch have been accepted into
> u-boot-usb.git:
> 

Which is now in quite weird state, so I picked them up too and will push them up 
once things settle.

Thanks for your fine contribution and I hope you're produce more!

M

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-29 21:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23 20:29 [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect Allen Martin
2012-01-04 19:07 ` Allen Martin
2012-01-24 17:24   ` Allen Martin
2012-01-15 20:20 ` Remy Bohmer
2012-02-26 23:11 ` Marek Vasut
2012-02-28  4:31   ` Allen Martin
2012-02-29 21:04     ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox