]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
cxgb4: Use FW LDST cmd to access TP_PIO_{ADDR, DATA} register first
authorHariprasad Shenai <hariprasad@chelsio.com>
Fri, 5 Jun 2015 08:54:52 +0000 (14:24 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Jun 2015 04:25:59 +0000 (21:25 -0700)
commitc1e9af0ca1f8adb7f3badfc027fa42ecfcb34956
tree66b81e86ceeb8b9a8eea0174c63a0aea163a8048
parenteca0f6eeadec74027a4f940bd6958c41e5259618
cxgb4: Use FW LDST cmd to access TP_PIO_{ADDR, DATA} register first

The TP_PIO_{ADDR,DATA} registers are are in conflict with the firmware's
use of these registers. Added a routine to access it through FW LDST
cmd.
Access all TP_PIO_{ADDR,DATA} register access through new routine if FW
is alive. If firmware is dead, than fall back to indirect access.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c