[U-Boot] [v2 patch] net: fman: Support both new and legacy FMan Compatibles

Qiang Zhao qiang.zhao at nxp.com
Fri Aug 24 02:08:16 UTC 2018


On 08/23/2018 23:20 PM, York Sun wrote:

>> -			if (ft_fixup_port(blob, &fm_info[i], "fsl,fman-tgec"))
>> +			if (ft_fixup_port(blob, &fm_info[i], "fsl,fman-tgec") &&
>> +			    ft_fixup_port(blob, &fm_info[i], "fsl,fman-xgec"))

>Is this logic correct? You want success return from fixing up _both_ fman-tgec and fman-xgec before fixup fman-10-mac?

fman-10-mac, tgec and xgec is the different version compatible, it used fman-10-mac at the first time, then modified to tgec and now xgec.
If it fix up successfully with fman-10-mac, it will return 0, and doesn't fix up for the other two compatible.
If failed with fman-tgec, then to fix up for fsl,fman-xgec, if success, return 0 and doesn't fix up for fman-10-mac.

BR
Qiang Zhao


More information about the U-Boot mailing list