diff options
| author | 2017-08-03 12:19:45 -0600 | |
|---|---|---|
| committer | 2017-11-18 20:37:11 -0500 | |
| commit | fa5ab66e36de56f7e40dad57780d53e059dced86 (patch) | |
| tree | 7239deea35b4e92edd76ce65f7970b3ca077f248 /include/linux/patchkey.h | |
| parent | NTB: Ensure ntb_mw_get_align() is only called when the link is up (diff) | |
| download | linux-dev-fa5ab66e36de56f7e40dad57780d53e059dced86.tar.xz linux-dev-fa5ab66e36de56f7e40dad57780d53e059dced86.zip | |
NTB: Add check and comment for link up to mw_count() and mw_get_align()
Adds a comment and a check to ntb_mw_get_align() so that it always fails
if the function is called before the link is up.
Also adds a comment to ntb_mw_count() to note that it may return 0 if
it is called before the link is up.
This is to prevent accidental mis-use in clients that are testing
on hardware that this doesn't matter for.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'include/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions
