]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-dsa-enable-and-disable-all-ports'
authorDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 19:33:49 +0000 (12:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 19:33:49 +0000 (12:33 -0700)
commitcddcda37ab86fc7657391fc7cbf834854f6f6966
tree7c7f05445286e31dd13c34370249ad284baa40c5
parentd85a24cad62c5af29656d7c423e799c798ca2e9b
parentfe18d8a8984ea0ba4dc2bd138db29c1c18909d7e
Merge branch 'net-dsa-enable-and-disable-all-ports'

Vivien Didelot says:

====================
net: dsa: enable and disable all ports

The DSA stack currently calls the .port_enable and .port_disable switch
callbacks for slave ports only. However, it is useful to call them for all
port types. For example this allows some drivers to delay the optimization
of power consumption after the switch is setup. This can also help reducing
the setup code of drivers a bit.

The first DSA core patches enable and disable all ports of a switch, regardless
their type. The last mv88e6xxx patches remove redundant code from the driver
setup and the said callbacks, now that they handle SERDES power for all ports.

Changes in v2: do not guard .port_disable for broadcom switches.
====================

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