Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1721331rdd; Thu, 11 Jan 2024 07:27:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCJiZH4xfa36ESSPivoK8IilpU9rnJyLLCY5RSS4IE9ZJ5FVXiL8FqajpycCpczZPdFN2R X-Received: by 2002:a17:902:ee8b:b0:1d5:251:15d9 with SMTP id a11-20020a170902ee8b00b001d5025115d9mr1007588pld.136.1704986825026; Thu, 11 Jan 2024 07:27:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704986825; cv=none; d=google.com; s=arc-20160816; b=To4rA3BOaM0biYfwUQ9eGQFwxJWjwc/IbMgCms5c6zC3UwEoSW/WcLpVhDVI72KfMd we5rDeIogTdafVOMtfV64DPG1xxqKbkV51wWQ0nCTobGbS1L5DiVzDmKzn3k5QX11xgL YfdCax4FbNG44t4r5Y0yqhUSfWXieZcV7QvMcTcwGJR5dM2Z5kLilrCtBGPb/TzXWW6t 8zZW/k0CDwBvH0jMv/UEMj87h10ad2EPl9nEQTkA9gqj7Rei0aWtIoLR6L2ZE2dtr1CO wJuMaHlcJeVAjEGfnZR4e6qREJqbbN28P2hNhohSDPX/43Ef00LSjuvFYG34MdERGzd4 3EfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=77YCUhP2GZRi4RcIKt59OA7OrsgefqvSjGbE1SiHBCA=; fh=2uvvNU5cfCQtk+KNttFeUpr3evcEvabyy3pgy2B2xXw=; b=CbI2maRRp0H8KBb3vksMD/pp2PoDqEj/YChpB7MSJU3ja1DEQVYVZ8dgJOa7m0u8yi /ZqvJXUtYW8CRIWL1QiZxwHpiHY+kC+BpmN1c4ggRRWcP1W4Vrb/qLMoOhstQ4871Jry mGrcr9CGDHP6sR5LcNEl/TPCWbUnXl4HROXS+E5zuSkeyt5R+xjgwdmWWUD8+RNvdfBP bugiq7uKLXHzBf42Ve07OfNYjom0cFNVGDxP2cestNVuPz/VIabs58AaeJhnwYCHy2DA 5xxIq2wvWMsMnoNTK5LOO3TN1KZzUDR1N2Tb7OOEO7TDY2xNANwE+nYuSEH8EjF9Is3T TyNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GGYvglm5; spf=pass (google.com: domain of linux-kernel+bounces-23785-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23785-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w1-20020a170902a70100b001d3714f17easi1286518plq.37.2024.01.11.07.27.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 07:27:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23785-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GGYvglm5; spf=pass (google.com: domain of linux-kernel+bounces-23785-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23785-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B754F286943 for ; Thu, 11 Jan 2024 15:26:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9921A4CB44; Thu, 11 Jan 2024 15:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GGYvglm5" 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 C50E04D127; Thu, 11 Jan 2024 15:25:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 927C8C433C7; Thu, 11 Jan 2024 15:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704986755; bh=ZxKTB6mPR4ix+a5ENOF86x5FJJZQzDK6U+BnWyQUhHA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GGYvglm5SvsGaIX8jj41feRKiWaLnkbslwd+C0Nj0jUfukuNGaUYasmp5QmGDe7y0 ewHud30NKqW9DIIgYVLfQWx98OM9QIyR8rr0FPAH4iQ5utMdS5VD1Y7EOKfgEsF3f3 aiqUs+f7+G/vf2N1HVpuWiRh3y8JbnsYrVGtUSV4Ug/xrDdoQXPqevdrfDVI99cyd1 9S7DXiiv/TcjrgWCln5PaMpd2yxhKAMr/foS1v7d/cokr1aA+QRIm9KiT0lVEo+gpL WjG1TiVboaTKXVwwTCR3ix5HZYaUTblwvXGt/pynPCEh73h81sdyF/kiysLc6kTzJs Xozzz7bgZ8bng== Date: Thu, 11 Jan 2024 15:25:49 +0000 From: Lee Jones To: Karel Balej Cc: Karel Balej , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Duje =?utf-8?Q?Mihanovi=C4=87?= , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: Re: [RFC PATCH 1/5] mfd: 88pm88x: differences with respect to the PMIC RFC series Message-ID: <20240111152549.GL1678981@google.com> References: <20231228100208.2932-1-karelb@gimli.ms.mff.cuni.cz> <20231228100208.2932-2-karelb@gimli.ms.mff.cuni.cz> <20240111105426.GA1678981@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, 11 Jan 2024, Karel Balej wrote: > Lee, > > On Thu Jan 11, 2024 at 11:54 AM CET, Lee Jones wrote: > > The subject needs work. Please tell us what the patches is doing. > > > > On Thu, 28 Dec 2023, Karel Balej wrote: > > > > > From: Karel Balej > > > > A full an complete commit message is a must. > > I have not provided a detailed description here because as I have noted > in the cover letter, this patch will be squashed into the MFD series. I > sent it only as a bridge between the two series, sorry for the > confusion. > > > > diff --git a/include/linux/mfd/88pm88x.h b/include/linux/mfd/88pm88x.h > > > index a34c57447827..9a335f6b9c07 100644 > > > --- a/include/linux/mfd/88pm88x.h > > > +++ b/include/linux/mfd/88pm88x.h > > > @@ -49,6 +49,8 @@ struct pm88x_data { > > > unsigned int whoami; > > > struct reg_sequence *presets; > > > unsigned int num_presets; > > > + struct mfd_cell *devs; > > > + unsigned int num_devs; > > > > Why are you adding extra abstraction? > > Right, this is probably not necessary now since I'm only implementing > support for one of the chips - it's just that I keep thinking about it > as a driver for both of them and thus tend to write it a bit more > abstractly. Shall I then drop this and also the `presets` member which > is also chip-specific? Even if you were to support multiple devices, this strategy is unusual and isn't likely to be accepted. With respect to the other variables, you are in a better position to know if they are still required. By the sounds of it, I'd suggest it might be better to remove them. -- Lee Jones [李琼斯]