linux/drivers/phy
Jon Hunter 2a4ea83bb8 phy: tegra: xusb: Fix crash during pad power on/down
Commit a88520bfc0 ("usb: gadget: tegra: Reduce pad power") added calls
to tegra_phy_xusb_utmi_pad_power_on/down in the Tegra XUDC driver to
control the pad power. This change is causing a kernel panic when
powering down the pads on entering suspend with the Jetson TX2 platform.
The panic occurs because the 'xudc->curr_utmi_phy' is not configured on
this platform and we do not check to see if the pointer is valid before
attempting to deference the pointer. Fix this by checking to see if the
'phy' pointer passed to tegra_phy_xusb_utmi_pad_power_on/down is valid.

Fixes: a88520bfc0 ("usb: gadget: tegra: Reduce pad power")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20221010135132.30809-1-jonathanh@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2022-10-17 11:07:37 +05:30
..
allwinner phy: move from strlcpy with unused retval to strscpy 2022-08-30 13:12:38 +05:30
amlogic phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent() 2022-09-20 11:56:38 +05:30
broadcom arm64: bcmbca: Make BCM4908 drivers depend on ARCH_BCMBCA 2022-08-15 09:55:34 -07:00
cadence phy: cadence-torrent: Remove unused regmap field from state struct 2022-07-08 10:40:43 +05:30
freescale phy: freescale: imx8m-pcie: Fix the wrong order of phy_init() and phy_power_on() 2022-10-03 10:34:46 +02:00
hisilicon phy: HiSilicon: Fix copy and paste bug in error handling 2021-11-23 10:42:13 +05:30
ingenic
intel phy: intel: Use dev_err_probe() to simplify code 2022-09-24 12:34:56 +05:30
lantiq
marvell phy: marvell: phy-mvebu-a3700-comphy: Remove broken reset support 2022-08-30 10:32:33 +05:30
mediatek phy: phy-mtk-dp: make array driving_params static const 2022-09-29 21:01:27 +05:30
microchip phy-for-6.1 2022-10-07 16:03:01 -07:00
motorola treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
mscc
qualcomm phy: qcom-qmp-pcie: fix resource mapping for SDM845 QHP PHY 2022-09-29 11:55:01 +05:30
ralink
renesas
rockchip phy: rockchip-snps-pcie3: only look for rockchip,pipe-grf on rk3588 2022-09-29 11:43:04 +05:30
samsung pci-v5.20-changes 2022-08-04 19:30:35 -07:00
socionext phy: uniphier-usb3ss: fix unintended writing zeros to PHY register 2021-12-24 10:06:38 +05:30
st phy: stm32: fix an error code in probe 2022-10-17 10:55:26 +05:30
sunplus phy: usb: sunplus: Fix return value check in update_disc_vol() 2022-09-13 20:58:33 +05:30
tegra phy: tegra: xusb: Fix crash during pad power on/down 2022-10-17 11:07:37 +05:30
ti phy: ti: phy-j721e-wiz: fix reference leaks in wiz_probe() 2022-09-24 11:59:37 +05:30
xilinx phy: xilinx: zynqmp: Fix bus width setting for SGMII 2022-01-27 10:55:26 +05:30
Kconfig phy: usb: Add USB2.0 phy driver for Sunplus SP7021 2022-09-02 21:01:24 +05:30
Makefile phy: usb: Add USB2.0 phy driver for Sunplus SP7021 2022-09-02 21:01:24 +05:30
phy-can-transceiver.c phy: phy-can-transceiver: Add support for setting mux 2022-04-11 20:14:10 +05:30
phy-core-mipi-dphy.c phy: dphy: Correct lpx parameter and its derivatives(ta_{get,go,sure}) 2022-02-25 14:14:06 +05:30
phy-core.c phy: core: Warn when phy_power_on is called before phy_init 2022-04-20 14:45:15 +05:30
phy-lgm-usb.c
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c