projectgus/linux-samsung-fv1 — comment on commit 8e231e5d1dce1bb0a6f5a8416dafdb21162958ac
File:  line 0
By projectgus:

To be honest, I don't know for certain.

I cribbed the code from arch/arm/mach-exynos/setup-usb-phy.c - the exynos code which does this as well.

I think the reason is that resetting the PHY includes disabling the OTG mode (ie the SRC_PHYPWR_OTG_DISABLE flag), which must require you to have the OTG clock running. However once you've disabled it you can turn it off.

I'm absolutely guessing though, I have very limited access hardware technical documentation. To be honest I don't think I tested it without the otg clock being accessed - it might still work fine.

Cheers,

Angus