Maintain backwards compatibility with the old method for boards that we get .dtb from u-boot, such as pine64, while accommodating the Linux 4.15 method of using syscon for emac.
Tested on: Banana Pi-M3 (a83t)
Tested on: Pine64 (a64)
Differential D13296
if_awg: Use syscon driver if it's specified instead of passing in syscon register kevans on Nov 29 2017, 5:47 PM. Authored by Tags None Referenced Files
Details
Maintain backwards compatibility with the old method for boards that we get .dtb from u-boot, such as pine64, while accommodating the Linux 4.15 method of using syscon for emac. Tested on: Banana Pi-M3 (a83t)
Diff Detail
Event TimelineComment Actions Allow legacy method of specifying syscon as a register in emac node to remain for now so that we don't break older dts included in u-boot (even as of u-boot -HEAD, as far as I can tell). This iteration hasn't been tested beyond building, but it's not a major change and I expect no regressions. Even if syscon node+xref exists and syscon register has been left accidentally in emac node, this should still succeed and use sc->syscon due to pass that syscon attaches at. Comment Actions Upload correct version with a little more error handling and less redundant initialization |