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)
commitd7a7fed55d0a90f6aae898c61f76bcf31e225e62
tree430e269ee08a0e7af0d6ff2f1a4604bab51aa452
parentfcd9220d66ee859969ccaa0b2cadbf6b7376f3c5
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