[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241022085713.GR402847@kernel.org>
Date: Tue, 22 Oct 2024 09:57:13 +0100
From: Simon Horman <horms@...nel.org>
To: Daniel Machon <daniel.machon@...rochip.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
andrew@...n.ch, Lars Povlsen <lars.povlsen@...rochip.com>,
Steen Hegelund <Steen.Hegelund@...rochip.com>,
horatiu.vultur@...rochip.com,
jensemil.schulzostergaard@...rochip.com,
Parthiban.Veerasooran@...rochip.com, Raju.Lakkaraju@...rochip.com,
UNGLinuxDriver@...rochip.com,
Richard Cochran <richardcochran@...il.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, jacob.e.keller@...el.com,
ast@...erby.net, maxime.chevallier@...tlin.com,
netdev@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH net-next 01/15] net: sparx5: add support for lan969x
SKU's and core clock
On Mon, Oct 21, 2024 at 03:58:38PM +0200, Daniel Machon wrote:
> In preparation for lan969x, add lan969x SKU's (Stock Keeping Unit) to
> sparx5_target_chiptype and set the core clock frequency for these
> throughout. Lan969x only supports a core clock frequency of 328MHz.
>
> Reviewed-by: Steen Hegelund <Steen.Hegelund@...rochip.com>
> Signed-off-by: Daniel Machon <daniel.machon@...rochip.com>
...
> diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_main.c b/drivers/net/ethernet/microchip/sparx5/sparx5_main.c
> index d1e9bc030c80..f48b5769e1b3 100644
> --- a/drivers/net/ethernet/microchip/sparx5/sparx5_main.c
> +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_main.c
> @@ -475,6 +475,20 @@ static int sparx5_init_coreclock(struct sparx5 *sparx5)
> else if (sparx5->coreclock == SPX5_CORE_CLOCK_250MHZ)
> freq = 0; /* Not supported */
> break;
> + case SPX5_TARGET_CT_LAN9694:
> + case SPX5_TARGET_CT_LAN9691VAO:
> + case SPX5_TARGET_CT_LAN9694TSN:
> + case SPX5_TARGET_CT_LAN9694RED:
> + case SPX5_TARGET_CT_LAN9696:
> + case SPX5_TARGET_CT_LAN9692VAO:
> + case SPX5_TARGET_CT_LAN9696TSN:
> + case SPX5_TARGET_CT_LAN9696RED:
> + case SPX5_TARGET_CT_LAN9698:
> + case SPX5_TARGET_CT_LAN9693VAO:
> + case SPX5_TARGET_CT_LAN9698TSN:
> + case SPX5_TARGET_CT_LAN9698RED:
> + freq = SPX5_CORE_CLOCK_328MHZ;
> + break;
Hi Daniel,
It is addressed in patch 12/15, but until then pol_upd_int will
be used uninitialised later on in this function when this case it hit.
Flagged by Smatch.
> default:
> dev_err(sparx5->dev, "Target (%#04x) not supported\n",
> sparx5->target_ct);
...
Powered by blists - more mailing lists