svn commit: r346510 - stable/12/sys/dev/spibus
Ian Lepore
ian at FreeBSD.org
Mon Apr 22 00:49:15 UTC 2019
Author: ian
Date: Mon Apr 22 00:49:13 2019
New Revision: 346510
URL: https://svnweb.freebsd.org/changeset/base/346510
Log:
MFC r344556:
Set maximum bus clock speed from hints when attaching hinted spibus(4) children.
Some devices (such as spigen(4)) document that this works, but it appears
that the code to implement it never got added.
Modified:
stable/12/sys/dev/spibus/spibus.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/spibus/spibus.c
==============================================================================
--- stable/12/sys/dev/spibus/spibus.c Mon Apr 22 00:45:09 2019 (r346509)
+++ stable/12/sys/dev/spibus/spibus.c Mon Apr 22 00:49:13 2019 (r346510)
@@ -216,6 +216,7 @@ spibus_hinted_child(device_t bus, const char *dname, i
child = BUS_ADD_CHILD(bus, 0, dname, dunit);
devi = SPIBUS_IVAR(child);
devi->mode = SPIBUS_MODE_NONE;
+ resource_int_value(dname, dunit, "clock", &devi->clock);
resource_int_value(dname, dunit, "cs", &devi->cs);
resource_int_value(dname, dunit, "mode", &devi->mode);
}
More information about the svn-src-stable-12
mailing list