Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4464316rwl; Tue, 28 Mar 2023 07:20:23 -0700 (PDT) X-Google-Smtp-Source: AKy350YbmtylESuzSPNUik1fjcQSDV6KCAHSK8TE3gcWncNzNsBBBSK+jv94RSqhYxCNlggmo5HS X-Received: by 2002:a17:902:c401:b0:1a1:b9e6:2896 with SMTP id k1-20020a170902c40100b001a1b9e62896mr21209599plk.45.1680013223102; Tue, 28 Mar 2023 07:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680013223; cv=none; d=google.com; s=arc-20160816; b=dttV2dVEdlvhGAUioZs9mkecV62aCDAQOCLGzAJG0HrxYF4gfefbqeTzWI4FoS4jng KLs8QDAemWjWJdrRh16zE/mkSmD3mlE6tHZ3XrcsruzHeri1C+x0qRCmUf2A7WBzbxnt Zfp1PByueQlcbQTVbBF7f5eQdWLmvc0/AN6JzqgDGuFXEfKne28sr7TqaL3HJ9UzMS0N F2qeAnJS3tYNSDxXBVO7bh2qKlBC8RxOJLHRFvlnstxVMlDRhC9Au8NaOffx25J4C4UT HT5COx8t6w9uYhgXqSnoAorCJlkiNtjHiGxkdUXVqGCo70YhJw+DUMrXz21wtUThkdKl dTrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=o8BF/ehITJBHp3Ju3uwCdwMFMpGd+i7nMGTmDLnuUcI=; b=Ov+iFrOxd25rNl8jyLbN4HtW95tKTX9x2tDbMNrfKQrxTFIFCSCSHq6Sj24mtv+k/L stigIoKzKdQk/piaJY2u0PyHrVtHnZdBXQunfJuUKwM/Y3fbesmnDFbxTwb/sYxJBtAD khhISTF+FpPTuBDMtxIedBMgkj8EzjWlyapNzyih/GEpwPtoei3hoPBTprcct4VsChjO 1zPjg5mAmpkQvsvijt60U6U/Hr5EwA0sKOIf76SeNozFrf/vS8djmwukk031sajiRNxo Un7kMqDGX29o84zwPHl6JsyD0WlG5Hd7BXTOrW9EjMBTJ7+5jd4qgnBMukY+sCV7Xs7H 3nwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hnPE4C0Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020a63f207000000b0050fb3fdeecdsi17527005pgh.177.2023.03.28.07.20.11; Tue, 28 Mar 2023 07:20:23 -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=@gmail.com header.s=20210112 header.b=hnPE4C0Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbjC1OQr (ORCPT + 99 others); Tue, 28 Mar 2023 10:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233143AbjC1OQb (ORCPT ); Tue, 28 Mar 2023 10:16:31 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1A1C667; Tue, 28 Mar 2023 07:16:28 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id eh3so50275559edb.11; Tue, 28 Mar 2023 07:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680012986; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=o8BF/ehITJBHp3Ju3uwCdwMFMpGd+i7nMGTmDLnuUcI=; b=hnPE4C0Q7h9pxUBmBlrL7oDdySDwCyieYVRBR+zPXoe+EnhBlsUGmJ+Lo9m2V1Urme BsFyMcJdDhSXIHKtizp8DscRzIJX5ob0sk9TRziJMz7nOuqmSUL+v78U+dTlak+xOzOs 3s6n1CVJ4/5J+Nz9QBQOP3I6D76p0zV354KnkuHUumz+RweDv7aB3V0qJHJZGQKqABrT egSq6hS4nf7lJUdLwfe0xVur05L58oagCe3pVXY7C0jHN3jCm2eALB2yi8dqe9r/UEwb ies3Z+shbXPoWjpFNDLGcNldcuYd4NBlmDh3t2FlmfOO63RfqnSa2HTWWkoVd2EC8gfY RS5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680012986; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=o8BF/ehITJBHp3Ju3uwCdwMFMpGd+i7nMGTmDLnuUcI=; b=I2AWDYR3rQ+WM0qs6UTXQBoupmRAdi1YlU4tkS8GNJiJyVRDyHnuPIU/m6fTneCuTU x5sEhunNZNkSgw5It5hwMQfzKgfPZaA31r8cZKXfTGZfXSiRrJbqT4r+knTCcusUmgJK 0OLyIYeANdUdOcUuv+tWGXn63aAGT8lDfvI9gRVMtis77z43VqAX4+cfsLbWPkzGBt+N fCao8N1+b0MGpp9vzgCoxAgTuz5SUvYPTAULccWN4bj5JMzpVJlnPguU9L9V0iEKVf+t Yi/1hZOthDJXUqt5FtdAvfbvh48f/DOirkAzqyPVL+PHJvRJZnSZtfXZr4bu0aH8dQ3f sQLw== X-Gm-Message-State: AAQBX9cpOIKZ5nUfisiHPLSyArKNB2FfZe21K4zXe1ZNV5kMuDsub4DU cuHaStRxOzlrnhJ+HKEll9U= X-Received: by 2002:a17:906:a11a:b0:878:54e3:e3e1 with SMTP id t26-20020a170906a11a00b0087854e3e3e1mr15619559ejy.73.1680012986464; Tue, 28 Mar 2023 07:16:26 -0700 (PDT) Received: from ?IPv6:2003:f6:ef05:8700:853c:3ba5:d710:3c1d? (p200300f6ef058700853c3ba5d7103c1d.dip0.t-ipconnect.de. [2003:f6:ef05:8700:853c:3ba5:d710:3c1d]) by smtp.gmail.com with ESMTPSA id e8-20020a170906c00800b008e1509dde19sm15205685ejz.205.2023.03.28.07.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 07:16:26 -0700 (PDT) Message-ID: Subject: Re: [PATCH v6 5/5] mfd: max77541: Add ADI MAX77541/MAX77540 PMIC Support From: Nuno =?ISO-8859-1?Q?S=E1?= To: Mark Brown Cc: Andy Shevchenko , "Sahin, Okan" , Lee Jones , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Jonathan Cameron , Lars-Peter Clausen , 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" Date: Tue, 28 Mar 2023 16:18:30 +0200 In-Reply-To: References: <20230307112835.81886-1-okan.sahin@analog.com> <20230307112835.81886-6-okan.sahin@analog.com> <20230315175223.GI9667@google.com> <20230315175257.GJ9667@google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, 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 Tue, 2023-03-28 at 14:46 +0100, Mark Brown wrote: > On Tue, Mar 28, 2023 at 03:26:44PM +0200, Nuno S=C3=A1 wrote: >=20 > > 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 :) >=20 > 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... - Nuno S=C3=A1