[PATCH] phy: cadence-torrent: Check return value on register read

Roger Quadros rogerq at kernel.org
Tue Jul 2 04:54:04 PDT 2024



On 02/07/2024 06:20, Ma Ke wrote:
> 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: 5b16a790f18d ("phy: cadence-torrent: Reorder few functions to remove function declarations")
> Signed-off-by: Ma Ke <make24 at iscas.ac.cn>

Reviewed-by: Roger Quadros <rogerq at kernel.org>



More information about the linux-phy mailing list