linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavan Kondeti <pkondeti@codeaurora.org>
To: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: "greg@kroah.com" <greg@kroah.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	Mike Lockwood <lockwood@android.com>,
	Brian Swetland <swetland@google.com>
Subject: Re: [PATCH v2] USB: Add MSM USB Device Controller driver
Date: Wed, 10 Nov 2010 07:42:59 +0530	[thread overview]
Message-ID: <20101110021259.GA16558@codeaurora.org> (raw)
In-Reply-To: <4CD94E79.1050104@parrot.com>

On Tue, Nov 09, 2010 at 02:36:57PM +0100, Matthieu CASTET wrote:
> Hi Pavan,
>
> Pavan Kondeti a écrit :
>> On Tue, Nov 09, 2010 at 12:40:17PM +0100, Matthieu CASTET wrote:
>>
>> Hi Matthieu,
>>
>>>>
>>> This look like the arc/chipidea/mips ehci otg core.
>>
>> Yes. It is chipidea core for ARM.
>>> Why can't you reuse the ci13xxx_udc.c driver ?
>>> Or if ci13xxx_udc.c is too bad, rewrite a new generic version for this core.
>>>
>> ci13xxx_udc.c driver registers with PCI subsytem (ours is a platform subsystem),
>> does not manage clocks. msm72k_udc.c also takes care of initializing the
>> integrated PHY. We also need to program special registers (MSM-ARM specific)
>> upon resetting the hardware.
> Yes, but why not adding this to ci13xxx_udc.c instead of doing a new driver.
> For example adding platform subsystem is less than 150 lines of code.

I agree.
>
> I am not sure doing n drivers for a same hardware is a good idea.
>
> May be ci13xxx_udc.c isn't enough generic, but in this case don't do the  
> same mistake with the new driver.
>
Sure. Thanks for the advice.

> Make a generic core, and make the ulpi stuff (or other specific stuff)  
> in a glue around this code.
>
IMHO, generic core should handle the controller stuff (endpoint operations,
interrupts processing etc...) and leave the transceiver interaction to the
individual device controller driver.
> Look at host ehci : you don't need to rewrite ehci core. You only add a  
> glue around it.
>
Thanks for pointing to EHCI. ehci-hcd can support PCI/platform/PS3 buses.
It takes care of most of the things and yet gives flexibility to HCD to
implement their own methods.

I will hack ci13xxx_udc.c (platform bus support) and see how it goes. If
it works, I will see how ci13xxx_ stuff can be reused efficiently.

-- 
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.


  reply	other threads:[~2010-11-10  2:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09 11:18 [PATCH v2] Add MSM USB Device Controller support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: Add MSM USB Device Controller driver Pavankumar Kondeti
2010-11-09 11:40   ` Matthieu CASTET
2010-11-09 12:16     ` Pavan Kondeti
2010-11-09 13:36       ` Matthieu CASTET
2010-11-10  2:12         ` Pavan Kondeti [this message]
2010-11-10  2:54           ` David Brownell
2010-11-10  6:22             ` Brian Swetland
2010-11-19 17:16               ` Matthieu CASTET
2010-11-27 14:00                 ` Pavan Kondeti
2010-11-28  6:30                   ` David Brownell
2010-11-28 12:09                     ` Pavan Kondeti
2010-12-07 12:44                 ` Pavan Kondeti
2010-11-09 13:25   ` Heikki Krogerus
2010-11-09 13:52   ` Matthieu CASTET
2010-11-09 15:36     ` Igor Grinberg
2010-11-10  2:19       ` Pavan Kondeti
2010-11-10  6:47         ` Igor Grinberg
2010-11-11  2:10           ` Pavan Kondeti
2010-11-19  5:50             ` Pavan Kondeti
2010-11-21  8:09               ` Igor Grinberg
2010-11-10  2:17     ` Pavan Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: msm72k_udc: Add debugfs support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: msm72k_udc: Add Remote wakeup support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH v2] USB: msm72k_udc: Add Test Mode support Pavankumar Kondeti
2010-11-09 11:18 ` [PATCH] USB: msm72k_udc: Add charging notification support 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=20101110021259.GA16558@codeaurora.org \
    --to=pkondeti@codeaurora.org \
    --cc=greg@kroah.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=lockwood@android.com \
    --cc=matthieu.castet@parrot.com \
    --cc=swetland@google.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 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).