All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Matthew Wilcox <willy@linux.intel.com>,
	linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org,
	sarah.a.sharp@linux.intel.com,
	Matthew Wilcox <matthew.r.wilcox@intel.com>
Subject: Re: [PATCH 2/2] Add UAS driver
Date: Tue, 28 Sep 2010 18:56:09 -0700	[thread overview]
Message-ID: <20100929015609.GA27861@kroah.com> (raw)
In-Reply-To: <20100928185236.GF25677@one-eyed-alien.net>

On Tue, Sep 28, 2010 at 11:52:36AM -0700, Matthew Dharm wrote:
> On Tue, Sep 28, 2010 at 11:11:34AM -0700, Greg KH wrote:
> > On Tue, Sep 28, 2010 at 10:51:22AM -0700, Matthew Dharm wrote:
> > > On Tue, Sep 28, 2010 at 06:14:56AM -0400, Matthew Wilcox wrote:
> > > > From: Matthew Wilcox <matthew.r.wilcox@intel.com>
> > > > 
> > > > USB Attached SCSI is a new protocol specified jointly by the SCSI T10
> > > > committee and the USB Implementors Forum.
> > > > 
> > > > Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
> > > > ---
> > > >  MAINTAINERS                  |    8 +
> > > >  drivers/usb/storage/Kconfig  |   13 +
> > > >  drivers/usb/storage/Makefile |    1 +
> > > >  drivers/usb/storage/uas.c    |  751 ++++++++++++++++++++++++++++++++++++++++++
> > > >  4 files changed, 773 insertions(+), 0 deletions(-)
> > > >  create mode 100644 drivers/usb/storage/uas.c
> > > 
> > > Given that this is distinctly not usb-storage, and it is entirely contained
> > > within a single file, does it really belong in the drivers/usb/storage
> > > directory?
> > > 
> > > That just seems like a plan for confusion.  The fact that there is a big
> > > "this is not usb-storage" message in the comments of uas.c would seem to
> > > support this position.
> > > 
> > > Given that it is a single file, I would put it in drivers/usb directly.  If
> > > you wanted your own directory for possible future refactoring into multiple
> > > files or addid other files (like usb-storage did to support oddball
> > > devices), then maybe create a drivers/usb/uas directory.
> > 
> > What about drivers/usb/class/ where a number of other USB class drivers
> > live.  That would make more sense, right?
> 
> No argument from me.  Heck, maybe someone wants to move usb-storage into
> that directory also?

Heh, nah, that's not needed :)

> My main point is that it doesn't belong in the same directory as
> usb-storage.  There are lots of good alternatives.

Actually it will need to tie into libusual as the driver is going to
need to unbind the "older" protocol on the device to get usb-storage to
not control it anymore and switch to the uas driver.  So I think it will
need to be in this directory.

thanks,

greg k-h

  reply	other threads:[~2010-09-29  2:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28 10:14 [PATCH 1/2] Move USB Storage definitions to their own header file Matthew Wilcox
2010-09-28 10:14 ` [PATCH 2/2] Add UAS driver Matthew Wilcox
     [not found]   ` <1285668896-6356-2-git-send-email-willy-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2010-09-28 13:13     ` Oliver Neukum
2010-09-29  0:54       ` Matthew Wilcox
2010-09-29  4:47         ` Sarah Sharp
     [not found]         ` <20100929005413.GB4689-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2010-09-29 20:20           ` Oliver Neukum
2010-09-30  6:04         ` Rolf Eike Beer
2010-09-28 13:41   ` David Vrabel
2010-09-29  0:55     ` Matthew Wilcox
2010-09-29  3:30       ` David Brownell
2010-09-28 17:51   ` Matthew Dharm
2010-09-28 18:11     ` Greg KH
2010-09-28 18:52       ` Matthew Dharm
2010-09-29  1:56         ` Greg KH [this message]
     [not found]     ` <20100928175122.GE25677-JGfshJpz5UybPZpvUQj5UqxOck334EZe@public.gmane.org>
2010-09-29  1:01       ` Matthew Wilcox
2010-09-29  2:08   ` James Bottomley

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=20100929015609.GA27861@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=matthew.r.wilcox@intel.com \
    --cc=sarah.a.sharp@linux.intel.com \
    --cc=willy@linux.intel.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.