Skip to content

Commit 11527f3

Browse files
elkablodavem330
authored andcommitted
net: dsa: mv88e6xxx: use correct .stats_set_histogram() on Topaz
Commit 40cff8f ("net: dsa: mv88e6xxx: Fix stats histogram mode") introduced wrong .stats_set_histogram() method for Topaz family. The Peridot method should be used instead. Signed-off-by: Marek Behún <[email protected]> Fixes: 40cff8f ("net: dsa: mv88e6xxx: Fix stats histogram mode") Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7da467d commit 11527f3

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+2
-2
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3597,7 +3597,7 @@ static const struct mv88e6xxx_ops mv88e6141_ops = {
35973597
.port_set_cmode = mv88e6341_port_set_cmode,
35983598
.port_setup_message_port = mv88e6xxx_setup_message_port,
35993599
.stats_snapshot = mv88e6390_g1_stats_snapshot,
3600-
.stats_set_histogram = mv88e6095_g1_stats_set_histogram,
3600+
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
36013601
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
36023602
.stats_get_strings = mv88e6320_stats_get_strings,
36033603
.stats_get_stats = mv88e6390_stats_get_stats,
@@ -4398,7 +4398,7 @@ static const struct mv88e6xxx_ops mv88e6341_ops = {
43984398
.port_set_cmode = mv88e6341_port_set_cmode,
43994399
.port_setup_message_port = mv88e6xxx_setup_message_port,
44004400
.stats_snapshot = mv88e6390_g1_stats_snapshot,
4401-
.stats_set_histogram = mv88e6095_g1_stats_set_histogram,
4401+
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
44024402
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
44034403
.stats_get_strings = mv88e6320_stats_get_strings,
44044404
.stats_get_stats = mv88e6390_stats_get_stats,

0 commit comments

Comments
 (0)