qed: add infrastructure for device self tests.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Fri, 29 Apr 2016 00:20:52 +0000 (20:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2016 04:16:39 +0000 (00:16 -0400)
commit03dc76ca1ee5d02401d5a22ed7ddf15b5e9dfe76
tree2516361422ae256ddeee92ae5106fbe8c724890d
parent158bc065f29c9be0919d18aefab320161936b3a8
qed: add infrastructure for device self tests.

This patch adds the functionality and APIs needed for selftests.
It adds the ability to configure the link-mode which is required for the
implementation of loopback tests. It adds the APIs for clock test,
register test, interrupt test and memory test.

Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/Makefile
drivers/net/ethernet/qlogic/qed/qed_hsi.h
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h
drivers/net/ethernet/qlogic/qed/qed_selftest.c [new file with mode: 0644]
drivers/net/ethernet/qlogic/qed/qed_selftest.h [new file with mode: 0644]
drivers/net/ethernet/qlogic/qed/qed_sp.h
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
include/linux/qed/qed_if.h