From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751999AbdLLMSi (ORCPT ); Tue, 12 Dec 2017 07:18:38 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49024 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbdLLMSe (ORCPT ); Tue, 12 Dec 2017 07:18:34 -0500 Date: Tue, 12 Dec 2017 12:18:31 +0000 From: Mark Brown To: Lars-Peter Clausen Cc: Bartosz Golaszewski , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH] regmap: allow to disable all locking mechanisms Message-ID: <20171212121831.GJ16323@sirena.org.uk> References: <20171206142621.1053-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mFHiwr52TKrxpkjc" Content-Disposition: inline In-Reply-To: X-Cookie: This screen intentionally left blank. User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mFHiwr52TKrxpkjc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 12, 2017 at 12:42:47PM +0100, Lars-Peter Clausen wrote: > On 12/06/2017 03:26 PM, Bartosz Golaszewski wrote: > > + * @disable_locking: This regmap is either protected by external means or > > + * is guaranteed not be be accessed from multiple threads. > To guarantee this you need to make sure that a regmap instance with this > flag set does not register a debugfs interface. debugfs file access happens > from a userspace process and hence could (and probably) is in a different > thread than the driver regmap access. That's true, and the debugfs is world readable too so we can't just say it's up to root to be sensible. --mFHiwr52TKrxpkjc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlovyRYACgkQJNaLcl1U h9C8Qgf9EvxMfQVxm9JYFAOUwqNz+4MG88+fvAiaefkNp3fmGUiA7JZbASng5bPV dQ1UoF1IrYwQLc+oOP414pADj7yEVOf2YO2MlgZEclf+Tu2XhNRzafF+CmRjlcN9 /9tzN26LNifbVTLuM+zqTu5u22pHnCmL8D1R/Ckat6yrfoKcr5YgDQXrA2Suymf0 5yr7k/xw9DFjUqG4NQUjCfw9Ow7aY3mg3523t4Sl95+HqNobPP5eXQzyZhVqbFo+ MBHBD7flDs7mNb6xohGAFH+lvVwL+T5AJrgjewU+kmBbc295u1rEwsuNhxIhx9Zd kBid1VGQ8/7qUPnSZxG/gva0OLMtlQ== =5fnq -----END PGP SIGNATURE----- --mFHiwr52TKrxpkjc--