phy: Add new PHY attribute max_link_rate
authorSwapnil Jakhade <sjakhade@cadence.com>
Fri, 11 Sep 2020 06:18:33 +0000 (08:18 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 16 Sep 2020 12:08:02 +0000 (17:38 +0530)
Add new PHY attribute max_link_rate to struct phy_attrs. This indicates
maximum link rate supported by PHY (in Mbps).

Signed-off-by: Yuti Amonkar <yamonkar@cadence.com>
Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/1599805114-22063-2-git-send-email-sjakhade@cadence.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/phy/phy.h

index bcee8eb..e435bdb 100644 (file)
@@ -115,10 +115,12 @@ struct phy_ops {
 /**
  * struct phy_attrs - represents phy attributes
  * @bus_width: Data path width implemented by PHY
+ * @max_link_rate: Maximum link rate supported by PHY (in Mbps)
  * @mode: PHY mode
  */
 struct phy_attrs {
        u32                     bus_width;
+       u32                     max_link_rate;
        enum phy_mode           mode;
 };