Skip to content

Fix lan9372 dsa drivers cpu port restriction #6966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: rpi-6.12.y
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/net/dsa/microchip/ksz_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
.num_vlans = 4096,
.num_alus = 1024,
.num_statics = 256,
.cpu_ports = 0x30, /* can be configured as cpu port */
.cpu_ports = 0x38, /* can be configured as cpu port */
.port_cnt = 8, /* total physical port count */
.port_nirqs = 6,
.num_tx_queues = 8,
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/dsa/microchip/lan937x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ void lan937x_config_cpu_port(struct dsa_switch *ds)

/* enable cpu port */
lan937x_port_setup(dev, dp->index, true);
} else {
dev_warn(ds->dev, "port %d cannot be used as cpu port on this device.\n", dp->index);
}
}

Expand Down