From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbdLLLmz (ORCPT ); Tue, 12 Dec 2017 06:42:55 -0500 Received: from www381.your-server.de ([78.46.137.84]:47679 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbdLLLmx (ORCPT ); Tue, 12 Dec 2017 06:42:53 -0500 Subject: Re: [PATCH] regmap: allow to disable all locking mechanisms To: Bartosz Golaszewski , Mark Brown , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org References: <20171206142621.1053-1-brgl@bgdev.pl> From: Lars-Peter Clausen Message-ID: Date: Tue, 12 Dec 2017 12:42:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171206142621.1053-1-brgl@bgdev.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: lars@metafoo.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.