From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: [PATCH RFC] usb: dwc3: Get PHY from platform specific dwc3 dt node. Date: Thu, 31 Jan 2013 17:38:36 +0200 Message-ID: <20130131153836.GF4064@arwen.pp.htv.fi> References: <1359631232-7107-1-git-send-email-gautam.vivek@samsung.com> <510A56BF.3040804@ti.com> <20130131152527.GE4064@arwen.pp.htv.fi> Reply-To: balbi-l0cyMroinI0@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6076041516058911706==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Vivek Gautam Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, balbi-l0cyMroinI0@public.gmane.org, kishon , Vivek Gautam , linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring List-Id: linux-omap@vger.kernel.org --===============6076041516058911706== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Wb5NtZlyOqqy58h0" Content-Disposition: inline --Wb5NtZlyOqqy58h0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 31, 2013 at 09:00:37PM +0530, Vivek Gautam wrote: > Hi Felipe, >=20 >=20 > On Thu, Jan 31, 2013 at 8:55 PM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Jan 31, 2013 at 08:53:27PM +0530, Vivek Gautam wrote: > >> >> Moreover, SoCs having multiple dwc3 controllers will have multiple > >> >> PHYs, which eventually be added using usb_add_phy_dev(), and not > >> >> using usb_add_phy(). So each dwc3 controller won't be able to > >> >> get PHYs by simply calling devm_usb_get_phy() also. > >> > > >> > No. We have added usb_get_phy_dev() for that purpose in the case of = non-dt. > >> > I think, instead you can have a patch to use devm_usb_get_phy_dev() = here and > >> > in exynos platform specific code use usb_bind_phy() to bind the phy = and > >> > controller till you change it to dt. > >> > > >> > >> We have dt support for dwc3-exynos, in such case we should go ahead wi= th > >> of_platform_populate(), right ? > >> But if when i use of_platform_populate() i will not be able to set > >> dma_mask to dwc3->dev. :-( > > > > do you have a special need for dma_mask because OF already sets it. > > > If i am not wrong of_platform_device_create_pdata() will set > "dev->dev.coherent_dma_mask =3D DMA_BIT_MASK(32)" > and not dma_mask. > I fact we had some discussion sometime back when we needed the same > for dwc3-exynos in the thread: > [PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree >=20 > But couldn't get final node on it. > So suggestions here please. :-) hmm.. you're right there. Grant, Rob ? Any hints ? --=20 balbi --Wb5NtZlyOqqy58h0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJRCo/8AAoJEIaOsuA1yqREvg4P/itRRSrXkp2YjvxVzI+1iSCa /AZ2ojmw5JnBQiSd9kANnWwhTbuE5iSPjPEZA2N/i9AxdicJDM8lGEml4EMe6oNj XRU/5SAxjTNvIAVOue+jtBNCpzWQcriKqBnvHMMkAbMPBM83ie6xmvppWXU5Wyz6 DrmREzEq1GWDfN84/AEhb4ClXvGsJMY4V6OM24yihSPaI5N/fsIYjpYAegqOth9V 6H7egg+Z0/nEKihmm8Vbt1/iBh1ElVVKKDaScWvbjqXZxrRlvYxesUzAPUOQxi9Q gZNyRw1Axn6xv2UGjqLVhukWg0UbeATLp1MSgZqoPkGB1ybxjPsBdAdSfmBF8RrB 9qJbxvhJJXSCaiJ6uDvxdHqLIVWtG36kWIEEpeAvQMpOQ/fNdV8sF8hL8fmxoYMu 6SHCHY+hR7P6Egw0OkuERW4KoiTWoFXHA6kN7pXVtMScUTlItUvlSoy4Z7gPhVSm k5papQ93O1BgSjxH1Ff12rr9hinrFeAqh75enUGuWToBJnsG7UzJ/Lktd2HUZ+oT /fIjBb3Nj5XmUIxrXbQoTa4vhj+WGoWuu8RngX9Sti+JVWwleR/pC8QVdbglwmQo ccfhBNJdHQTifLOVNs0dKBtyy+BnIbHJKzPX7NLcGMQnPqzr6UxBggn6QrGSAUdW a/YDP1RkMqEGLfV+0wDQ =RShY -----END PGP SIGNATURE----- --Wb5NtZlyOqqy58h0-- --===============6076041516058911706== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org https://lists.ozlabs.org/listinfo/devicetree-discuss --===============6076041516058911706==--