Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2016 01:15:00 +0000 (UTC)
From:      "Landon J. Fuller" <landonf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302602 - head/sys/dev/bhnd/cores/chipc
Message-ID:  <201607120115.u6C1F0gO069229@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: landonf
Date: Tue Jul 12 01:15:00 2016
New Revision: 302602
URL: https://svnweb.freebsd.org/changeset/base/302602

Log:
  bhnd(4): print extra register information on chipc SPI timeout.
  
  Submitted by:	Michael Zhilin <mizhka@gmail.com>
  Reviewed by:	imp
  Approved by:	adrian (mentor)
  Differential Revision:	https://reviews.freebsd.org/D6993

Modified:
  head/sys/dev/bhnd/cores/chipc/chipc_spi.c

Modified: head/sys/dev/bhnd/cores/chipc/chipc_spi.c
==============================================================================
--- head/sys/dev/bhnd/cores/chipc/chipc_spi.c	Tue Jul 12 00:37:48 2016	(r302601)
+++ head/sys/dev/bhnd/cores/chipc/chipc_spi.c	Tue Jul 12 01:15:00 2016	(r302602)
@@ -184,7 +184,9 @@ chipc_spi_wait(struct chipc_spi_softc *s
 	if (i > 0)
 		return (0);
 
-	BHND_DEBUG_DEV(sc->sc_dev, "busy");
+	BHND_WARN_DEV(sc->sc_dev, "busy: CTL=0x%x DATA=0x%x",
+	    SPI_READ(sc, CHIPC_SPI_FLASHCTL),
+	    SPI_READ(sc, CHIPC_SPI_FLASHDATA));
 	return (-1);
 }
 



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