* |WARNING| pw144427 [PATCH] net/r8169: add support for phy configuration
[not found] <20240925073737.37607-1-howard_wang@realsil.com.cn>
2024-09-25 7:10 ` |WARNING| pw144427 [PATCH] net/r8169: add support for phy configuration qemudev
@ 2024-09-25 7:38 ` checkpatch
2024-09-25 15:20 ` dpdklab
2 siblings, 0 replies; 3+ messages in thread
From: checkpatch @ 2024-09-25 7:38 UTC (permalink / raw)
To: test-report; +Cc: Howard Wang
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/144427
_coding style issues_
CHECK:CAMELCASE: Avoid CamelCase: <HwSuppCheckPhyDisableModeVer>
#117: FILE: drivers/net/r8169/r8169_ethdev.h:42:
+ u8 HwSuppCheckPhyDisableModeVer;
CHECK:CAMELCASE: Avoid CamelCase: <HwSuppMaxPhyLinkSpeed>
#122: FILE: drivers/net/r8169/r8169_ethdev.h:47:
+ u32 HwSuppMaxPhyLinkSpeed;
CHECK:CAMELCASE: Avoid CamelCase: <PhyState>
#176: FILE: drivers/net/r8169/r8169_phy.c:374:
+rtl_wait_phy_ups_resume(struct rtl_hw *hw, u16 PhyState)
ERROR:CODE_INDENT: code indent should use tabs where possible
#275: FILE: drivers/net/r8169/r8169_phy.c:473:
+^I MII_ADVERTISE) & ~(ADVERTISE_10HALF | ADVERTISE_10FULL | ADVERTISE_100HALF |$
ERROR:CODE_INDENT: code indent should use tabs where possible
#276: FILE: drivers/net/r8169/r8169_phy.c:474:
+^I ADVERTISE_100FULL));$
ERROR:CODE_INDENT: code indent should use tabs where possible
#278: FILE: drivers/net/r8169/r8169_phy.c:476:
+^I MII_CTRL1000) & ~(ADVERTISE_1000HALF | ADVERTISE_1000FULL));$
ERROR:CODE_INDENT: code indent should use tabs where possible
#280: FILE: drivers/net/r8169/r8169_phy.c:478:
+^I 0xA5D4) & ~(RTK_ADVERTISE_2500FULL | RTK_ADVERTISE_5000FULL));$
WARNING:LONG_LINE: line length of 101 exceeds 100 columns
#302: FILE: drivers/net/r8169/r8169_phy.c:500:
+ PMD_INIT_LOG(NOTICE, "PHY watch dog not clear, value = 0x%x", phy_reg_value);
ERROR:CODE_INDENT: code indent should use tabs where possible
#309: FILE: drivers/net/r8169/r8169_phy.c:507:
+^I^I (BIT_10 | BIT_9 | BIT_8));$
CHECK:BRACES: braces {} should be used on all arms of this statement
#337: FILE: drivers/net/r8169/r8169_phy.c:535:
+ if (hw->hw_ram_code_ver == hw->sw_ram_code_ver) {
[...]
+ } else
[...]
CHECK:CAMELCASE: Avoid CamelCase: <HwHasWrRamCodeToMicroP>
#339: FILE: drivers/net/r8169/r8169_phy.c:537:
+ hw->HwHasWrRamCodeToMicroP = TRUE;
CHECK:BRACES: Unbalanced braces around else statement
#340: FILE: drivers/net/r8169/r8169_phy.c:538:
+ } else
CHECK:CAMELCASE: Avoid CamelCase: <NotWrRamCodeToMicroP>
#386: FILE: drivers/net/r8169/r8169_phy.c:584:
+ if (hw->NotWrRamCodeToMicroP == TRUE)
CHECK:BOOL_COMPARISON: Using comparison to TRUE is error prone
#386: FILE: drivers/net/r8169/r8169_phy.c:584:
+ if (hw->NotWrRamCodeToMicroP == TRUE)
CHECK:USLEEP_RANGE: usleep_range is preferred over udelay; see Documentation/timers/timers-howto.rst
#423: FILE: drivers/net/r8169/r8169_phy.c:621:
+ udelay(100);
WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#594: FILE: drivers/net/r8169/r8169_phy.h:23:
+#define MII_LPA ^I^I0x05^I/* Link partner ability reg */$
WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#604: FILE: drivers/net/r8169/r8169_phy.h:33:
+#define MII_RERRCOUNTER ^I0x15^I/* Receive error counter */$
WARNING:TYPO_SPELLING: 'asymetric' may be misspelled - perhaps 'asymmetric'?
#657: FILE: drivers/net/r8169/r8169_phy.h:86:
+#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */
WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#660: FILE: drivers/net/r8169/r8169_phy.h:89:
+#define ADVERTISE_LPACK ^I0x4000^I/* Ack link partners response */$
WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#661: FILE: drivers/net/r8169/r8169_phy.h:90:
+#define ADVERTISE_NPAGE ^I0x8000^I/* Next page bit */$
WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#669: FILE: drivers/net/r8169/r8169_phy.h:98:
+#define RTK_ADVERTISE_10000FULL ^I0x1000$
total: 5 errors, 7 warnings, 9 checks, 600 lines checked
^ permalink raw reply [flat|nested] 3+ messages in thread