]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: 80xx BGX0 configuration changes
authorSunil Goutham <sgoutham@cavium.com>
Thu, 24 Nov 2016 09:18:00 +0000 (14:48 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 01:21:17 +0000 (20:21 -0500)
commit936b4483a3de674e99d7e847b60c523c61ac9f08
treed1fad72590360cfea325c85b80d399094c498478
parentbeb607f8121dd6e9b9c96508d15982176d109c19
net: thunderx: 80xx BGX0 configuration changes

On 80xx only one lane of DLM0 and DLM1 (of BGX0) can be used
, so even though lmac count may be 2 but LMAC1 should use
serdes lane of DLM1. Since it's not possible to distinguish
80xx from 81xx as PCI devid are same, this patch adds this
config support by replying on what firmware configures the
lmacs with.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c