All of lore.kernel.org
 help / color / mirror / Atom feed
From: Soha Jin <soha@lohu.info>
To: Giuseppe Cavallaro <peppe.cavallaro@st.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	Jose Abreu <joabreu@synopsys.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Yangyu Chen <cyy@cyyself.name>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Soha Jin <soha@lohu.info>
Subject: [PATCH 0/3] net: stmmac: probing config with fwnode instead of of
Date: Mon, 10 Oct 2022 00:22:44 +0800	[thread overview]
Message-ID: <20221009162247.1336-1-soha@lohu.info> (raw)

These patches depend on two other patches:
- net: mdiobus: add fwnode_phy_is_fixed_link()
  https://lore.kernel.org/lkml/20221009162006.1289-1-soha@lohu.info/
- device property: add fwnode_is_compatible() for compatible match
  https://lore.kernel.org/lkml/20221009162155.1318-1-soha@lohu.info/

Patch 1 changes the stmmac's configuration probing from `of` to `fwnode`,
which enables the compatibility of stmmac devices described by ACPI.

Patch 2 adds Phytium's GMAC (ACPI HID PHYT0004) to the dwmac-generic
driver, this is also the device I used to test Patch 1.

Patch 3 changes all `stmmac_{probe,remove}_config_dt` to
`stmmac_platform_{probe,remove}_config`, since the function is renamed in
Patch 1.

Soha Jin (3):
  net: stmmac: use fwnode instead of of to configure driver
  net: stmmac: add Phytium's PHYT0004 to dwmac-generic compatible
    devices
  net: stmmac: switch to stmmac_platform_{probe,remove}_config

 .../ethernet/stmicro/stmmac/dwmac-anarion.c   |   4 +-
 .../stmicro/stmmac/dwmac-dwc-qos-eth.c        |   6 +-
 .../ethernet/stmicro/stmmac/dwmac-generic.c   |  30 +-
 .../net/ethernet/stmicro/stmmac/dwmac-imx.c   |   4 +-
 .../ethernet/stmicro/stmmac/dwmac-ingenic.c   |   4 +-
 .../stmicro/stmmac/dwmac-intel-plat.c         |   4 +-
 .../ethernet/stmicro/stmmac/dwmac-ipq806x.c   |   4 +-
 .../ethernet/stmicro/stmmac/dwmac-lpc18xx.c   |   4 +-
 .../ethernet/stmicro/stmmac/dwmac-mediatek.c  |   4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-meson.c |   4 +-
 .../ethernet/stmicro/stmmac/dwmac-meson8b.c   |   4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-oxnas.c |   4 +-
 .../stmicro/stmmac/dwmac-qcom-ethqos.c        |   4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-rk.c    |  13 +-
 .../ethernet/stmicro/stmmac/dwmac-socfpga.c   |   4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-sti.c   |   4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-stm32.c |   4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c |   6 +-
 .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c |   4 +-
 .../ethernet/stmicro/stmmac/dwmac-visconti.c  |   6 +-
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |   7 +-
 .../net/ethernet/stmicro/stmmac/stmmac_mdio.c |  14 +-
 .../ethernet/stmicro/stmmac/stmmac_platform.c | 409 ++++++++++--------
 .../ethernet/stmicro/stmmac/stmmac_platform.h |  10 +-
 include/linux/stmmac.h                        |   7 +-
 25 files changed, 320 insertions(+), 248 deletions(-)

-- 
2.30.2


             reply	other threads:[~2022-10-09 16:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-09 16:22 Soha Jin [this message]
2022-10-09 16:22 ` [PATCH 1/3] net: stmmac: use fwnode instead of of to configure driver Soha Jin
2022-10-09 19:43   ` kernel test robot
2022-10-09 19:54   ` kernel test robot
2022-10-10 20:38   ` Andrew Lunn
2022-10-11  3:12     ` Soha Jin
2022-10-11 12:41       ` Andrew Lunn
2022-10-09 16:22 ` [PATCH 2/3] net: stmmac: add Phytium's PHYT0004 to dwmac-generic compatible devices Soha Jin
2022-10-09 16:22 ` [PATCH 3/3] net: stmmac: switch to stmmac_platform_{probe,remove}_config Soha Jin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221009162247.1336-1-soha@lohu.info \
    --to=soha@lohu.info \
    --cc=alexandre.torgue@foss.st.com \
    --cc=cyy@cyyself.name \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=joabreu@synopsys.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=peppe.cavallaro@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.