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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
reset-axs10x.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
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 ARC: HSDK: improve reset driver 2019-01-07 16:38:26 +01:00
reset-imx7.c ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
reset-intel-gw.c reset: intel: fix a compile warning about REG_OFFSET redefined 2020-07-20 11:01:19 +02:00
reset-k210.c riscv: Add Canaan Kendryte K210 reset controller 2021-01-14 15:08:53 -08:00
reset-lantiq.c reset: lantiq: use devm_reset_controller_register() 2021-06-07 11:26:31 +02:00
reset-lpc18xx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
reset-meson-audio-arb.c reset: meson-audio-arb: add sm1 support 2019-10-03 19:56:51 +02:00
reset-meson.c reset: meson: make it possible to build as a module 2020-11-16 17:05:29 +01:00
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: npcm: add NPCM reset controller driver 2020-01-02 12:25:05 +01:00
reset-oxnas.c reset: oxnas: replace file name with short description 2021-05-10 09:40:04 +02:00
reset-pistachio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
reset-qcom-aoss.c reset: qcom-aoss: Allow CONFIG_RESET_QCOM_AOSS to be a tristate 2020-01-08 10:26:14 +01:00
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: simple: add BCM4908 MISC PCIe reset controller support 2021-01-08 13:00:59 +01:00
reset-socfpga.c reset: socfpga: add empty driver allowing consumers to probe 2021-10-05 12:23:16 +02:00
reset-sunxi.c reset: Move reset-simple header out of drivers/reset 2020-06-16 14:19:56 +02:00
reset-ti-sci.c firmware: ti_sci: Replace HTTP links with HTTPS ones 2020-07-24 14:44:52 -07:00
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: Move reset-simple header out of drivers/reset 2020-06-16 14:19:56 +02:00
reset-uniphier.c reset: uniphier: enclose UNIPHIER_RESET_ID_END value in parentheses 2021-05-10 09:41:44 +02:00
reset-zynq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
reset-zynqmp.c reset: reset-zynqmp: Fixed the argument data type 2021-08-23 12:55:18 +02:00