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:
parent
97629b93ec
commit
15ca0a6707
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user