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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 31 Dec 2020 15:29:34 +0100
From:   Paul Kocialkowski <>
Cc:     Yong Deng <>,
        Mauro Carvalho Chehab <>,
        Rob Herring <>,
        Maxime Ripard <>,
        Chen-Yu Tsai <>,
        Jernej Skrabec <>,
        Paul Kocialkowski <>,
        Jonathan Corbet <>,
        Kishon Vijay Abraham I <>,
        Vinod Koul <>,
        Helen Koike <>,
        Dafna Hirschfeld <>,
        Greg Kroah-Hartman <>,
        Philipp Zabel <>,
        Sakari Ailus <>,
        Hans Verkuil <>,
        Thomas Petazzoni <>,
Subject: [PATCH v4 01/15] docs: phy: Add a part about PHY mode and submode

Besides giving pointers to the relevant functions for PHY mode and
submode configuration, this clarifies the need to set them before
powering on the PHY.

Signed-off-by: Paul Kocialkowski <>
Reviewed-by: Maxime Ripard <>
 Documentation/driver-api/phy/phy.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/Documentation/driver-api/phy/phy.rst b/Documentation/driver-api/phy/phy.rst
index 8fc1ce0bb905..6cbc72707a49 100644
--- a/Documentation/driver-api/phy/phy.rst
+++ b/Documentation/driver-api/phy/phy.rst
@@ -195,3 +195,21 @@ DeviceTree Binding
 The documentation for PHY dt binding can be found @
+PHY Mode and Submode
+Once a reference to a PHY is obtained by a controller, the PHY can be configured
+to a PHY mode and submode. PHY modes are described in the `phy_mode` enum while
+submodes are specific to the selected PHY mode.
+Mode and submode configuration is done by calling::
+	int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode);
+If no submode is to be configured, users can call::
+	int phy_set_mode(struct phy *phy, enum phy_mode mode);
+The PHY mode and submode must not be configured after the PHY has already been
+powered on.

Powered by blists - more mailing lists