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 83 exceeds 80 columns #498: FILE: drivers/net/dsa/an8855.c:417: + ret = regmap_set_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 85 exceeds 80 columns #629: FILE: drivers/net/dsa/an8855.c:548: + ret = an8855_fdb_cmd(priv, AN8855_ATC_MAT(AND8855_FDB_MAT_MAC_PORT) | WARNING: line length of 83 exceeds 80 columns #697: FILE: drivers/net/dsa/an8855.c:616: + val = untagged ? AN8855_VLAN_EGRESS_UNTAG : AN8855_VLAN_EGRESS_TAG; WARNING: line length of 83 exceeds 80 columns #791: FILE: drivers/net/dsa/an8855.c:710: + /* Trapped into security mode allows packet forwarding through VLAN WARNING: line length of 83 exceeds 80 columns #793: FILE: drivers/net/dsa/an8855.c:712: + * Set the port as a user port which is to be able to recognize VID WARNING: line length of 85 exceeds 80 columns #794: FILE: drivers/net/dsa/an8855.c:713: + * from incoming packets before fetching entry within the VLAN table. WARNING: line length of 83 exceeds 80 columns #806: FILE: drivers/net/dsa/an8855.c:725: + /* When a port is removed from the bridge, the port would be set up WARNING: line length of 84 exceeds 80 columns #807: FILE: drivers/net/dsa/an8855.c:726: + * back to the default as is at initial boot which is a VLAN-unaware WARNING: line length of 84 exceeds 80 columns #810: FILE: drivers/net/dsa/an8855.c:729: + ret = an8855_port_set_vlan_mode(priv, port, AN8855_PORT_MATRIX_MODE, WARNING: line length of 82 exceeds 80 columns #826: FILE: drivers/net/dsa/an8855.c:745: + AN8855_VLAN_EG_CONSISTENT, WARNING: line length of 81 exceeds 80 columns #827: FILE: drivers/net/dsa/an8855.c:746: + AN8855_VLAN_TRANSPARENT); WARNING: line length of 84 exceeds 80 columns #854: FILE: drivers/net/dsa/an8855.c:773: + FIELD_PREP(AN8855_G0_PORT_VID, vlan->vid)); WARNING: line length of 81 exceeds 80 columns #966: FILE: drivers/net/dsa/an8855.c:885: + ingress ? AN8855_PORT_RX_MIR : AN8855_PORT_TX_MIR); WARNING: line length of 83 exceeds 80 columns #1051: FILE: drivers/net/dsa/an8855.c:970: + ret = regmap_write(priv->regmap, AN8855_PMCR_P(port), reg); WARNING: line length of 87 exceeds 80 columns #1057: FILE: drivers/net/dsa/an8855.c:976: + eee->tx_lpi_enabled ? AN8855_LPI_MODE_EN : 0); WARNING: line length of 85 exceeds 80 columns #1187: FILE: drivers/net/dsa/an8855.c:1106: + ret = regmap_clear_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 81 exceeds 80 columns #1210: FILE: drivers/net/dsa/an8855.c:1129: + AN8855_PORT_SPEC_REPLACE_MODE | AN8855_PORT_SPEC_TAG); WARNING: line length of 83 exceeds 80 columns #1223: FILE: drivers/net/dsa/an8855.c:1142: + FIELD_PREP(AN8855_CPU_PORT_IDX, AN8855_CPU_PORT)); WARNING: line length of 88 exceeds 80 columns #1237: FILE: drivers/net/dsa/an8855.c:1156: + FIELD_PREP(AN8855_BPDU_PORT_FW, AN8855_BPDU_CPU_ONLY)); WARNING: line length of 88 exceeds 80 columns #1242: FILE: drivers/net/dsa/an8855.c:1161: + AN8855_CKG_LNKDN_GLB_STOP | AN8855_CKG_LNKDN_PORT_STOP); WARNING: line length of 82 exceeds 80 columns #1351: FILE: drivers/net/dsa/an8855.c:1270: + AN8855_PMCR_FORCE_MODE | AN8855_PMCR_FORCE_LNK, WARNING: line length of 83 exceeds 80 columns #1492: FILE: drivers/net/dsa/an8855.c:1411: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C2_FORCE, 0x4) | WARNING: line length of 83 exceeds 80 columns #1494: FILE: drivers/net/dsa/an8855.c:1413: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C1_FORCE, 0x0)); WARNING: line length of 84 exceeds 80 columns #1506: FILE: drivers/net/dsa/an8855.c:1425: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C0B_FORCE, val)); WARNING: line length of 83 exceeds 80 columns #1543: FILE: drivers/net/dsa/an8855.c:1462: + FIELD_PREP(AN8855_RG_DA_QP_PLL_FBKSEL_INTF, 0x0) | WARNING: line length of 87 exceeds 80 columns #1577: FILE: drivers/net/dsa/an8855.c:1496: + FIELD_PREP(AN8855_RG_DA_QP_PLL_PFD_OFFSET_INTF, 0x1) | WARNING: line length of 89 exceeds 80 columns #1578: FILE: drivers/net/dsa/an8855.c:1497: + FIELD_PREP(AN8855_RG_DA_QP_PLL_KBAND_PREDIV_INTF, 0x1)); WARNING: line length of 85 exceeds 80 columns #1594: FILE: drivers/net/dsa/an8855.c:1513: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SDM_HREN_INTF, 0x0)); WARNING: line length of 85 exceeds 80 columns #1617: FILE: drivers/net/dsa/an8855.c:1536: + FIELD_PREP(AN8855_RG_LCPLL_PON_HRDDS_PCW_NCPO_GPON, val)); WARNING: line length of 86 exceeds 80 columns #1633: FILE: drivers/net/dsa/an8855.c:1552: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_DELTA_INTF, 0x0)); WARNING: line length of 88 exceeds 80 columns #1638: FILE: drivers/net/dsa/an8855.c:1557: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_DIR_DLY_INTF, 0x0)); WARNING: line length of 87 exceeds 80 columns #1643: FILE: drivers/net/dsa/an8855.c:1562: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_PERIOD_INTF, 0x0)); WARNING: line length of 81 exceeds 80 columns #1705: FILE: drivers/net/dsa/an8855.c:1624: + FIELD_PREP(AN8855_RG_QP_CDR_PR_BUF_IN_SR, 0x6) | WARNING: line length of 82 exceeds 80 columns #1720: FILE: drivers/net/dsa/an8855.c:1639: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 92 exceeds 80 columns #1723: FILE: drivers/net/dsa/an8855.c:1642: + FIELD_PREP(AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE_MASK, 0x19)); WARNING: line length of 85 exceeds 80 columns #1727: FILE: drivers/net/dsa/an8855.c:1646: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, WARNING: line length of 81 exceeds 80 columns #1736: FILE: drivers/net/dsa/an8855.c:1655: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 81 exceeds 80 columns #1743: FILE: drivers/net/dsa/an8855.c:1662: + FIELD_PREP(AN8855_RG_QP_CDR_PR_KBAND_DIV, 0x4)); WARNING: line length of 83 exceeds 80 columns #1759: FILE: drivers/net/dsa/an8855.c:1678: + FIELD_PREP(AN8855_RG_QP_RX_SAOSC_EN_H_DLY, 0x3f) | WARNING: line length of 84 exceeds 80 columns #1760: FILE: drivers/net/dsa/an8855.c:1679: + FIELD_PREP(AN8855_RG_QP_RX_PI_CAL_EN_H_DLY, 0x6f)); WARNING: line length of 81 exceeds 80 columns #1772: FILE: drivers/net/dsa/an8855.c:1691: + FIELD_PREP(AN8855_RG_QP_RX_EQ_EN_H_DLY, 0x150)); WARNING: line length of 81 exceeds 80 columns #1778: FILE: drivers/net/dsa/an8855.c:1697: + FIELD_PREP(AN8855_RG_QP_EQ_LEQOSC_DLYCNT, 0x1)); WARNING: line length of 85 exceeds 80 columns #1785: FILE: drivers/net/dsa/an8855.c:1704: + FIELD_PREP(AN8855_RG_DA_QP_SAOSC_DONE_TIME, 0x200) | WARNING: line length of 83 exceeds 80 columns #1786: FILE: drivers/net/dsa/an8855.c:1705: + FIELD_PREP(AN8855_RG_DA_QP_LEQOS_EN_TIME, 0xfff)); WARNING: line length of 82 exceeds 80 columns #1803: FILE: drivers/net/dsa/an8855.c:1722: + FIELD_PREP(AN8855_RG_FREDET_GOLDEN_CYCLE, 0x64)); WARNING: line length of 86 exceeds 80 columns #1809: FILE: drivers/net/dsa/an8855.c:1728: + FIELD_PREP(AN8855_RG_FREDET_TOLERATE_CYCLE, 0x2710)); WARNING: line length of 86 exceeds 80 columns #1822: FILE: drivers/net/dsa/an8855.c:1741: + AN8855_RG_SGMII_MODE | AN8855_RG_SGMII_AN_EN); WARNING: line length of 83 exceeds 80 columns #1834: FILE: drivers/net/dsa/an8855.c:1753: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_REG_AN_FORCE_CL37, WARNING: line length of 84 exceeds 80 columns #1856: FILE: drivers/net/dsa/an8855.c:1775: + ret = regmap_set_bits(priv->regmap, AN8855_MII_RA_AN_ENABLE, WARNING: line length of 93 exceeds 80 columns #1861: FILE: drivers/net/dsa/an8855.c:1780: + ret = regmap_update_bits(priv->regmap, AN8855_RG_AN_SGMII_MODE_FORCE, WARNING: line length of 81 exceeds 80 columns #1862: FILE: drivers/net/dsa/an8855.c:1781: + AN8855_RG_FORCE_CUR_SGMII_MODE | WARNING: line length of 88 exceeds 80 columns #1868: FILE: drivers/net/dsa/an8855.c:1787: + ret = regmap_clear_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, WARNING: line length of 83 exceeds 80 columns #1892: FILE: drivers/net/dsa/an8855.c:1811: + ret = regmap_update_bits(priv->regmap, AN8855_SGMII_REG_AN0, BMCR_ANENABLE, WARNING: line length of 93 exceeds 80 columns #1893: FILE: drivers/net/dsa/an8855.c:1812: + neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? BMCR_ANENABLE : WARNING: line length of 81 exceeds 80 columns #1894: FILE: drivers/net/dsa/an8855.c:1813: + 0); WARNING: line length of 81 exceeds 80 columns #2269: FILE: drivers/net/dsa/an8855.h:128: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV4, /* All DIP_SIP address with DIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2270: FILE: drivers/net/dsa/an8855.h:129: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV4, /* All DIP_SIP address with SIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2271: FILE: drivers/net/dsa/an8855.h:130: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV6, /* All DIP_SIP address with DIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2272: FILE: drivers/net/dsa/an8855.h:131: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV6, /* All DIP_SIP address with SIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2364: FILE: drivers/net/dsa/an8855.h:223: + AN8855_VA0_ETAG_PORT_SHIFT(port)) WARNING: line length of 91 exceeds 80 columns #2365: FILE: drivers/net/dsa/an8855.h:224: +#define AN8855_VA0_ETAG_PORT_VAL(port, val) (FIELD_PREP(AN8855_VA0_ETAG_PORT, (val)) << \ WARNING: line length of 81 exceeds 80 columns #2366: FILE: drivers/net/dsa/an8855.h:225: + AN8855_VA0_ETAG_PORT_SHIFT(port)) WARNING: line length of 81 exceeds 80 columns #2367: FILE: drivers/net/dsa/an8855.h:226: +#define AN8855_VA0_VTAG_EN BIT(10) /* Per VLAN Egress Tag Control */ WARNING: line length of 86 exceeds 80 columns #2461: FILE: drivers/net/dsa/an8855.h:320: +#define AN8855_PMCR_FORCE_SPEED_5000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x4) WARNING: line length of 86 exceeds 80 columns #2462: FILE: drivers/net/dsa/an8855.h:321: +#define AN8855_PMCR_FORCE_SPEED_2500 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x3) WARNING: line length of 86 exceeds 80 columns #2463: FILE: drivers/net/dsa/an8855.h:322: +#define AN8855_PMCR_FORCE_SPEED_1000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x2) WARNING: line length of 86 exceeds 80 columns #2464: FILE: drivers/net/dsa/an8855.h:323: +#define AN8855_PMCR_FORCE_SPEED_100 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 86 exceeds 80 columns #2465: FILE: drivers/net/dsa/an8855.h:324: +#define AN8855_PMCR_FORCE_SPEED_10 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 89 exceeds 80 columns #2558: FILE: drivers/net/dsa/an8855.h:417: +#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 #2559: FILE: drivers/net/dsa/an8855.h:418: +#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 #2560: FILE: drivers/net/dsa/an8855.h:419: +#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 #2561: FILE: drivers/net/dsa/an8855.h:420: +#define AN8855_RG_LINK_MODE_P0_SPEED_10 FIELD_PREP_CONST(AN8855_RG_LINK_MODE_P0, 0x0) total: 0 errors, 78 warnings, 0 checks, 2720 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 32c5fa83fdc3 ("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, 78 warnings, 0 checks, 2720 lines checked