net: thunderx: acpi: fix LMAC initialization
authorVadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
Thu, 12 Jan 2017 15:28:06 +0000 (07:28 -0800)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:05:54 +0000 (03:05 +0000)
commitfa9101b914c4b97d2dbf160e463c9f2113619f30
tree933c4b8b5a82df84966890725c859c8c1a00dbf7
parent6cdc7e9487857c155fa7b3fbc9a4a1c72409ffc6
net: thunderx: acpi: fix LMAC initialization

[ Upstream commit 7aa4865506a26c607e00bd9794a85785b55ebca7 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c