Skip to content

Commit 464322e

Browse files
committed
net: macb: disable scatter-gather for macb on sama5d3
Create a new configuration for the sama5d3-macb new compatibility string. This configuration disables scatter-gather because we experienced lock down of the macb interface of this particular SoC under very high load. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
1 parent 2a41b8f commit 464322e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • drivers/net/ethernet/cadence

drivers/net/ethernet/cadence/macb.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,6 +2861,13 @@ static const struct macb_config at91sam9260_config = {
28612861
.init = macb_init,
28622862
};
28632863

2864+
static const struct macb_config sama5d3macb_config = {
2865+
.caps = MACB_CAPS_SG_DISABLED
2866+
| MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII,
2867+
.clk_init = macb_clk_init,
2868+
.init = macb_init,
2869+
};
2870+
28642871
static const struct macb_config pc302gem_config = {
28652872
.caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE,
28662873
.dma_burst_length = 16,
@@ -2925,6 +2932,7 @@ static const struct of_device_id macb_dt_ids[] = {
29252932
{ .compatible = "cdns,gem", .data = &pc302gem_config },
29262933
{ .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config },
29272934
{ .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config },
2935+
{ .compatible = "atmel,sama5d3-macb", .data = &sama5d3macb_config },
29282936
{ .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config },
29292937
{ .compatible = "cdns,at91rm9200-emac", .data = &emac_config },
29302938
{ .compatible = "cdns,emac", .data = &emac_config },

0 commit comments

Comments
 (0)