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 90 exceeds 80 columns #122: FILE: drivers/net/dsa/an8855.c:41: + MIB_DESC(1, AN8855_PORT_MIB_RXS_FLOW_SAMPLING_PKT_DROP, "RxsFlowSamplingPktDrop"), WARNING: line length of 84 exceeds 80 columns #123: FILE: drivers/net/dsa/an8855.c:42: + MIB_DESC(1, AN8855_PORT_MIB_RXS_FLOW_TOTAL_PKT_DROP, "RxsFlowTotalPktDrop"), WARNING: line length of 83 exceeds 80 columns #184: FILE: drivers/net/dsa/an8855.c:103: + ret = an8855_mii_set_page(bus, priv->phy_base, AN8855_PHY_PAGE_EXTENDED_4); WARNING: line length of 83 exceeds 80 columns #240: FILE: drivers/net/dsa/an8855.c:159: + ret = an8855_mii_set_page(bus, priv->phy_base, AN8855_PHY_PAGE_EXTENDED_4); WARNING: line length of 85 exceeds 80 columns #255: FILE: drivers/net/dsa/an8855.c:174: +an8855_regmap_update_bits(void *ctx, uint32_t reg, uint32_t mask, uint32_t write_val) WARNING: line length of 83 exceeds 80 columns #263: FILE: drivers/net/dsa/an8855.c:182: + ret = an8855_mii_set_page(bus, priv->phy_base, AN8855_PHY_PAGE_EXTENDED_4); WARNING: line length of 83 exceeds 80 columns #338: FILE: drivers/net/dsa/an8855.c:257: + return regmap_write(priv->regmap, AN8855_MIB_CCR, AN8855_CCR_MIB_ACTIVATE); WARNING: line length of 82 exceeds 80 columns #468: FILE: drivers/net/dsa/an8855.c:387: + flags.val & BR_LEARNING ? 0 : BIT(port)); WARNING: line length of 85 exceeds 80 columns #482: FILE: drivers/net/dsa/an8855.c:401: + flags.val & BR_MCAST_FLOOD ? BIT(port) : 0); WARNING: line length of 85 exceeds 80 columns #489: FILE: drivers/net/dsa/an8855.c:408: + flags.val & BR_BCAST_FLOOD ? BIT(port) : 0); WARNING: line length of 83 exceeds 80 columns #521: FILE: drivers/net/dsa/an8855.c:440: + ret = regmap_set_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 85 exceeds 80 columns #653: FILE: drivers/net/dsa/an8855.c:572: + ret = an8855_fdb_cmd(priv, AN8855_ATC_MAT(AND8855_FDB_MAT_MAC_PORT) | WARNING: line length of 83 exceeds 80 columns #721: FILE: drivers/net/dsa/an8855.c:640: + val = untagged ? AN8855_VLAN_EGRESS_UNTAG : AN8855_VLAN_EGRESS_TAG; WARNING: line length of 83 exceeds 80 columns #815: FILE: drivers/net/dsa/an8855.c:734: + /* Trapped into security mode allows packet forwarding through VLAN WARNING: line length of 83 exceeds 80 columns #817: FILE: drivers/net/dsa/an8855.c:736: + * Set the port as a user port which is to be able to recognize VID WARNING: line length of 85 exceeds 80 columns #818: FILE: drivers/net/dsa/an8855.c:737: + * from incoming packets before fetching entry within the VLAN table. WARNING: line length of 83 exceeds 80 columns #830: FILE: drivers/net/dsa/an8855.c:749: + /* When a port is removed from the bridge, the port would be set up WARNING: line length of 84 exceeds 80 columns #831: FILE: drivers/net/dsa/an8855.c:750: + * back to the default as is at initial boot which is a VLAN-unaware WARNING: line length of 84 exceeds 80 columns #834: FILE: drivers/net/dsa/an8855.c:753: + ret = an8855_port_set_vlan_mode(priv, port, AN8855_PORT_MATRIX_MODE, WARNING: line length of 82 exceeds 80 columns #850: FILE: drivers/net/dsa/an8855.c:769: + AN8855_VLAN_EG_CONSISTENT, WARNING: line length of 84 exceeds 80 columns #878: FILE: drivers/net/dsa/an8855.c:797: + FIELD_PREP(AN8855_G0_PORT_VID, vlan->vid)); WARNING: line length of 82 exceeds 80 columns #974: FILE: drivers/net/dsa/an8855.c:893: + * To simulate a global frame counter, read Unicast and addition Multicast WARNING: line length of 82 exceeds 80 columns #980: FILE: drivers/net/dsa/an8855.c:899: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_SINGLE_COLLISION, 1, WARNING: line length of 84 exceeds 80 columns #983: FILE: drivers/net/dsa/an8855.c:902: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_MULTIPLE_COLLISION, 1, WARNING: line length of 85 exceeds 80 columns #1001: FILE: drivers/net/dsa/an8855.c:920: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_EXCESSIVE_COLLISION, 1, WARNING: line length of 82 exceeds 80 columns #1050: FILE: drivers/net/dsa/an8855.c:969: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_RX_PKT_SZ_65_TO_127, 1, WARNING: line length of 83 exceeds 80 columns #1052: FILE: drivers/net/dsa/an8855.c:971: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_RX_PKT_SZ_128_TO_255, 1, WARNING: line length of 83 exceeds 80 columns #1054: FILE: drivers/net/dsa/an8855.c:973: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_RX_PKT_SZ_256_TO_511, 1, WARNING: line length of 84 exceeds 80 columns #1056: FILE: drivers/net/dsa/an8855.c:975: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_RX_PKT_SZ_512_TO_1023, 1, WARNING: line length of 85 exceeds 80 columns #1058: FILE: drivers/net/dsa/an8855.c:977: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_RX_PKT_SZ_1024_TO_1518, 1, WARNING: line length of 84 exceeds 80 columns #1060: FILE: drivers/net/dsa/an8855.c:979: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_RX_PKT_SZ_1519_TO_MAX, 1, WARNING: line length of 82 exceeds 80 columns #1065: FILE: drivers/net/dsa/an8855.c:984: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_PKT_SZ_65_TO_127, 1, WARNING: line length of 83 exceeds 80 columns #1067: FILE: drivers/net/dsa/an8855.c:986: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_PKT_SZ_128_TO_255, 1, WARNING: line length of 83 exceeds 80 columns #1069: FILE: drivers/net/dsa/an8855.c:988: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_PKT_SZ_256_TO_511, 1, WARNING: line length of 84 exceeds 80 columns #1071: FILE: drivers/net/dsa/an8855.c:990: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_PKT_SZ_512_TO_1023, 1, WARNING: line length of 85 exceeds 80 columns #1073: FILE: drivers/net/dsa/an8855.c:992: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_PKT_SZ_1024_TO_1518, 1, WARNING: line length of 84 exceeds 80 columns #1075: FILE: drivers/net/dsa/an8855.c:994: + an8855_read_port_stats(priv, port, AN8855_PORT_MIB_TX_PKT_SZ_1519_TO_MAX, 1, WARNING: line length of 81 exceeds 80 columns #1125: FILE: drivers/net/dsa/an8855.c:1044: + ingress ? AN8855_PORT_RX_MIR : AN8855_PORT_TX_MIR); WARNING: line length of 83 exceeds 80 columns #1201: FILE: drivers/net/dsa/an8855.c:1120: + ret = regmap_write(priv->regmap, AN8855_PMCR_P(port), reg); WARNING: line length of 87 exceeds 80 columns #1207: FILE: drivers/net/dsa/an8855.c:1126: + eee->tx_lpi_enabled ? AN8855_LPI_MODE_EN : 0); WARNING: line length of 86 exceeds 80 columns #1339: FILE: drivers/net/dsa/an8855.c:1258: + ret = regmap_update_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 82 exceeds 80 columns #1340: FILE: drivers/net/dsa/an8855.c:1259: + AN8855_PORTMATRIX, BIT(AN8855_CPU_PORT)); WARNING: line length of 82 exceeds 80 columns #1345: FILE: drivers/net/dsa/an8855.c:1264: + ret = regmap_set_bits(priv->regmap, AN8855_AGDIS, BIT(dp->index)); WARNING: line length of 82 exceeds 80 columns #1350: FILE: drivers/net/dsa/an8855.c:1269: + ret = regmap_clear_bits(priv->regmap, AN8855_BCF, BIT(dp->index)); WARNING: line length of 83 exceeds 80 columns #1355: FILE: drivers/net/dsa/an8855.c:1274: + ret = regmap_clear_bits(priv->regmap, AN8855_UNUF, BIT(dp->index)); WARNING: line length of 83 exceeds 80 columns #1360: FILE: drivers/net/dsa/an8855.c:1279: + ret = regmap_clear_bits(priv->regmap, AN8855_UNMF, BIT(dp->index)); WARNING: line length of 81 exceeds 80 columns #1382: FILE: drivers/net/dsa/an8855.c:1301: + AN8855_PORT_SPEC_REPLACE_MODE | AN8855_PORT_SPEC_TAG); WARNING: line length of 83 exceeds 80 columns #1395: FILE: drivers/net/dsa/an8855.c:1314: + FIELD_PREP(AN8855_CPU_PORT_IDX, AN8855_CPU_PORT)); WARNING: line length of 82 exceeds 80 columns #1408: FILE: drivers/net/dsa/an8855.c:1327: + ret = regmap_clear_bits(priv->regmap, AN8855_AGDIS, BIT(AN8855_CPU_PORT)); WARNING: line length of 88 exceeds 80 columns #1429: FILE: drivers/net/dsa/an8855.c:1348: + FIELD_PREP(AN8855_BPDU_PORT_FW, AN8855_BPDU_CPU_ONLY)); WARNING: line length of 88 exceeds 80 columns #1434: FILE: drivers/net/dsa/an8855.c:1353: + AN8855_CKG_LNKDN_GLB_STOP | AN8855_CKG_LNKDN_PORT_STOP); WARNING: line length of 82 exceeds 80 columns #1535: FILE: drivers/net/dsa/an8855.c:1454: + AN8855_PMCR_FORCE_MODE | AN8855_PMCR_FORCE_LNK, WARNING: line length of 83 exceeds 80 columns #1674: FILE: drivers/net/dsa/an8855.c:1593: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C2_FORCE, 0x4) | WARNING: line length of 83 exceeds 80 columns #1676: FILE: drivers/net/dsa/an8855.c:1595: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C1_FORCE, 0x0)); WARNING: line length of 84 exceeds 80 columns #1688: FILE: drivers/net/dsa/an8855.c:1607: + FIELD_PREP(AN8855_RG_DA_QP_TX_FIR_C0B_FORCE, val)); WARNING: line length of 83 exceeds 80 columns #1725: FILE: drivers/net/dsa/an8855.c:1644: + FIELD_PREP(AN8855_RG_DA_QP_PLL_FBKSEL_INTF, 0x0) | WARNING: line length of 87 exceeds 80 columns #1759: FILE: drivers/net/dsa/an8855.c:1678: + FIELD_PREP(AN8855_RG_DA_QP_PLL_PFD_OFFSET_INTF, 0x1) | WARNING: line length of 89 exceeds 80 columns #1760: FILE: drivers/net/dsa/an8855.c:1679: + FIELD_PREP(AN8855_RG_DA_QP_PLL_KBAND_PREDIV_INTF, 0x1)); WARNING: line length of 85 exceeds 80 columns #1776: FILE: drivers/net/dsa/an8855.c:1695: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SDM_HREN_INTF, 0x0)); WARNING: line length of 85 exceeds 80 columns #1799: FILE: drivers/net/dsa/an8855.c:1718: + FIELD_PREP(AN8855_RG_LCPLL_PON_HRDDS_PCW_NCPO_GPON, val)); WARNING: line length of 86 exceeds 80 columns #1815: FILE: drivers/net/dsa/an8855.c:1734: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_DELTA_INTF, 0x0)); WARNING: line length of 88 exceeds 80 columns #1820: FILE: drivers/net/dsa/an8855.c:1739: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_DIR_DLY_INTF, 0x0)); WARNING: line length of 87 exceeds 80 columns #1825: FILE: drivers/net/dsa/an8855.c:1744: + FIELD_PREP(AN8855_RG_DA_QP_PLL_SSC_PERIOD_INTF, 0x0)); WARNING: line length of 81 exceeds 80 columns #1887: FILE: drivers/net/dsa/an8855.c:1806: + FIELD_PREP(AN8855_RG_QP_CDR_PR_BUF_IN_SR, 0x6) | WARNING: line length of 82 exceeds 80 columns #1902: FILE: drivers/net/dsa/an8855.c:1821: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 92 exceeds 80 columns #1905: FILE: drivers/net/dsa/an8855.c:1824: + FIELD_PREP(AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE_MASK, 0x19)); WARNING: line length of 85 exceeds 80 columns #1909: FILE: drivers/net/dsa/an8855.c:1828: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, WARNING: line length of 81 exceeds 80 columns #1918: FILE: drivers/net/dsa/an8855.c:1837: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 81 exceeds 80 columns #1925: FILE: drivers/net/dsa/an8855.c:1844: + FIELD_PREP(AN8855_RG_QP_CDR_PR_KBAND_DIV, 0x4)); WARNING: line length of 83 exceeds 80 columns #1941: FILE: drivers/net/dsa/an8855.c:1860: + FIELD_PREP(AN8855_RG_QP_RX_SAOSC_EN_H_DLY, 0x3f) | WARNING: line length of 84 exceeds 80 columns #1942: FILE: drivers/net/dsa/an8855.c:1861: + FIELD_PREP(AN8855_RG_QP_RX_PI_CAL_EN_H_DLY, 0x6f)); WARNING: line length of 81 exceeds 80 columns #1954: FILE: drivers/net/dsa/an8855.c:1873: + FIELD_PREP(AN8855_RG_QP_RX_EQ_EN_H_DLY, 0x150)); WARNING: line length of 81 exceeds 80 columns #1960: FILE: drivers/net/dsa/an8855.c:1879: + FIELD_PREP(AN8855_RG_QP_EQ_LEQOSC_DLYCNT, 0x1)); WARNING: line length of 85 exceeds 80 columns #1967: FILE: drivers/net/dsa/an8855.c:1886: + FIELD_PREP(AN8855_RG_DA_QP_SAOSC_DONE_TIME, 0x200) | WARNING: line length of 83 exceeds 80 columns #1968: FILE: drivers/net/dsa/an8855.c:1887: + FIELD_PREP(AN8855_RG_DA_QP_LEQOS_EN_TIME, 0xfff)); WARNING: line length of 82 exceeds 80 columns #1985: FILE: drivers/net/dsa/an8855.c:1904: + FIELD_PREP(AN8855_RG_FREDET_GOLDEN_CYCLE, 0x64)); WARNING: line length of 86 exceeds 80 columns #1991: FILE: drivers/net/dsa/an8855.c:1910: + FIELD_PREP(AN8855_RG_FREDET_TOLERATE_CYCLE, 0x2710)); WARNING: line length of 86 exceeds 80 columns #2004: FILE: drivers/net/dsa/an8855.c:1923: + AN8855_RG_SGMII_MODE | AN8855_RG_SGMII_AN_EN); WARNING: line length of 83 exceeds 80 columns #2016: FILE: drivers/net/dsa/an8855.c:1935: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_REG_AN_FORCE_CL37, WARNING: line length of 84 exceeds 80 columns #2038: FILE: drivers/net/dsa/an8855.c:1957: + ret = regmap_set_bits(priv->regmap, AN8855_MII_RA_AN_ENABLE, WARNING: line length of 93 exceeds 80 columns #2043: FILE: drivers/net/dsa/an8855.c:1962: + ret = regmap_update_bits(priv->regmap, AN8855_RG_AN_SGMII_MODE_FORCE, WARNING: line length of 81 exceeds 80 columns #2044: FILE: drivers/net/dsa/an8855.c:1963: + AN8855_RG_FORCE_CUR_SGMII_MODE | WARNING: line length of 88 exceeds 80 columns #2050: FILE: drivers/net/dsa/an8855.c:1969: + ret = regmap_clear_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, WARNING: line length of 83 exceeds 80 columns #2074: FILE: drivers/net/dsa/an8855.c:1993: + ret = regmap_update_bits(priv->regmap, AN8855_SGMII_REG_AN0, BMCR_ANENABLE, WARNING: line length of 93 exceeds 80 columns #2075: FILE: drivers/net/dsa/an8855.c:1994: + neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? BMCR_ANENABLE : WARNING: line length of 81 exceeds 80 columns #2076: FILE: drivers/net/dsa/an8855.c:1995: + 0); WARNING: line length of 86 exceeds 80 columns #2340: FILE: drivers/net/dsa/an8855.h:20: +#define AN8855_MAX_MTU (15360 - ETH_HLEN - ETH_FCS_LEN - MTK_TAG_LEN) WARNING: line length of 81 exceeds 80 columns #2460: FILE: drivers/net/dsa/an8855.h:140: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV4, /* All DIP_SIP address with DIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2461: FILE: drivers/net/dsa/an8855.h:141: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV4, /* All DIP_SIP address with SIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2462: FILE: drivers/net/dsa/an8855.h:142: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV6, /* All DIP_SIP address with DIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2463: FILE: drivers/net/dsa/an8855.h:143: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV6, /* All DIP_SIP address with SIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2555: FILE: drivers/net/dsa/an8855.h:235: + AN8855_VA0_ETAG_PORT_SHIFT(port)) WARNING: line length of 91 exceeds 80 columns #2556: FILE: drivers/net/dsa/an8855.h:236: +#define AN8855_VA0_ETAG_PORT_VAL(port, val) (FIELD_PREP(AN8855_VA0_ETAG_PORT, (val)) << \ WARNING: line length of 81 exceeds 80 columns #2557: FILE: drivers/net/dsa/an8855.h:237: + AN8855_VA0_ETAG_PORT_SHIFT(port)) WARNING: line length of 81 exceeds 80 columns #2558: FILE: drivers/net/dsa/an8855.h:238: +#define AN8855_VA0_VTAG_EN BIT(10) /* Per VLAN Egress Tag Control */ WARNING: line length of 86 exceeds 80 columns #2652: FILE: drivers/net/dsa/an8855.h:332: +#define AN8855_PMCR_FORCE_SPEED_5000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x4) WARNING: line length of 86 exceeds 80 columns #2653: FILE: drivers/net/dsa/an8855.h:333: +#define AN8855_PMCR_FORCE_SPEED_2500 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x3) WARNING: line length of 86 exceeds 80 columns #2654: FILE: drivers/net/dsa/an8855.h:334: +#define AN8855_PMCR_FORCE_SPEED_1000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x2) WARNING: line length of 86 exceeds 80 columns #2655: FILE: drivers/net/dsa/an8855.h:335: +#define AN8855_PMCR_FORCE_SPEED_100 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 86 exceeds 80 columns #2656: FILE: drivers/net/dsa/an8855.h:336: +#define AN8855_PMCR_FORCE_SPEED_10 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 89 exceeds 80 columns #2802: FILE: drivers/net/dsa/an8855.h:482: +#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 #2803: FILE: drivers/net/dsa/an8855.h:483: +#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 #2804: FILE: drivers/net/dsa/an8855.h:484: +#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 #2805: FILE: drivers/net/dsa/an8855.h:485: +#define AN8855_RG_LINK_MODE_P0_SPEED_10 FIELD_PREP_CONST(AN8855_RG_LINK_MODE_P0, 0x0) total: 0 errors, 105 warnings, 0 checks, 2964 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 25a022ef392e ("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, 105 warnings, 0 checks, 2964 lines checked