Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1561170rdd; Thu, 11 Jan 2024 03:01:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfgbXVIVOe6WpyHk5tS5EdTTdSUFI0sJgWUZpwiARW1UMJhC6nXGfC/tNoPBPyauO6Y20D X-Received: by 2002:a17:90a:d249:b0:28d:dbf5:f211 with SMTP id o9-20020a17090ad24900b0028ddbf5f211mr707833pjw.36.1704970861830; Thu, 11 Jan 2024 03:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704970861; cv=none; d=google.com; s=arc-20160816; b=BfCZVE2vMLlEYWPOTEx7hkMsb+lGqLa/r0XtzNTVQovRs6ZYzV3PWvWednPcbeR+oy YJkCub8oeoT+EOiluFOWhEC0RsuyWxJL5s3z1AZ5d6Xh6CCcXIhm1MrtVfnlBuiWJDu3 Ay1LyO2zzotbY7hEHVYKw130uEs7yd75R6y8ZwUFuuqwIecnhB4bjNXjLLjlR5wl6CWT jxT4kNHUe221zBHl9Ii7kDp2gfbhYlT0FT0LrYM+OVEulSxncjtPGnQygHf+n61iogDT spyiVOPysbJu3HWsKP+xjWFhCZfHEcgWMPBBV7F04vVl2kGuuuWM2vdG1fHtlBW9VgQa h3tA== 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=ikStfG1juj0NmgH1oP6CjE0j2cDWvUv6imNjR9sR8Sw=; fh=2uvvNU5cfCQtk+KNttFeUpr3evcEvabyy3pgy2B2xXw=; b=EQaUDoGYdmY08HEF1gGIWgb2dSDZ9CSJ68IkB+SYdrHEEHqod2wAVPRDvYTZpKCoMy Ho1v5/j9ReG3iRRY0qJOnrncA/hoqlMOmiFqVYACLnFelIH8LojQkfsIgfV6UNShN3Kb CWhrOFnPk0vI7WvnGAA0zlI8mSAmayzfsi1FbBZz77orlJnhTJsdL3iy6rv320R9RQoQ wMtQVgcBxtf4D1Cw0kQ1n0tb54UMhKfP+eV+bLoQ7vEVAQER3FJlHebWtv9E7c2AHiVa RVFW+67JUNLLE6sxwWbkEvHAJt6li0IZ4EBX4X/KXstPmseD/VoC3ybVRNJu/cL7jNcC FKMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tq7X+Qxj; spf=pass (google.com: domain of linux-kernel+bounces-23430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s8-20020a17090aad8800b0028bd6fd8b2dsi3498052pjq.83.2024.01.11.03.01.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:01:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tq7X+Qxj; spf=pass (google.com: domain of linux-kernel+bounces-23430-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23430-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D1961B26E35 for ; Thu, 11 Jan 2024 10:57:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E545315488; Thu, 11 Jan 2024 10:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tq7X+Qxj" 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 180C31773B; Thu, 11 Jan 2024 10:54:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1867BC433C7; Thu, 11 Jan 2024 10:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704970471; bh=F45rGXqUG2uAkO0sp6Ly0dJuN2iXFQzvSxj7Y6KeR94=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tq7X+QxjA7bK4hgFg/yRiSGes3CiIQLvTBm4H5I9KTPtRbxND+zNAKYU0PLj7Ap1R CvRC6cKJRCwHqizTqFnswDwJVOcF/aAkT4AHOM9uGrTaUNqYiY7B5X5RfTmZKyyqFh i7iOvGxQDyaOHxClroicbwMDQ9bKSqjsaieL++1zqqvk6zHIHCP7t8WlIVbT7nU224 usYwsP/+8yu7cqzB940YwaMlKyYIF1XsLSz3YbrCkVwJKH4tlMBSztbMW65Sh33bES fQ9UOyYqCeaHtc/zShPXFtojLHtL2oBy9drYTpgquaNAZPU2QhQk7F0WZFzn3zxrVa hacLHu73nSflg== Date: Thu, 11 Jan 2024 10:54:26 +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: <20240111105426.GA1678981@google.com> References: <20231228100208.2932-1-karelb@gimli.ms.mff.cuni.cz> <20231228100208.2932-2-karelb@gimli.ms.mff.cuni.cz> 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: <20231228100208.2932-2-karelb@gimli.ms.mff.cuni.cz> 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. > Signed-off-by: Karel Balej > --- > drivers/mfd/88pm88x.c | 14 ++++++++------ > include/linux/mfd/88pm88x.h | 2 ++ > 2 files changed, 10 insertions(+), 6 deletions(-) > > diff --git a/drivers/mfd/88pm88x.c b/drivers/mfd/88pm88x.c > index 5db6c65b667d..3424d88a58f6 100644 > --- a/drivers/mfd/88pm88x.c > +++ b/drivers/mfd/88pm88x.c > @@ -57,16 +57,16 @@ static struct reg_sequence pm886_presets[] = { > REG_SEQ0(PM88X_REG_BK_OSC_CTRL3, 0xc0), > }; > > -static struct resource onkey_resources[] = { > +static struct resource pm88x_onkey_resources[] = { > DEFINE_RES_IRQ_NAMED(PM88X_IRQ_ONKEY, "88pm88x-onkey"), > }; > > -static struct mfd_cell pm88x_devs[] = { > +static struct mfd_cell pm886_devs[] = { > { > .name = "88pm88x-onkey", > - .num_resources = ARRAY_SIZE(onkey_resources), > - .resources = onkey_resources, > - .id = -1, > + .of_compatible = "marvell,88pm88x-onkey", > + .num_resources = ARRAY_SIZE(pm88x_onkey_resources), > + .resources = pm88x_onkey_resources, > }, > }; > > @@ -74,6 +74,8 @@ static struct pm88x_data pm886_a1_data = { > .whoami = PM886_A1_WHOAMI, > .presets = pm886_presets, > .num_presets = ARRAY_SIZE(pm886_presets), > + .devs = pm886_devs, > + .num_devs = ARRAY_SIZE(pm886_devs), > }; > > static const struct regmap_config pm88x_i2c_regmap = { > @@ -157,7 +159,7 @@ static int pm88x_probe(struct i2c_client *client) > if (ret) > return ret; > > - ret = devm_mfd_add_devices(&client->dev, 0, pm88x_devs, ARRAY_SIZE(pm88x_devs), > + ret = devm_mfd_add_devices(&client->dev, 0, chip->data->devs, chip->data->num_devs, > NULL, 0, regmap_irq_get_domain(chip->irq_data)); > if (ret) { > dev_err(&client->dev, "Failed to add devices: %d\n", ret); > 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? > }; > > struct pm88x_chip { > -- > 2.43.0 > -- Lee Jones [李琼斯]