1. 03 May, 2022 3 commits
    • Tonghao Zhang's avatar
      selftests/sysctl: add sysctl macro test · 57b19468
      Tonghao Zhang authored
      Cc: Luis Chamberlain <mcgrof@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Iurii Zaikin <yzaikin@google.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Cc: David Ahern <dsahern@kernel.org>
      Cc: Simon Horman <horms@verge.net.au>
      Cc: Julian Anastasov <ja@ssi.bg>
      Cc: Pablo Neira Ayuso <pablo@netfilter.org>
      Cc: Jozsef Kadlecsik <kadlec@netfilter.org>
      Cc: Florian Westphal <fw@strlen.de>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Lorenz Bauer <lmb@cloudflare.com>
      Cc: Akhmat Karakotov <hmukos@yandex-team.ru>
      Signed-off-by: default avatarTonghao Zhang <xiangxia.m.yue@gmail.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      57b19468
    • Tonghao Zhang's avatar
      net: sysctl: introduce sysctl SYSCTL_THREE · 4c7f24f8
      Tonghao Zhang authored
      This patch introdues the SYSCTL_THREE.
      
      KUnit:
      [00:10:14] ================ sysctl_test (10 subtests) =================
      [00:10:14] [PASSED] sysctl_test_api_dointvec_null_tbl_data
      [00:10:14] [PASSED] sysctl_test_api_dointvec_table_maxlen_unset
      [00:10:14] [PASSED] sysctl_test_api_dointvec_table_len_is_zero
      [00:10:14] [PASSED] sysctl_test_api_dointvec_table_read_but_position_set
      [00:10:14] [PASSED] sysctl_test_dointvec_read_happy_single_positive
      [00:10:14] [PASSED] sysctl_test_dointvec_read_happy_single_negative
      [00:10:14] [PASSED] sysctl_test_dointvec_write_happy_single_positive
      [00:10:14] [PASSED] sysctl_test_dointvec_write_happy_single_negative
      [00:10:14] [PASSED] sysctl_test_api_dointvec_write_single_less_int_min
      [00:10:14] [PASSED] sysctl_test_api_dointvec_write_single_greater_int_max
      [00:10:14] =================== [PASSED] sysctl_test ===================
      
      ./run_kselftest.sh -c sysctl
      ...
      ok 1 selftests: sysctl: sysctl.sh
      
      Cc: Luis Chamberlain <mcgrof@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Iurii Zaikin <yzaikin@google.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Cc: David Ahern <dsahern@kernel.org>
      Cc: Simon Horman <horms@verge.net.au>
      Cc: Julian Anastasov <ja@ssi.bg>
      Cc: Pablo Neira Ayuso <pablo@netfilter.org>
      Cc: Jozsef Kadlecsik <kadlec@netfilter.org>
      Cc: Florian Westphal <fw@strlen.de>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Lorenz Bauer <lmb@cloudflare.com>
      Cc: Akhmat Karakotov <hmukos@yandex-team.ru>
      Signed-off-by: default avatarTonghao Zhang <xiangxia.m.yue@gmail.com>
      Reviewed-by: default avatarSimon Horman <horms@verge.net.au>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      4c7f24f8
    • Tonghao Zhang's avatar
      net: sysctl: use shared sysctl macro · bd8a5367
      Tonghao Zhang authored
      This patch replace two, four and long_one to SYSCTL_XXX.
      
      Cc: Luis Chamberlain <mcgrof@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Iurii Zaikin <yzaikin@google.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Cc: Paolo Abeni <pabeni@redhat.com>
      Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Cc: David Ahern <dsahern@kernel.org>
      Cc: Simon Horman <horms@verge.net.au>
      Cc: Julian Anastasov <ja@ssi.bg>
      Cc: Pablo Neira Ayuso <pablo@netfilter.org>
      Cc: Jozsef Kadlecsik <kadlec@netfilter.org>
      Cc: Florian Westphal <fw@strlen.de>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Lorenz Bauer <lmb@cloudflare.com>
      Cc: Akhmat Karakotov <hmukos@yandex-team.ru>
      Signed-off-by: default avatarTonghao Zhang <xiangxia.m.yue@gmail.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      bd8a5367
  2. 02 May, 2022 36 commits
  3. 01 May, 2022 1 commit
    • David S. Miller's avatar
      Merge branch 'adin1100-industrial-PHY-support' · 6e28f56c
      David S. Miller authored
      Alexandru Tachici says:
      
      ====================
      net: phy: adin1100: Add initial support for ADIN1100 industrial PHY
      
      The ADIN1100 is a low power single port 10BASE-T1L transceiver designed for
      industrial Ethernet applications and is compliant with the IEEE 802.3cg
      Ethernet standard for long reach 10 Mb/s Single Pair Ethernet.
      
      The ADIN1100 uses Auto-Negotiation capability in accordance
      with IEEE 802.3 Clause 98, providing a mechanism for
      exchanging information between PHYs to allow link partners to
      agree to a common mode of operation.
      
      The concluded operating mode is the transmit amplitude mode and
      master/slave preference common across the two devices.
      
      Both device and LP advertise their ability and request for
      increased transmit at:
      - BASE-T1 autonegotiation advertisement register [47:32]\
      Clause 45.2.7.21 of Standard 802.3
      - BIT(13) - 10BASE-T1L High Level Transmit Operating Mode Ability
      - BIT(12) - 10BASE-T1L High Level Transmit Operating Mode Request
      
      For 2.4 Vpp (high level transmit) operation, both devices need
      to have the High Level Transmit Operating Mode Ability bit set,
      and only one of them needs to have the High Level Transmit
      Operating Mode Request bit set. Otherwise 1.0 Vpp transmit level
      will be used.
      
      Settings for eth1:
      	Supported ports: [ TP	 MII ]
      	Supported link modes:   10baseT1L/Full
      	Supported pause frame use: Symmetric Receive-only
      	Supports auto-negotiation: Yes
      	Supported FEC modes: Not reported
      	Advertised link modes:  10baseT1L/Full
      	Advertised pause frame use: No
      	Advertised auto-negotiation: Yes
      	Advertised FEC modes: Not reported
      	Link partner advertised link modes:  10baseT1L/Full
      	Link partner advertised pause frame use: No
      	Link partner advertised auto-negotiation: Yes
      	Link partner advertised FEC modes: Not reported
      	Speed: 10Mb/s
      	Duplex: Full
      	Auto-negotiation: on
      	master-slave cfg: preferred slave
      	master-slave status: slave
      	Port: Twisted Pair
      	PHYAD: 0
      	Transceiver: external
      	MDI-X: Unknown
      	Link detected: yes
      	SQI: 7/7
      
      1. Add basic support for ADIN1100.
      
      Alexandru Ardelean (1):
        net: phy: adin1100: Add initial support for ADIN1100 industrial PHY
      
      1. Added 10baset-T1L link modes.
      
      2. Added 10-BasetT1L registers.
      
      3. Added Base-T1 auto-negotiation registers. For Base-T1 these
      registers decide master/slave status and TX voltage of the
      device and link partner.
      
      4. Added 10BASE-T1L support in phy-c45.c. Now genphy functions will call
      Base-T1 functions where registers don't match, like the auto-negotiation ones.
      
      5. Convert MSE to SQI using a predefined table and allow user access
      through ethtool.
      
      6. DT bindings for the 2.4 Vpp transmit mode.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6e28f56c