Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp625315lqp; Thu, 21 Mar 2024 10:31:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrNJOLAXQnnnETj2kv9HRgaeCcXSJBT6T09Exmqv2Bknw9goiWKIe5RWD2K8Qfu8YrOUCbmASkukSILgOY5je0qK57H/9MOQbqJGLOZw== X-Google-Smtp-Source: AGHT+IFxXC4grBGNI8d+P2kqzzWcI2iwt0an8yo9GG41XAtCnw1I4a2qh8bcaD8wlY57aK2Xd/1T X-Received: by 2002:a17:902:a3c6:b0:1dd:22ec:7b22 with SMTP id q6-20020a170902a3c600b001dd22ec7b22mr52643plb.33.1711042318991; Thu, 21 Mar 2024 10:31:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711042318; cv=pass; d=google.com; s=arc-20160816; b=TNtfWYIF+V+KjqFhQ8QOoEzXRA1xBPAICCxRXgrMce2cigLpXxirqGnsUOJlNcoBKB gkZJj3BGm5KJpCTwxJOyZeuTjLlInuLnA4ImTgLSkFn5KvI/n9wKvo5TAa5DW2mmzeY2 q0uE63H7f87/4tvtJNzdO+Hmef+7Ki7EwHDI/DfGjOH9m087HNoe5dV8fiN76PP143jf KFmlMeRERtBw8BjEGVYJcypvfWNDN5FXBOM3Pm/L/vL877Evdk+b6ApLF1pben3YlLoI mn90y1TiR/CI8yiX+LqVoeVQcGeB804tL2/DWxoqlD5Gy7cZeOKLEDxZS60eNC7E/Hqv M5TA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:from:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=pcnpVB9B+wK6S5xU5z7gMqbvi3NhXemnsIIxxvVw+nY=; fh=QRRWXVEo0rc13M+NhFvr3Ew1g+5u28U9gLRl2r4MdmY=; b=VmVP2kkSeU1gPXqA/qFO4vvX5G6RruqYvA3PqM1RYNwUKlJKKsJs9HGuyMWks2lMun FuO4SROl2CwOHSnWKWiFt8XWPJFRby0jmcunxdZ49TMyF2sTpDaqdFNu8xPozT4rhznA OWcEUw3xXG3LOJ8p5TDPX4iJySNXMeg1guyEP6PGWPUkR6UBa4A535pf0o7VeJcIB2bD yY9qnUbcnTGm90lkbWXR9sAOf7QCkPzwgY+vXb3h8Q1i43rKF0lXbg3efzb0Iki+r6nL 7Mmtkt8/SaY/oZbjUUKzB931ff+K34+x6hmSXW7q8Uipk0mbcDSiS9PrmYS9OcaT1M4f HHVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=matfyz.cz dmarc=pass fromdomain=matfyz.cz); spf=pass (google.com: domain of linux-kernel+bounces-110499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=matfyz.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v13-20020a170902e8cd00b001deedc15de9si123991plg.157.2024.03.21.10.31.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 10:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=matfyz.cz dmarc=pass fromdomain=matfyz.cz); spf=pass (google.com: domain of linux-kernel+bounces-110499-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110499-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=matfyz.cz 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9F94F283679 for ; Thu, 21 Mar 2024 17:31:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEABA85C5E; Thu, 21 Mar 2024 17:31:50 +0000 (UTC) Received: from smtp1.ms.mff.cuni.cz (smtp-in1.ms.mff.cuni.cz [195.113.20.234]) (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 949D117590; Thu, 21 Mar 2024 17:31:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.113.20.234 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711042310; cv=none; b=XYK8f4SU2IyL3kVNjWSBSKn/nEunFw+uFu8gGOpzRrM01Dil9RGnHnohXW0np6JffG0nOJHXA8lZENKo2BPRLg3nQu4utGj3LHido0Ho36fDrNzDhB3Ar0VwFVtfYgS5HRpXfEm1M+cg0g7tzFjtG5ft3OXb5kzl6PtLQP/OvCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711042310; c=relaxed/simple; bh=lRZvAs6e51QxA2WQumhhbAA6NHprYtIDHJic0YkCZfA=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Cc:Subject: References:In-Reply-To; b=IjL58E79/RQRbMuAnGEN3pSohS6solQmWUQEc0DDFa6+F/OeFv1vFyE6Grqqq/NnTyWnEfbMPOhMjgjqa6TXobQEJpCEsgmsAlSp2/WZE894mWNl8/wYtfxEwQ1db7NLaWS3nkDdkvsejehCzrSBlupecYfGatYfN6Fl0tE+p0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz; spf=pass smtp.mailfrom=matfyz.cz; arc=none smtp.client-ip=195.113.20.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=matfyz.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=matfyz.cz X-SubmittedBy: id balejk@matfyz.cz subject /postalCode=110+2000/O=Univerzita+20Karlova/street=Ovocn+5CxC3+5CxBD+20trh+20560/5/ST=Praha,+20Hlavn+5CxC3+5CxAD+20m+5CxC4+5Cx9Bsto/C=CZ/CN=Karel+20Balej/emailAddress=balejk@matfyz.cz serial F5FD910E8FE2121B897F7E55B84E351D issued by /C=NL/O=GEANT+20Vereniging/CN=GEANT+20Personal+20CA+204 auth type TLS.CUNI Received: from localhost (koleje-wifi-0015.koleje.cuni.cz [78.128.191.15]) (authenticated) by smtp1.ms.mff.cuni.cz (8.16.1/8.16.1) with ESMTPS id 42LHVUUq096433 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Thu, 21 Mar 2024 18:31:32 +0100 (CET) (envelope-from balejk@matfyz.cz) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 Mar 2024 18:32:03 +0100 Message-Id: To: "Mark Brown" From: "Karel Balej" Cc: "Lee Jones" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Dmitry Torokhov" , "Liam Girdwood" , , , , =?utf-8?q?Duje_Mihanovi=C4=87?= , <~postmarketos/upstreaming@lists.sr.ht>, Subject: Re: [RFC PATCH v4 2/5] mfd: add driver for Marvell 88PM886 PMIC 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> <879296b4-5186-4170-af3f-971787d28514@sirena.org.uk> <45079e37-dde9-4310-a112-7af49f35ac77@sirena.org.uk> In-Reply-To: <45079e37-dde9-4310-a112-7af49f35ac77@sirena.org.uk> Mark Brown, 2024-03-21T17:17:40+00:00: > On Thu, Mar 21, 2024 at 06:08:16PM +0100, Karel Balej wrote: > > Mark Brown, 2024-03-21T16:58:44+00:00: > > > > > > > > > +static const struct regmap_config pm886_i2c_regmap =3D { > > > > > > > > + .reg_bits =3D 8, > > > > > > > > + .val_bits =3D 8, > > > > > > > > + .max_register =3D PM886_REGMAP_CONF_MAX_REG, > > > > > > > > +}; > > ... > > > > You shouldn't be creating two regmaps for the same set of registers, > > > that just opens the potential for confusion. > > > Just the regmap config is the same. Otherwise, each regmap lives at a > > different I2C address. > > Do they both genuinely have the same maximum register? They do according to the downstream driver which is my only reference. In fact, there the driver defines the configs separately for each regmap but with the same values.