umber-kernel/drivers/net/phy
Dmitry Torokhov cb8f0a3857 net: phy: qcom: qca807x: normalize return value of gpio_get
[ Upstream commit 2bb995e6155cb4f254574598cbd6fe1dcc99766a ]

The GPIO get callback is expected to return 0 or 1 (or a negative error
code). Ensure that the value returned by qca807x_gpio_get() is
normalized to the [0, 1] range.

Fixes: 86ef402d80 ("gpiolib: sanitize the return value of gpio_chip::get()")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/aZZeyr2ysqqk2GqA@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:45 -05:00
..
aquantia net: phy: aquantia: check for NVMEM deferral 2025-12-18 14:03:27 +01:00
mediatek net: phy: mediatek: fix nvmem cell reference leak in mt798x_phy_calibration 2026-01-08 10:17:14 +01:00
mscc phy: mscc: Fix PTP for VSC8574 and VSC8572 2025-12-18 14:02:40 +01:00
qcom net: phy: qcom: qca807x: normalize return value of gpio_get 2026-03-04 07:20:45 -05:00
realtek net: phy: RTL8211FVD: Restore disabling of PHY-mode EEE 2026-01-02 12:56:44 +01:00
Kconfig net: phy: move config symbol MDIO_BUS to drivers/net/phy/Kconfig 2025-09-23 16:56:27 -07:00
Makefile net: phy: remove mdio_board_info support from phylib 2025-09-17 15:24:01 -07:00
adin.c
adin1100.c net: phy: adin1100: Fix software power-down ready condition 2025-12-18 14:03:09 +01:00
air_en8811h.c
amd.c
as21xxx.c
ax88796b.c net: phy: ax88796b: Replace hard-coded values with PHY_ID_MATCH_MODEL() 2025-09-22 16:38:59 -07:00
ax88796b_rust.rs
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm-phy-ptp.c broadcom: fix support for PTP_EXTTS_REQUEST2 ioctl 2025-09-22 11:36:30 -07:00
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: bcm54811: Fix GMII/MII/MII-Lite selection 2025-10-13 17:36:20 -07:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c
dp83tg720.c
dp83640.c net: phy: dp83640: improve phydev and driver removal handling 2025-09-23 16:58:42 -07:00
dp83640_reg.h
dp83822.c
dp83848.c
dp83867.c net: phy: dp83867: Disable EEE support as not implemented 2025-10-24 19:10:03 -07:00
dp83869.c net: phy: dp83869: fix STRAP_OPMODE bitmask 2025-10-29 17:59:09 -07:00
et1011c.c
fixed_phy.c net: phy: fixed_phy: remove struct fixed_mdio_bus 2025-09-09 18:11:55 -07:00
icplus.c
intel-xway.c net: phy: intel-xway: fix OF node refcount leakage 2026-01-30 10:32:18 +01:00
linkmode.c
lxt.c
marvell-88q2xxx.c net: phy: marvell-88q2xxx: Fix clamped value in mv88q2xxx_hwmon_write 2026-01-02 12:57:23 +01:00
marvell-88x2222.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
marvell.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
marvell10g.c net: phy: update all PHYs to use sfp_get_module_caps() 2025-09-22 16:05:15 -07:00
mdio-open-alliance.h
mdio_bus.c net: mdio: fix resource leak in mdiobus_register_device() 2025-11-10 18:15:13 -08:00
mdio_bus_provider.c net: phy: remove mdio_board_info support from phylib 2025-09-17 15:24:01 -07:00
mdio_device.c
mdio_devres.c
meson-gxl.c
micrel.c net: phy: micrel: fix clk warning when removing the driver 2026-02-06 16:57:33 +01:00
microchip.c
microchip_rds_ptp.c
microchip_rds_ptp.h
microchip_t1.c
microchip_t1s.c
mii_timestamper.c
motorcomm.c net: phy: motorcomm: fix duplex setting error for phy leds 2026-01-23 11:21:17 +01:00
mxl-86110.c net: phy: mxl-86110: Add power management and soft reset support 2026-01-17 16:35:23 +01:00
mxl-gpy.c net: phy: mxl-gpy: fix link properties on USXGMII and internal PHYs 2025-11-25 12:46:52 +01:00
national.c
ncn26000.c
nxp-c45-tja11xx-macsec.c net: phy: nxp-c45-tja11xx: use bitmap_empty() where appropriate 2025-09-16 12:15:49 +02:00
nxp-c45-tja11xx.c
nxp-c45-tja11xx.h
nxp-cbtx.c
nxp-tja11xx.c
open_alliance_helpers.c
open_alliance_helpers.h
phy-c45.c
phy-caps.h net: phy: annotate linkmode initializers as not used after init phase 2025-09-30 13:17:31 +02:00
phy-core.c net: phy: Add helper for fixing RGMII PHY mode based on internal mac delay 2025-12-18 14:03:04 +01:00
phy.c net: phy: clear link parameters on admin link down 2025-09-18 15:43:26 -07:00
phy_caps.c net: phy: annotate linkmode initializers as not used after init phase 2025-09-30 13:17:31 +02:00
phy_device.c net: phy: annotate linkmode initializers as not used after init phase 2025-09-30 13:17:31 +02:00
phy_led_triggers.c
phy_link_topology.c
phy_package.c
phylib-internal.h
phylib.h
phylink.c net: phylink: add missing supported link modes for the fixed-link 2025-11-19 08:31:11 -08:00
qsemi.c
qt2025.rs
rockchip.c
sfp-bus.c net: sfp: remove old sfp_parse_* functions 2025-09-22 16:05:15 -07:00
sfp.c net: sfp: add quirk for Lantech 8330-265D 2026-03-04 07:20:24 -05:00
sfp.h net: sfp: convert sfp quirks to modify struct sfp_module_support 2025-09-22 16:05:14 -07:00
smsc.c
ste10Xp.c
stubs.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c