WSL2-Linux-Kernel/drivers/reset
Heiner Kallweit b381e0f987 reset: renesas: Fix Runtime PM usage
commit 92c959bae2 upstream.

If pm_runtime_resume_and_get() fails then it returns w/o the RPM usage
counter being incremented. In this case call pm_runtime_put() in
remove() will result in a usage counter imbalance. Therefore check the
return code of pm_runtime_resume_and_get() and bail out in case of error.

Fixes: bee0855970 ("reset: renesas: Add RZ/G2L usbphy control driver")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/ec24e13f-0530-b091-7a08-864577b9b3be@gmail.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-11 15:35:16 +01:00
..
hisilicon reset: hi6220: Use the correct HiSilicon copyright 2021-06-07 10:44:38 +02:00
sti reset: sti/syscfg: replace comma with semicolon 2021-05-10 09:41:43 +02:00
tegra reset: tegra-bpmp: Revert Handle errors in BPMP response 2021-12-22 09:32:33 +01:00
Kconfig reset: pistachio: Re-enable driver selection 2021-10-05 10:49:40 +02:00
Makefile reset: renesas: Add RZ/G2L usbphy control driver 2021-07-27 15:54:39 +02:00
core.c reset: bail if try_module_get() fails 2021-06-07 11:26:31 +02:00
reset-a10sr.c reset: a10sr: add missing of_match_table reference 2021-05-10 09:48:17 +02:00
reset-ath79.c
reset-axs10x.c
reset-bcm6345.c reset: bcm6345: Make reset_control_ops const 2021-05-10 09:40:03 +02:00
reset-berlin.c reset: berlin: support module build 2021-06-07 12:45:59 +02:00
reset-brcmstb-rescal.c reset: brcmstb-rescal: fix incorrect polarity of status bit 2021-10-05 10:48:56 +02:00
reset-brcmstb.c reset: brcmstb: Add missing MODULE_DEVICE_TABLE 2021-05-12 08:01:26 +02:00
reset-hsdk.c
reset-imx7.c
reset-intel-gw.c
reset-k210.c
reset-lantiq.c reset: lantiq: use devm_reset_controller_register() 2021-06-07 11:26:31 +02:00
reset-lpc18xx.c
reset-meson-audio-arb.c
reset-meson.c
reset-microchip-sparx5.c reset: mchp: sparx5: fix return value check in mchp_sparx5_map_io() 2021-06-07 11:26:31 +02:00
reset-npcm.c
reset-oxnas.c reset: oxnas: replace file name with short description 2021-05-10 09:40:04 +02:00
reset-pistachio.c
reset-qcom-aoss.c
reset-qcom-pdc.c reset: qcom: Add PDC Global reset signals for WPSS 2021-07-21 12:16:17 +02:00
reset-raspberrypi.c reset: raspberrypi: Release firmware handle on unbind 2021-03-22 17:59:51 +01:00
reset-rzg2l-usbphy-ctrl.c reset: renesas: Fix Runtime PM usage 2022-01-11 15:35:16 +01:00
reset-scmi.c reset: reset-scmi: Port driver to the new scmi_reset_proto_ops interface 2021-03-30 16:34:54 +01:00
reset-simple.c
reset-socfpga.c reset: socfpga: add empty driver allowing consumers to probe 2021-10-05 12:23:16 +02:00
reset-sunxi.c
reset-ti-sci.c
reset-ti-syscon.c reset: ti-syscon: fix to_ti_syscon_reset_data macro 2021-05-10 09:41:43 +02:00
reset-uniphier-glue.c
reset-uniphier.c reset: uniphier: enclose UNIPHIER_RESET_ID_END value in parentheses 2021-05-10 09:41:44 +02:00
reset-zynq.c
reset-zynqmp.c reset: reset-zynqmp: Fixed the argument data type 2021-08-23 12:55:18 +02:00