diff options
author | Vinod Koul <vkoul@kernel.org> | 2020-09-16 17:38:33 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-09-16 17:38:33 +0530 |
commit | 5408b220436497d4e6d48010ee7a9735e77791ab (patch) | |
tree | 93b96e67eda7a1f6067d764180c21cc0a6e06802 | |
parent | 1cce8f73a561c944ba69419044222a6797b547d2 (diff) | |
parent | 0ffcc3787e34d39997343dd52c465bc906ed119b (diff) | |
download | linux-5408b220436497d4e6d48010ee7a9735e77791ab.tar.gz linux-5408b220436497d4e6d48010ee7a9735e77791ab.tar.bz2 linux-5408b220436497d4e6d48010ee7a9735e77791ab.zip |
Merge branch 'topic/phy_attrs' into next
-rw-r--r-- | drivers/phy/cadence/phy-cadence-torrent.c | 4 | ||||
-rw-r--r-- | include/linux/phy/phy.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c index 7116127358ee..116aca36f7dd 100644 --- a/drivers/phy/cadence/phy-cadence-torrent.c +++ b/drivers/phy/cadence/phy-cadence-torrent.c @@ -1852,6 +1852,10 @@ static int cdns_torrent_phy_probe(struct platform_device *pdev) cdns_phy->phys[node].num_lanes, cdns_phy->max_bit_rate / 1000, cdns_phy->max_bit_rate % 1000); + + gphy->attrs.bus_width = cdns_phy->phys[node].num_lanes; + gphy->attrs.max_link_rate = cdns_phy->max_bit_rate; + gphy->attrs.mode = PHY_MODE_DP; } else { dev_err(dev, "Driver supports only PHY_TYPE_DP\n"); ret = -ENOTSUPP; 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; }; |