linux/drivers/phy/rockchip
Sebastian Reichel e71d5ec7c0 phy: rockchip-snps-pcie3: fix clearing PHP_GRF_PCIESEL_CON bits
[ Upstream commit 55491a5fa1 ]

Currently the PCIe v3 PHY driver only sets the pcie1ln_sel bits, but
does not clear them because of an incorrect write mask. This fixes up
the issue by using a newly introduced constant for the write mask.

While at it also introduces a proper GENMASK based constant for the
PCIE30_PHY_MODE.

Fixes: 2e9bffc4f7 ("phy: rockchip: Support PCIe v3")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20240404-rk3588-pcie-bifurcation-fixes-v1-2-9907136eeafd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-05-02 16:29:31 +02:00
..
Kconfig phy: rockchip: Support PCIe v3 2022-09-04 20:35:48 +05:30
Makefile phy: rockchip: Support PCIe v3 2022-09-04 20:35:48 +05:30
phy-rockchip-dp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
phy-rockchip-dphy-rx0.c phy/rockchip: Use of_device_get_match_data() 2022-04-13 15:23:23 +05:30
phy-rockchip-emmc.c phy: rockchip: emmc, add vendor prefix to dts properties 2021-01-13 17:28:24 +05:30
phy-rockchip-inno-csidphy.c phy: rockchip: add support for the rk356x variant to rockchip-inno-csidphy 2022-09-02 23:00:47 +05:30
phy-rockchip-inno-dsidphy.c phy: rockchip: inno-dsidphy: Add support for rk3568 2022-09-20 11:39:47 +05:30
phy-rockchip-inno-hdmi.c phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write 2023-09-13 09:42:58 +02:00
phy-rockchip-inno-usb2.c phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on() 2023-02-01 08:34:17 +01:00
phy-rockchip-naneng-combphy.c phy: rockchip: add naneng combo phy for RK3568 2022-02-24 20:13:52 +05:30
phy-rockchip-pcie.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 235 2019-06-19 17:09:07 +02:00
phy-rockchip-snps-pcie3.c phy: rockchip-snps-pcie3: fix clearing PHP_GRF_PCIESEL_CON bits 2024-05-02 16:29:31 +02:00
phy-rockchip-typec.c phy: rockchip-typec: Fix unsigned comparison with less than zero 2023-03-11 13:55:40 +01:00
phy-rockchip-usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 235 2019-06-19 17:09:07 +02:00