Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp610364lqp; Thu, 21 Mar 2024 10:08:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBNSgJnxHwke6ypgeyqubyCDlnPOCBf2sCfG27OlSYuMwaT2LAUVDP9QOkR783VfdvhxpNaqHjDmKKyDW+RAyya17w1HR3RoHIsP7g2A== X-Google-Smtp-Source: AGHT+IH+fR1vvAY0F3faS08Z5ijbrTMD5eWWVB9VAzziiPsFcss1E9NzjlEo46B8RdIxeQEhV2q6 X-Received: by 2002:ad4:596f:0:b0:690:a95e:fb5b with SMTP id eq15-20020ad4596f000000b00690a95efb5bmr2426424qvb.29.1711040902418; Thu, 21 Mar 2024 10:08:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711040902; cv=pass; d=google.com; s=arc-20160816; b=SEh+qGwN8tDsnbS6RwqNtwFSXxHvmsIRvL2s5xTPzPTD1uCBv/9w6sGjoJfMUcX0P5 Eno70Cfz48/I8RBAC2e7PYoHKJwKOE8Bt+So10InI3ZzFxfWT0S9Cu1m2yo1ZxKs4CXx ltWmAr2ereQqVChH0o4bBZoXZJk0MPzt9jqCW7DObgokdaO9rpTTlQWpnbOTWYIAhaRR J9tWstS78d4kjr49wi6Dl/GjCJjRvY+zxjBy26KFK4nFX4mJyDfevLsOJSnpTCe1PCrs BiGhGp9+9NofIzJU+t3KWdc7IMmo2tgaKLT8jfWZNfN2xkwzXAO5PyP+UXziDBNgRnMY vMJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=o7MnVB6lVHH0HiYBDQZVH77OmjSf/0eGVwjUbzjTZco=; fh=ajoUvUBPSVRUDV7elHg55EjDpIme1WnNxSidUEX6orU=; b=pEuqlqme8neR7/KwHesMje7DuRFZxFJ/mffk00rW8HxoUXulpmhlSYNa1KNhhsIg+r wTKh7Od2ScOTudWIFHmK4f0sGYsgr1lgs3BU0CBQUjb7xjxRTf324hhMrMVGW6YaU4n/ at4YKUoZVnaEa+XXJD7xAPTmPwgy+poPfbZWV/0pSAGFhfL1dsjUdwHoupfyy5iuTi5t GHLQePwOmT/FU+WJ2E9sBB5AVVvQ9OEU8HiNPNycO21ZPLuC5vWgZnKlfsc+nv1sPAlb CP2Uk1p4dTd8EEPvOT75MbptphcLfIsA3zuJElP3pnOngkSSdxGR/KcUbxovNcegrbKf NVDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sxVMI/IV"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110456-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id kj27-20020a056214529b00b0068cfba18abbsi162350qvb.418.2024.03.21.10.08.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 10:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110456-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sxVMI/IV"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110456-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 736EB1C24037 for ; Thu, 21 Mar 2024 17:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A171350C0; Thu, 21 Mar 2024 16:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sxVMI/IV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 181FE18AE8; Thu, 21 Mar 2024 16:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711040330; cv=none; b=gG/CQAzH3AM2AMH/UY8vAIE5JpMbsxBVJybwDjmBR4Q/OnKKopF0gU+/pmM/H6Wg9EUoxmqYrc0FTnW8BZI9EbPXUiCKvi+HmN1OV2e8/A/Z9Eu6aNs1xkfZxj9Ru19S/TcEgazzlfsWLFl00B/4xFSEREtva3mgp8nMUd1fEXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711040330; c=relaxed/simple; bh=WMfHoNOhghTVhWw9O8SXq+LgpuJpchmhoKsoJ8RY5FY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pB5zRrNqqu4hu54tNW5elW8tl/P+dX0obtfOKUPaM3SrMv7lTSuA0jyNXW450us/w8oiBJDH8U3TIoBkje/Ii8MbSBNYQ8qXBRURXm63n3JwTxOjm+l3PEX7WzNutx8ObZwARzOMa4hWTauRnucup4gFsMVUIIPwpNWmu6NDEY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sxVMI/IV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1365CC433C7; Thu, 21 Mar 2024 16:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711040329; bh=WMfHoNOhghTVhWw9O8SXq+LgpuJpchmhoKsoJ8RY5FY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sxVMI/IVxQZ3x7AFp43PF4dgBna5a3mSwKzrd1u7mSNs4cVZrdSs8lGdG+uzN1byE wXHqg3DUHpwNPvbQMLVkHH70bCotFh10H7RzlRN2fXWf8+esbiFRqqmd0zvE33VdIV 6KfVmiEhOblZFRiqcFGKSsK8HgEYOPeCZZCzH4FfZWH4E00rH0j/5uudtJ6PEj/3he BnvyZ5MOC4YnaIbsvBmYSyyBPWm1HVDXGqw1Qq31WDfb37cXBLTsVY6ow+lhtzkpGz 1oWaf2v9241ms+Xn0/gluUbHeMbVEs6XZdxlIG9R+aTu3LZ85wSD832E3uWg18wpUt lkf222qowAqGQ== Date: Thu, 21 Mar 2024 16:58:44 +0000 From: Mark Brown To: Karel Balej Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Liam Girdwood , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Duje =?utf-8?Q?Mihanovi=C4=87?= , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: Re: [RFC PATCH v4 2/5] mfd: add driver for Marvell 88PM886 PMIC Message-ID: <879296b4-5186-4170-af3f-971787d28514@sirena.org.uk> References: <20240311160110.32185-1-karelb@gimli.ms.mff.cuni.cz> <20240311160110.32185-3-karelb@gimli.ms.mff.cuni.cz> <20240321154211.GA13211@google.com> <20240321162045.GC13211@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XkucS5hq8f1KJRxO" Content-Disposition: inline In-Reply-To: X-Cookie: MIT: --XkucS5hq8f1KJRxO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 21, 2024 at 05:55:17PM +0100, Karel Balej wrote: > Lee Jones, 2024-03-21T16:20:45+00:00: > > On Thu, 21 Mar 2024, Karel Balej wrote: > > > > > +static const struct regmap_config pm886_i2c_regmap = { > > > > > + .reg_bits = 8, > > > > > + .val_bits = 8, > > > > > + .max_register = PM886_REGMAP_CONF_MAX_REG, > > > > > +}; > > > > Why is this in here? > > > Because since I moved the regulators regmap initialization into the > > > regulators driver, I need to access it from there. > > So move it into the regulators driver? > It is used in the MFD driver too for the base regmap. You shouldn't be creating two regmaps for the same set of registers, that just opens the potential for confusion. --XkucS5hq8f1KJRxO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmX8Z0MACgkQJNaLcl1U h9CAcwf/UU9whJTldKYf2Umup+pvhQQafpsIdaLAKZdVwH/4F27rS8pRMp1Cp4n6 nfCNwWaCrnRt8iHni5jzqgtroLfbIjeC5t4MMjvElqtkNTQ2hmGCKFAkofIA/KWk BcKU+0N9riQ8OeUaf2VgxlaMKLP7DZUFV2ln6AeGRZUS5hzZENPn8RrLhIhhM+5m 6VqIssfMZ+gTc4dyrRuVy9X1tn+xIGxEJQuNSSsPP/yTMKgtrufRGztUlBuAoHk2 pzGryzuraqhgU++fHB652FuHhxfQ9MACAH8KXDEzHtgYcSb7eJ6FcjMCqvbPGAb6 kBruh2gv2bEw/5pteRoKXtYkcu8pvA== =RfEQ -----END PGP SIGNATURE----- --XkucS5hq8f1KJRxO--