From: Swapnil Jakhade Date: Fri, 11 Sep 2020 06:18:33 +0000 (+0200) Subject: phy: Add new PHY attribute max_link_rate X-Git-Tag: v5.10-rc1~123^2~13^2~3^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a25536e8d57dd6fdd70b07219fc2c38e3b8c6503;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Swapnil Jakhade Reviewed-by: Laurent Pinchart Acked-by: Kishon Vijay Abraham I Link: https://lore.kernel.org/r/1599805114-22063-2-git-send-email-sjakhade@cadence.com Signed-off-by: Vinod Koul --- diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index bcee8eba62b37..e435bdb0bab35 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; };