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 <gregkh@xxxxxxx> > > > > This patch adds the Mimio Xi interactive whiteboard driver to the tree. > > > > It was originally written by mwilder@xxxxxxxxxxx, but cleaned up and > > forward ported by me to the latest kernel version. > > > > > > Cc: Phil Hannent <phil@xxxxxxxxxxxxx> > > Cc: <mwilder@xxxxxxxxxxx> > > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx> > > > > --- > > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html