[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231129021219.20914-1-ansuelsmth@gmail.com>
Date: Wed, 29 Nov 2023 03:12:05 +0100
From: Christian Marangi <ansuelsmth@...il.com>
To: Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
linux-arm-msm@...r.kernel.org
Cc: Christian Marangi <ansuelsmth@...il.com>
Subject: [net-next PATCH 00/14] net: phy: at803x: cleanup + split
The intention of this big series is to try to cleanup and split
the big at803x PHY driver.
It currently have 3 different family of PHY in it. at803x, qca83xx
and qca808x.
The current codebase required lots of cleanup and reworking to
make the split possible as currently there is a greater use of
adding special function matching the phy_id.
This has been reworked to make the function actually generic
and make the change only in more specific one. The result
is the addition of micro additional function but that is for good
as it massively simplify splitting the driver later.
The main bonus of this cleanup is creating smaller PHY drivers
since they won't have all the bloat of unused functions or
extra condition (especially all the stuff related to regulators
that are only handled by the at8031 PHY)
Consider that this is all in preparation for the addition of
qca807x PHY driver that will also uso some of the functions of
at803x.
New Kconfig are introduced for the split PHY driver as they are
now built as separate PHY drivers.
Christian Marangi (14):
net: phy: at803x: fix passing the wrong reference for config_intr
net: phy: at803x: move disable WOL for 8031 from probe to config
net: phy: at803x: raname hw_stats functions to qca83xx specific name
net: phy: at803x: move qca83xx stats out of generic at803x_priv struct
net: phy: at803x: move qca83xx specific check in dedicated functions
net: phy: at803x: move at8031 specific data out of generic at803x_priv
net: phy: at803x: move at8035 specific DT parse to dedicated probe
net: phy: at803x: drop specific PHY id check from cable test functions
net: phy: at803x: remove specific qca808x check from at803x functions
net: phy: at803x: drop usless probe for qca8081 PHY
net: phy: at803x: make specific status mask more generic
net: phy: move at803x PHY driver to dedicated directory
net: phy: qcom: deatch qca83xx PHY driver from at803x
net: phy: qcom: detach qca808x PHY driver from at803x
drivers/net/phy/Kconfig | 7 +-
drivers/net/phy/Makefile | 2 +-
drivers/net/phy/at803x.c | 2248 --------------------------------
drivers/net/phy/qcom/Kconfig | 17 +
drivers/net/phy/qcom/Makefile | 4 +
drivers/net/phy/qcom/at803x.c | 1222 +++++++++++++++++
drivers/net/phy/qcom/common.c | 351 +++++
drivers/net/phy/qcom/qca808x.c | 550 ++++++++
drivers/net/phy/qcom/qca83xx.c | 275 ++++
drivers/net/phy/qcom/qcom.h | 124 ++
10 files changed, 2545 insertions(+), 2255 deletions(-)
delete mode 100644 drivers/net/phy/at803x.c
create mode 100644 drivers/net/phy/qcom/Kconfig
create mode 100644 drivers/net/phy/qcom/Makefile
create mode 100644 drivers/net/phy/qcom/at803x.c
create mode 100644 drivers/net/phy/qcom/common.c
create mode 100644 drivers/net/phy/qcom/qca808x.c
create mode 100644 drivers/net/phy/qcom/qca83xx.c
create mode 100644 drivers/net/phy/qcom/qcom.h
--
2.40.1
Powered by blists - more mailing lists