OSDN Git Service

ntb_hw_switchtec: Keep track of the number of LUT windows used by the driver
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 29 Nov 2017 17:55:25 +0000 (10:55 -0700)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:23 +0000 (22:17 -0500)
commitc3585cd8708edb1c16fa84f8f3dee31741a66a9e
tree7a7ce399a6d8ce8d6a820bb642b0fa4dddc04fb2
parent3df54c870f52b4c47b53eead8d22a109f741b91c
ntb_hw_switchtec: Keep track of the number of LUT windows used by the driver

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 add some code to track the number of reserved LUT windows in use
instead of assuming this is always 1.

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