]> git.baikalelectronics.ru Git - uboot.git/commit
phy: sun4i-usb: Replace types with explicit quirk flags
authorAndre Przywara <andre.przywara@arm.com>
Sun, 11 Jun 2023 23:32:38 +0000 (00:32 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 20 Jul 2023 23:28:13 +0000 (00:28 +0100)
commit4cd2adf844a2019797a5ba12ac588d94727c45f9
tree430e269ee08a0e7af0d6ff2f1a4604bab51aa452
parent2aa7625f2fef92bebd227117966a94e5a0bf674a
phy: sun4i-usb: Replace types with explicit quirk flags

So far we were assigning some crude "type" (SoC name, really) to each
Allwinner USB PHY model, then guarding certain quirks based on this.
This does not only look weird, but gets more or more cumbersome to
maintain.

Remove the bogus type names altogether, instead introduce flags for each
quirk, and explicitly check for them.
This improves readability, and simplifies future extensions.

Port of Linux patch 8dd256bae653.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
drivers/phy/allwinner/phy-sun4i-usb.c