OSDN Git Service

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)
commite501070e4db0b67a4c17a5557d1e9d098f3db310
treea9cd84e9a51f7a382e0e36137938c24f575ad0a9
parentb3379a424dde97755ad7a6f4405648a9ea13d6e3
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