Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753818AbbDTUhO (ORCPT ); Mon, 20 Apr 2015 16:37:14 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:38794 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753278AbbDTUhL (ORCPT ); Mon, 20 Apr 2015 16:37:11 -0400 Date: Mon, 20 Apr 2015 21:37:03 +0100 From: Mark Brown To: Bert Vermeulen Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20150420203703.GG14892@sirena.org.uk> References: <1429538005-1985-1-git-send-email-bert@biot.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wtjvnLv0o8UUzur2" Content-Disposition: inline In-Reply-To: <1429538005-1985-1-git-send-email-bert@biot.com> X-Cookie: Everyone hates me because I'm paranoid. User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] spi: rb4xx: Fix set_cs logic. 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 Content-Length: 1500 Lines: 39 --wtjvnLv0o8UUzur2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 20, 2015 at 03:53:25PM +0200, Bert Vermeulen wrote: > As it turns out, the set_cs() enable parameter refers to the logic level > on the CS pin, not the state of chip selection. > This broke functionality of the LEDs behind the CPLD, or at least delayed > the commands until another one came in to toggle CS. No, the enable parameter *should* refer to chip select assertion (see how we handle GPIO chip selects). However it's possible that this device has an inverted chip select and should be registered with the SPI_CS_HIGH flag? --wtjvnLv0o8UUzur2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVNWNvAAoJECTWi3JdVIfQEQYH/1bvHp22WPxaKrrlichE86xh tVCjq06vdcygcenPKgKwvyMCdjpZN/67x2rET8He8Vxl29C1Ax/1f477WM7miI8Y XLdaMb73dWFnw45xYp65eEytuxz3x+ig0+T5BCJDzG9hAHP88SO7ksGMeI9G2Dzk oKmDawvM18RD4f3h5m4ttn+joUa/iT/Rnol5TlNzN3wP57LBYGOprqdFjDwuTp5y LsLzDVWSojCyJn/SAMtyNMWjLRkyvMiAN5PN0IRW7qLvf/yuWEpR5QXVaM7LFm2Z joozo0/bPssxqV82aLzVbnCf1fESSIkEvEbGgPCI7c4vH6QCBSHA4rsAi/d/XGU= =U9E6 -----END PGP SIGNATURE----- --wtjvnLv0o8UUzur2-- -- 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/