All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robherring2@gmail.com>
To: Peter Chen <Peter.Chen@freescale.com>
Cc: "Tim Bird" <tim.bird@sonymobile.com>,
	"Antoine Ténart" <antoine.tenart@free-electrons.com>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Linux USB List" <linux-usb@vger.kernel.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Bjorn Andersson" <Bjorn.Andersson@sonymobile.com>
Subject: Re: Bug: shared usb dt document is incorrect
Date: Tue, 28 Jul 2015 22:25:18 -0500	[thread overview]
Message-ID: <CAL_Jsq+4yejMiUDf9pTZpVMkNrp=0C8gOy5kDYUZ-7hBwLbvgw@mail.gmail.com> (raw)
In-Reply-To: <BN3PR0301MB084977B6D73E96960E4AC1D0818C0@BN3PR0301MB0849.namprd03.prod.outlook.com>

On Tue, Jul 28, 2015 at 10:12 PM, Peter Chen <Peter.Chen@freescale.com> wrote:
>
>> > I was just doing some testing with USB on a Qualcomm SoC.
>> >
>> > I followed the instructions in the binding document:
>> > Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
>> >
>> > which has a compatible for "qcom,ci-hdrc", and is, in general, for
>> > chipidea-based USB controllers.
>> >
>> > It says in the document that the property usb-phy is deprecated, and
>> > to use phys and phy-names instead.  However, the Qualcomm driver for
>> > this still uses usb-phy.  That driver is in:
>> > drivers/usb/chipidea/ci_hdrc_msm.c
>>
>> Deprecated means it still exists in the wild and should be maintained, but don't
>> use it for new dts files.
>>
>
> But how the new SoC (for new dts) which still uses current USB PHY driver?

That's fine to use, but I would encourage people not to.

> Maybe we should not add additional description for this property,
> it depends on which PHY driver (Generic PHY vs USB PHY)  this controller
> will use, if it uses a new PHY driver, it must use generic PHY framework,  and will
> use 'phy' and 'phy-names' corresponding.

We're thinking about this the wrong way around. The driver should not
determine the binding used. The binding should be independent of the
driver used.

Either we should make the generic phy subsystem have feature parity
with usb-phy, or make the usb-phy drivers use the same generic phy
binding. Long term, I think we want the former and need a way to
subclass the generic phy. Other phys have similar needs for additional
protocol specific functions (e.g. configure the # of lanes for PCIe).
The generic phy subsystem needs some love in my brief experience with
it. For the latter case, this would make switching which phy driver is
used transparent to DT.

Rob

  reply	other threads:[~2015-07-29  3:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-29  1:06 Bug: shared usb dt document is incorrect Tim Bird
2015-07-29  1:06 ` Tim Bird
     [not found] ` <55B82716.1060008-/MT0OVThwyLZJqsBc5GL+g@public.gmane.org>
2015-07-29  0:27   ` Peter Chen
2015-07-29  0:27     ` Peter Chen
2015-07-29  2:54 ` Rob Herring
2015-07-29  3:12   ` Peter Chen
2015-07-29  3:12     ` Peter Chen
2015-07-29  3:25     ` Rob Herring [this message]
2015-07-29 17:29   ` Tim Bird
2015-07-29 20:24     ` Rob Herring

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='CAL_Jsq+4yejMiUDf9pTZpVMkNrp=0C8gOy5kDYUZ-7hBwLbvgw@mail.gmail.com' \
    --to=robherring2@gmail.com \
    --cc=Bjorn.Andersson@sonymobile.com \
    --cc=Peter.Chen@freescale.com \
    --cc=antoine.tenart@free-electrons.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=tim.bird@sonymobile.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.