]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ethtool-master-slave'
authorDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:45:45 +0000 (17:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:45:45 +0000 (17:45 -0700)
commit2c3fe431ff254d068dbe524d746776df66a4ec1c
treefc04060f03d67fca8157b07d648bd7113e6d914b
parent1d58440e7975fb6a5cce135ece6ba345298ce4a4
parent25fd56f68cce22c537b8edec4f3f480a694fcc2b
Merge branch 'ethtool-master-slave'

Oleksij Rempel says:

====================
provide support for PHY master/slave configuration

changes v6:
- use NL_SET_ERR_MSG_ATTR in ethnl_update_linkmodes
- add sanity checks in the ioctl interface
- use bool for ethnl_validate_master_slave_cfg()

changes v5:
- set MASTER_SLAVE_CFG_UNSUPPORTED as default value
- send a netlink error message on validation error
- more code fixes

changes v4:
- rename port_mode to master_slave
- move validation code to net/ethtool/linkmodes.c
- add UNSUPPORTED state and avoid sending unsupported fields
- more formatting and naming fixes
- tja11xx: support only force mode
- tja11xx: mark state as unsupported

changes v3:
- provide separate field for config and state.
- make state rejected on set
- add validation

changes v2:
- change names. Use MASTER_PREFERRED instead of MULTIPORT
- configure master/slave only on request. Default configuration can be
  provided by PHY or eeprom
- status and configuration to the user space.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>