From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753336AbcAGPmJ (ORCPT ); Thu, 7 Jan 2016 10:42:09 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:40637 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbcAGPmG (ORCPT ); Thu, 7 Jan 2016 10:42:06 -0500 Date: Thu, 7 Jan 2016 15:40:24 +0000 From: Mark Brown To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Cc: Cyrille Pitchen , Nicolas Ferre , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Message-ID: <20160107154024.GF6588@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kb0TSCuX821Ar6UT" Content-Disposition: inline In-Reply-To: X-Cookie: APL hackers do it in the quad. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH v3 1/3] spi: atmel: add support for the internal chip-select of the spi controller X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kb0TSCuX821Ar6UT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 05, 2016 at 09:50:54PM +0000, M=E5ns Rullg=E5rd wrote: > Cyrille Pitchen writes: > > + as->use_cs_gpios =3D true; > > + if (atmel_spi_is_v2(as) && > > + !of_get_property(pdev->dev.of_node, "cs-gpios", NULL)) { > > + as->use_cs_gpios =3D false; > > + master->num_chipselect =3D 4; > > + } > This part breaks the AVR32 boards and probably anything else that > doesn't use devicetree but does use GPIOs for chip select. Shouldn't this just be setting defaults for the case where nothing is provided? --kb0TSCuX821Ar6UT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWjobnAAoJECTWi3JdVIfQcOIH/0IRDnR/cOnV4JzxMw20Yvll YSsZtp3wzhw4N2iP8QBqXmh2v1nPCEOt86G209PUhHd0o0akfLC1Rd/FoO7YL2oj gQg5nATqrbrW1yx2TQBkMD+FrYr8cGA7Pf402fPK1uSwEmhmnEqoUdx0mbq8a2Go htOtk/npZ/rPGxoeiIpSsg47hipzC4Ny2BkoEYScIjeKGnTPWY1LYGD8E07/+M+Z SNKUv7n50cAZ8qIo5+tDamT8yycfHTRdwdjDDDB24uagx0j7VtQxOsqoUDqsGPGZ 9+/2S1TFvEVR13qHo0UUL6mtiiGQbcI2eFsHoxAKp3JmdQxPwqWjbRCc8Ludma4= =caE8 -----END PGP SIGNATURE----- --kb0TSCuX821Ar6UT--