Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752514AbbEZOrb (ORCPT ); Tue, 26 May 2015 10:47:31 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:54900 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbbEZOr3 (ORCPT ); Tue, 26 May 2015 10:47:29 -0400 Date: Tue, 26 May 2015 09:44:27 -0500 From: Felipe Balbi To: Tomeu Vizoso CC: , =?iso-8859-1?Q?St=E9phane?= Marchesin , Thierry Reding , Dmitry Torokhov , Alexander Holler , Grant Likely , Rob Herring , Mark Rutland , Felipe Balbi , Greg Kroah-Hartman , , Subject: Re: [PATCH 16/21] usb: phy: Probe phy devices on demand Message-ID: <20150526144427.GA26599@saruman.tx.rr.com> Reply-To: References: <1432565608-26036-1-git-send-email-tomeu.vizoso@collabora.com> <1432565608-26036-17-git-send-email-tomeu.vizoso@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <1432565608-26036-17-git-send-email-tomeu.vizoso@collabora.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2317 Lines: 74 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 25, 2015 at 04:53:20PM +0200, Tomeu Vizoso wrote: > When looking up a phy through its DT node, ensure that the corresponding > device has been registered. >=20 > Signed-off-by: Tomeu Vizoso Acked-by: Felipe Balbi > --- > drivers/usb/phy/phy.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c > index d1cd6b5..7084f21 100644 > --- a/drivers/usb/phy/phy.c > +++ b/drivers/usb/phy/phy.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include > #include > =20 > @@ -192,6 +193,8 @@ struct usb_phy *devm_usb_get_phy_by_phandle(struct de= vice *dev, > goto err0; > } > =20 > + of_platform_device_ensure(node); > + > spin_lock_irqsave(&phy_lock, flags); > =20 > phy =3D __of_usb_find_phy(node); > --=20 > 2.4.1 >=20 --=20 balbi --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVZIbLAAoJEIaOsuA1yqREeswQALAScDi4aUgoRQ0duBN1Sy+T gm1VYu/327D8teSBiZBXGDQmefM4EY2o/H1lqtibgjZu0ewRWaPOcdLNgrS/0B30 ++90GJEnkVB1kFTzuwWtEiN7vQI0TmDS8KnOp9MYLvBrzttGqfQwUBOpgDLI0thb NwiFWB+RjzA5/MMTNsoKIH0d8R3+rqK9P/+i/jIgwkIZCXsELSsf79BSCfhkFz+6 7fE3DBEdLu+h8u3Yti5cLgNWQp78YdGoksbSTHg/geE/QEcREHS3aLJqaxOXefCb hm3PSlbK8dXib+kIl7jV9gJpoBaWUx4N9/HOky/j+jAvMOV2rlgl1mLvsOEywLUW kqQy+1ny/XVs0xMxfIWOvb++9YlHibU7S/SoPLsMZNuo/mHXG+1+sk3drk57wE6k hvM4cUee2YARAZZ4LddA21wKhcf6MtTqg1Bht5l0mkriHlUKjTz1YnRZOQi5bi0G WOizTghiPVtRMk9g0qGgB1wRsocVcKQ1q1eJPL+bCIywXpL5HbrbWcAtZYG3F61U Dw+8peW4hYfo+n4k8lphEjLD/Pem44J+KCto9cp+0RVBzDseki2nsRv1A90NHTnn Q1uGyRAEzFeuJjBLYtlaZgAhv2saXUdbbzhaeS3aS2Ru7r2fw8toSaW2X0koHunb Mqtxzy9p1jCN7Vusezs5 =nHkI -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/