Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:07:19 -0000
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r346510 - stable/12/sys/dev/spibus
Message-ID:  <201904220049.x3M0nEa0099620@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904220049.x3M0nEa0099620>