]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[etherswitch] add ukswitch hint that is phy offset at mdio register
authorMichael Zhilin <mizhka@FreeBSD.org>
Mon, 21 Nov 2016 19:26:22 +0000 (19:26 +0000)
committerMichael Zhilin <mizhka@FreeBSD.org>
Mon, 21 Nov 2016 19:26:22 +0000 (19:26 +0000)
commitb15317c43192e806f2db7d725dcec84aff9c30d8
tree1fe039209191934ca9c0a15e79364bdd3288338f
parente45c936f460ed5f635ba0fca87114220017e693b
[etherswitch] add ukswitch hint that is phy offset at mdio register

This patch allows to specify PHY register offset for ukswitch. For instance,
switch MAICREL KS8995XA connected via MDIO to SoC, but PHY register starts
at 1. So hint for this case is: hint.ukswitch.0.phyoffset=1

No change/effect if hint is not set.

Submitted by: Hiroki Mori <yamori813@yahoo.co.jp>
Reviewed by: adrian, mizhka
Approved by: adrian(mentor)
Differential Revision: https://reviews.freebsd.org/D8584
sys/dev/etherswitch/ukswitch/ukswitch.c