Skip to content

Commit 852db33

Browse files
Robert Richterdjbw
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 8c149eb commit 852db33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cxl/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static int __cxl_pci_mbox_send_cmd(struct cxl_dev_state *cxlds,
160160
writeq(cmd_reg, cxlds->regs.mbox + CXLDEV_MBOX_CMD_OFFSET);
161161

162162
/* #4 */
163-
dev_dbg(dev, "Sending command\n");
163+
dev_dbg(dev, "Sending command: 0x%04x\n", mbox_cmd->opcode);
164164
writel(CXLDEV_MBOX_CTRL_DOORBELL,
165165
cxlds->regs.mbox + CXLDEV_MBOX_CTRL_OFFSET);
166166

0 commit comments

Comments
 (0)