Hi Andrew,
Andrew Lunn <[email protected]> writes:
> -static int mv88e6xxx_get_sset_count(struct dsa_switch *ds, int port)
> +static int _mv88e6xxx_get_sset_count(struct dsa_switch *ds, int port)
> {
> struct mv88e6xxx_chip *chip = ds->priv;
>
> @@ -702,6 +706,19 @@ static int mv88e6xxx_get_sset_count(struct dsa_switch
> *ds, int port)
> return 0;
> }
We worked to remove the old underscore prefix convention. Please don't
add it back... Simply rework the return statements of
mv88e6xxx_get_sset_count to lock/unlock there.
>
> +static int mv88e6xxx_get_sset_count(struct dsa_switch *ds, int port)
> +{
> + struct mv88e6xxx_chip *chip = ds->priv;
> + int ret;
> +
> + mutex_lock(&chip->reg_lock);
> + ret = _mv88e6xxx_get_sset_count(ds, port);
> + mutex_unlock(&chip->reg_lock);
> +
> + return ret;
> +}
> +
> +
Extra newline.
> static void mv88e6xxx_stats_get_stats(struct mv88e6xxx_chip *chip, int port,
> uint64_t *data, int types,
> u16 bank1_select, u16 histogram)
Thanks,
Vivien