diff options
author | Stefan Wahren <wahrenst@gmx.net> | 2019-11-11 22:49:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-13 07:07:59 +0300 |
commit | a50e3a9931c198313b404b897f3cd47d8fc0999b (patch) | |
tree | 05f9b985c2a98f375ade631dd6118c5b0c40f94d /drivers/net/ethernet/broadcom/genet/bcmgenet.h | |
parent | f7bda51fac34da47bf8d5a24293e911c2df6e53b (diff) | |
download | linux-a50e3a9931c198313b404b897f3cd47d8fc0999b.tar.xz |
net: bcmgenet: Add BCM2711 support
The BCM2711 needs a different maximum DMA burst length. If not set
accordingly a timeout in the transmit queue happens and no package
can be sent. So use the new compatible to derive this value.
Until now the GENET HW version was used as the platform identifier.
This doesn't work with SoC-specific modifications, so introduce a proper
platform data structure.
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/genet/bcmgenet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.h b/drivers/net/ethernet/broadcom/genet/bcmgenet.h index dbc69d8fa05f..a5659197598f 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.h +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.h @@ -664,6 +664,7 @@ struct bcmgenet_priv { bool crc_fwd_en; unsigned int dma_rx_chk_bit; + u32 dma_max_burst_length; u32 msg_enable; |