]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: phy: move at803x PHY driver to dedicated directory
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 29 Jan 2024 14:15:19 +0000 (15:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Feb 2024 00:25:16 +0000 (16:25 -0800)
In preparation for addition of other Qcom PHY and to tidy things up,
move the at803x PHY driver to dedicated directory.

The same order in the Kconfig selection is saved.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240129141600.2592-2-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/Kconfig
drivers/net/phy/Makefile
drivers/net/phy/qcom/Kconfig [new file with mode: 0644]
drivers/net/phy/qcom/Makefile [new file with mode: 0644]
drivers/net/phy/qcom/at803x.c [moved from drivers/net/phy/at803x.c with 100% similarity]

index 9e2672800f0b2d20e5cf9fbc3204bb40cef90673..e261e58bf158ed52e392b28a42e8bc9f26e518dc 100644 (file)
@@ -335,12 +335,7 @@ config NCN26000_PHY
          Currently supports the NCN26000 10BASE-T1S Industrial PHY
          with MII interface.
 
-config AT803X_PHY
-       tristate "Qualcomm Atheros AR803X PHYs and QCA833x PHYs"
-       depends on REGULATOR
-       help
-         Currently supports the AR8030, AR8031, AR8033, AR8035 and internal
-         QCA8337(Internal qca8k PHY) model
+source "drivers/net/phy/qcom/Kconfig"
 
 config QSEMI_PHY
        tristate "Quality Semiconductor PHYs"
index 6097afd4439229020a6c1af9d98630e356e33ad9..197acfa0b4126867e2660c7348b0ba6cb0b3cd48 100644 (file)
@@ -36,7 +36,6 @@ obj-$(CONFIG_ADIN_PHY)                += adin.o
 obj-$(CONFIG_ADIN1100_PHY)     += adin1100.o
 obj-$(CONFIG_AMD_PHY)          += amd.o
 obj-$(CONFIG_AQUANTIA_PHY)     += aquantia/
-obj-$(CONFIG_AT803X_PHY)       += at803x.o
 ifdef CONFIG_AX88796B_RUST_PHY
   obj-$(CONFIG_AX88796B_PHY)   += ax88796b_rust.o
 else
@@ -91,6 +90,7 @@ endif
 obj-$(CONFIG_NXP_C45_TJA11XX_PHY)      += nxp-c45-tja.o
 obj-$(CONFIG_NXP_CBTX_PHY)     += nxp-cbtx.o
 obj-$(CONFIG_NXP_TJA11XX_PHY)  += nxp-tja11xx.o
+obj-y                          += qcom/
 obj-$(CONFIG_QSEMI_PHY)                += qsemi.o
 obj-$(CONFIG_REALTEK_PHY)      += realtek.o
 obj-$(CONFIG_RENESAS_PHY)      += uPD60620.o
diff --git a/drivers/net/phy/qcom/Kconfig b/drivers/net/phy/qcom/Kconfig
new file mode 100644 (file)
index 0000000..2c274fb
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config AT803X_PHY
+       tristate "Qualcomm Atheros AR803X PHYs and QCA833x PHYs"
+       depends on REGULATOR
+       help
+         Currently supports the AR8030, AR8031, AR8033, AR8035 and internal
+         QCA8337(Internal qca8k PHY) model
diff --git a/drivers/net/phy/qcom/Makefile b/drivers/net/phy/qcom/Makefile
new file mode 100644 (file)
index 0000000..6a68da8
--- /dev/null
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_AT803X_PHY)       += at803x.o