[PATCH RESEND 1/2] phy: samsung: add enum for variants based on SoCs
Mattijs Korpershoek
mkorpershoek at kernel.org
Fri Jan 16 13:44:12 CET 2026
Hi Kaustabh,
Thank you for the patch.
On Sat, Jan 03, 2026 at 18:22, Kaustabh Chakraborty <kauschluss at disroot.org> wrote:
> The variant enum is used to uniquely identify which SoC the PHY block
> belongs to. It is initially set in the match table, along with the
> compatible string, it gets copied to driver data struct during probe.
>
> SoC specific functions must only be called if the respective variant
> enum is set. Add switch-case blocks wherever required.
>
> Signed-off-by: Kaustabh Chakraborty <kauschluss at disroot.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek at kernel.org>
> ---
> drivers/phy/phy-exynos-usbdrd.c | 25 +++++++++++++++++++++++--
> 1 file changed, 23 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/phy/phy-exynos-usbdrd.c b/drivers/phy/phy-exynos-usbdrd.c
> index db5815ed184..4ab8da2a08f 100644
> --- a/drivers/phy/phy-exynos-usbdrd.c
> +++ b/drivers/phy/phy-exynos-usbdrd.c
> @@ -66,6 +66,10 @@
> #define KHZ 1000
> #define MHZ (KHZ * KHZ)
More information about the U-Boot
mailing list