]> git.baikalelectronics.ru Git - kernel.git/commitdiff
fsl/fman: Add fibre support
authorMaxim Kochetkov <fido_max@inbox.ru>
Tue, 20 Jul 2021 05:08:38 +0000 (08:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2021 14:16:45 +0000 (07:16 -0700)
Set SUPPORTED_FIBRE to mac_dev->if_support. It allows proper usage of
PHYs with optical/fiber support.

Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c

index 46ecb42f2ef8e627f105d408688c7a73b8e3fa0a..d9fc5c456bf3e28327264ca3866ace10f24a42e4 100644 (file)
@@ -524,6 +524,7 @@ static void setup_memac(struct mac_device *mac_dev)
        | SUPPORTED_Autoneg \
        | SUPPORTED_Pause \
        | SUPPORTED_Asym_Pause \
+       | SUPPORTED_FIBRE \
        | SUPPORTED_MII)
 
 static DEFINE_MUTEX(eth_lock);