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

Configure Feed

Select the types of activity you want to include in your feed.

phy: cadence-torrent: add already_configured to struct cdns_torrent_phy

Add already_configured to struct cdns_torrent_phy, so it can be used at
differents stages.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://lore.kernel.org/r/20240412-j7200-phy-s2r-v1-6-f15815833974@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Thomas Richard and committed by
Vinod Koul
d4f24d14 8512b687

+5 -5
+5 -5
drivers/phy/cadence/phy-cadence-torrent.c
··· 360 360 enum cdns_torrent_ref_clk ref_clk1_rate; 361 361 struct cdns_torrent_inst phys[MAX_NUM_LANES]; 362 362 int nsubnodes; 363 + int already_configured; 363 364 const struct cdns_torrent_data *init_data; 364 365 struct regmap *regmap_common_cdb; 365 366 struct regmap *regmap_phy_pcs_common_cdb; ··· 2809 2808 struct device_node *child; 2810 2809 int ret, subnodes, node = 0, i; 2811 2810 u32 total_num_lanes = 0; 2812 - int already_configured; 2813 2811 u8 init_dp_regmap = 0; 2814 2812 u32 phy_type; 2815 2813 ··· 2855 2855 if (ret) 2856 2856 goto clk_cleanup; 2857 2857 2858 - regmap_field_read(cdns_phy->phy_pma_cmn_ctrl_1, &already_configured); 2858 + regmap_field_read(cdns_phy->phy_pma_cmn_ctrl_1, &cdns_phy->already_configured); 2859 2859 2860 - if (!already_configured) { 2860 + if (!cdns_phy->already_configured) { 2861 2861 ret = cdns_torrent_clk(cdns_phy); 2862 2862 if (ret) 2863 2863 goto clk_cleanup; ··· 2937 2937 of_property_read_u32(child, "cdns,ssc-mode", 2938 2938 &cdns_phy->phys[node].ssc_mode); 2939 2939 2940 - if (!already_configured) 2940 + if (!cdns_phy->already_configured) 2941 2941 gphy = devm_phy_create(dev, child, &cdns_torrent_phy_ops); 2942 2942 else 2943 2943 gphy = devm_phy_create(dev, child, &noop_ops); ··· 3023 3023 goto put_lnk_rst; 3024 3024 } 3025 3025 3026 - if (cdns_phy->nsubnodes > 1 && !already_configured) { 3026 + if (cdns_phy->nsubnodes > 1 && !cdns_phy->already_configured) { 3027 3027 ret = cdns_torrent_phy_configure_multilink(cdns_phy); 3028 3028 if (ret) 3029 3029 goto put_lnk_rst;