The function phy_set_attrs() will finish the "gphy" setting from
the struct "torrent_attr", and data protection is done in this function.
Here it should set the "torrent_attr" instead of the "ghy".

Signed-off-by: Xulin Sun <[email protected]>
---
 drivers/phy/cadence/phy-cadence-torrent.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
 mode change 100644 => 100755 drivers/phy/cadence/phy-cadence-torrent.c

diff --git a/drivers/phy/cadence/phy-cadence-torrent.c 
b/drivers/phy/cadence/phy-cadence-torrent.c
old mode 100644
new mode 100755
index 9d4eea2b73e2..23d25187bfb7
--- a/drivers/phy/cadence/phy-cadence-torrent.c
+++ b/drivers/phy/cadence/phy-cadence-torrent.c
@@ -2489,9 +2489,10 @@ static int cdns_torrent_phy_probe(struct platform_device 
*pdev)
                                 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;
+                       torrent_attr.bus_width = cdns_phy->phys[node].num_lanes;
+                       torrent_attr.max_link_rate = cdns_phy->max_bit_rate;
+                       torrent_attr.mode = PHY_MODE_DP;
+
                        phy_set_attrs(gphy, torrent_attr);
                }
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9814): 
https://lists.yoctoproject.org/g/linux-yocto/message/9814
Mute This Topic: https://lists.yoctoproject.org/mt/82421083/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to