From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Reichel Subject: Re: [PATCHv3 07/14] HSI: Add common DT binding for HSI client devices Date: Fri, 25 Apr 2014 20:25:36 +0200 Message-ID: <20140425182535.GB22721@earth.universe> References: <1396053110-21639-1-git-send-email-sre@kernel.org> <1396053110-21639-8-git-send-email-sre@kernel.org> <20140419191612.GG5148@amd.pavel.ucw.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pd0ReVV5GZGQvF3a" Return-path: Content-Disposition: inline In-Reply-To: <20140419191612.GG5148@amd.pavel.ucw.cz> Sender: linux-kernel-owner@vger.kernel.org To: Pavel Machek Cc: Linus Walleij , Shubhrajyoti Datta , Carlos Chinea , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Pali =?iso-8859-1?Q?Roh=E1r?= , =?utf-8?B?0JjQstCw0LnQu9C+INCU0LjQvNC40YLRgNC+0LI=?= , Joni Lapilainen , Aaro Koskinen List-Id: devicetree@vger.kernel.org --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 19, 2014 at 09:16:12PM +0200, Pavel Machek wrote: > On Sat 2014-03-29 01:31:43, Sebastian Reichel wrote: > > Implement and document generic DT bindings for HSI clients. > >=20 > > Signed-off-by: Sebastian Reichel >=20 > Reviewed-by: Pavel Machek >=20 > > diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi.c > > index 07e1639..5973906 100644 > > --- a/drivers/hsi/hsi.c > > +++ b/drivers/hsi/hsi.c > > @@ -26,8 +26,14 @@ > > #include > > #include > > #include > > +#include > > +#include > > #include "hsi_core.h" >=20 >=20 > > + err =3D hsi_of_property_parse_mode(client, "hsi-mode", &mode); > > + if (err) { > > + err =3D hsi_of_property_parse_mode(client, "hsi-rx-mode", > > + &cl->rx_cfg.mode); > > + if (err) > > + goto err; > > + > > + err =3D hsi_of_property_parse_mode(client, "hsi-tx-mode", > > + &cl->tx_cfg.mode); > > + if (err) > > + goto err; >=20 > Will this need some #ifdef CONFIG_OF? It would only be needed to reduce the amount of kernel code for disabled Device Tree. I don't think its worth it, since there is no platform in the mainline kernel, which uses HSI without DT. -- Sebastian --Pd0ReVV5GZGQvF3a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTWqifAAoJENju1/PIO/qaqTMP/RurK4MvmYaf+TBeEsZY1QWN Kxb4+o8O6hWkhAhNIrXEVNunJ/TwgR2tYo+fyhYS5HSzngs8uDo5qqDnXVHsSDnm LXbXfnpBduhpYZ4v74XCQ09eeX/dyYaJRFQi22wP3E3PUZqNMFIHK7zAC2Ggdocd 6rz+f+NZrW/BEEx079UYb4DSq4x4vZ/H5CWfncsKVdxZnh5tO6ixfx0XlXJ0U/T3 b1Qpl55zNheVih5uiDyW0XDurrbfcquCpt90FDhNueWGnz59UGMfbke1W/7UU3vG +d7Xk8PP/ZqyvHjRXvXr34WAXK7mS5LnP0ewO2ta6XnU3xMOwgyef1dYtKqRPf2R qTLea7uOnmqdyKGiHqrKW47okWA4sueJHp4khy8f9E2mWOD7Xq7gfYMGBDD62M1z 3jjJG4TCF0smONNh/b3kgPn8ayVaL7l7eJazWEzk6AOMWigQyXQ6sAyM99vuPunU jzswVHEwEDBnUxz2009/5KjA3R1H4ll9V61p7WDiiGMd/BBRHpySJB6ueAvNsJOV 3cJhCzbKNlpxM5afVOOM/sAZ/2Wgu6nZxDJU7warnaCTYRzOuMXUsOXICw5MEDlo yYj9m3eECT7G4BtU9ugCs/VZ1yJPJyDOIwNbUa2NQeXb7hZtIoTcQHD7h3nlOboP f1WojDKwCjBc3C/CrpEF =cMrF -----END PGP SIGNATURE----- --Pd0ReVV5GZGQvF3a--