mbox series

[v3,net-next,0/3] net: atlantic: phy tunables from mac driver

Message ID 20201005153939.248-1-irusskikh@marvell.com
Headers show
Series net: atlantic: phy tunables from mac driver | expand

Message

Igor Russkikh Oct. 5, 2020, 3:39 p.m. UTC
This series implements phy tunables settings via MAC driver callbacks.

AQC 10G devices use integrated MAC+PHY solution, where PHY is fully controlled
by MAC firmware. Therefore, it is not possible to implement separate phy driver
for these.

We use ethtool ops callbacks to implement downshift and EDPC tunables.

v3: fixed flaw in EDPD logic, from Andrew
v2: comments from Andrew

Igor Russkikh (3):
  ethtool: allow netdev driver to define phy tunables
  net: atlantic: implement phy downshift feature
  net: atlantic: implement media detect feature via phy tunables

 .../ethernet/aquantia/atlantic/aq_ethtool.c   | 53 +++++++++++++++++++
 .../net/ethernet/aquantia/atlantic/aq_hw.h    |  6 +++
 .../net/ethernet/aquantia/atlantic/aq_nic.c   | 50 +++++++++++++++++
 .../net/ethernet/aquantia/atlantic/aq_nic.h   |  4 ++
 .../atlantic/hw_atl/hw_atl_utils_fw2x.c       | 37 +++++++++++++
 .../atlantic/hw_atl2/hw_atl2_utils_fw.c       | 13 +++++
 include/linux/ethtool.h                       |  4 ++
 net/ethtool/ioctl.c                           | 37 ++++++++-----
 8 files changed, 191 insertions(+), 13 deletions(-)

Comments

David Miller Oct. 6, 2020, 1:16 p.m. UTC | #1
From: Igor Russkikh <irusskikh@marvell.com>

Date: Mon, 5 Oct 2020 18:39:36 +0300

> This series implements phy tunables settings via MAC driver callbacks.

> 

> AQC 10G devices use integrated MAC+PHY solution, where PHY is fully controlled

> by MAC firmware. Therefore, it is not possible to implement separate phy driver

> for these.

> 

> We use ethtool ops callbacks to implement downshift and EDPC tunables.

> 

> v3: fixed flaw in EDPD logic, from Andrew

> v2: comments from Andrew


Series applied, thank you.