linux/drivers/phy/renesas
Christophe JAILLET 8fee9a8cb5 phy: renesas: rcar-gen3-usb2: Fix an error handling path in rcar_gen3_phy_usb2_probe()
[ Upstream commit 662bb179d3 ]

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>
History 2025-12-18 13:55:03 +01:00
..
Kconfig phy: renesas: phy-rcar-gen2: use select for GENERIC_PHY 2023-12-21 22:39:34 +05:30
Makefile phy: renesas: Add Renesas Ethernet SERDES driver for R-Car S4-8 2022-11-10 12:56:09 +05:30
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: Explicitly include correct DT includes 2023-07-17 11:52:56 +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 13:55:03 +01:00
phy-rcar-gen3-usb3.c phy: renesas: phy-rcar-gen3-usb3: Convert to platform remove callback returning void 2023-03-20 18:14:57 +05:30
r8a779f0-ether-serdes.c phy: renesas: r8a779f0-ether-serdes: add new step added to latest datasheet 2025-11-13 15:34:22 -05:00