]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c394a5c323a42224c4bbb82a836b5a63405932d
tree7a7ce399a6d8ce8d6a820bb642b0fa4dddc04fb2
parentb273999bc548835664b795640ce36e95a2bcc2cd
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