]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
NTB: switchtec_ntb: Initialize hardware for doorbells and messages
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 3 Aug 2017 18:19:48 +0000 (12:19 -0600)
committerJon Mason <jdmason@kudzu.us>
Sun, 19 Nov 2017 01:37:12 +0000 (20:37 -0500)
commit3dd4db475cfe172bb01bab89aa63bf7939b2a584
tree9e5aeaea3c68903d6bd24bbaddc9cc4e133887b4
parentec0467ccbdeb69a86c8729073057bda7bce00eec
NTB: switchtec_ntb: Initialize hardware for doorbells and messages

Set up some hardware registers and creates interrupt service routines
for the doorbells and messages.

There are 64 doorbells in the switch that are shared between all
partitions. The upper 4 doorbells are also shared with the messages
and are therefore not used. Thus, this provides 28 doorbells for each
partition.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Stephen Bates <sbates@raithlin.com>
Reviewed-by: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c