From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [PATCH] Input: add mmio xi driver Date: Thu, 25 Sep 2008 20:19:18 -0700 Message-ID: <20080926031918.GA10083@suse.de> References: <20080925232237.GA22938@suse.de> <20080925182055.f12f5d0b.randy.dunlap@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from cantor.suse.de ([195.135.220.2]:32882 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754603AbYIZDVE (ORCPT ); Thu, 25 Sep 2008 23:21:04 -0400 Content-Disposition: inline In-Reply-To: <20080925182055.f12f5d0b.randy.dunlap@oracle.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Randy Dunlap Cc: Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, phil@hannent.co.uk, mwilder@cs.nmsu.edu On Thu, Sep 25, 2008 at 06:20:55PM -0700, Randy Dunlap wrote: > On Thu, 25 Sep 2008 16:22:37 -0700 Greg KH wrote: > > > > > From: Greg Kroah-Hartman > > > > This patch adds the Mimio Xi interactive whiteboard driver to the tree. > > > > It was originally written by mwilder@cs.nmsu.edu, but cleaned up and > > forward ported by me to the latest kernel version. > > > > > > Cc: Phil Hannent > > Cc: > > Signed-off-by: Greg Kroah-Hartman > > > > --- > > drivers/input/misc/Kconfig | 11 > > drivers/input/misc/Makefile | 1 > > drivers/input/misc/mimio.c | 913 ++++++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 925 insertions(+) > > > > --- a/drivers/input/misc/Kconfig > > +++ b/drivers/input/misc/Kconfig > > @@ -164,6 +164,17 @@ config INPUT_POWERMATE > > To compile this driver as a module, choose M here: the > > module will be called powermate. > > > > +config INPUT_MIMIO > > + tristate "Mimio Xi interactive whiteboard support" > > + depends on USB_ARCH_HAS_HCD > > + select USB > > Prefer not to select entire subsystems, but to depend on them. > However, lots of drivers in drivers/input/ select USB... :( When in Rome... :) > > +static void mimio_irq_out(struct urb *urb) > > +{ > > + unsigned long flags; > > + struct mimio *mimio; > > + > > + mimio = urb->context; > > + > > + if (urb->status) > > + dev_dbg(&mimio->idev->dev, "urb-status: %d.\n", urb->status); > > + > > + spin_lock_irqsave(&mimio->txlock, flags); > > + mimio->txflags |= MIMIO_TXDONE; > > + spin_unlock_irqrestore(&mimio->txlock, flags); > > + wmb(); > > We want comments/explanation on all barriers or just "barrier();" ?? Ick, good catch, that shouldn't be needed, I'll go delete it. > > + /* > > + * Build input device info > > + */ > > + usb_make_path(udev, path, 64); > > s/64/sizeof(path)/ Thanks, will fix. Thanks for the review, I appreciate it. greg k-h