armv8: lsch3: Fix lane protocol parsing logic
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Wed, 4 Nov 2015 06:55:52 +0000 (12:25 +0530)
committerYork Sun <yorksun@freescale.com>
Mon, 30 Nov 2015 16:53:02 +0000 (08:53 -0800)
commit99e904c1f036145946a8439e3f3c5180139640a6
tree58a46cc598038ecf7b1f51789f2810af447fc4f3
parenta1399534f103883908a3a826c9f0505b92b0c75e
armv8: lsch3: Fix lane protocol parsing logic

Current implementation only consider SGMIIs for dpmac initialization.
XFI serdes protocols also uses dpmac.

Also, fix lane protocol parsing logic to consider both XFIs and SGMIIs.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
drivers/net/ldpaa_eth/ldpaa_wriop.c