linux-stable/drivers/phy/amlogic
Amjad Ouled-Ameur 391180e56a phy: amlogic: meson8b-usb2: fix shared reset control use
[ Upstream commit 6f1dedf089 ]

Use reset_control_rearm() call if an error occurs in case
phy_meson8b_usb2_power_on() fails after reset() has been called, or in
case phy_meson8b_usb2_power_off() is called i.e the resource is no longer
used and the reset line may be triggered again by other devices.

reset_control_rearm() keeps use of triggered_count sane in the reset
framework, use of reset_control_reset() on shared reset line should
be balanced with reset_control_rearm().

Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
Reported-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220111095255.176141-4-aouledameur@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 19:27:23 +02:00
..
Kconfig phy: amlogic: Add a new driver for the HDMI TX PHY on Meson8/8b/8m2 2021-11-23 11:17:49 +05:30
Makefile phy: amlogic: Add a new driver for the HDMI TX PHY on Meson8/8b/8m2 2021-11-23 11:17:49 +05:30
phy-meson-axg-mipi-dphy.c phy: dphy: Correct clk_pre parameter 2022-02-02 10:33:04 +05:30
phy-meson-axg-mipi-pcie-analog.c phy: amlogic: meson-axg-mipi-pcie-analog: replace DSI_LANE definitions with BIT() macro 2020-11-30 16:30:24 +05:30
phy-meson-axg-pcie.c phy: amlogic: replace devm_reset_control_array_get() 2020-11-30 16:32:37 +05:30
phy-meson-g12a-usb2.c phy: amlogic: convert to devm_platform_ioremap_resource 2020-11-16 12:47:46 +05:30
phy-meson-g12a-usb3-pcie.c phy: amlogic: replace devm_reset_control_array_get() 2020-11-30 16:32:37 +05:30
phy-meson-gxl-usb2.c phy: amlogic: phy-meson-gxl-usb2: fix shared reset controller use 2022-04-13 19:27:23 +02:00
phy-meson8-hdmi-tx.c phy: amlogic: Add a new driver for the HDMI TX PHY on Meson8/8b/8m2 2021-11-23 11:17:49 +05:30
phy-meson8b-usb2.c phy: amlogic: meson8b-usb2: fix shared reset control use 2022-04-13 19:27:23 +02:00