mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
net: sparx5: replace sparx5_start() with sparx5_forwarding_init()
With all subsystem initializations moved out, sparx5_start() only sets up forwarding (UPSIDs, CPU ports, masks, PGIDs, FCS, watermarks). Rename it to sparx5_forwarding_init() and make it void since it cannot fail. This removes sparx5_start() entirely. Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Link: https://patch.msgid.link/20260227-sparx5-init-deinit-v2-9-10ba54ccf005@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8b1e4a6747
commit
1e540c4d8f
|
|
@ -735,7 +735,7 @@ static void sparx5_board_init(struct sparx5 *sparx5)
|
|||
GCB_HW_SGPIO_TO_SD_MAP_CFG(idx));
|
||||
}
|
||||
|
||||
static int sparx5_start(struct sparx5 *sparx5)
|
||||
static void sparx5_forwarding_init(struct sparx5 *sparx5)
|
||||
{
|
||||
const struct sparx5_consts *consts = sparx5->data->consts;
|
||||
u32 idx;
|
||||
|
|
@ -779,7 +779,6 @@ static int sparx5_start(struct sparx5 *sparx5)
|
|||
/* Enable queue limitation watermarks */
|
||||
sparx5_qlim_set(sparx5);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mchp_sparx5_probe(struct platform_device *pdev)
|
||||
|
|
@ -943,12 +942,7 @@ static int mchp_sparx5_probe(struct platform_device *pdev)
|
|||
sparx5_pgid_init(sparx5);
|
||||
sparx5_vlan_init(sparx5);
|
||||
sparx5_board_init(sparx5);
|
||||
|
||||
err = sparx5_start(sparx5);
|
||||
if (err) {
|
||||
dev_err(sparx5->dev, "Start failed\n");
|
||||
goto cleanup_ports;
|
||||
}
|
||||
sparx5_forwarding_init(sparx5);
|
||||
|
||||
err = sparx5_calendar_init(sparx5);
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user