From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 25 Jan 2012 22:55:00 +0100 Subject: [U-Boot] [PATCH v6 1/3] PXA: PXA27x Matrix keypad driver In-Reply-To: References: <1327521273-28254-1-git-send-email-anarsoul@gmail.com> <201201252159.33494.marek.vasut@gmail.com> Message-ID: <201201252255.00928.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 > 2012/1/25 Marek Vasut : > >> From: Marek Vasut > >> > >> Signed-off-by: Marek Vasut > >> Signed-off-by: Vasily Khoruzhick > >> [vasily: adapted Marek's old version for newer u-boot, > >> fixed multiple keypresses handling] > > > > Fine ... albert, can you comment on it? > > > > Vasily, do you think this code is good? I want an honest answer! > > Well, it's overcomplicated due to missing _generic_ keyboard support in > u-boot. Then create such code! > It's possible to separate buffer handling, layout management into > some "keyboard-core", > so keyboard driver provides only key press/release events to core and > then core decides > what to do if we have multiple keys pressed, if modifier is pressed, etc, > etc... Great idea, let's put this patch on hold and implement the support layer then! > > Anyway, for me this code is easy to understand, but it's for now. So > if you want _really_ honest answer -- wait for few weeks > so I can re-review it with fresh view. I don't mind. But maybe you can really implement the keyboard support layer and simply add this as a clean and easy driver. M > > Regards > Vasily