linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Pavan Kondeti <pkondeti@codeaurora.org>
Cc: linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 1/4] USB: Add MSM OTG Controller driver
Date: Wed, 17 Nov 2010 21:20:16 -0800	[thread overview]
Message-ID: <20101118052016.GA13001@kroah.com> (raw)
In-Reply-To: <20101118050016.GA11700@codeaurora.org>

On Thu, Nov 18, 2010 at 10:30:16AM +0530, Pavan Kondeti wrote:
> Hi Greg,
> 
> On Wed, Nov 17, 2010 at 08:16:37AM -0800, Greg KH wrote:
> > On Wed, Nov 17, 2010 at 03:53:52PM +0530, Pavan Kondeti wrote:
> > > Hi Greg,
> > > 
> > > On Tue, Nov 16, 2010 at 01:43:46PM -0800, Greg KH wrote:
> > > > On Tue, Nov 09, 2010 at 04:49:48PM +0530, Pavankumar Kondeti wrote:
> > > > > This driver implements PHY initialization, clock management, memory mapping
> > > > > register address space, ULPI IO ops and simple OTG state machine to kick
> > > > > host/peripheral based on Id/VBUS line status.  VBUS/Id lines are tied to a
> > > > > reference voltage on some boards.  Hence provide a sysfs interface to
> > > > > select host/peripheral mode.
> > > > 
> > > > As you are creating a new user/kernel abi, it MUST be documented in the
> > > > Documentation/ABI/ directory.  I can't take this patch set until that
> > > > happens.
> > > > 
> > > Thanks for letting me know this. I will add the documentation for the sysfs file.
> > 
> > Also note that if you are adding a new ABI like this one, it needs to
> > work the same for the other existing OTG drivers as well.  So please
> > also work to fix them to do the same thing, or change your code to work
> > like the existing drivers do (hint, do the latter one...)
> > 
> I am not sure if other OTG driver require this sysfs file.

That's the point, why does this driver require something that no other
driver does?

> USB mode i.e Host/Peripheral is changed based on Id/VBUS status. But
> on some of the MSM boards, Id/VBUS is connected to reference voltage
> and need an additional sysfs file for user to change the operation
> mode.

Are you sure this should be user selectable?  Who is going to do that
selection and how is it going to happen "automatically" like OTG is
supposed to handle?

> Where should a driver specific sysfs file should go in Doc/ABI/ ?

Where all others are, there are lots of examples in that directory,
including a README, right?  Did you read that and it not explain things
sufficiently?  If so, please let me know what can be expanded on in that
file to make it easier for others in the future.


My main complaint here is that you are creating a brand new
kernel/userspace ABI, and you bury it in a driver patch without giving
really any warning or description of it at all.  This is something that
we need to make sure we get correct as you (yes you) will be maintaining
it for the next 12+ years.  This is not something to do lightly at all,
as I'm sure you can imagine.


> > > > Care to redo this one, and your device patch set based on the review
> > > > comments there, and resend them?
> > > > 
> > > I have been advised to reuse the ci13xxx_udc.c gadget controller driver. The
> > > driver currently supports PCI but not platform bus. I am working on making it
> > > to support platform bus. I will post RFC patch soon. Meanwhile I am thinking
> > > of resending host driver patches (as of now host/otg uses header files of device
> > > controller driver). Is this fine?
> > 
> > Would it make much sense to have the host code in the tree at this point
> > in time due to the other changes you are going to have to do for the
> > gadget controller?
> > 
> May be, I should wait till gadget controller driver patches are ready to avoid
> any additional changes in otg driver for supporting gadget.

Yes, that sounds like a good idea.

thanks,

greg k-h

  reply	other threads:[~2010-11-18  5:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09 11:19 [PATCH 0/4] Add MSM USB Host Controller support Pavankumar Kondeti
2010-11-09 11:19 ` [PATCH 1/4] USB: Add MSM OTG Controller driver Pavankumar Kondeti
2010-11-16 21:43   ` Greg KH
2010-11-17 10:23     ` Pavan Kondeti
2010-11-17 16:16       ` Greg KH
2010-11-18  5:00         ` Pavan Kondeti
2010-11-18  5:20           ` Greg KH [this message]
2010-11-18  7:54             ` Pavan Kondeti
2010-11-09 11:19 ` [PATCH 2/4] USB: EHCI: Add MSM Host " Pavankumar Kondeti
2010-11-09 11:19 ` [PATCH 3/4] USB: EHCI: msm: Add support for power management Pavankumar Kondeti
2010-11-09 11:19 ` [PATCH 4/4] USB: OTG: msm: Add spport " Pavankumar Kondeti

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=20101118052016.GA13001@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pkondeti@codeaurora.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).