lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250910-ksz-strap-pins-v1-0-6308bb2e139e@bootlin.com>
Date: Wed, 10 Sep 2025 16:55:23 +0200
From: Bastien Curutchet <bastien.curutchet@...tlin.com>
To: Woojung Huh <woojung.huh@...rochip.com>, UNGLinuxDriver@...rochip.com, 
 Andrew Lunn <andrew@...n.ch>, Vladimir Oltean <olteanv@...il.com>, 
 "David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, 
 Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, 
 Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, 
 Conor Dooley <conor+dt@...nel.org>, Marek Vasut <marex@...x.de>
Cc: Thomas Petazzoni <thomas.petazzoni@...tlin.com>, 
 Miquèl Raynal <miquel.raynal@...tlin.com>, 
 Pascal Eberhard <pascal.eberhard@...com>, 
 Woojung Huh <Woojung.Huh@...rochip.com>, netdev@...r.kernel.org, 
 devicetree@...r.kernel.org, linux-kernel@...r.kernel.org, 
 "Bastien Curutchet (Schneider Electric)" <bastien.curutchet@...tlin.com>
Subject: [PATCH net-next 0/2] net: dsa: microchip: Add strap configuration
 during reset

Hi all,

This small series aims to allow to configure the KSZ8463 switch at
reset. This configuration is determined by pin states while the chip is
held in reset. Normally, this kind of configuration is handled with
pull-ups/pull-downs. However, in some designs these pull-ups/pull-downs
can be missing (either intentionally to save power or simply by mistake).
In such cases, we need to manually drive the configuration pins during
reset to ensure the switch is set up correctly.

PATCH 0 adds a new property to the bindings that describes the GPIOs to
be set during reset in order to configure the switch properly. Alongside
this new property, a new 'reset' pinctrl state is introduced.

PATCH 1 implements the use of this property in the driver. I only have a
KSZ8463 to test with, so only its configuration is supported.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@...tlin.com>
---
Bastien Curutchet (2):
      dt-bindings: net: dsa: microchip: Add strap description
      net: dsa: microchip: configure strap pins during reset

 .../devicetree/bindings/net/dsa/microchip,ksz.yaml | 12 ++++++
 drivers/net/dsa/microchip/ksz_common.c             | 47 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)
---
base-commit: d0b93fbf220b2e7be093ac336eba3433cf3cd6f0
change-id: 20250904-ksz-strap-pins-2d1305441325

Best regards,
-- 
Bastien Curutchet <bastien.curutchet@...tlin.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ