Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1661698lqm; Fri, 3 May 2024 02:37:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVB32haK8PjgPCNfDIgxNhttIZHEuQKp82O/00o3ffzAVe3jJY4ft4bqiZY99ZGkNdF8bn26HiM/fofDrsmQ6yYcCgKGXlFeTzXqFyjBg== X-Google-Smtp-Source: AGHT+IERfvzdYkVfdO+9KQOZJKwfNAR481uL4ZevUK1bWasfUfkRPD32tpDkzWn1aFrdH5FZQIAQ X-Received: by 2002:a05:6870:46a3:b0:233:d4b3:9b30 with SMTP id a35-20020a05687046a300b00233d4b39b30mr2511589oap.1.1714729038663; Fri, 03 May 2024 02:37:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714729038; cv=pass; d=google.com; s=arc-20160816; b=O1LKjBhCfiXF16ZUS5S87aujO6jw6sCUgvaqSLF3byWiNbvvQME/xryZMW7Nd8rHfd j0bsmgZb8zFHA9YY+uenG0fdGH3vYWUwl3VKW/823rFdUkUM6ph1QMrVHYDJdCddtu60 hJ2m824MX5tqJBDcC3DJK2smcorxb/Zy89+CmxfXojb3p4m7AB4ytpoH/kE0wRSORhGY V1zBSOpc+C1CbUrG+Sk4uIHGgpdtbFQa+lyce3EoA5hGLZsuAvCfaKPRunBqlggGAQlD j+ne/N8YJSaht3hwNxNPfbme1gb3H9Kwiviwfo97Q+ZxXwHGAA5iZdvlZZJZLFmhgcns mmxw== ARC-Message-Signature: i=2; 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=CxHrQEjtpD0XXF1Vz/48C0FT2kSLSSp7vg4M3drbu6w=; fh=eBbknorkvw7X63aEvim/BW/pjeueHJWta1Q/8AvGY4Q=; b=O0zK221aRFN5HBX/qGDZPbDgftsj1Z1cr5lXaedPYC9HYzFrnAac2uFMqzPfL1ZW8v O+hjEHldcFue2dr0oTAJfA8MN5J/eiz98n4lP9LWJ0V6t89tNyYxVY6m4AK2FGFPvp2E eKFb3qh0+25SWITmb2+P4dj1HRSn9AGyWLIjIyfunuvXPtLRwYLlDY5QDo0e3O3vuzZP dmurilkTy5wLln4LD/dYnwbEHe9C7C/7XyzZB7OAiHvZlMZJttjZvU/S5RQ31IyFQ92+ /FNUjXOiw51Y4M0w2tBVud/rSj8FUNoWvYRtqghA5vh/qKer9Z5oVxYlyuKVvaFaJuEo 44/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YoiDuEgm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167470-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 q12-20020a056a00084c00b006f3ee960d5csi2777601pfk.385.2024.05.03.02.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 02:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167470-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=YoiDuEgm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167470-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 CD3E3B20E69 for ; Fri, 3 May 2024 09:36:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56AE114F13B; Fri, 3 May 2024 09:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YoiDuEgm" 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 7B1F7139CE5 for ; Fri, 3 May 2024 09:36:08 +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=1714728968; cv=none; b=I3ia5J5vBS0/Ylk2nUxgfK4uvIWMFUXRuF+noWaAFMg7xvnNQ759Bc5QS+G5VSuW4m92apUABadsUsueRSggTj8Ibgald/OARjeXYWl+UT1FVtZggZgZ5XiJ7ND9T6aMV5+l3lc4CoH/vEBj7tjrNHOkUu+N55PFHODxbQ6aefU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714728968; c=relaxed/simple; bh=C7XFDo4hhiACl+wVIfnERAMzvyYgBlfRWYA4uR9ogoc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DB0/wOGqORkNBE3SYmQRlW2mIRZHvajfA3RmUv7jxFMf21htKgNAz66PVbCOpm89HghFOOFowt0Bso51loqNZ9A19gDW6olo3frR0bdPNe9Va7UlUsFvC/9ZMlcq8EP8iApmZlr0b9+AJIdS0kXU1hqAx8tB1xZGGmx5tanywFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YoiDuEgm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BA79C116B1; Fri, 3 May 2024 09:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714728968; bh=C7XFDo4hhiACl+wVIfnERAMzvyYgBlfRWYA4uR9ogoc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YoiDuEgmZP4OHd6tzTBJp2IDJbnEtbOVIoWIW/7FPn42N/58Iv4DJbfYojxxa/42W 7us0UDc9GG+RrNA9/msNveq14y+0ljSxJyzdIjzJklBqAsEPwrFpgHWMbFbwa0sRBO u+VvWOsNjEq85ENtvIW6Ehvuo+tu+BwAJvhBb9F6LTv68ksWbNXtYhnsArN4F1iJN3 rpZuGo12J3izh9hLpR0L7D02EjFVNf5G3tmlLuTYfcwQ2J3GNu5TvLuZ6llKDRy47v eJaAUDIiMT0Yg5pXgGeQdZqiL/bV6Nx/PVjaU41O9nlCcrUvd1hiBF6qdtmcE+zKnR SlOMfmXjAqwGA== Date: Fri, 3 May 2024 10:36:04 +0100 From: Lee Jones To: Min Li Cc: linux-kernel@vger.kernel.org, Min Li Subject: Re: [PATCH mfd v2 2/2] mfd: rsmu: add FemtoClock3 support Message-ID: <20240503093604.GO1227636@google.com> References: <20240501163256.28463-1-lnimi@hotmail.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 Wed, 01 May 2024, Min Li wrote: > From: Min Li > > The RENESAS FemtoClock3 Wireless is a high-performance > jitter attenuator, frequency translator, and clock > synthesizer. This patch only adds I2C bus access for > FemtoClock3 through REGMAP. Nit: Choose a better place to line wrap. This block looks odd squished like that. > Signed-off-by: Min Li > --- > drivers/mfd/rsmu_core.c | 10 +++++----- > drivers/mfd/rsmu_i2c.c | 16 ++++++++-------- > include/linux/mfd/rsmu.h | 4 ++-- > 3 files changed, 15 insertions(+), 15 deletions(-) > > diff --git a/drivers/mfd/rsmu_core.c b/drivers/mfd/rsmu_core.c > index 29437fd0b..951ddd92c 100644 > --- a/drivers/mfd/rsmu_core.c > +++ b/drivers/mfd/rsmu_core.c > @@ -40,12 +40,12 @@ static struct mfd_cell rsmu_sabre_devs[] = { > }, > }; > > -static struct mfd_cell rsmu_sl_devs[] = { > +static struct mfd_cell rsmu_fc3_devs[] = { > [RSMU_PHC] = { > - .name = "8v19n85x-phc", > + .name = "rc38xxx-phc", No explanation is provided for this name change. How is this okay? What happened to SnowLotus? > }, > [RSMU_CDEV] = { > - .name = "8v19n85x-cdev", > + .name = "rc38xxx-cdev", > }, > }; > > @@ -61,8 +61,8 @@ int rsmu_core_init(struct rsmu_ddata *rsmu) > case RSMU_SABRE: > cells = rsmu_sabre_devs; > break; > - case RSMU_SL: > - cells = rsmu_sl_devs; > + case RSMU_FC3: > + cells = rsmu_fc3_devs; > break; > default: > dev_err(rsmu->dev, "Unsupported RSMU device type: %d\n", rsmu->type); > diff --git a/drivers/mfd/rsmu_i2c.c b/drivers/mfd/rsmu_i2c.c > index cba64f107..a3f50a184 100644 > --- a/drivers/mfd/rsmu_i2c.c > +++ b/drivers/mfd/rsmu_i2c.c > @@ -262,11 +262,11 @@ static const struct regmap_config rsmu_sabre_regmap_config = { > .can_multi_write = true, > }; > > -static const struct regmap_config rsmu_sl_regmap_config = { > +static const struct regmap_config rsmu_fc3_regmap_config = { > .reg_bits = 16, > .val_bits = 8, > .reg_format_endian = REGMAP_ENDIAN_BIG, > - .max_register = 0x340, > + .max_register = 0xE88, > .cache_type = REGCACHE_NONE, > .can_multi_write = true, > }; > @@ -302,8 +302,8 @@ static int rsmu_i2c_probe(struct i2c_client *client) > case RSMU_SABRE: > cfg = &rsmu_sabre_regmap_config; > break; > - case RSMU_SL: > - cfg = &rsmu_sl_regmap_config; > + case RSMU_FC3: > + cfg = &rsmu_fc3_regmap_config; > break; > default: > dev_err(rsmu->dev, "Unsupported RSMU device type: %d\n", rsmu->type); > @@ -336,8 +336,8 @@ static const struct i2c_device_id rsmu_i2c_id[] = { > { "8a34001", RSMU_CM }, > { "82p33810", RSMU_SABRE }, > { "82p33811", RSMU_SABRE }, > - { "8v19n850", RSMU_SL }, > - { "8v19n851", RSMU_SL }, > + { "rc38xxx0", RSMU_FC3 }, > + { "rc38xxx1", RSMU_FC3 }, > {} > }; > MODULE_DEVICE_TABLE(i2c, rsmu_i2c_id); > @@ -347,8 +347,8 @@ static const struct of_device_id rsmu_i2c_of_match[] = { > { .compatible = "idt,8a34001", .data = (void *)RSMU_CM }, > { .compatible = "idt,82p33810", .data = (void *)RSMU_SABRE }, > { .compatible = "idt,82p33811", .data = (void *)RSMU_SABRE }, > - { .compatible = "idt,8v19n850", .data = (void *)RSMU_SL }, > - { .compatible = "idt,8v19n851", .data = (void *)RSMU_SL }, > + { .compatible = "idt,rc38xxx0", .data = (void *)RSMU_FC3 }, > + { .compatible = "idt,rc38xxx1", .data = (void *)RSMU_FC3 }, > {} > }; > MODULE_DEVICE_TABLE(of, rsmu_i2c_of_match); > diff --git a/include/linux/mfd/rsmu.h b/include/linux/mfd/rsmu.h > index 0379aa207..b4a90fc81 100644 > --- a/include/linux/mfd/rsmu.h > +++ b/include/linux/mfd/rsmu.h > @@ -11,11 +11,11 @@ > #define RSMU_MAX_WRITE_COUNT (255) > #define RSMU_MAX_READ_COUNT (255) > > -/* The supported devices are ClockMatrix, Sabre and SnowLotus */ > +/* The supported devices are ClockMatrix, Sabre and FemtoClock3 */ > enum rsmu_type { > RSMU_CM = 0x34000, > RSMU_SABRE = 0x33810, > - RSMU_SL = 0x19850, > + RSMU_FC3 = 0x38312, > }; > > /** > -- > 2.39.2 > -- Lee Jones [李琼斯]