WARNING: please write a help paragraph that fully describes the config symbol #53: FILE: drivers/net/dsa/Kconfig:28: +config NET_DSA_AN8855 + tristate "Airoha AN8855 Ethernet switch support" + depends on NET_DSA + select NET_DSA_TAG_MTK + help + This enables support for the Airoha AN8855 Ethernet switch + chip. + WARNING: line length of 83 exceeds 80 columns #218: FILE: drivers/net/dsa/an8855.c:137: + ret = an8855_mii_set_page(bus, priv->phy_base, AN8855_PHY_PAGE_EXTENDED_4); WARNING: line length of 83 exceeds 80 columns #274: FILE: drivers/net/dsa/an8855.c:193: + ret = an8855_mii_set_page(bus, priv->phy_base, AN8855_PHY_PAGE_EXTENDED_4); WARNING: line length of 85 exceeds 80 columns #289: FILE: drivers/net/dsa/an8855.c:208: +an8855_regmap_update_bits(void *ctx, uint32_t reg, uint32_t mask, uint32_t write_val) WARNING: line length of 83 exceeds 80 columns #297: FILE: drivers/net/dsa/an8855.c:216: + ret = an8855_mii_set_page(bus, priv->phy_base, AN8855_PHY_PAGE_EXTENDED_4); WARNING: line length of 83 exceeds 80 columns #372: FILE: drivers/net/dsa/an8855.c:291: + return regmap_write(priv->regmap, AN8855_MIB_CCR, AN8855_CCR_MIB_ACTIVATE); WARNING: line length of 82 exceeds 80 columns #502: FILE: drivers/net/dsa/an8855.c:421: + flags.val & BR_LEARNING ? 0 : BIT(port)); WARNING: line length of 85 exceeds 80 columns #516: FILE: drivers/net/dsa/an8855.c:435: + flags.val & BR_MCAST_FLOOD ? BIT(port) : 0); WARNING: line length of 85 exceeds 80 columns #523: FILE: drivers/net/dsa/an8855.c:442: + flags.val & BR_BCAST_FLOOD ? BIT(port) : 0); WARNING: line length of 83 exceeds 80 columns #555: FILE: drivers/net/dsa/an8855.c:474: + ret = regmap_set_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 85 exceeds 80 columns #687: FILE: drivers/net/dsa/an8855.c:606: + ret = an8855_fdb_cmd(priv, AN8855_ATC_MAT(AND8855_FDB_MAT_MAC_PORT) | WARNING: line length of 83 exceeds 80 columns #755: FILE: drivers/net/dsa/an8855.c:674: + val = untagged ? AN8855_VLAN_EGRESS_UNTAG : AN8855_VLAN_EGRESS_TAG; WARNING: line length of 83 exceeds 80 columns #849: FILE: drivers/net/dsa/an8855.c:768: + /* Trapped into security mode allows packet forwarding through VLAN WARNING: line length of 83 exceeds 80 columns #851: FILE: drivers/net/dsa/an8855.c:770: + * Set the port as a user port which is to be able to recognize VID WARNING: line length of 85 exceeds 80 columns #852: FILE: drivers/net/dsa/an8855.c:771: + * from incoming packets before fetching entry within the VLAN table. WARNING: line length of 83 exceeds 80 columns #864: FILE: drivers/net/dsa/an8855.c:783: + /* When a port is removed from the bridge, the port would be set up WARNING: line length of 84 exceeds 80 columns #865: FILE: drivers/net/dsa/an8855.c:784: + * back to the default as is at initial boot which is a VLAN-unaware WARNING: line length of 84 exceeds 80 columns #868: FILE: drivers/net/dsa/an8855.c:787: + ret = an8855_port_set_vlan_mode(priv, port, AN8855_PORT_MATRIX_MODE, WARNING: line length of 82 exceeds 80 columns #884: FILE: drivers/net/dsa/an8855.c:803: + AN8855_VLAN_EG_CONSISTENT, WARNING: line length of 84 exceeds 80 columns #912: FILE: drivers/net/dsa/an8855.c:831: + FIELD_PREP(AN8855_G0_PORT_VID, vlan->vid)); WARNING: line length of 81 exceeds 80 columns #1024: FILE: drivers/net/dsa/an8855.c:943: + ingress ? AN8855_PORT_RX_MIR : AN8855_PORT_TX_MIR); WARNING: line length of 83 exceeds 80 columns #1100: FILE: drivers/net/dsa/an8855.c:1019: + ret = regmap_write(priv->regmap, AN8855_PMCR_P(port), reg); WARNING: line length of 87 exceeds 80 columns #1106: FILE: drivers/net/dsa/an8855.c:1025: + eee->tx_lpi_enabled ? AN8855_LPI_MODE_EN : 0); WARNING: line length of 86 exceeds 80 columns #1238: FILE: drivers/net/dsa/an8855.c:1157: + ret = regmap_update_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 82 exceeds 80 columns #1239: FILE: drivers/net/dsa/an8855.c:1158: + AN8855_PORTMATRIX, BIT(AN8855_CPU_PORT)); WARNING: line length of 82 exceeds 80 columns #1244: FILE: drivers/net/dsa/an8855.c:1163: + ret = regmap_set_bits(priv->regmap, AN8855_AGDIS, BIT(dp->index)); WARNING: line length of 82 exceeds 80 columns #1249: FILE: drivers/net/dsa/an8855.c:1168: + ret = regmap_clear_bits(priv->regmap, AN8855_BCF, BIT(dp->index)); WARNING: line length of 83 exceeds 80 columns #1254: FILE: drivers/net/dsa/an8855.c:1173: + ret = regmap_clear_bits(priv->regmap, AN8855_UNUF, BIT(dp->index)); WARNING: line length of 83 exceeds 80 columns #1259: FILE: drivers/net/dsa/an8855.c:1178: + ret = regmap_clear_bits(priv->regmap, AN8855_UNMF, BIT(dp->index)); WARNING: line length of 81 exceeds 80 columns #1281: FILE: drivers/net/dsa/an8855.c:1200: + AN8855_PORT_SPEC_REPLACE_MODE | AN8855_PORT_SPEC_TAG); WARNING: line length of 83 exceeds 80 columns #1294: FILE: drivers/net/dsa/an8855.c:1213: + FIELD_PREP(AN8855_CPU_PORT_IDX, AN8855_CPU_PORT)); WARNING: line length of 82 exceeds 80 columns #1307: FILE: drivers/net/dsa/an8855.c:1226: + ret = regmap_clear_bits(priv->regmap, AN8855_AGDIS, BIT(AN8855_CPU_PORT)); WARNING: line length of 88 exceeds 80 columns #1328: FILE: drivers/net/dsa/an8855.c:1247: + FIELD_PREP(AN8855_BPDU_PORT_FW, AN8855_BPDU_CPU_ONLY)); WARNING: line length of 88 exceeds 80 columns #1333: FILE: drivers/net/dsa/an8855.c:1252: + AN8855_CKG_LNKDN_GLB_STOP | AN8855_CKG_LNKDN_PORT_STOP); WARNING: line length of 82 exceeds 80 columns #1434: FILE: drivers/net/dsa/an8855.c:1353: + AN8855_PMCR_FORCE_MODE | AN8855_PMCR_FORCE_LNK, WARNING: line length of 83 exceeds 80 columns #1573: FILE: drivers/net/dsa/an8855.c:1492: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C2_FORCE, 0x4) | WARNING: line length of 83 exceeds 80 columns #1575: FILE: drivers/net/dsa/an8855.c:1494: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C1_FORCE, 0x0)); WARNING: line length of 84 exceeds 80 columns #1587: FILE: drivers/net/dsa/an8855.c:1506: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C0B_FORCE, val)); WARNING: line length of 83 exceeds 80 columns #1624: FILE: drivers/net/dsa/an8855.c:1543: + FIELD_PREP(AN8855_RG_DA_QP_PLL_FBKSEL_INTF, 0x0) | WARNING: line length of 87 exceeds 80 columns #1658: FILE: drivers/net/dsa/an8855.c:1577: + FIELD_PREP(AN8855_RG_DA_QP_PLL_PFD_OFFSET_INTF, 0x1) | WARNING: line length of 89 exceeds 80 columns #1659: FILE: drivers/net/dsa/an8855.c:1578: + FIELD_PREP(AN8855_RG_DA_QP_PLL_KBAND_PREDIV_INTF, 0x1)); WARNING: line length of 85 exceeds 80 columns #1675: FILE: drivers/net/dsa/an8855.c:1594: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SDM_HREN_INTF, 0x0)); WARNING: line length of 85 exceeds 80 columns #1698: FILE: drivers/net/dsa/an8855.c:1617: + FIELD_PREP(AN8855_RG_LCPLL_PON_HRDDS_PCW_NCPO_GPON, val)); WARNING: line length of 86 exceeds 80 columns #1714: FILE: drivers/net/dsa/an8855.c:1633: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_DELTA_INTF, 0x0)); WARNING: line length of 88 exceeds 80 columns #1719: FILE: drivers/net/dsa/an8855.c:1638: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_DIR_DLY_INTF, 0x0)); WARNING: line length of 87 exceeds 80 columns #1724: FILE: drivers/net/dsa/an8855.c:1643: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_PERIOD_INTF, 0x0)); WARNING: line length of 81 exceeds 80 columns #1786: FILE: drivers/net/dsa/an8855.c:1705: + FIELD_PREP(AN8855_RG_QP_CDR_PR_BUF_IN_SR, 0x6) | WARNING: line length of 82 exceeds 80 columns #1801: FILE: drivers/net/dsa/an8855.c:1720: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 92 exceeds 80 columns #1804: FILE: drivers/net/dsa/an8855.c:1723: + FIELD_PREP(AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE_MASK, 0x19)); WARNING: line length of 85 exceeds 80 columns #1808: FILE: drivers/net/dsa/an8855.c:1727: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, WARNING: line length of 81 exceeds 80 columns #1817: FILE: drivers/net/dsa/an8855.c:1736: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 81 exceeds 80 columns #1824: FILE: drivers/net/dsa/an8855.c:1743: + FIELD_PREP(AN8855_RG_QP_CDR_PR_KBAND_DIV, 0x4)); WARNING: line length of 83 exceeds 80 columns #1840: FILE: drivers/net/dsa/an8855.c:1759: + FIELD_PREP(AN8855_RG_QP_RX_SAOSC_EN_H_DLY, 0x3f) | WARNING: line length of 84 exceeds 80 columns #1841: FILE: drivers/net/dsa/an8855.c:1760: + FIELD_PREP(AN8855_RG_QP_RX_PI_CAL_EN_H_DLY, 0x6f)); WARNING: line length of 81 exceeds 80 columns #1853: FILE: drivers/net/dsa/an8855.c:1772: + FIELD_PREP(AN8855_RG_QP_RX_EQ_EN_H_DLY, 0x150)); WARNING: line length of 81 exceeds 80 columns #1859: FILE: drivers/net/dsa/an8855.c:1778: + FIELD_PREP(AN8855_RG_QP_EQ_LEQOSC_DLYCNT, 0x1)); WARNING: line length of 85 exceeds 80 columns #1866: FILE: drivers/net/dsa/an8855.c:1785: + FIELD_PREP(AN8855_RG_DA_QP_SAOSC_DONE_TIME, 0x200) | WARNING: line length of 83 exceeds 80 columns #1867: FILE: drivers/net/dsa/an8855.c:1786: + FIELD_PREP(AN8855_RG_DA_QP_LEQOS_EN_TIME, 0xfff)); WARNING: line length of 82 exceeds 80 columns #1884: FILE: drivers/net/dsa/an8855.c:1803: + FIELD_PREP(AN8855_RG_FREDET_GOLDEN_CYCLE, 0x64)); WARNING: line length of 86 exceeds 80 columns #1890: FILE: drivers/net/dsa/an8855.c:1809: + FIELD_PREP(AN8855_RG_FREDET_TOLERATE_CYCLE, 0x2710)); WARNING: line length of 86 exceeds 80 columns #1903: FILE: drivers/net/dsa/an8855.c:1822: + AN8855_RG_SGMII_MODE | AN8855_RG_SGMII_AN_EN); WARNING: line length of 83 exceeds 80 columns #1915: FILE: drivers/net/dsa/an8855.c:1834: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_REG_AN_FORCE_CL37, WARNING: line length of 84 exceeds 80 columns #1937: FILE: drivers/net/dsa/an8855.c:1856: + ret = regmap_set_bits(priv->regmap, AN8855_MII_RA_AN_ENABLE, WARNING: line length of 93 exceeds 80 columns #1942: FILE: drivers/net/dsa/an8855.c:1861: + ret = regmap_update_bits(priv->regmap, AN8855_RG_AN_SGMII_MODE_FORCE, WARNING: line length of 81 exceeds 80 columns #1943: FILE: drivers/net/dsa/an8855.c:1862: + AN8855_RG_FORCE_CUR_SGMII_MODE | WARNING: line length of 88 exceeds 80 columns #1949: FILE: drivers/net/dsa/an8855.c:1868: + ret = regmap_clear_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, WARNING: line length of 83 exceeds 80 columns #1973: FILE: drivers/net/dsa/an8855.c:1892: + ret = regmap_update_bits(priv->regmap, AN8855_SGMII_REG_AN0, BMCR_ANENABLE, WARNING: line length of 93 exceeds 80 columns #1974: FILE: drivers/net/dsa/an8855.c:1893: + neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? BMCR_ANENABLE : WARNING: line length of 81 exceeds 80 columns #1975: FILE: drivers/net/dsa/an8855.c:1894: + 0); WARNING: line length of 81 exceeds 80 columns #2354: FILE: drivers/net/dsa/an8855.h:138: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV4, /* All DIP_SIP address with DIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2355: FILE: drivers/net/dsa/an8855.h:139: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV4, /* All DIP_SIP address with SIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2356: FILE: drivers/net/dsa/an8855.h:140: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV6, /* All DIP_SIP address with DIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2357: FILE: drivers/net/dsa/an8855.h:141: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV6, /* All DIP_SIP address with SIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2449: FILE: drivers/net/dsa/an8855.h:233: + AN8855_VA0_ETAG_PORT_SHIFT(port)) WARNING: line length of 91 exceeds 80 columns #2450: FILE: drivers/net/dsa/an8855.h:234: +#define AN8855_VA0_ETAG_PORT_VAL(port, val) (FIELD_PREP(AN8855_VA0_ETAG_PORT, (val)) << \ WARNING: line length of 81 exceeds 80 columns #2451: FILE: drivers/net/dsa/an8855.h:235: + AN8855_VA0_ETAG_PORT_SHIFT(port)) WARNING: line length of 81 exceeds 80 columns #2452: FILE: drivers/net/dsa/an8855.h:236: +#define AN8855_VA0_VTAG_EN BIT(10) /* Per VLAN Egress Tag Control */ WARNING: line length of 86 exceeds 80 columns #2546: FILE: drivers/net/dsa/an8855.h:330: +#define AN8855_PMCR_FORCE_SPEED_5000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x4) WARNING: line length of 86 exceeds 80 columns #2547: FILE: drivers/net/dsa/an8855.h:331: +#define AN8855_PMCR_FORCE_SPEED_2500 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x3) WARNING: line length of 86 exceeds 80 columns #2548: FILE: drivers/net/dsa/an8855.h:332: +#define AN8855_PMCR_FORCE_SPEED_1000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x2) WARNING: line length of 86 exceeds 80 columns #2549: FILE: drivers/net/dsa/an8855.h:333: +#define AN8855_PMCR_FORCE_SPEED_100 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 86 exceeds 80 columns #2550: FILE: drivers/net/dsa/an8855.h:334: +#define AN8855_PMCR_FORCE_SPEED_10 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 89 exceeds 80 columns #2643: FILE: drivers/net/dsa/an8855.h:427: +#define AN8855_RG_LINK_MODE_P0_SPEED_2500 FIELD_PREP_CONST(AN8855_RG_LINK_MODE_P0, 0x3) WARNING: line length of 89 exceeds 80 columns #2644: FILE: drivers/net/dsa/an8855.h:428: +#define AN8855_RG_LINK_MODE_P0_SPEED_1000 FIELD_PREP_CONST(AN8855_RG_LINK_MODE_P0, 0x2) WARNING: line length of 88 exceeds 80 columns #2645: FILE: drivers/net/dsa/an8855.h:429: +#define AN8855_RG_LINK_MODE_P0_SPEED_100 FIELD_PREP_CONST(AN8855_RG_LINK_MODE_P0, 0x1) WARNING: line length of 87 exceeds 80 columns #2646: FILE: drivers/net/dsa/an8855.h:430: +#define AN8855_RG_LINK_MODE_P0_SPEED_10 FIELD_PREP_CONST(AN8855_RG_LINK_MODE_P0, 0x0) total: 0 errors, 86 warnings, 0 checks, 2805 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 04e08691a02f ("net: dsa: Add Airoha AN8855 5-Port Gigabit DSA Switch driver") 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, 86 warnings, 0 checks, 2805 lines checked