Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4501418rwl; Tue, 28 Mar 2023 07:47:17 -0700 (PDT) X-Google-Smtp-Source: AK7set/liLv2jdBXnwPALZuzKZJ6G+fXD6PrOj/EL+nMrZiu4ntxJ71Fufkuqjy2zTq8ITWJF5qm X-Received: by 2002:a05:6a20:be29:b0:d9:e45d:95c8 with SMTP id ge41-20020a056a20be2900b000d9e45d95c8mr11737082pzb.30.1680014837050; Tue, 28 Mar 2023 07:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680014837; cv=none; d=google.com; s=arc-20160816; b=eToarYS8fJ+U4LAdKWlWCx50stnDjQ6qM6g1OSj8bXWJCYvQLimuEMb1ZBR9DKZvQb OGTtokHXWsESk9xcfTMy9ffzwX2KjKcXiBspWTDg1uhWGvM/8x2qxjBIuZs3ux8HUaUl lTLCWZO3nR224gyaM0+B2KSybPrtdtYpr7ZBa4k/DyulgDNpYfeeCj/vuZyD/bwgjLVn y3j/NcgDg7q//sAsVEPE/IOnaV3d5pxwPnaamvamN6ICB0Uws2WKs2v4znKmaOGwy1kx we/r2tkOvQxvenWCg3zqpjqXRj54EjDRfZtlaOXDv22zfam921wvfmyBlsr2VSSgUOhf 4Izw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FkMbx78PMGGSWqEHv/xUPl1O7G/9oMV+PSDaOK7Uc9I=; b=TyxQJlifIhkPXYGtJk/gD9PHYwHP39q5fHMXBgMWO0dglCsu2CJBBTdkFCh0Du7e0C zGB5diPqbznPPUnSQDuaAPzn+nEHlNx7XjOQUOfO+aB9Ofc0+BNRLiIxAfRIkUhMbkCW 9qweT54qnDxuoRBhyw7lHqd/tkBxNSvY9BW4GcYo/RREvlUBM8rrndsC73KMAsV+hd+n Tl/dyifymWZZBiXwogtx5kqJ1U4RVzb1qdn6LYVETGMPiAQxSwSqx5HRSkbU/31OqwfL 3ai0hmwuqLhHFcj4zNgkJEWzd4eaLkUK/sMfDVd/AaTth7fIm4GFAp3B9/8GDCt06yPT sV8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metafoo.de header.s=default2002 header.b=Tv59EcaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=metafoo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a056a00158600b005a8f2051fd3si30899070pfk.230.2023.03.28.07.47.05; Tue, 28 Mar 2023 07:47:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@metafoo.de header.s=default2002 header.b=Tv59EcaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=metafoo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233172AbjC1Oos (ORCPT + 99 others); Tue, 28 Mar 2023 10:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233160AbjC1Ooo (ORCPT ); Tue, 28 Mar 2023 10:44:44 -0400 Received: from www381.your-server.de (www381.your-server.de [78.46.137.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEFD3D516; Tue, 28 Mar 2023 07:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=FkMbx78PMGGSWqEHv/xUPl1O7G/9oMV+PSDaOK7Uc9I=; b=Tv59EcaAY8f/VnS+Gkja/ofEtr r/DCX9G7feP6LIMUVBquq0bbJC5uoS12UPQrm6NkZZZenMA78ghWx2vElob7Rz/3HVtvT+Wp51b8J 7TeOK+/GRmttuechxEzeksosFT9+7pjbqhAMZ4Dw1Fifz2XTQjCQGAteCZmIFPm3jWkx7vPsIgxKQ riaNOmTlR0ItgiKIx2IW4+R/GGFLMEUk7BUKXtf/YDVaKY6f6M1ND40dkFXgefF0lKDQspuom6X30 JP3CGIySDgRNRPi61xf51ag1mkdlSwev67QUR3RNsfBI+NQN3MhG+QzFlQF59N2DyUjPnBsy0oKsn zCkz0bIw==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www381.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1phAYq-0006ez-LR; Tue, 28 Mar 2023 16:44:32 +0200 Received: from [2604:5500:c0e5:eb00:da5e:d3ff:feff:933b] by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phAYp-0009lf-MV; Tue, 28 Mar 2023 16:44:31 +0200 Message-ID: <17956263-2a2b-28dc-bc70-d891850f59dc@metafoo.de> Date: Tue, 28 Mar 2023 07:44:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v6 5/5] mfd: max77541: Add ADI MAX77541/MAX77540 PMIC Support To: Andy Shevchenko , =?UTF-8?Q?Nuno_S=c3=a1?= Cc: Mark Brown , "Sahin, Okan" , Lee Jones , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Jonathan Cameron , Cosmin Tanislav , Stephen Boyd , Caleb Connolly , Lad Prabhakar , "Bolboaca, Ramona" , ChiYuan Huang , "Tilki, Ibrahim" , William Breathitt Gray , Arnd Bergmann , ChiaEn Wu , Haibo Chen , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" References: <20230307112835.81886-1-okan.sahin@analog.com> <20230307112835.81886-6-okan.sahin@analog.com> <20230315175223.GI9667@google.com> <20230315175257.GJ9667@google.com> Content-Language: en-US From: Lars-Peter Clausen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.8/26857/Tue Mar 28 09:23:39 2023) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/28/23 07:35, Andy Shevchenko wrote: > On Tue, Mar 28, 2023 at 04:18:30PM +0200, Nuno Sá wrote: >> On Tue, 2023-03-28 at 14:46 +0100, Mark Brown wrote: >>> On Tue, Mar 28, 2023 at 03:26:44PM +0200, Nuno Sá wrote: >>> >>>> IIRC, regmap_read() is not really reentrant and it is used in the >>>> IIO >>>> driver on the sysfs interface. So, yeah, I think you need the >>>> regmap >>>> lock and better just leave the config as is. Yes, the lock is opt- >>>> out >>>> so let's not disable it :) >>> All the regmap operations are fully thread safe. >> Even if 'config->disable_locking' is set? I think that is what's being >> discussed in here... > In case the driver has its own lock to serialize IO how on earth the regmap > lock is needed. But the driver does not have its own lock.