svn commit: r300176 - head/sys/dev/tsec
Justin Hibbits
jhibbits at FreeBSD.org
Thu May 19 00:04:59 UTC 2016
Author: jhibbits
Date: Thu May 19 00:04:58 2016
New Revision: 300176
URL: https://svnweb.freebsd.org/changeset/base/300176
Log:
Add an alternate compatible string for eTSEC devices.
Newer device trees now use fsl,etsec2 to denote eTSEC nodes. Same device, new
name.
Modified:
head/sys/dev/tsec/if_tsec_fdt.c
Modified: head/sys/dev/tsec/if_tsec_fdt.c
==============================================================================
--- head/sys/dev/tsec/if_tsec_fdt.c Wed May 18 23:41:58 2016 (r300175)
+++ head/sys/dev/tsec/if_tsec_fdt.c Thu May 19 00:04:58 2016 (r300176)
@@ -115,7 +115,8 @@ tsec_fdt_probe(device_t dev)
strcmp(ofw_bus_get_type(dev), "network") != 0)
return (ENXIO);
- if (!ofw_bus_is_compatible(dev, "gianfar"))
+ if (!ofw_bus_is_compatible(dev, "gianfar") &&
+ !ofw_bus_is_compatible(dev, "fsl,etsec2"))
return (ENXIO);
sc = device_get_softc(dev);
More information about the svn-src-all
mailing list