Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp612087lqp; Thu, 21 Mar 2024 10:10:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/FZ9vQ3ztJtUny8ABHHOlnXOxFcPGY3Bk/5iX22qfiZ88lrRClZrnVd5olAG+G52G40T+Ag2Fd125mKo9iRg2z8ixOC3WaAbemMvU+A== X-Google-Smtp-Source: AGHT+IE2yvg0TtLnQXsG7+Oj9AkJIHBz1M5t5jdxNoDb164SSVJt1z4o3yUjMLKPz/V9zHC+5E/H X-Received: by 2002:a0c:e212:0:b0:690:b098:1407 with SMTP id q18-20020a0ce212000000b00690b0981407mr6236716qvl.3.1711041047971; Thu, 21 Mar 2024 10:10:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711041047; cv=pass; d=google.com; s=arc-20160816; b=e0vNdQ4r1TWJUL/MAXO7yx8dDZDgw9hc54sTiKvZahWLQY7nnqlBUePL/BWSAsjgJo nLIaiLFnHi7ya3Xji9LH9P+5iCS7hqfiDyE6cvtN0bjibGFJ3f/YPU07f0YB4PW8mC+c Bv+Ui7ed8on2YrKKxmpP+s8vU7PUo7665FJW3Tf3LaD4gAG2mXIGl7IN8cCYVHRDJetl 8h0hO7ML2DqUS1FnS51cLJRajRvriD/4KtQsQ+erbOP1QxBcDMROYjA6TEcE+gc670tH EaPEXrTlwz9eONifa9gi0yCHcPsGk1TRj3VoppxgZFbFK/5HjxOel7aq3sz/Z+ZO5WBi xd9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:subject:cc:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=UtZYbBM2MqBGaY01UVWWDrLL3croxZOt4vo21weZEwo=; fh=kBkmeoCtonk9dRnmUQUBjtoLt3Cr1t+hocoNF1NI2sU=; b=MsJda3GyJL6B+NiLWYJx0u2+V+x3OOJXmNFoiho6/AeZ1ICiOyxr2PsXG9lf5mNT2k XQSvaHojgE9Zeo+W6kjqQ8qyPbEbzAntkWlDee8wo36jt8rHYcPNwEdbYb1KTLvTAHvt 2aBgG1kEFdqGvX0mV7FMAphl+wIMVO1iaMM7p4XtFOwn+q9i6h+RxSuspl18QON+So7k hTNYmHCa8hLRryq10IjJWuXg3Vg7LKDGPYWCC7W8mE/zCGG+mtvoN+fWQd9/6GylAon3 YO4r+YMThsGtTEsPk4Mq9NtN4DrymTxj9dDSpaPlL7Xl7jtkENT2qCdr9g2InMfYioew LqxQ==; 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-110465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=matfyz.cz Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r14-20020a0562140c4e00b006961178758asi184530qvj.221.2024.03.21.10.10.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 10:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110465-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; arc=pass (i=1 spf=pass spfdomain=matfyz.cz dmarc=pass fromdomain=matfyz.cz); spf=pass (google.com: domain of linux-kernel+bounces-110465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110465-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 76DD41C239EE for ; Thu, 21 Mar 2024 17:10:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 139AB1332B1; Thu, 21 Mar 2024 17:08:03 +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 5FC63132C19; Thu, 21 Mar 2024 17:07:59 +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=1711040882; cv=none; b=Dg9cCabYBODjTh2KDGU1Fs4OzcXs10bnjTtdBs8+NLcw17o+a6fmfjsFKAN7uo4K6iWLp3OctY8aC2wtaPRcIloDKNflElf0EnYyYu9aBG0yLA7l/3r3BeodOF9xLre/yzGiO3MPG0d79uNVvI+Q5W2kqXYAg4p8ILbyG2zwlNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711040882; c=relaxed/simple; bh=3eTxWlyZ3yvKG7IqSaj3xnqURvyDX21tfOB8h+e0Gbg=; h=Mime-Version:Content-Type:Date:Message-Id:From:Cc:Subject:To: References:In-Reply-To; b=Xjxa0JEGd8Wd1btRMOjBK7b0/PfbXMAL6MVWlPxQqXtIHg0sSbY87xkka8jLF+scgSLz45VFojCBbn6s9Vhv68qUCny6iPl3I9BEg4K1KckKWLlPl1ZTbPImFZOfigfyqzKdxxVxBr4XyS7UZuGLXbr5VHSQK4NaxVxLmRTPepU= 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 42LH7hHN095693 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Thu, 21 Mar 2024 18:07:44 +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:08:16 +0100 Message-Id: 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 To: "Mark Brown" 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> In-Reply-To: <879296b4-5186-4170-af3f-971787d28514@sirena.org.uk> Mark Brown, 2024-03-21T16:58:44+00:00: > 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 =3D { > > > > > > + .reg_bits =3D 8, > > > > > > + .val_bits =3D 8, > > > > > > + .max_register =3D 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. Just the regmap config is the same. Otherwise, each regmap lives at a different I2C address. Regards, K. B.