Skip to content

Commit 4a7d78c

Browse files
Danielmachonkuba-moo
authored andcommitted
net: sparx5: enable FDMA on lan969x
In a previous series, we made sure that FDMA was not initialized and started on lan969x. Now that we are going to support it, undo that change. In addition, make sure the chip ID check is only applicable on Sparx5, as this is a check that is only relevant on this platform. Reviewed-by: Steen Hegelund <[email protected]> Signed-off-by: Daniel Machon <[email protected]> Link: https://patch.msgid.link/20250113-sparx5-lan969x-switch-driver-5-v2-1-c468f02fd623@microchip.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e80ed97 commit 4a7d78c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/ethernet/microchip/sparx5/sparx5_main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,9 @@ static int sparx5_start(struct sparx5 *sparx5)
784784

785785
/* Start Frame DMA with fallback to register based INJ/XTR */
786786
err = -ENXIO;
787-
if (sparx5->fdma_irq >= 0 && is_sparx5(sparx5)) {
788-
if (GCB_CHIP_ID_REV_ID_GET(sparx5->chip_id) > 0)
787+
if (sparx5->fdma_irq >= 0) {
788+
if (GCB_CHIP_ID_REV_ID_GET(sparx5->chip_id) > 0 ||
789+
!is_sparx5(sparx5))
789790
err = devm_request_irq(sparx5->dev,
790791
sparx5->fdma_irq,
791792
sparx5_fdma_handler,

0 commit comments

Comments
 (0)