cxl/mbox: Make handle_mailbox_cmd_from_user() use a mbox param
authorAlison Schofield <alison.schofield@intel.com>
Thu, 31 Mar 2022 01:27:16 +0000 (18:27 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Apr 2022 23:07:01 +0000 (16:07 -0700)
commitd97fe8eec2b895b2aa2f7bb3d55e7b88bc2d53f3
treeef038a647ff767661d2b75e1ca9a46a0e15c32c2
parent82b8ba29538e5dae0a4e481dbbea4d5015c683af
cxl/mbox: Make handle_mailbox_cmd_from_user() use a mbox param

Previously, handle_mailbox_cmd_from_user(), constructed the mailbox
command and dispatched it to the hardware. The construction work
has moved to the validation path.

handle_mailbox_cmd_from_user() now expects a fully validated
mbox param. Make it's caller, cxl_send_cmd(), deliver it. Update
the comments and dereferencing of the new mbox parameter.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/77050ba512d6c30eccf7505467509e460dd325a0.1648687552.git.alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c