]> 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)
commit0fa656bc8dcc7ce3c73966316a703a261efe23bb
treea9cd84e9a51f7a382e0e36137938c24f575ad0a9
parentfd95fc96c0a927b4dabb9d238dc637c5003272bc
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