OpenCloudOS-Kernel/drivers/phy/cadence
Ma Ke 1cffbf30f8 phy: cadence-torrent: Check return value on register read
[ Upstream commit 967969cf594ed3c1678a9918d6e9bb2d1591cbe9 ]

cdns_torrent_dp_set_power_state() does not consider that ret might be
overwritten. Add return value check of regmap_read_poll_timeout() after
register read in cdns_torrent_dp_set_power_state().

Fixes: 5b16a790f1 ("phy: cadence-torrent: Reorder few functions to remove function declarations")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20240702032042.3993031-1-make24@iscas.ac.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:54:35 +02:00
..
Kconfig phy: cadence: Add Cadence D-PHY Rx driver 2022-03-02 19:54:42 +05:30
Makefile phy: cadence: Add Cadence D-PHY Rx driver 2022-03-02 19:54:42 +05:30
cdns-dphy-rx.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
cdns-dphy.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-cadence-salvo.c phy: cadence: salvo: Add cdns,usb2-disconnect-threshold-microvolt property 2023-05-19 23:14:06 +05:30
phy-cadence-sierra.c phy: cadence: Sierra: Add single link SGMII register configuration 2023-07-12 22:27:44 +05:30
phy-cadence-torrent.c phy: cadence-torrent: Check return value on register read 2024-08-03 08:54:35 +02:00