aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwapnil Jakhade <[email protected]>2020-09-11 08:18:33 +0200
committerVinod Koul <[email protected]>2020-09-16 17:38:02 +0530
commita25536e8d57dd6fdd70b07219fc2c38e3b8c6503 (patch)
tree6c6d313ec2acffe770799ba31e7b8ea3d28adc0e
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
phy: Add new PHY attribute max_link_rate
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 <[email protected]> Signed-off-by: Swapnil Jakhade <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
-rw-r--r--include/linux/phy/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
index bcee8eba62b3..e435bdb0bab3 100644
--- a/include/linux/phy/phy.h
+++ b/include/linux/phy/phy.h
@@ -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;
};