umber-kernel/drivers/phy/renesas
Christophe JAILLET 97525d3a7f phy: renesas: rcar-gen3-usb2: Fix an error handling path in rcar_gen3_phy_usb2_probe()
[ Upstream commit 662bb179d3381c7c069e44bb177396bcaee31cc8 ]

If an error occurs after the reset_control_deassert(),
reset_control_assert() must be called, as already done in the remove
function.

Use devm_add_action_or_reset() to add the missing call and simplify the
.remove() function accordingly.

While at it, drop struct rcar_gen3_chan::rstc as it is not used aymore.

[claudiu.beznea: removed "struct reset_control *rstc = data;" from
 rcar_gen3_reset_assert(), dropped struct rcar_gen3_chan::rstc]

Fixes: 4eae163753 ("phy: renesas: rcar-gen3-usb2: Add support to initialize the bus")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20251023135810.1688415-3-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-18 14:03:08 +01:00
..
Kconfig phy: renesas: phy-rcar-gen2: use select for GENERIC_PHY 2023-12-21 22:39:34 +05:30
Makefile
phy-rcar-gen2.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-rcar-gen3-pcie.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-rcar-gen3-usb2.c phy: renesas: rcar-gen3-usb2: Fix an error handling path in rcar_gen3_phy_usb2_probe() 2025-12-18 14:03:08 +01:00
phy-rcar-gen3-usb3.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
r8a779f0-ether-serdes.c phy: renesas: r8a779f0-ether-serdes: add new step added to latest datasheet 2025-09-10 20:53:30 +05:30