Commit c89414ad authored by Christian Marangi's avatar Christian Marangi Committed by Jakub Kicinski
Browse files

net: phy: qcom: detach qca808x PHY driver from at803x



Almost all the QCA8081 PHY driver OPs are specific and only some of them
use the generic at803x.

To make the at803x code slimmer, move all the specific qca808x regs and
functions to a dedicated PHY driver.

Probe function and priv struct is reworked to allocate and use only the
qca808x specific data. Unused data from at803x PHY driver are dropped
from at803x priv struct.

Also a new Kconfig is introduced QCA808X_PHY, to compile the newly
introduced PHY driver for QCA8081 PHY.

As the Kconfig name starts with Qualcomm the same order is kept.

Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240129141600.2592-6-ansuelsmth@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 249d2b80
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -14,3 +14,9 @@ config QCA83XX_PHY
	select QCOM_NET_PHYLIB
	help
	  Currently supports the internal QCA8337(Internal qca8k PHY) model

config QCA808X_PHY
	tristate "Qualcomm QCA808x PHYs"
	select QCOM_NET_PHYLIB
	help
	  Currently supports the QCA8081 model
+1 −0
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@
obj-$(CONFIG_QCOM_NET_PHYLIB)	+= qcom-phy-lib.o
obj-$(CONFIG_AT803X_PHY)	+= at803x.o
obj-$(CONFIG_QCA83XX_PHY)	+= qca83xx.o
obj-$(CONFIG_QCA808X_PHY)	+= qca808x.o
+1 −896

File changed.

Preview size limit exceeded, changes collapsed.

+934 −0

File added.

Preview size limit exceeded, changes collapsed.