Commit 9b6662a0 authored by Kaustabh Chakraborty's avatar Kaustabh Chakraborty Committed by Vinod Koul
Browse files

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: default avatarKaustabh Chakraborty <kauschluss@disroot.org>
Link: https://lore.kernel.org/r/20250410-exynos7870-usbphy-v2-1-2eb005987455@disroot.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 070d5462
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment