]> git.baikalelectronics.ru Git - kernel.git/commit
net: make xpcs_do_config to accept advertising for pcs-xpcs and sja1105
authorOng Boon Leong <boon.leong.ong@intel.com>
Wed, 15 Jun 2022 08:39:04 +0000 (16:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2022 09:55:35 +0000 (10:55 +0100)
commita1f7a55da5aca3abf8f116d2eed93c226f4c4829
treec80fc768b4fe39cb51217c4e179c7c5ceb4a3bae
parent5046cfac36617987da0c607b3590b1dd481eb20b
net: make xpcs_do_config to accept advertising for pcs-xpcs and sja1105

xpcs_config() has 'advertising' input that is required for C37 1000BASE-X
AN in later patch series. So, we prepare xpcs_do_config() for it.

For sja1105, xpcs_do_config() is used for xpcs configuration without
depending on advertising input, so set to NULL.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/pcs/pcs-xpcs.c
include/linux/pcs/pcs-xpcs.h