[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aWTuW1ffEWFz5ChH@orome>
Date: Mon, 12 Jan 2026 14:29:30 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Ketan Patil <ketanp@...dia.com>
Cc: krzk@...nel.org, jonathanh@...dia.com, linux-kernel@...r.kernel.org,
linux-tegra@...r.kernel.org
Subject: Re: [PATCH v5 1/4] memory: tegra: Group mc-err related registers
On Fri, Dec 19, 2025 at 11:43:51AM +0000, Ketan Patil wrote:
[...]
> diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h
[...]
> @@ -168,6 +168,23 @@ struct tegra_mc_ops {
> int (*probe_device)(struct tegra_mc *mc, struct device *dev);
> };
>
> +struct tegra_mc_regs {
> + unsigned int mc_cfg_channel_enable;
> + unsigned int mc_err_status;
> + unsigned int mc_err_add;
> + unsigned int mc_err_add_hi;
> + unsigned int mc_err_vpr_status;
> + unsigned int mc_err_vpr_add;
> + unsigned int mc_err_sec_status;
> + unsigned int mc_err_sec_add;
> + unsigned int mc_err_mts_status;
> + unsigned int mc_err_mts_add;
> + unsigned int mc_err_gen_co_status;
> + unsigned int mc_err_gen_co_add;
> + unsigned int mc_err_route_status;
> + unsigned int mc_err_route_add;
There's really no need for the mc_ prefix here since the structure is
already called tegra_mc_regs.
> +};
> +
> struct tegra_mc_soc {
> const struct tegra_mc_client *clients;
> unsigned int num_clients;
> @@ -196,6 +213,7 @@ struct tegra_mc_soc {
>
> const struct tegra_mc_icc_ops *icc_ops;
> const struct tegra_mc_ops *ops;
> + const struct tegra_mc_regs *mc_regs;
> };
Similarly, there's only one "regs" structure, and it's embedded inside a
structure that is all about the MC, so the mc_ prefix can be omitted.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists