]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'r8152-runtime-mac-changes'
authorDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2019 01:21:46 +0000 (18:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2019 01:21:46 +0000 (18:21 -0700)
commit3c2a6a9e9b6a1ec3a3d8a3fc6ab2d7ba01cee8a3
treecd4ed0320a87ab3634d276cbd0c4160f56721935
parentee525f79d756eab4bbbc47141976183ced36417b
parentf4e57e776e4bb7cc17ee047ad3ad91ac7c59f84a
Merge branch 'r8152-runtime-mac-changes'

Mario Limonciello says:

====================
r8152: Support runtime changes of vendor mac passthu policy

On some platforms ACPI method `\\_SB.AMAC` is dynamic and changes to it can
influence changing the behavior of MAC pass through and what MAC address is used.

When running USB reset, re-read the MAC address to use to support tools that
change the policy.

This is quite similar to using `SIOCSIFHWADDR` except that the actual MAC to use
comes from ASL rather than from userspace.

Changes from v1:
 * Remove an extra unneeded `ether_addr_copy` call
 * Use `dev_set_mac_address` to ensure all notifiers are called
 * Shuffle functions to allow code re-use.
====================

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