From: Greg KH <gregkh@suse.de>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, phil@hannent.co.uk,
mwilder@cs.nmsu.edu
Subject: Re: [PATCH] Input: add mmio xi driver
Date: Thu, 25 Sep 2008 20:19:18 -0700 [thread overview]
Message-ID: <20080926031918.GA10083@suse.de> (raw)
In-Reply-To: <20080925182055.f12f5d0b.randy.dunlap@oracle.com>
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@suse.de>
> >
> > 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 <phil@hannent.co.uk>
> > Cc: <mwilder@cs.nmsu.edu>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> >
> > ---
> > 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
next prev parent reply other threads:[~2008-09-26 3:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 23:22 [PATCH] Input: add mmio xi driver Greg KH
[not found] ` <20080925232237.GA22938-l3A5Bk7waGM@public.gmane.org>
2008-09-26 1:20 ` Randy Dunlap
2008-09-26 1:20 ` Randy Dunlap
2008-09-26 3:19 ` Greg KH [this message]
2008-09-26 10:51 ` Phil Hannent
2008-09-26 17:46 ` Greg KH
[not found] ` <20080926174607.GA700-l3A5Bk7waGM@public.gmane.org>
2008-11-25 4:19 ` mwilder
2008-11-25 4:19 ` mwilder
2008-11-25 9:48 ` Phil Hannent
2008-10-02 6:12 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080926031918.GA10083@suse.de \
--to=gregkh@suse.de \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mwilder@cs.nmsu.edu \
--cc=phil@hannent.co.uk \
--cc=randy.dunlap@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.