ntb_hw_switchtec: Make switchtec_ntb_init_req_id_table() more general
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 29 Nov 2017 17:55:27 +0000 (10:55 -0700)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:23 +0000 (22:17 -0500)
commitbbe35ca5aa2b9e7413c3b14c4887e05829bcd822
tree363d68cf3b3e04afe85890d119ee73016a6ea216
parent12cb203b1b3e2a43d6e3f5f5c6e2071636334fc2
ntb_hw_switchtec: Make switchtec_ntb_init_req_id_table() more general

This is a prep patch in order to support the crosslink feature which
will require the driver to setup the requester ID table in another
partition as well as it's own. To aid this, create a helper function
which sets up the requester IDs from an array.

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