]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
phy: renesas: phy-rcar-gen3-usb2: Sort compatible entries by SoC part number
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 14 Apr 2025 14:57:28 +0000 (15:57 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 11:14:59 +0000 (12:14 +0100)
Reorder the compatible entries in `rcar_gen3_phy_usb2_match_table` to
maintain sorting based on SoC part numbers. Keep the entries ordered
numerically while ensuring the existing generic compatible strings
remain at the bottom.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20250414145729.343133-4-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/renesas/phy-rcar-gen3-usb2.c

index 775f4f973a6cc25886e43cd3c6135bc0082608be..10d1a89558be18b092d8ca83c6143ff25ef04fee 100644 (file)
@@ -606,14 +606,14 @@ static const struct of_device_id rcar_gen3_phy_usb2_match_table[] = {
                .compatible = "renesas,usb2-phy-r8a77965",
                .data = &rcar_gen3_phy_usb2_data,
        },
-       {
-               .compatible = "renesas,rzg2l-usb2-phy",
-               .data = &rz_g2l_phy_usb2_data,
-       },
        {
                .compatible = "renesas,usb2-phy-r9a08g045",
                .data = &rz_g3s_phy_usb2_data,
        },
+       {
+               .compatible = "renesas,rzg2l-usb2-phy",
+               .data = &rz_g2l_phy_usb2_data,
+       },
        {
                .compatible = "renesas,rcar-gen3-usb2-phy",
                .data = &rcar_gen3_phy_usb2_data,