Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756041AbZJJKWy (ORCPT ); Sat, 10 Oct 2009 06:22:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754043AbZJJKWx (ORCPT ); Sat, 10 Oct 2009 06:22:53 -0400 Received: from msr12.hinet.net ([168.95.4.112]:62859 "EHLO msr12.hinet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbZJJKWw (ORCPT ); Sat, 10 Oct 2009 06:22:52 -0400 Message-ID: <4AD060D0.7090502@wytron.com.tw> Date: Sat, 10 Oct 2009 18:24:16 +0800 From: Thomas Chou User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: Dmitry Torokhov CC: linux-input@vger.kernel.org, Nios2 development list , linux-kernel@vger.kernel.org Subject: Re: [PATCH] input: New driver for Altera PS/2 controller References: <1254985152-32407-1-git-send-email-thomas@wytron.com.tw> <20091010045603.GA9914@core.coreip.homeip.net> In-Reply-To: <20091010045603.GA9914@core.coreip.homeip.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1465 Lines: 42 On 10/10/2009 12:56 PM, Dmitry Torokhov wrote: > Hi Thomas, > > On Thu, Oct 08, 2009 at 02:59:12PM +0800, Thomas Chou wrote: > >> This patch adds a new SERIO driver to support the Altera University >> Program PS/2 controller. >> >> > Thank you for the patch, it looks like it is reasonable written although > it should do request_mem_region for the IO memory region it tries to > remap and also IO addresses should not be cast to unsigned int but > rather 'void __iomem *'. I also don;t see the reason for it to depend on > EMBEDDED since the things that depend on EMBEDDED are usually features > that are used almost by everyone and only in case of embedded arch you > may want to turn them off to save some memory. > > I also prefer even static functions to have the driver name as their > prefix - this way if I see a backtrace I know exactly which module is > involved. > > I made a small patch on top of yours, please give it a try and if it did > not break anything then I will fold it all together and queue for > 2.6.33. > > Thanks! > > Hi Dmitry, Thank you very much for your help. I have tested the updated driver with PS/2 keyboard and mouse on boards. They all worked well. Cheers, Thomas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/