]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Apply RXUBR workaround only to versions with errata
authorHarini Katakam <harini.katakam@xilinx.com>
Tue, 29 Jan 2019 09:50:03 +0000 (15:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jan 2019 17:41:04 +0000 (09:41 -0800)
commit8fc9c18a2767cf4481b42d99c2a7d46b5afff698
treea9cd84e9a51f7a382e0e36137938c24f575ad0a9
parent4be4e93849c94d680501b4ea640215c7c2ba752f
net: macb: Apply RXUBR workaround only to versions with errata

The interrupt handler contains a workaround for RX hang applicable
to Zynq and AT91RM9200 only. Subsequent versions do not need this
workaround. This workaround unnecessarily resets RX whenever RX used
bit read is observed, which can be often under heavy traffic. There
is no other action performed on RX UBR interrupt. Hence introduce a
CAPS mask; enable this interrupt and workaround only on affected
versions.

Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c