net: phy: qcom: detach qca808x PHY driver from at803x
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 29 Jan 2024 14:15:23 +0000 (15:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Feb 2024 00:25:17 +0000 (16:25 -0800)
commitc89414adf2ec7cd9e7080c419aa5847f1db1009c
tree6b45b3702439b12f7f48088740a4b7e7ec9da135
parent249d2b80e4db0e38503ed0ec2af6c7401bc099b9
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: 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>
drivers/net/phy/qcom/Kconfig
drivers/net/phy/qcom/Makefile
drivers/net/phy/qcom/at803x.c
drivers/net/phy/qcom/qca808x.c [new file with mode: 0644]