linux-stable/drivers/phy/rockchip
Chris Ruehl 52fe389c0a phy: rockchip-emmc: emmc_phy_init() always return 0
[ Upstream commit 39961bd6b7 ]

rockchip_emmc_phy_init() return variable is not set with the error value
if clk_get() failed. 'emmcclk' is optional, thus use clk_get_optional()
and if the return value != NULL make error processing and set the
return code accordingly.

Fixes: 52c0624a10 phy: rockchip-emmc: Set phyctrl_frqsel based on card clock
Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20201210080454.17379-1-chris.ruehl@gtsys.com.hk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 10:26:36 +01:00
..
Kconfig
Makefile
phy-rockchip-dp.c
phy-rockchip-emmc.c phy: rockchip-emmc: emmc_phy_init() always return 0 2021-03-04 10:26:36 +01:00
phy-rockchip-inno-hdmi.c phy/rockchip: inno-hdmi: round clock rate down to closest 1000 Hz 2020-01-26 10:01:09 +01:00
phy-rockchip-inno-usb2.c
phy-rockchip-pcie.c
phy-rockchip-typec.c
phy-rockchip-usb.c