Skip to content

Commit 986475a

Browse files
noglitchclaudiubeznea
authored andcommitted
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> [claudiu.beznea@microchip.com: rebase it on 4.14] Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent 979ede9 commit 986475a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3945,6 +3945,13 @@ static const struct macb_config at91sam9260_config = {
39453945
.init = macb_init,
39463946
};
39473947

3948+
static const struct macb_config sama5d3macb_config = {
3949+
.caps = MACB_CAPS_SG_DISABLED
3950+
| MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII,
3951+
.clk_init = macb_clk_init,
3952+
.init = macb_init,
3953+
};
3954+
39483955
static const struct macb_config pc302gem_config = {
39493956
.caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE,
39503957
.dma_burst_length = 16,
@@ -4013,6 +4020,7 @@ static const struct of_device_id macb_dt_ids[] = {
40134020
{ .compatible = "cdns,gem", .data = &pc302gem_config },
40144021
{ .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config },
40154022
{ .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config },
4023+
{ .compatible = "atmel,sama5d3-macb", .data = &sama5d3macb_config },
40164024
{ .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config },
40174025
{ .compatible = "cdns,at91rm9200-emac", .data = &emac_config },
40184026
{ .compatible = "cdns,emac", .data = &emac_config },

0 commit comments

Comments
 (0)