Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755437AbbBLJpL (ORCPT ); Thu, 12 Feb 2015 04:45:11 -0500 Received: from mail-qg0-f53.google.com ([209.85.192.53]:50594 "EHLO mail-qg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754985AbbBLJpH (ORCPT ); Thu, 12 Feb 2015 04:45:07 -0500 Message-ID: <54DC761E.9040701@monstr.eu> Date: Thu, 12 Feb 2015 10:45:02 +0100 From: Michal Simek Reply-To: monstr@monstr.eu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Mark Brown CC: Michal Simek , linux-kernel@vger.kernel.org, =?windows-1252?Q?S=F6ren_Brinkmann?= , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] spi: xilinx: Use standard num-cs binding References: <67f3c196833c427a489ca2c530d08987a6b5ee2a.1421412912.git.michal.simek@xilinx.com> In-Reply-To: <67f3c196833c427a489ca2c530d08987a6b5ee2a.1421412912.git.michal.simek@xilinx.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MhCBIBp2M9q31k8TPg7PJgG0BNemOExcG" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2309 Lines: 77 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MhCBIBp2M9q31k8TPg7PJgG0BNemOExcG Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Mark, On 01/16/2015 01:55 PM, Michal Simek wrote: > Use standard num-cs binding property and setup > "xlnx,num-ss-bits" as deprecated. >=20 > Signed-off-by: Michal Simek > --- >=20 > drivers/spi/spi-xilinx.c | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c > index 79bd84f43430..30e5180195bb 100644 > --- a/drivers/spi/spi-xilinx.c > +++ b/drivers/spi/spi-xilinx.c > @@ -338,8 +338,15 @@ static int xilinx_spi_probe(struct platform_device= *pdev) > num_cs =3D pdata->num_chipselect; > bits_per_word =3D pdata->bits_per_word; > } else { > - of_property_read_u32(pdev->dev.of_node, "xlnx,num-ss-bits", > - &num_cs); > + if (of_property_read_u32(pdev->dev.of_node, "num-cs", > + &num_cs)) { > + if (!of_property_read_u32(pdev->dev.of_node, > + "xlnx,num-ss-bits", > + &num_cs)) { > + dev_err(&pdev->dev, > + "property name 'xlnx,num-ss-bits' is deprecated.\n"); > + } > + } > } >=20 > if (!num_cs) { > -- > 1.8.2.3 >=20 Any update on this one? Thanks, Michal --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform --MhCBIBp2M9q31k8TPg7PJgG0BNemOExcG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlTcdh4ACgkQykllyylKDCEFjgCdEXNpW0QF3cii1zQwKBu2Zx5C zKUAnj3C664yYu9SzIMSuWIzA2Whjgia =ppFA -----END PGP SIGNATURE----- --MhCBIBp2M9q31k8TPg7PJgG0BNemOExcG-- -- 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/