From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 9 Oct 2011 21:12:17 +0200 Subject: [U-Boot] [PATCH 1/2] USB: Rework USB keyboard driver In-Reply-To: <20111009185407.745D91408753@gemini.denx.de> References: <1317990657-17214-1-git-send-email-marek.vasut@gmail.com> <1317990657-17214-2-git-send-email-marek.vasut@gmail.com> <20111009185407.745D91408753@gemini.denx.de> Message-ID: <201110092112.18014.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sunday, October 09, 2011 08:54:07 PM Wolfgang Denk wrote: > Dear Marek Vasut, > > In message <1317990657-17214-2-git-send-email-marek.vasut@gmail.com> you wrote: > > Also, fix usb drivers which use extern new. > > > > Signed-off-by: Marek Vasut > > Cc: Ajay Kumar Gupta > > Cc: Bryan Wu > > Cc: Cliff Cai > > Cc: Mike Frysinger > > Cc: Remy Bohmer > > Cc: Wolfgang Denk > > --- > > > > common/usb_kbd.c | 644 > > ++++++++++++++++++++++++------------------- drivers/usb/host/ehci-hcd.c > > | 20 +-- > > drivers/usb/musb/musb_hcd.c | 19 +-- > > include/usb.h | 1 + > > 4 files changed, 369 insertions(+), 315 deletions(-) > > > > NOTE: Tested on EfikaSB device, but please test on some more hardware > > first! > > > > diff --git a/common/usb_kbd.c b/common/usb_kbd.c > > index 503d175..d19551b 100644 > > --- a/common/usb_kbd.c > > +++ b/common/usb_kbd.c > > @@ -25,402 +25,490 @@ > > > > * > > */ > > > > #include > > > > +#include > > > > #include > > #include > > > > #include > > > > -#undef USB_KBD_DEBUG > > +/* USB Keyboard Debug */ > > +#undef USB_KBD_DEBUG > > Please do not undef what is not defined [or what a user might want to > define on the command line]. Command line ? This is a placeholder in case the user wants to debug this piece of code. > > > +/* Keyboard sampling rate */ > > +#define REPEAT_RATE (40 / 4) /* 40msec -> 25cps */ > > +#define REPEAT_DELAY 10 /* 10 x REAPEAT_RATE = 400msec */ > > Please fix the typo while you are at it. True. > > And please split code changes and pure cosmetic ones into separate > commits. Thanks. Well that means I can do all this work one more time :-( I'll get to it sometimes ... later. Cheers > > Best regards, > > Wolfgang Denk