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 #261: FILE: drivers/net/dsa/an8855.c:183: +an8855_regmap_update_bits(void *ctx, uint32_t reg, uint32_t mask, uint32_t write_val) WARNING: line length of 83 exceeds 80 columns #334: FILE: drivers/net/dsa/an8855.c:256: + return regmap_write(priv->regmap, AN8855_MIB_CCR, AN8855_CCR_MIB_ACTIVATE); WARNING: line length of 83 exceeds 80 columns #460: FILE: drivers/net/dsa/an8855.c:382: + ret = regmap_set_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 85 exceeds 80 columns #591: FILE: drivers/net/dsa/an8855.c:513: + ret = an8855_fdb_cmd(priv, AN8855_ATC_MAT(AND8855_FDB_MAT_MAC_PORT) | WARNING: line length of 83 exceeds 80 columns #659: FILE: drivers/net/dsa/an8855.c:581: + val = untagged ? AN8855_VLAN_EGRESS_UNTAG : AN8855_VLAN_EGRESS_TAG; WARNING: line length of 83 exceeds 80 columns #753: FILE: drivers/net/dsa/an8855.c:675: + /* Trapped into security mode allows packet forwarding through VLAN WARNING: line length of 83 exceeds 80 columns #755: FILE: drivers/net/dsa/an8855.c:677: + * Set the port as a user port which is to be able to recognize VID WARNING: line length of 85 exceeds 80 columns #756: FILE: drivers/net/dsa/an8855.c:678: + * from incoming packets before fetching entry within the VLAN table. WARNING: line length of 83 exceeds 80 columns #768: FILE: drivers/net/dsa/an8855.c:690: + /* When a port is removed from the bridge, the port would be set up WARNING: line length of 84 exceeds 80 columns #769: FILE: drivers/net/dsa/an8855.c:691: + * back to the default as is at initial boot which is a VLAN-unaware WARNING: line length of 84 exceeds 80 columns #772: FILE: drivers/net/dsa/an8855.c:694: + ret = an8855_port_set_vlan_mode(priv, port, AN8855_PORT_MATRIX_MODE, WARNING: line length of 82 exceeds 80 columns #788: FILE: drivers/net/dsa/an8855.c:710: + AN8855_VLAN_EG_CONSISTENT, WARNING: line length of 81 exceeds 80 columns #789: FILE: drivers/net/dsa/an8855.c:711: + AN8855_VLAN_TRANSPARENT); WARNING: line length of 84 exceeds 80 columns #815: FILE: drivers/net/dsa/an8855.c:737: + FIELD_PREP(AN8855_G0_PORT_VID, vlan->vid)); WARNING: line length of 81 exceeds 80 columns #926: FILE: drivers/net/dsa/an8855.c:848: + ingress ? AN8855_PORT_RX_MIR : AN8855_PORT_TX_MIR); WARNING: line length of 83 exceeds 80 columns #1009: FILE: drivers/net/dsa/an8855.c:931: + ret = regmap_write(priv->regmap, AN8855_PMCR_P(port), reg); WARNING: line length of 83 exceeds 80 columns #1014: FILE: drivers/net/dsa/an8855.c:936: + ret = regmap_set_bits(priv->regmap, AN8855_PMEEECR_P(port), WARNING: line length of 85 exceeds 80 columns #1019: FILE: drivers/net/dsa/an8855.c:941: + ret = regmap_clear_bits(priv->regmap, AN8855_PMEEECR_P(port), WARNING: line length of 85 exceeds 80 columns #1170: FILE: drivers/net/dsa/an8855.c:1092: + ret = regmap_clear_bits(priv->regmap, AN8855_PORTMATRIX_P(dp->index), WARNING: line length of 81 exceeds 80 columns #1193: FILE: drivers/net/dsa/an8855.c:1115: + AN8855_PORT_SPEC_REPLACE_MODE | AN8855_PORT_SPEC_TAG); WARNING: line length of 83 exceeds 80 columns #1206: FILE: drivers/net/dsa/an8855.c:1128: + FIELD_PREP(AN8855_CPU_PORT_IDX, AN8855_CPU_PORT)); WARNING: line length of 88 exceeds 80 columns #1220: FILE: drivers/net/dsa/an8855.c:1142: + FIELD_PREP(AN8855_BPDU_PORT_FW, AN8855_BPDU_CPU_ONLY)); WARNING: line length of 88 exceeds 80 columns #1225: FILE: drivers/net/dsa/an8855.c:1147: + AN8855_CKG_LNKDN_GLB_STOP | AN8855_CKG_LNKDN_PORT_STOP); WARNING: line length of 84 exceeds 80 columns #1467: FILE: drivers/net/dsa/an8855.c:1389: + ret = regmap_update_bits(priv->regmap, AN8855_INTF_CTRL_10, GENMASK(21, 16), WARNING: line length of 84 exceeds 80 columns #1471: FILE: drivers/net/dsa/an8855.c:1393: + ret = regmap_update_bits(priv->regmap, AN8855_INTF_CTRL_10, GENMASK(28, 24), WARNING: line length of 82 exceeds 80 columns #1483: FILE: drivers/net/dsa/an8855.c:1405: + ret = regmap_update_bits(priv->regmap, AN8855_INTF_CTRL_11, GENMASK(5, 0), WARNING: line length of 93 exceeds 80 columns #1496: FILE: drivers/net/dsa/an8855.c:1418: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_LPF_BOT_LIM, GENMASK(26, 24), WARNING: line length of 93 exceeds 80 columns #1500: FILE: drivers/net/dsa/an8855.c:1422: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_LPF_BOT_LIM, GENMASK(22, 20), WARNING: line length of 88 exceeds 80 columns #1510: FILE: drivers/net/dsa/an8855.c:1432: + ret = regmap_update_bits(priv->regmap, AN8855_QP_DIG_MODE_CTRL_1, GENMASK(3, 2), WARNING: line length of 82 exceeds 80 columns #1524: FILE: drivers/net/dsa/an8855.c:1446: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_2, BIT(6) | BIT(7)); WARNING: line length of 81 exceeds 80 columns #1527: FILE: drivers/net/dsa/an8855.c:1449: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(10, 8), WARNING: line length of 84 exceeds 80 columns #1534: FILE: drivers/net/dsa/an8855.c:1456: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_2, BIT(12) | BIT(13)); WARNING: line length of 82 exceeds 80 columns #1551: FILE: drivers/net/dsa/an8855.c:1473: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(19, 16), WARNING: line length of 82 exceeds 80 columns #1557: FILE: drivers/net/dsa/an8855.c:1479: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(21, 20), WARNING: line length of 82 exceeds 80 columns #1561: FILE: drivers/net/dsa/an8855.c:1483: + ret = regmap_update_bits(priv->regmap, AN8855_PLL_CTRL_2, GENMASK(25, 24), WARNING: line length of 82 exceeds 80 columns #1581: FILE: drivers/net/dsa/an8855.c:1503: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_4, BIT(3) | BIT(4)); WARNING: line length of 82 exceeds 80 columns #1605: FILE: drivers/net/dsa/an8855.c:1527: + ret = regmap_clear_bits(priv->regmap, AN8855_SS_LCPLL_TDC_FLT_5, BIT(24)); WARNING: line length of 81 exceeds 80 columns #1613: FILE: drivers/net/dsa/an8855.c:1535: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_3, GENMASK(15, 0)); WARNING: line length of 82 exceeds 80 columns #1619: FILE: drivers/net/dsa/an8855.c:1541: + ret = regmap_clear_bits(priv->regmap, AN8855_PLL_CTRL_3, GENMASK(31, 16)); WARNING: line length of 87 exceeds 80 columns #1635: FILE: drivers/net/dsa/an8855.c:1557: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_RX_DAC_EN, GENMASK(17, 16), WARNING: line length of 82 exceeds 80 columns #1641: FILE: drivers/net/dsa/an8855.c:1563: + ret = regmap_clear_bits(priv->regmap, AN8855_PON_RXFEDIG_CTRL_0, BIT(12)); WARNING: line length of 83 exceeds 80 columns #1650: FILE: drivers/net/dsa/an8855.c:1572: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_TX_MODE_16B_EN, BIT(0)); WARNING: line length of 81 exceeds 80 columns #1660: FILE: drivers/net/dsa/an8855.c:1582: + ret = regmap_set_bits(priv->regmap, AN8855_RG_QP_RXAFE_RESERVE, BIT(11)); WARNING: line length of 82 exceeds 80 columns #1695: FILE: drivers/net/dsa/an8855.c:1617: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, WARNING: line length of 90 exceeds 80 columns #1700: FILE: drivers/net/dsa/an8855.c:1622: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, BIT(6)); WARNING: line length of 85 exceeds 80 columns #1704: FILE: drivers/net/dsa/an8855.c:1626: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, WARNING: line length of 85 exceeds 80 columns #1709: FILE: drivers/net/dsa/an8855.c:1631: + ret = regmap_update_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, WARNING: line length of 94 exceeds 80 columns #1714: FILE: drivers/net/dsa/an8855.c:1636: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_FORCE_IBANDLPF_R_OFF, BIT(13)); WARNING: line length of 91 exceeds 80 columns #1718: FILE: drivers/net/dsa/an8855.c:1640: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_QP_CDR_PR_KBAND_DIV_PCIE, BIT(30)); 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_42, GENMASK(12, 0), WARNING: line length of 81 exceeds 80 columns #1751: FILE: drivers/net/dsa/an8855.c:1673: + ret = regmap_update_bits(priv->regmap, AN8855_RX_CTRL_2, GENMASK(28, 16), WARNING: line length of 81 exceeds 80 columns #1762: FILE: drivers/net/dsa/an8855.c:1684: + ret = regmap_update_bits(priv->regmap, AN8855_RX_CTRL_8, GENMASK(27, 16), WARNING: line length of 81 exceeds 80 columns #1776: FILE: drivers/net/dsa/an8855.c:1698: + ret = regmap_update_bits(priv->regmap, AN8855_RX_CTRL_5, GENMASK(29, 10), WARNING: line length of 85 exceeds 80 columns #1808: FILE: drivers/net/dsa/an8855.c:1730: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_HSGMII_PCS_CTROL_1, BIT(30)); WARNING: line length of 92 exceeds 80 columns #1814: FILE: drivers/net/dsa/an8855.c:1736: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_REG_AN_FORCE_CL37, BIT(0)); WARNING: line length of 84 exceeds 80 columns #1823: FILE: drivers/net/dsa/an8855.c:1745: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_REG_AN_13, BIT(8)); WARNING: line length of 90 exceeds 80 columns #1830: FILE: drivers/net/dsa/an8855.c:1752: + ret = regmap_clear_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, BIT(31)); WARNING: line length of 93 exceeds 80 columns #1835: FILE: drivers/net/dsa/an8855.c:1757: + ret = regmap_set_bits(priv->regmap, AN8855_MII_RA_AN_ENABLE, BIT(0)); WARNING: line length of 90 exceeds 80 columns #1839: FILE: drivers/net/dsa/an8855.c:1761: + ret = regmap_set_bits(priv->regmap, AN8855_RG_AN_SGMII_MODE_FORCE, WARNING: line length of 92 exceeds 80 columns #1843: FILE: drivers/net/dsa/an8855.c:1765: + ret = regmap_clear_bits(priv->regmap, AN8855_RG_AN_SGMII_MODE_FORCE, WARNING: line length of 88 exceeds 80 columns #1848: FILE: drivers/net/dsa/an8855.c:1770: + ret = regmap_clear_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, WARNING: line length of 88 exceeds 80 columns #1854: FILE: drivers/net/dsa/an8855.c:1776: + ret = regmap_set_bits(priv->regmap, AN8855_RATE_ADP_P0_CTRL_0, BIT(28)); WARNING: line length of 81 exceeds 80 columns #1859: FILE: drivers/net/dsa/an8855.c:1781: + ret = regmap_set_bits(priv->regmap, AN8855_RG_RATE_ADAPT_CTRL_0, BIT(0)); WARNING: line length of 81 exceeds 80 columns #1862: FILE: drivers/net/dsa/an8855.c:1784: + ret = regmap_set_bits(priv->regmap, AN8855_RG_RATE_ADAPT_CTRL_0, BIT(4)); WARNING: line length of 90 exceeds 80 columns #1865: FILE: drivers/net/dsa/an8855.c:1787: + ret = regmap_set_bits(priv->regmap, AN8855_RG_RATE_ADAPT_CTRL_0, GENMASK(27, 26)); WARNING: line length of 88 exceeds 80 columns #1884: FILE: drivers/net/dsa/an8855.c:1806: + ret = regmap_set_bits(priv->regmap, AN8855_PHY_RX_FORCE_CTRL_0, BIT(4)); WARNING: line length of 85 exceeds 80 columns #1896: FILE: drivers/net/dsa/an8855.c:1818: + ret = regmap_set_bits(priv->regmap, AN8855_SGMII_STS_CTRL_0, BIT(2)); WARNING: line length of 81 exceeds 80 columns #2198: FILE: drivers/net/dsa/an8855.h:106: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV4, /* All DIP_SIP address with DIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2199: FILE: drivers/net/dsa/an8855.h:107: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV4, /* All DIP_SIP address with SIP_IPV4 */ WARNING: line length of 81 exceeds 80 columns #2200: FILE: drivers/net/dsa/an8855.h:108: + AND8855_FDB_MAT_DIP_SIP_DIP_IPV6, /* All DIP_SIP address with DIP_IPV6 */ WARNING: line length of 81 exceeds 80 columns #2201: FILE: drivers/net/dsa/an8855.h:109: + AND8855_FDB_MAT_DIP_SIP_SIP_IPV6, /* All DIP_SIP address with SIP_IPV6 */ WARNING: line length of 98 exceeds 80 columns #2291: FILE: drivers/net/dsa/an8855.h:199: +#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 #2292: FILE: drivers/net/dsa/an8855.h:200: +#define AN8855_VA0_VTAG_EN BIT(10) /* Per VLAN Egress Tag Control */ WARNING: line length of 86 exceeds 80 columns #2386: FILE: drivers/net/dsa/an8855.h:294: +#define AN8855_PMCR_FORCE_SPEED_5000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x4) WARNING: line length of 86 exceeds 80 columns #2387: FILE: drivers/net/dsa/an8855.h:295: +#define AN8855_PMCR_FORCE_SPEED_2500 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x3) WARNING: line length of 86 exceeds 80 columns #2388: FILE: drivers/net/dsa/an8855.h:296: +#define AN8855_PMCR_FORCE_SPEED_1000 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x2) WARNING: line length of 86 exceeds 80 columns #2389: FILE: drivers/net/dsa/an8855.h:297: +#define AN8855_PMCR_FORCE_SPEED_100 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) WARNING: line length of 86 exceeds 80 columns #2390: FILE: drivers/net/dsa/an8855.h:298: +#define AN8855_PMCR_FORCE_SPEED_10 FIELD_PREP_CONST(AN8855_PMCR_FORCE_SPEED, 0x1) total: 0 errors, 79 warnings, 0 checks, 2538 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 0e317d7dc210 ("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, 79 warnings, 0 checks, 2538 lines checked