summaryrefslogtreecommitdiffstats
path: root/drivers/cxl/pci.c
diff options
context:
space:
mode:
authorRobert Richter <rrichter@amd.com>2023-01-03 22:01:50 +0100
committerDan Williams <dan.j.williams@intel.com>2023-01-24 17:52:54 -0800
commit852db33c6c180a48268eca52e25b267ed32de3ab (patch)
tree57e8be41c40dcc3dfdad062c4d6ebecb1d01c622 /drivers/cxl/pci.c
parent8c149eb011be23679b3320d3939f4e3c8271969c (diff)
downloadlinux-stable-852db33c6c180a48268eca52e25b267ed32de3ab.tar.gz
linux-stable-852db33c6c180a48268eca52e25b267ed32de3ab.tar.bz2
linux-stable-852db33c6c180a48268eca52e25b267ed32de3ab.zip
cxl/pci: Show opcode in debug messages when sending a command
For debugging it is very helpful to see which commands are sent. Add it to the debug message. Signed-off-by: Robert Richter <rrichter@amd.com> Link: https://lore.kernel.org/r/20230103210151.1126873-1-rrichter@amd.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/pci.c')
-rw-r--r--drivers/cxl/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c
index 3a66aadb4df0..2bbebbc7e032 100644
--- a/drivers/cxl/pci.c
+++ b/drivers/cxl/pci.c
@@ -160,7 +160,7 @@ static int __cxl_pci_mbox_send_cmd(struct cxl_dev_state *cxlds,
writeq(cmd_reg, cxlds->regs.mbox + CXLDEV_MBOX_CMD_OFFSET);
/* #4 */
- dev_dbg(dev, "Sending command\n");
+ dev_dbg(dev, "Sending command: 0x%04x\n", mbox_cmd->opcode);
writel(CXLDEV_MBOX_CTRL_DOORBELL,
cxlds->regs.mbox + CXLDEV_MBOX_CTRL_OFFSET);