All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug:  shared usb dt document is incorrect
@ 2015-07-29  1:06 ` Tim Bird
  0 siblings, 0 replies; 10+ messages in thread
From: Tim Bird @ 2015-07-29  1:06 UTC (permalink / raw)
  To: Rob Herring, antoine.tenart
  Cc: linux-arm-msm, linux-kernel, Peter.Chen, linux-usb,
	Greg Kroah-Hartman, Bjorn Andersson

Antoine and Rob,

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

I'm guessing I should update the Qualcomm driver to use
phys and phy-names, but wanted to check with you-all to
verify that this is the preferred method of getting 
phys by phandle now.  It's either change the driver
or make an exception in the binding document, I believe.

I presume I should be changing devm_usb_get_phy_by_phandle()
to of_phy_get(), but let me know if there's more to it than that.

In case I change the driver, do I then update the binding doc
to remove the information about the deprecated property, or not?

Please advise.
 -- Tim

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-07-29 20:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2015-07-29 17:29   ` Tim Bird
2015-07-29 20:24     ` Rob Herring

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.