Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4409826rwl; Tue, 28 Mar 2023 06:51:07 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8nqzRBHXwPgFlmxntwInSeA9zTGqOAgZRm2do5i4TCvgewfnzaOWsh53mZKbn5S/lteE6 X-Received: by 2002:a17:906:74c5:b0:944:a4a3:486a with SMTP id z5-20020a17090674c500b00944a4a3486amr9196577ejl.24.1680011466863; Tue, 28 Mar 2023 06:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011466; cv=none; d=google.com; s=arc-20160816; b=uC5SbzMNN0yYd3toFNaOhENfekFQ1iY39T3mnNraT2Yef2HHaDZ+jSnJdzNXSUCF2d zAPfTbWT8kBU1TqJTIN6ZpmghjMYs7EFVYjjeg77ayxj3rwToeIQ2WvkAFqHwo/8GWUo oujT+ZDe3Jf1Kh/yApyjlQK0uIDZk+iAod4G6FdpelfBEC1vm7taXyilqx2vG0jYHdBm KSuJTZoxMAKEhLpXHzsMhacThdcYN4kIZGbjksuka6UJ457ACX/erTjJAduAy5j+UFzR 0y6T/xAjBcFdkwpb6smsQQs6nULQzOMzPkPYTCB4hA6/hPljDQNXxGmgZQPSooJS6qlT Qh8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mt2fPpoCHv3etx/7+GSXPHM6kWNp/CtAN1iv470diNg=; b=H1qMFhBiX4bNZ3KV/UyO2jX3biePz633ffT7s2QEAnKX6pEHbvV/SByKxrD7j7fvoQ 3uT8EyLoPSNfyRTBYr9o3+Z1L60UiUwIjz7djH94N8sJVfjfRGMOIh3VrlWb7SngsfAG 3Zt/x7RK1GKE+zqKzjz/Vi46Ofof6Bcy1sIPlCBNZGLmcr59g00Iow89fVkMFXAfnWiT oNH16WcPoAMYc7v5tmXemBpxG1UkTYThXhOgoP825J/onvu/7LoteRfxvp0qt9yKvkrY iCqvWrBuK/v4iLmtlORF0bG9vl8iebyES1oalagIzb2IrRZNvIE4vwna7RaUE85Y/BmF b+VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ma6q4h3V; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh11-20020a170906eb8b00b009272de342c3si30635747ejb.927.2023.03.28.06.50.40; Tue, 28 Mar 2023 06:51:06 -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=@kernel.org header.s=k20201202 header.b=ma6q4h3V; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232630AbjC1NrG (ORCPT + 99 others); Tue, 28 Mar 2023 09:47:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232833AbjC1Nqw (ORCPT ); Tue, 28 Mar 2023 09:46:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 062C0CA2E; Tue, 28 Mar 2023 06:46:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 725F0617BB; Tue, 28 Mar 2023 13:46:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C061C433D2; Tue, 28 Mar 2023 13:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680011208; bh=Mt2fPpoCHv3etx/7+GSXPHM6kWNp/CtAN1iv470diNg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ma6q4h3V/SJ64ME5bOW7EdCe+sFNLNZa/J5CRX7A6PXzQ8XdGeo8JXAMTEuIRHrup ozXFaQSxdNy3d53+uAkjJyw2JkrSa8BbiN1UAmlxIC1FSeLdw4r9o75i66HQERu1Ae Y/mqH6dZR3vU5Uih1yKoDKBzcrypGS5JOcduMngz51H3TeYPpokMP04yVV3Hub8qpU BOtE2krS3kig0ps8/L3LYiJv9NBJ10U349A2yuJ8pskXq3ZmiBttfEma1GmeU5DskR iIgKd7nprIXMyCMQcYSU6o6DRvLf0pGR5gMNCqBUOEJ2oatoJiT/h/l5NDmwRm8wCx flL0DkpKeGCHA== Date: Tue, 28 Mar 2023 14:46:40 +0100 From: Mark Brown To: Nuno =?iso-8859-1?Q?S=E1?= 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" Subject: Re: [PATCH v6 5/5] mfd: max77541: Add ADI MAX77541/MAX77540 PMIC Support Message-ID: References: <20230307112835.81886-1-okan.sahin@analog.com> <20230307112835.81886-6-okan.sahin@analog.com> <20230315175223.GI9667@google.com> <20230315175257.GJ9667@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C+bD4dpjGg+/NmqP" Content-Disposition: inline In-Reply-To: X-Cookie: Oh, wow! Look at the moon! X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 --C+bD4dpjGg+/NmqP Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 28, 2023 at 03:26:44PM +0200, Nuno S=E1 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. --C+bD4dpjGg+/NmqP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmQi778ACgkQJNaLcl1U h9A3jAf/Swfu/yUS1Pclj62j2mBsLC7dH8S8kyafjuDnOqTnv3o6WZJ63VvbqN/P 4pC3PgTLKZV8GFZL6J6m5n0Km4dO8IseWDSF8fahYnVsSQ0DaBVBLEJNpu01GxDf fulyCDV6bA3zwZ5FNOBGtKr9GT2MlBkxIbjo8ZJ6e1l8Imy661DcU8o5mhiv3x0w 7DvMzE+2BAOjRkp/AH7+8BZ1VbqRTj9NGjl63DycHMg5ADfJD/LfOpNwh8PzjsI+ MX4aE1SSl2iyLKXKxuBfi+Ciqx3rMr+NJvKBdLLBUQpo+1Ls8YlhqbeNMFzNi/PJ 0C9FrJbyIZ83jd/GUbd8Bx/YB2PYrw== =E507 -----END PGP SIGNATURE----- --C+bD4dpjGg+/NmqP--