NTB: Improve index handling in B2B MW workaround
authorAllen Hubbe <Allen.Hubbe@emc.com>
Mon, 31 Aug 2015 13:30:59 +0000 (09:30 -0400)
committerJon Mason <jdmason@kudzu.us>
Mon, 7 Sep 2015 19:27:12 +0000 (15:27 -0400)
commit2aa2a77a489deda473c99a4c15074d092718912c
tree07d9664437561503b5d7386f456f5f960d308f78
parent86663c91866ae85c219f1a80ef2c9460b7ca5cd8
NTB: Improve index handling in B2B MW workaround

Check that b2b_mw_idx is in range of the number of memory windows when
initializing the device.  The workaround is considered to be in effect
only if the device b2b_idx is exactly UINT_MAX, instead of any index
past the last memory window.

Only print B2B MW workaround information in debugfs if the workaround is
in effect.

Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/intel/ntb_hw_intel.c