linux/drivers/ntb
Logan Gunthorpe 19645a0771 ntb_transport: Check the number of spads the hardware supports
I'm working on hardware that currently has a limited number of
scratchpad registers and ntb_ndev fails with no clue as to why. I
feel it is better to fail early and provide a reasonable error message
then to fail later on.

The same is done to ntb_perf, but it doesn't currently require enough
spads to actually fail. I've also removed the unused SPAD_MSG and
SPAD_ACK enums so that MAX_SPAD accurately reflects the number of
spads used.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2016-08-05 10:21:06 -04:00
..
hw NTB: Remove _addr functions from ntb_hw_amd 2016-03-26 11:44:33 -04:00
test ntb_transport: Check the number of spads the hardware supports 2016-08-05 10:21:06 -04:00
Kconfig NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
Makefile NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
ntb_transport.c ntb_transport: Check the number of spads the hardware supports 2016-08-05 10:21:06 -04:00
ntb.c ntb: avoid format string in dev_set_name 2015-08-09 16:32:22 -04:00