net: phy: dp83848: Support ethernet pause frames
authorJesper Nilsson <jesper.nilsson@axis.com>
Fri, 2 Dec 2016 14:57:49 +0000 (15:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 18:13:32 +0000 (13:13 -0500)
According to the documentation, the PHYs supported by this driver
can also support pause frames. Announce this to be so.
Tested with a TI83822I.

Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83848.c

index 800b39f0627943343c4276de637b30be4692352f..320d0dc33b3db6206cd011f69c4376240bc3373c 100644 (file)
@@ -88,7 +88,9 @@ MODULE_DEVICE_TABLE(mdio, dp83848_tbl);
                .phy_id         = _id,                          \
                .phy_id_mask    = 0xfffffff0,                   \
                .name           = _name,                        \
-               .features       = PHY_BASIC_FEATURES,           \
+               .features       = (PHY_BASIC_FEATURES |         \
+                                  SUPPORTED_Pause |            \
+                                  SUPPORTED_Asym_Pause),       \
                .flags          = PHY_HAS_INTERRUPT,            \
                                                                \
                .soft_reset     = genphy_soft_reset,            \