drivers: net: xgene: Backward compatibility with older firmware
authorIyappan Subramanian <isubramanian@apm.com>
Mon, 3 Nov 2014 19:59:55 +0000 (11:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2014 22:08:42 +0000 (17:08 -0500)
commitc3f4465d272fa94d5a077c502e83d3e712ec8d62
treea18dc1bcc307b3fa4c63a7d113d053ee0ea6ceb3
parent09c9e0593d7215c809a4a47659b0e760112d656e
drivers: net: xgene: Backward compatibility with older firmware

This patch adds support when used with older firmware (<= 1.13.28).

- Added xgene_ring_mgr_init() to check whether ring manager is initialized
- Calling xgene_ring_mgr_init() from xgene_port_ops.reset()
- To handle errors, changed the return type of xgene_port_ops.reset()

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: Keyur Chudgar <kchudgar@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
drivers/net/ethernet/apm/xgene/xgene_enet_hw.h
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.h
drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c
drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c