diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2016-06-07 19:20:22 +0200 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2016-08-05 16:21:06 +0200 |
commit | 19645a077120c6417e9dc5ad469c45194cf78a82 (patch) | |
tree | 41676f4b27a17fb9b75ba47b33f0bdf6756adcf6 /drivers/nvdimm | |
parent | ntb_tool: Add memory window debug support (diff) | |
download | linux-19645a077120c6417e9dc5ad469c45194cf78a82.tar.xz linux-19645a077120c6417e9dc5ad469c45194cf78a82.zip |
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>
Diffstat (limited to 'drivers/nvdimm')
0 files changed, 0 insertions, 0 deletions