]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: exynos5-usbdrd: use GENMASK and FIELD_PREP for Exynos5 PHY registers
authorKaustabh Chakraborty <kauschluss@disroot.org>
Thu, 10 Apr 2025 08:31:12 +0000 (14:01 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 10 Apr 2025 13:42:16 +0000 (19:12 +0530)
commit9b6662a0f715b3f43b42c3aadf32fa6ffaa8890c
treebebd7188dc4822781704a5156826400d817fc184
parent070d546258257c75c65a2f15da558eb96bce550c
phy: exynos5-usbdrd: use GENMASK and FIELD_PREP for Exynos5 PHY registers

Most Exynos850 and Exynos9 (GS101) DRD PHY registers use GENMASK for masks
and FIELD_PREP for writing values to registers.

Rewrite the register definitions which don't follow this approach to follow
it as much as possible. This patch doesn't introduce any fixes or
functional changes, it's merely an attempt to introduce some uniformity and
consistency in the driver code.

The CRPORT SuperSpeed control registers have been exempted from this
change. Since the writing of register values do not require any masking
operations, implementing it would unnecessarily complicate things.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Link: https://lore.kernel.org/r/20250410-exynos7870-usbphy-v2-1-2eb005987455@disroot.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c