lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221009162247.1336-1-soha@lohu.info>
Date:   Mon, 10 Oct 2022 00:22:44 +0800
From:   Soha Jin <soha@...u.info>
To:     Giuseppe Cavallaro <peppe.cavallaro@...com>,
        Alexandre Torgue <alexandre.torgue@...s.st.com>,
        Jose Abreu <joabreu@...opsys.com>,
        "David S. Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>
Cc:     Yangyu Chen <cyy@...self.name>, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org, Soha Jin <soha@...u.info>
Subject: [PATCH 0/3] net: stmmac: probing config with fwnode instead of of

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ