WARNING: Co-developed-by: must be immediately followed by Signed-off-by: #9: Co-developed-by: Honggang Wei Co-developed-by: Lei Yan WARNING: Co-developed-by and Signed-off-by: name/email do not match #10: Co-developed-by: Lei Yan Signed-off-by: Xin Tian WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30: new file mode 100644 WARNING: line length of 87 exceeds 80 columns #2688: FILE: drivers/net/ethernet/yunsilicon/xsc/common/xsc_cmdq.h:35: + u8 owner_status; //init to 0, dma user should change this val to 1 WARNING: line length of 92 exceeds 80 columns #2761: FILE: drivers/net/ethernet/yunsilicon/xsc/common/xsc_cmdq.h:108: + u8 owner_bit: 1; //rsv for hw, arm will check this bit to make sure mem written WARNING: line length of 95 exceeds 80 columns #2771: FILE: drivers/net/ethernet/yunsilicon/xsc/common/xsc_cmdq.h:118: + u8 owner_bit: 1; //rsv for hw, driver will check this bit to make sure mem written WARNING: line length of 85 exceeds 80 columns #3126: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:160: + if (xor8_buf(block->rsvd0, sizeof(*block) - sizeof(block->data) - 1) != 0xff) WARNING: line length of 92 exceeds 80 columns #3138: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:172: + block->ctrl_sig = ~xor8_buf(block->rsvd0, sizeof(*block) - sizeof(block->data) - 2); WARNING: line length of 86 exceeds 80 columns #3191: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:225: + xsc_pr_debug("%03x: %08x %08x %08x %08x\n", offset, be32_to_cpu(p[0]), WARNING: line length of 86 exceeds 80 columns #3192: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:226: + be32_to_cpu(p[1]), be32_to_cpu(p[2]), be32_to_cpu(p[3])); WARNING: line length of 84 exceeds 80 columns #3638: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:672: +static void dump_command(struct xsc_core_device *xdev, struct xsc_cmd_mailbox *next, WARNING: line length of 81 exceeds 80 columns #3647: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:681: + xsc_core_dbg(xdev, "dump command %s(0x%x) %s\n", xsc_command_str(op), op, WARNING: line length of 89 exceeds 80 columns #3668: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:702: + struct xsc_cmd_work_ent *ent = container_of(work, struct xsc_cmd_work_ent, work); WARNING: line length of 86 exceeds 80 columns #3670: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:704: + struct xsc_core_device *xdev = container_of(cmd, struct xsc_core_device, cmd); WARNING: line length of 95 exceeds 80 columns #3717: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:751: + xsc_core_dbg(xdev, "write 0x%x to command doorbell, idx %u\n", cmd->cmd_pid, ent->idx); WARNING: line length of 90 exceeds 80 columns #4101: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1135: + cmd->cq_task = kthread_create(cmd_cq_polling, (void *)xdev, "xsc_cmd_cq_polling"); WARNING: line length of 82 exceeds 80 columns #4156: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1190: + struct xsc_rsp_msg *out, u16 dummy_cnt, u16 dummy_start_pid) WARNING: line length of 90 exceeds 80 columns #4169: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1203: + dummy_ent_arr = kcalloc(dummy_cnt, sizeof(struct xsc_cmd_work_ent *), GFP_KERNEL); WARNING: line length of 96 exceeds 80 columns #4200: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1234: + memcpy(lay->in, dummy_ent_arr[i]->in->first.data, sizeof(dummy_ent_arr[i]->in)); WARNING: line length of 89 exceeds 80 columns #4219: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1253: + xsc_core_dbg(xdev, "write 0x%x to command doorbell, idx %u ~ %u\n", cmd->cmd_pid, WARNING: line length of 91 exceeds 80 columns #4224: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1258: + xsc_core_err(xdev, "dummy_cmd %d ent timeout, cmdq fail\n", dummy_cnt - 1); WARNING: line length of 93 exceeds 80 columns #4250: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1284: +static int xsc_dummy_cmd_exec(struct xsc_core_device *xdev, void *in, int in_size, void *out, WARNING: line length of 85 exceeds 80 columns #4290: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1324: +static int xsc_send_dummy_cmd(struct xsc_core_device *xdev, u16 gap, u16 dummy_start) WARNING: line length of 93 exceeds 80 columns #4305: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1339: + err = xsc_dummy_cmd_exec(xdev, &in, sizeof(in), out, sizeof(*out), gap, dummy_start); WARNING: line length of 99 exceeds 80 columns #4339: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1373: + gap = (req_pid > req_cid) ? (req_pid - req_cid) : ((1 << cmd->log_sz) + req_pid - req_cid); WARNING: line length of 88 exceeds 80 columns #4353: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1387: +static int _xsc_cmd_exec(struct xsc_core_device *xdev, void *in, int in_size, void *out, WARNING: line length of 98 exceeds 80 columns #4476: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1510: +static void xsc_cmd_comp_handler(struct xsc_core_device *xdev, u8 idx, struct xsc_rsp_layout *rsp) WARNING: line length of 98 exceeds 80 columns #4483: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1517: + xsc_core_err(xdev, "idx[%d] exceed max cmds, or has no relative request.\n", idx); WARNING: line length of 83 exceeds 80 columns #4490: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1524: + memcpy(ent->out->first.data, ent->rsp_lay->out, sizeof(ent->rsp_lay->out)); WARNING: line length of 86 exceeds 80 columns #4590: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1624: + writel(xdev->cmd.cmd_pid, REG_ADDR(xdev, xdev->cmd.reg.req_pid_addr)); WARNING: line length of 81 exceeds 80 columns #4673: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1707: + cmd->pool = dma_pool_create("xsc_cmd", &xdev->pdev->dev, size, align, 0); WARNING: line length of 88 exceeds 80 columns #4772: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1806: + (unsigned long long)(cmd->dma), (unsigned long long)(cmd->cq_dma)); WARNING: line length of 90 exceeds 80 columns #4791: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1825: + cmd->cq_task = kthread_create(cmd_cq_polling, (void *)xdev, "xsc_cmd_cq_polling"); WARNING: line length of 93 exceeds 80 columns #4808: FILE: drivers/net/ethernet/yunsilicon/xsc/pci/cmdq.c:1842: + xsc_core_warn(xdev, "err_stat 0x%x when initializing, clear it\n", err_stat); total: 0 errors, 34 warnings, 0 checks, 5016 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit cee7ce51cc15 ("net-next/yunsilicon: Enable CMDQ") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 34 warnings, 0 checks, 5016 lines checked