Skip to content

Commit

Permalink
net: phy: qcom: detach qca808x PHY driver from at803x
Browse files Browse the repository at this point in the history
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: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240129141600.2592-6-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Christian Marangi authored and Jakub Kicinski committed Feb 1, 2024
1 parent 249d2b8 commit c89414a
Show file tree
Hide file tree
Showing 4 changed files with 942 additions and 896 deletions.
6 changes: 6 additions & 0 deletions drivers/net/phy/qcom/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions drivers/net/phy/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit c89414a

Please sign in to comment.