net: macb: Handle HRESP error
authorHarini Katakam <harini.katakam@xilinx.com>
Sat, 27 Jan 2018 06:39:01 +0000 (12:09 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 19:25:47 +0000 (14:25 -0500)
commit032dc41ba6e2744a8105e1743607fc4ee155278d
treeef820ab373218126c2ee71901e50101bbdd1e9b2
parent468330e886ee347778f106b343580cf018ad650f
net: macb: Handle HRESP error

Handle HRESP error by doing a SW reset of RX and TX and
re-initializing the descriptors, RX and TX queue pointers.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c