Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Swapnil Jakhade and committed by
Vinod Koul
a25536e8 9123e3a7

+2
+2
include/linux/phy/phy.h
··· 115 115 /** 116 116 * struct phy_attrs - represents phy attributes 117 117 * @bus_width: Data path width implemented by PHY 118 + * @max_link_rate: Maximum link rate supported by PHY (in Mbps) 118 119 * @mode: PHY mode 119 120 */ 120 121 struct phy_attrs { 121 122 u32 bus_width; 123 + u32 max_link_rate; 122 124 enum phy_mode mode; 123 125 }; 124 126