Re: [PATCH net-next v3] dsa: lan9303: Add 3 ethtool stats

From: Andrew Lunn
Date: Wed Nov 30 2022 - 11:01:00 EST


On Wed, Nov 30, 2022 at 03:57:35PM +0000, Jerry.Ray@xxxxxxxxxxxxx wrote:
> >> static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port,
> >> uint64_t *data)
> >> {
> >> struct lan9303 *chip = ds->priv;
> >> - unsigned int u;
> >> + unsigned int i, u;
> >>
> >> for (u = 0; u < ARRAY_SIZE(lan9303_mib); u++) {
> >> u32 reg;
> >> int ret;
> >>
> >> - ret = lan9303_read_switch_port(
> >> - chip, port, lan9303_mib[u].offset, &reg);
> >> -
> >> + /* Read Port-based MIB stats. */
> >> + ret = lan9303_read_switch_port(chip, port,
> >> + lan9303_mib[u].offset,
> >> + &reg);
> >
> >Speaking of unrelated changes...
> >
>
> Cleaning up a warning generated from checkpatch

Cleanups a good, but please put them in a patch of their own.

https://www.kernel.org/doc/html/v4.10/process/submitting-patches.html#separate-your-changes

3) Separate your changes

Separate each logical change into a separate patch.

Andrew