Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932145AbbHOCNF (ORCPT ); Fri, 14 Aug 2015 22:13:05 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:44372 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754527AbbHOCNA (ORCPT ); Fri, 14 Aug 2015 22:13:00 -0400 Date: Fri, 14 Aug 2015 20:19:20 +0100 From: Mark Brown To: Nicolas Boichat Cc: Kukjin Kim , Krzysztof Kozlowski , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Message-ID: <20150814191920.GK10748@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="m699nQIRt8EJjqXo" Content-Disposition: inline In-Reply-To: X-Cookie: if it GLISTENS, gobble it!! User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 70.98.210.100 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 1/3] spi: bitbang: Replace spinlock by mutex when calling chipselect 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: 1213 Lines: 35 --m699nQIRt8EJjqXo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 05, 2015 at 06:24:05PM +0800, Nicolas Boichat wrote: > Anyway, the "safer" way to fix this would be to keep the > prepare/unprepare functions, busy variable, and just protect it with a > mutex instead of a spinlock... OK, that seems reasonable. --m699nQIRt8EJjqXo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVzj83AAoJECTWi3JdVIfQWuUH/19SfPqefeJoOALciub7mK2U r23lPEHb1/6LVTG3s4dCMe0plCO8fob2XZKnAOHDbo289jCCZAy8Sa8a3S99fa6L 6rphlxrPXRKPD//6b2crahJWRvFer4gFt2+HZsdg/NNBu97ugkcUkORArVKKXNDu R4e6JGyPLgRaxOxHt62XkQjvzqtSmiSCsxxxadCkUu/wzy4TCPM/YTnhaW6SzGJh bSPo++svP+f9S3lQKVAVSwHoAphRn96JjTUvSGcW2r4CHDQQG3rki5tXlFHiHJIw j1x+45g5IPHmj/3hfVLc6RjCOGknNq1wpiicXsY9BWU8dwHLXbUf0N3X0M6YzQ8= =Wqn0 -----END PGP SIGNATURE----- --m699nQIRt8EJjqXo-- -- 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/