linux/drivers/phy
Rafael J. Wysocki caad07ae07 phy: core: Discard pm_runtime_put() return values
The PHY core defines phy_pm_runtime_put() to return an int, but that
return value is never used.  It also passes the return value of
pm_runtime_put() to the caller which is not very useful.

Returning an error code from pm_runtime_put() merely means that it has
not queued up a work item to check whether or not the device can be
suspended and there are many perfectly valid situations in which that
can happen, like after writing "on" to the devices' runtime PM "control"
attribute in sysfs for one example.

Modify phy_pm_runtime_put() to discard the pm_runtime_put() return
value and change its return type to void.  Also drop the redundant
pm_runtime_enabled() call from there.

No intentional functional impact.

This will facilitate a planned change of the pm_runtime_put() return
type to void in the future.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2556645.jE0xQCEvom@rafael.j.wysocki
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2025-12-23 23:11:03 +05:30
..
allwinner
amlogic
broadcom phy: broadcom: bcm63xx-usbh: fix section mismatches 2025-11-20 22:01:55 +05:30
cadence phy: cadence: cdns-dphy: Enable lower resolutions in dphy 2025-09-10 21:22:22 +05:30
freescale phy: freescale: Discard pm_runtime_put() return value 2025-12-23 23:11:03 +05:30
hisilicon
ingenic
intel
lantiq
marvell
mediatek
microchip
motorola
mscc
nuvoton
qualcomm phy: qcom: qmp-pcie: Add support for Glymur PCIe Gen5x4 PHY 2025-11-20 22:21:16 +05:30
ralink
realtek
renesas phy: renesas: Remove unneeded semicolons 2025-11-20 22:19:11 +05:30
rockchip phy: rockchip-samsung-dcphy: Discard pm_runtime_put() return value 2025-12-23 23:11:03 +05:30
samsung phy: exynos5-usbdrd: fix clock prepare imbalance 2025-11-20 22:10:17 +05:30
socionext
sophgo phy: sophgo: Remove unused of_gpio.h 2025-11-12 20:35:50 +05:30
st
starfive
sunplus
tegra
ti phy: ti: gmii-sel: Add a sanity check on the phy_id 2025-11-20 22:24:35 +05:30
xilinx
Kconfig phy: sophgo: Add USB 2.0 PHY driver for Sophgo CV18XX/SG200X 2025-09-10 20:52:42 +05:30
Makefile phy: sophgo: Add USB 2.0 PHY driver for Sophgo CV18XX/SG200X 2025-09-10 20:52:42 +05:30
phy-airoha-pcie-regs.h
phy-airoha-pcie.c
phy-can-transceiver.c phy: phy-can-transceiver: Add support for TJA105{1,7} 2025-11-12 20:11:16 +05:30
phy-core-mipi-dphy.c
phy-core.c phy: core: Discard pm_runtime_put() return values 2025-12-23 23:11:03 +05:30
phy-lgm-usb.c
phy-lpc18xx-usb-otg.c
phy-nxp-ptn3222.c
phy-pistachio-usb.c
phy-snps-eusb2.c
phy-xgene.c