Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2015 20:47:22 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277346 - head/sys/arm/broadcom/bcm2835
Message-ID:  <201501182047.t0IKlMXO042862@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sun Jan 18 20:47:21 2015
New Revision: 277346
URL: https://svnweb.freebsd.org/changeset/base/277346

Log:
  Save the command-and-flags value into the shadow register when it is written.
  
  This doesn't actually change any behavior, because it just allows a 16-bit
  read of the command register to return the correct value, and nothing
  actually does a 16-bit read of that register.

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c	Sun Jan 18 20:40:08 2015	(r277345)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c	Sun Jan 18 20:47:21 2015	(r277346)
@@ -399,8 +399,11 @@ bcm_sdhci_write_2(device_t dev, struct s
 	val32 |= (val << (off & 3)*8);
 	if (off == SDHCI_TRANSFER_MODE)
 		sc->cmd_and_mode = val32;
-	else
+	else {
 		WR4(sc, off & ~3, val32);
+		if (off == SDHCI_COMMAND_FLAGS)
+			sc->cmd_and_mode = val32;
+	}
 }
 
 static void



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