]> Git Repo - J-linux.git/commitdiff
phy: cadence-torrent: Set Torrent PHY attributes
authorSwapnil Jakhade <[email protected]>
Fri, 11 Sep 2020 06:18:34 +0000 (08:18 +0200)
committerVinod Koul <[email protected]>
Wed, 16 Sep 2020 12:08:02 +0000 (17:38 +0530)
Set Torrent PHY attributes bus_width, max_link_rate and mode
for DisplayPort.

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]>
drivers/phy/cadence/phy-cadence-torrent.c

index 7116127358ee0cb60ac56b4062a20397ff18c5ba..116aca36f7ddad91fce151d559932c76752224d7 100644 (file)
@@ -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;
This page took 0.05493 seconds and 4 git commands to generate.