]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ntb_hw_switchtec: make ntb_mw_set_trans() work when addr == 0
authorAlexander Fomichev <fomichev.ru@gmail.com>
Tue, 16 Jul 2019 17:34:48 +0000 (20:34 +0300)
committerJon Mason <jdmason@kudzu.us>
Mon, 23 Sep 2019 21:20:40 +0000 (17:20 -0400)
commitc16c6655605f52cf2107a7c8dc0c798645351976
treeb1a64063378631a770a8f229ba4a9df64c3cfe5a
parentae89339b08f3fe02457ec9edd512ddc3d246d0f8
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: Alexander Fomichev <fomichev.ru@gmail.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c