Skip to content
Snippets Groups Projects
Commit c16c6655 authored by Alexander Fomichev's avatar Alexander Fomichev Committed by Jon Mason
Browse files

ntb_hw_switchtec: make ntb_mw_set_trans() work when addr == 0


On switchtec_ntb_mw_set_trans() call, when (only) address == 0, it acts as
ntb_mw_clear_trans(). Fix this, since address == 0 and size != 0 is valid
combination for setting translation.

Signed-off-by: default avatarAlexander Fomichev <fomichev.ru@gmail.com>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent ae89339b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment