]> git.baikalelectronics.ru Git - uboot.git/commit
net: mt7628-eth: make phy link up detection optional via DT
authorWeijie Gao <weijie.gao@mediatek.com>
Wed, 25 Sep 2019 09:45:33 +0000 (17:45 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 25 Oct 2019 15:20:44 +0000 (17:20 +0200)
commitf13b9a139bf6d62ec754226d7bc705adbe099a98
treefd76e74819a1cbe693e8907808de013b88d6fc28
parentf7f6fa4c3e3634df38fa0acfec098b89c2c78b32
net: mt7628-eth: make phy link up detection optional via DT

The mt7628 has an embedded ethernet switch (5 phy ports + 1 cpu port).
Although in IOT mode only port0 is usable, the phy0 is still connected
to the switch, not the ethernet gmac directly.

This patch rewrites it and makes it optional. It can be turned on by adding
mediatek,poll-link-phy = <?> explicitly into the eth node. By default the
driver is switch mode with all 5 phy ports working without link detection.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/net/Kconfig
drivers/net/mt7628-eth.c