WARNING: please write a help paragraph that fully describes the config symbol #50: 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 85 exceeds 80 columns #262: FILE: drivers/net/dsa/an8855.c:184: +an8855_regmap_update_bits(void *ctx, uint32_t reg, uint32_t mask, uint32_t write_val) WARNING: line length of 83 exceeds 80 columns #335: FILE: drivers/net/dsa/an8855.c:257: + return regmap_write(priv->regmap, AN8855_MIB_CCR, AN8855_CCR_MIB_ACTIVATE); WARNING: line length of 83 exceeds 80 columns #461: FILE: drivers/net/dsa/an8855.c:383: + ret = regmap_set_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 85 exceeds 80 columns #592: FILE: drivers/net/dsa/an8855.c:514: + ret = an8855_fdb_cmd(priv, AN8855_ATC_MAT(AND8855_FDB_MAT_MAC_PORT) | WARNING: line length of 83 exceeds 80 columns #660: FILE: drivers/net/dsa/an8855.c:582: + val = untagged ? AN8855_VLAN_EGRESS_UNTAG : AN8855_VLAN_EGRESS_TAG; WARNING: line length of 83 exceeds 80 columns #754: FILE: drivers/net/dsa/an8855.c:676: + /* Trapped into security mode allows packet forwarding through VLAN WARNING: line length of 83 exceeds 80 columns #756: FILE: drivers/net/dsa/an8855.c:678: + * Set the port as a user port which is to be able to recognize VID WARNING: line length of 85 exceeds 80 columns #757: FILE: drivers/net/dsa/an8855.c:679: + * from incoming packets before fetching entry within the VLAN table. WARNING: line length of 83 exceeds 80 columns #769: FILE: drivers/net/dsa/an8855.c:691: + /* When a port is removed from the bridge, the port would be set up WARNING: line length of 84 exceeds 80 columns #770: FILE: drivers/net/dsa/an8855.c:692: + * back to the default as is at initial boot which is a VLAN-unaware WARNING: line length of 84 exceeds 80 columns #773: FILE: drivers/net/dsa/an8855.c:695: + ret = an8855_port_set_vlan_mode(priv, port, AN8855_PORT_MATRIX_MODE, WARNING: line length of 82 exceeds 80 columns #789: FILE: drivers/net/dsa/an8855.c:711: + AN8855_VLAN_EG_CONSISTENT, WARNING: line length of 81 exceeds 80 columns #790: FILE: drivers/net/dsa/an8855.c:712: + AN8855_VLAN_TRANSPARENT); WARNING: line length of 84 exceeds 80 columns #817: FILE: drivers/net/dsa/an8855.c:739: + FIELD_PREP(AN8855_G0_PORT_VID, vlan->vid)); WARNING: line length of 81 exceeds 80 columns #929: FILE: drivers/net/dsa/an8855.c:851: + ingress ? AN8855_PORT_RX_MIR : AN8855_PORT_TX_MIR); WARNING: line length of 83 exceeds 80 columns #1014: FILE: drivers/net/dsa/an8855.c:936: + ret = regmap_write(priv->regmap, AN8855_PMCR_P(port), reg); WARNING: line length of 87 exceeds 80 columns #1020: FILE: drivers/net/dsa/an8855.c:942: + eee->tx_lpi_enabled ? AN8855_LPI_MODE_EN : 0); WARNING: line length of 85 exceeds 80 columns #1152: FILE: drivers/net/dsa/an8855.c:1074: + ret = regmap_clear_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 81 exceeds 80 columns #1175: FILE: drivers/net/dsa/an8855.c:1097: + AN8855_PORT_SPEC_REPLACE_MODE | AN8855_PORT_SPEC_TAG); WARNING: line length of 83 exceeds 80 columns #1188: FILE: drivers/net/dsa/an8855.c:1110: + FIELD_PREP(AN8855_CPU_PORT_IDX, AN8855_CPU_PORT)); WARNING: line length of 88 exceeds 80 columns #1202: FILE: drivers/net/dsa/an8855.c:1124: + FIELD_PREP(AN8855_BPDU_PORT_FW, AN8855_BPDU_CPU_ONLY)); WARNING: line length of 88 exceeds 80 columns #1207: FILE: drivers/net/dsa/an8855.c:1129: + AN8855_CKG_LNKDN_GLB_STOP | AN8855_CKG_LNKDN_PORT_STOP); WARNING: line length of 82 exceeds 80 columns #1316: FILE: drivers/net/dsa/an8855.c:1238: + AN8855_PMCR_FORCE_MODE | AN8855_PMCR_FORCE_LNK, WARNING: line length of 84 exceeds 80 columns #1451: FILE: drivers/net/dsa/an8855.c:1373: + ret = regmap_update_bits(priv->regmap, AN8855_INTF_CTRL_10, GENMASK(21, 16), WARNING: line length of 84 exceeds 80 columns #1455: FILE: drivers/net/dsa/an8855.c:1377: + ret = regmap_update_bits(priv->regmap, AN8855_INTF_CTRL_10, GENMASK(28, 24), WARNING: line length of 82 exceeds 80 columns #1467: FILE: drivers/net/dsa/an8855.c:1389: + ret = regmap_update_bits(priv->regmap, AN8855_INTF_CTRL_11, GENMASK(5, 0), WARNING: line length of 93 exceeds 80 columns #1480: FILE: drivers/net/dsa/an8855.c:1402: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_LPF_BOT_LIM, GENMASK(26, 24), WARNING: line length of 93 exceeds 80 columns #1484: FILE: drivers/net/dsa/an8855.c:1406: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_LPF_BOT_LIM, GENMASK(22, 20), WARNING: line length of 88 exceeds 80 columns #1494: FILE: drivers/net/dsa/an8855.c:1416: + ret = regmap_update_bits(priv->regmap, AN8855_QP_DIG_MODE_CTRL_1, GENMASK(3, 2), WARNING: line length of 82 exceeds 80 columns #1508: FILE: drivers/net/dsa/an8855.c:1430: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_2, BIT(6) | BIT(7)); WARNING: line length of 81 exceeds 80 columns #1511: FILE: drivers/net/dsa/an8855.c:1433: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(10, 8), WARNING: line length of 84 exceeds 80 columns #1518: FILE: drivers/net/dsa/an8855.c:1440: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_2, BIT(12) | BIT(13)); WARNING: line length of 82 exceeds 80 columns #1535: FILE: drivers/net/dsa/an8855.c:1457: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(19, 16), WARNING: line length of 82 exceeds 80 columns #1541: FILE: drivers/net/dsa/an8855.c:1463: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(21, 20), WARNING: line length of 82 exceeds 80 columns #1545: FILE: drivers/net/dsa/an8855.c:1467: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(25, 24), WARNING: line length of 82 exceeds 80 columns #1565: FILE: drivers/net/dsa/an8855.c:1487: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_4, BIT(3) | BIT(4)); WARNING: line length of 82 exceeds 80 columns #1589: FILE: drivers/net/dsa/an8855.c:1511: + ret = regmap_clear_bits(priv->regmap, AN8855_SS_LCPLL_TDC_FLT_5, BIT(24)); WARNING: line length of 81 exceeds 80 columns #1597: FILE: drivers/net/dsa/an8855.c:1519: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_3, GENMASK(15, 0)); WARNING: line length of 82 exceeds 80 columns #1603: FILE: drivers/net/dsa/an8855.c:1525: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_3, GENMASK(31, 16)); WARNING: line length of 87 exceeds 80 columns #1619: FILE: drivers/net/dsa/an8855.c:1541: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_RX_DAC_EN, GENMASK(17, 16), WARNING: line length of 82 exceeds 80 columns #1625: FILE: drivers/net/dsa/an8855.c:1547: + ret = regmap_clear_bits(priv->regmap, AN8855_PON_RXFEDIG_CTRL_0, BIT(12)); WARNING: line length of 83 exceeds 80 columns #1634: FILE: drivers/net/dsa/an8855.c:1556: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_TX_MODE_16B_EN, BIT(0)); WARNING: line length of 81 exceeds 80 columns #1644: FILE: drivers/net/dsa/an8855.c:1566: + ret = regmap_set_bits(priv->regmap, AN8855_RG_QP_RXAFE_RESERVE, BIT(11)); WARNING: line length of 82 exceeds 80 columns #1679: FILE: drivers/net/dsa/an8855.c:1601: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 90 exceeds 80 columns #1684: FILE: drivers/net/dsa/an8855.c:1606: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, BIT(6)); WARNING: line length of 85 exceeds 80 columns #1688: FILE: drivers/net/dsa/an8855.c:1610: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, WARNING: line length of 85 exceeds 80 columns #1693: FILE: drivers/net/dsa/an8855.c:1615: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, WARNING: line length of 94 exceeds 80 columns #1698: FILE: drivers/net/dsa/an8855.c:1620: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, BIT(13)); WARNING: line length of 91 exceeds 80 columns #1702: FILE: drivers/net/dsa/an8855.c:1624: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, BIT(30)); WARNING: line length of 81 exceeds 80 columns #1730: FILE: drivers/net/dsa/an8855.c:1652: + ret = regmap_update_bits(priv->regmap, AN8855_RX_CTRL_42, GENMASK(12, 0), WARNING: line length of 81 exceeds 80 columns #1735: FILE: drivers/net/dsa/an8855.c:1657: + ret = regmap_update_bits(priv->regmap, AN8855_RX_CTRL_2, GENMASK(28, 16), WARNING: line length of 81 exceeds 80 columns #1746: FILE: drivers/net/dsa/an8855.c:1668: + ret = regmap_update_bits(priv->regmap, AN8855_RX_CTRL_8, GENMASK(27, 16), WARNING: line length of 81 exceeds 80 columns #1760: FILE: drivers/net/dsa/an8855.c:1682: + ret = regmap_update_bits(priv->regmap, AN8855_RX_CTRL_5, GENMASK(29, 10), WARNING: line length of 85 exceeds 80 columns #1788: FILE: drivers/net/dsa/an8855.c:1710: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_HSGMII_PCS_CTROL_1, BIT(30)); WARNING: line length of 92 exceeds 80 columns #1794: FILE: drivers/net/dsa/an8855.c:1716: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_REG_AN_FORCE_CL37, BIT(0)); WARNING: line length of 84 exceeds 80 columns #1803: FILE: drivers/net/dsa/an8855.c:1725: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_REG_AN_13, BIT(8)); WARNING: line length of 90 exceeds 80 columns #1810: FILE: drivers/net/dsa/an8855.c:1732: + ret = regmap_clear_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, BIT(31)); WARNING: line length of 93 exceeds 80 columns #1815: FILE: drivers/net/dsa/an8855.c:1737: + ret = regmap_set_bits(priv->regmap, AN8855_MII_RA_AN_ENABLE, BIT(0)); WARNING: line length of 90 exceeds 80 columns #1819: FILE: drivers/net/dsa/an8855.c:1741: + ret = regmap_set_bits(priv->regmap, AN8855_RG_AN_SGMII_MODE_FORCE, WARNING: line length of 92 exceeds 80 columns #1823: FILE: drivers/net/dsa/an8855.c:1745: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_AN_SGMII_MODE_FORCE, WARNING: line length of 88 exceeds 80 columns #1828: FILE: drivers/net/dsa/an8855.c:1750: + ret = regmap_clear_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, WARNING: line length of 88 exceeds 80 columns #1834: FILE: drivers/net/dsa/an8855.c:1756: + ret = regmap_set_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, BIT(28)); WARNING: line length of 81 exceeds 80 columns #1839: FILE: drivers/net/dsa/an8855.c:1761: + ret = regmap_set_bits(priv->regmap, AN8855_RG_RATE_ADAPT_CTRL_0, BIT(0)); WARNING: line length of 81 exceeds 80 columns #1842: FILE: drivers/net/dsa/an8855.c:1764: + ret = regmap_set_bits(priv->regmap, AN8855_RG_RATE_ADAPT_CTRL_0, BIT(4)); WARNING: line length of 90 exceeds 80 columns #1845: FILE: drivers/net/dsa/an8855.c:1767: + ret = regmap_set_bits(priv->regmap, AN8855_RG_RATE_ADAPT_CTRL_0, GENMASK(27, 26)); WARNING: line length of 83 exceeds 80 columns #1850: FILE: drivers/net/dsa/an8855.c:1772: + ret = regmap_update_bits(priv->regmap, AN8855_SGMII_REG_AN0, BMCR_ANENABLE, WARNING: line length of 93 exceeds 80 columns #1851: FILE: drivers/net/dsa/an8855.c:1773: + neg_mode == PHYLINK_PCS_NEG_INBAND_ENABLED ? BMCR_ANENABLE : WARNING: line length of 81 exceeds 80 columns #1852: FILE: drivers/net/dsa/an8855.c:1774: + 0); WARNING: line length of 88 exceeds 80 columns #1856: FILE: drivers/net/dsa/an8855.c:1778: + ret = regmap_set_bits(priv->regmap, AN8855_PHY_RX_FORCE_CTRL_0, BIT(4)); WARNING: line length of 85 exceeds 80 columns #1868: FILE: drivers/net/dsa/an8855.c:1790: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_STS_CTRL_0, BIT(2)); WARNING: line length of 81 exceeds 80 columns #2203: FILE: drivers/net/dsa/an8855.h:107: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV4, /* All DIP_SIP address with DIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2204: FILE: drivers/net/dsa/an8855.h:108: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV4, /* All DIP_SIP address with SIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2205: FILE: drivers/net/dsa/an8855.h:109: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV6, /* All DIP_SIP address with DIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2206: FILE: drivers/net/dsa/an8855.h:110: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV6, /* All DIP_SIP address with SIP_IPV6 */ WARNING: line length of 98 exceeds 80 columns #2296: FILE: drivers/net/dsa/an8855.h:200: +#define AN8855_VA0_ETAG_PORT_VAL(port, val) ((val) << __bf_shf(AN8855_VA0_ETAG_PORT_MASK(port))) WARNING: line length of 81 exceeds 80 columns #2297: FILE: drivers/net/dsa/an8855.h:201: +#define AN8855_VA0_VTAG_EN BIT(10) /* Per VLAN Egress Tag Control */ WARNING: line length of 86 exceeds 80 columns #2391: FILE: drivers/net/dsa/an8855.h:295: +#define AN8855_PMCR_FORCE_SPEED_5000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x4) WARNING: line length of 86 exceeds 80 columns #2392: FILE: drivers/net/dsa/an8855.h:296: +#define AN8855_PMCR_FORCE_SPEED_2500 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x3) WARNING: line length of 86 exceeds 80 columns #2393: FILE: drivers/net/dsa/an8855.h:297: +#define AN8855_PMCR_FORCE_SPEED_1000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x2) WARNING: line length of 86 exceeds 80 columns #2394: FILE: drivers/net/dsa/an8855.h:298: +#define AN8855_PMCR_FORCE_SPEED_100 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 86 exceeds 80 columns #2395: FILE: drivers/net/dsa/an8855.h:299: +#define AN8855_PMCR_FORCE_SPEED_10 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 97 exceeds 80 columns #2482: FILE: drivers/net/dsa/an8855.h:386: +#define AN8855_SGMII_STS_CTRL_0_SPEED_2500 FIELD_PREP_CONST(AN8855_SGMII_STS_CTRL_0_SPEED, 0x3) WARNING: line length of 97 exceeds 80 columns #2483: FILE: drivers/net/dsa/an8855.h:387: +#define AN8855_SGMII_STS_CTRL_0_SPEED_1000 FIELD_PREP_CONST(AN8855_SGMII_STS_CTRL_0_SPEED, 0x2) WARNING: line length of 96 exceeds 80 columns #2484: FILE: drivers/net/dsa/an8855.h:388: +#define AN8855_SGMII_STS_CTRL_0_SPEED_100 FIELD_PREP_CONST(AN8855_SGMII_STS_CTRL_0_SPEED, 0x1) WARNING: line length of 95 exceeds 80 columns #2485: FILE: drivers/net/dsa/an8855.h:389: +#define AN8855_SGMII_STS_CTRL_0_SPEED_10 FIELD_PREP_CONST(AN8855_SGMII_STS_CTRL_0_SPEED, 0x0) total: 0 errors, 86 warnings, 0 checks, 2548 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 1bc93102ae07 ("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, 2548 lines checked