svn commit: r257326 - head/sys/dev/cesa
Randall Stewart
rrs at FreeBSD.org
Tue Oct 29 11:28:11 UTC 2013
Author: rrs
Date: Tue Oct 29 11:28:11 2013
New Revision: 257326
URL: http://svnweb.freebsd.org/changeset/base/257326
Log:
Opps, my kirkwood fix for the dreamplug missed this.
Modified:
head/sys/dev/cesa/cesa.c
Modified: head/sys/dev/cesa/cesa.c
==============================================================================
--- head/sys/dev/cesa/cesa.c Tue Oct 29 11:21:31 2013 (r257325)
+++ head/sys/dev/cesa/cesa.c Tue Oct 29 11:28:11 2013 (r257326)
@@ -995,11 +995,17 @@ cesa_attach(device_t dev)
sc->sc_dev = dev;
/* Check if CESA peripheral device has power turned on */
+#if defined(SOC_MV_KIRKWOOD)
+ if (soc_power_ctrl_get(CPU_PM_CTRL_CRYPTO) == CPU_PM_CTRL_CRYPTO) {
+ device_printf(dev, "not powered on\n");
+ return (ENXIO);
+ }
+#else
if (soc_power_ctrl_get(CPU_PM_CTRL_CRYPTO) != CPU_PM_CTRL_CRYPTO) {
device_printf(dev, "not powered on\n");
return (ENXIO);
}
-
+#endif
soc_id(&d, &r);
switch (d) {
More information about the svn-src-all
mailing list