[PATCH] phy: sun4i-usb: drop num_phys assumption

Vinod Koul vkoul at kernel.org
Wed Aug 20 10:02:20 PDT 2025


On Tue, 19 Aug 2025 01:15:22 +0100, Andre Przywara wrote:
> So far we set a number of expected Allwinner USB PHY instances for any
> given compatible string, and would fail if we do not find every PHY
> described properly in the DT (missing reset/PMU/clocks).
> This is somewhat redundant, as the DT only describes the resources for
> the implemented PHYs, but goes in line with being strict about firmware
> descriptions, and rather fixing things in the driver code, based on the
> compatible string.
> However this causes issues when we make a mistake, like we did recently
> on the A523: there are actually three USB PHYs, not two, as we assumed.
> Changing the number in the driver and the compatible string would cause
> all kinds of compatibility issues, both with older and newer DTs.
> 
> [...]

Applied, thanks!

[1/1] phy: sun4i-usb: drop num_phys assumption
      commit: 75c21418beb92382dda164fdc2554610b49ed441

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list