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
This commit is contained in:
Landon J. Fuller 2016-07-12 01:15:00 +00:00
parent 713a61670c
commit 692f593c23

View File

@ -184,7 +184,9 @@ chipc_spi_wait(struct chipc_spi_softc *sc)
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);
}