]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl/mbox: Introduce the mbox_send operation
authorDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 16:06:52 +0000 (09:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 19:08:29 +0000 (12:08 -0700)
commit55e2f3e33b1334830467cb3e5852cdd131d7387c
tree70f9924aa4f92cb18fa1cea47ece7456a01d3d47
parent946e16d2fe4e7d7c4d6bd495dca691edc49cce58
cxl/mbox: Introduce the mbox_send operation

In preparation for implementing a unit test backend transport for ioctl
operations, and making the mailbox available to the cxl/pmem
infrastructure, move the existing PCI specific portion of mailbox handling
to an "mbox_send" operation.

With this split all the PCI-specific transport details are comprehended
by a single operation and the rest of the mailbox infrastructure is
'struct cxl_mem' and 'struct cxl_memdev' generic.

Acked-by: Ben Widawsky <ben.widawsky@intel.com>
Link: https://lore.kernel.org/r/162982121207.1124374.6113172345033386781.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/cxlmem.h
drivers/cxl/pci.c