]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: acpi: fix LMAC initialization
authorVadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
Thu, 12 Jan 2017 15:28:06 +0000 (07:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jan 2017 21:50:03 +0000 (16:50 -0500)
commit67f342ff9edfd35e90fbc9c28ff5aee50e8888a5
tree212944583904a714467663a493cba74b483e71a6
parente603b849f35bcdae277a0cfea967df03a7c6be71
net: thunderx: acpi: fix LMAC initialization

While probing BGX we requesting appropriate QLM for it's configuration
and get LMAC count by that request. Then, while reading configured
MAC values from SSDT table we need to save them in proper mapping:
  BGX[i]->lmac[j].mac = <MAC value>
to later provide for initialization stuff. In order to fill
such mapping properly we need to add lmac index to be used while
acpi initialization since at this moment bgx->lmac_count already contains
actual value.

Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c