ntb_hw_switchtec: Create helper function to setup reserved LUT MWs
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 29 Nov 2017 17:55:26 +0000 (10:55 -0700)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:23 +0000 (22:17 -0500)
commit12cb203b1b3e2a43d6e3f5f5c6e2071636334fc2
tree43873201d13681920868d9d1bc30b07a722fde92
parentc3585cd8708edb1c16fa84f8f3dee31741a66a9e
ntb_hw_switchtec: Create helper function to setup reserved LUT MWs

This is a prep patch in order to support the crosslink feature which
will require the driver to use another reserved LUT window. To
simplify this we move the code which sets up the reserved LUT window
into a helper function which will be used by the crosslink
initialization.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c