WARNING: please write a help paragraph that fully describes the config symbol #48: FILE: drivers/net/can/Kconfig:127: +config CAN_CASTCAN + tristate "CAST CAN" + depends on ARCH_STARFIVE || COMPILE_TEST + depends on COMMON_CLK && HAS_IOMEM + help + CAST CAN driver. This driver supports both CAN and CANFD IP. + WARNING: line length of 83 exceeds 80 columns #152: FILE: drivers/net/can/cast_can.c:77: + CCAN_INTR_ALL_MASK = GENMASK(7, 0), /* All interrupts enable mask */ WARNING: line length of 85 exceeds 80 columns #169: FILE: drivers/net/can/cast_can.c:94: + CCAN_TPIF_MASK = BIT(3), /* Transmission Primary Interrupt Flag */ WARNING: line length of 82 exceeds 80 columns #260: FILE: drivers/net/can/cast_can.c:185: +static inline void ccan_write_reg(const struct ccan_priv *priv, u8 reg, u32 value) WARNING: line length of 93 exceeds 80 columns #359: FILE: drivers/net/can/cast_can.c:284: + data_bittiming = ((dbt->phase_seg1 + dbt->prop_seg + 1 - 2) << SEG_1_SHIFT) | WARNING: line length of 85 exceeds 80 columns #369: FILE: drivers/net/can/cast_can.c:294: + netdev_dbg(ndev, "Slow bit rate: %08x\n", ccan_read_reg(priv, CCAN_S_SEG_1)); WARNING: line length of 85 exceeds 80 columns #370: FILE: drivers/net/can/cast_can.c:295: + netdev_dbg(ndev, "Fast bit rate: %08x\n", ccan_read_reg(priv, CCAN_F_SEG_1)); WARNING: line length of 88 exceeds 80 columns #391: FILE: drivers/net/can/cast_can.c:316: + /* Programmable Error Warning Limit = (EWL+1)*8. Set EWL=11->Error Warning=96 */ WARNING: line length of 96 exceeds 80 columns #404: FILE: drivers/net/can/cast_can.c:329: + ccan_reg_clear_bits(priv, CCAN_CFG_STAT, CCAN_LBMEMOD_MASK | CCAN_LBMIMOD_MASK); WARNING: line length of 85 exceeds 80 columns #460: FILE: drivers/net/can/cast_can.c:385: + ccan_reg_set_bits(priv, CCAN_RTIF, CCAN_RAFIF_MASK | CCAN_RFIF_MASK); WARNING: line length of 83 exceeds 80 columns #517: FILE: drivers/net/can/cast_can.c:442: + cf->data[1] |= (recnt > 127) ? CAN_ERR_CRTL_RX_PASSIVE : 0; WARNING: line length of 83 exceeds 80 columns #518: FILE: drivers/net/can/cast_can.c:443: + cf->data[1] |= (tecnt > 127) ? CAN_ERR_CRTL_TX_PASSIVE : 0; WARNING: line length of 82 exceeds 80 columns #527: FILE: drivers/net/can/cast_can.c:452: + cf->data[1] |= (recnt > 95) ? CAN_ERR_CRTL_RX_WARNING : 0; WARNING: line length of 82 exceeds 80 columns #528: FILE: drivers/net/can/cast_can.c:453: + cf->data[1] |= (tecnt > 95) ? CAN_ERR_CRTL_TX_WARNING : 0; WARNING: line length of 82 exceeds 80 columns #569: FILE: drivers/net/can/cast_can.c:494: + netdev_dbg(ndev, "Recnt is 0x%02x", ccan_read_reg_8bit(priv, CCAN_RECNT)); WARNING: line length of 82 exceeds 80 columns #570: FILE: drivers/net/can/cast_can.c:495: + netdev_dbg(ndev, "Tecnt is 0x%02x", ccan_read_reg_8bit(priv, CCAN_TECNT)); WARNING: line length of 94 exceeds 80 columns #608: FILE: drivers/net/can/cast_can.c:533: + ccan_reg_set_bits(priv, CCAN_ERRINT, eir & (CCAN_EPIF_MASK | CCAN_BEIF_MASK)); WARNING: line length of 81 exceeds 80 columns #645: FILE: drivers/net/can/cast_can.c:570: + ret = devm_request_irq(priv->dev, ndev->irq, ccan_interrupt, IRQF_SHARED, WARNING: line length of 86 exceeds 80 columns #703: FILE: drivers/net/can/cast_can.c:628: + id = cf->can_id & ((cf->can_id & CAN_EFF_FLAG) ? CAN_EFF_MASK : CAN_SFF_MASK); WARNING: line length of 91 exceeds 80 columns #706: FILE: drivers/net/can/cast_can.c:631: + ctl = (cf->can_id & CAN_EFF_FLAG) ? (ctl | CCAN_IDE_MASK) : (ctl & ~CCAN_IDE_MASK); WARNING: line length of 97 exceeds 80 columns #709: FILE: drivers/net/can/cast_can.c:634: + ctl |= (cf->flags & CANFD_BRS) ? (CCAN_BRS_MASK | CCAN_EDL_MASK) : CCAN_EDL_MASK; WARNING: line length of 81 exceeds 80 columns #712: FILE: drivers/net/can/cast_can.c:637: + ccan_write_reg(priv, addr_off, *((u32 *)(cf->data + i))); WARNING: line length of 81 exceeds 80 columns #722: FILE: drivers/net/can/cast_can.c:647: + ccan_write_reg(priv, addr_off, *((u32 *)(cf->data + 0))); WARNING: line length of 85 exceeds 80 columns #723: FILE: drivers/net/can/cast_can.c:648: + ccan_write_reg(priv, addr_off + 4, *((u32 *)(cf->data + 4))); WARNING: line length of 92 exceeds 80 columns #779: FILE: drivers/net/can/cast_can.c:704: + cf_fd->can_id = (control & CCAN_IDE_MASK) ? (cf_fd->can_id | CAN_EFF_FLAG) : WARNING: line length of 86 exceeds 80 columns #783: FILE: drivers/net/can/cast_can.c:708: + cf->can_id = (control & CCAN_IDE_MASK) ? (cf->can_id | CAN_EFF_FLAG) : WARNING: line length of 94 exceeds 80 columns #793: FILE: drivers/net/can/cast_can.c:718: + *((u32 *)(cf_fd->data + i)) = ccan_read_reg(priv, CCAN_RBUF_DATA + i); WARNING: line length of 87 exceeds 80 columns #797: FILE: drivers/net/can/cast_can.c:722: + *((u32 *)(cf->data + 0)) = ccan_read_reg(priv, CCAN_RBUF_DATA); WARNING: line length of 91 exceeds 80 columns #798: FILE: drivers/net/can/cast_can.c:723: + *((u32 *)(cf->data + 4)) = ccan_read_reg(priv, CCAN_RBUF_DATA + 4); WARNING: line length of 83 exceeds 80 columns #874: FILE: drivers/net/can/cast_can.c:799: + ret = dev_err_probe(&pdev->dev, ret, "Failed to get CAN clocks\n"); WARNING: line length of 86 exceeds 80 columns #880: FILE: drivers/net/can/cast_can.c:805: + ret = dev_err_probe(&pdev->dev, ret, "Failed to enable CAN clocks\n"); WARNING: line length of 87 exceeds 80 columns #896: FILE: drivers/net/can/cast_can.c:821: + priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK | CAN_CTRLMODE_FD; WARNING: line length of 82 exceeds 80 columns #897: FILE: drivers/net/can/cast_can.c:822: + priv->can.data_bittiming_const = &ccan_data_bittiming_const_canfd; WARNING: line length of 82 exceeds 80 columns #991: FILE: drivers/net/can/cast_can.c:916: + { .compatible = "cast,can-ctrl-fd-7x10N00S00", .data = &ccan_canfd_data }, total: 0 errors, 34 warnings, 0 checks, 970 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 2d368e81b651 ("can: Add driver for CAST CAN Bus Controller") 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, 970 lines checked