mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
fsi/sbefifo: Clean up correct FIFO when receiving reset request from SBE
[ Upstream commit95152433e4
] When the SBE requests a reset via the down FIFO, that is also the FIFO we should go and reset ;) Fixes:9f4a8a2d7f
("fsi/sbefifo: Add driver for the SBE FIFO") Signed-off-by: Joachim Fenkes <FENKES@de.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20200724071518.430515-2-joel@jms.id.au Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d903eee764
commit
aa4577259b
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ static int sbefifo_cleanup_hw(struct sbefifo *sbefifo)
|
|||
/* The FIFO already contains a reset request from the SBE ? */
|
||||
if (down_status & SBEFIFO_STS_RESET_REQ) {
|
||||
dev_info(dev, "Cleanup: FIFO reset request set, resetting\n");
|
||||
rc = sbefifo_regw(sbefifo, SBEFIFO_UP, SBEFIFO_PERFORM_RESET);
|
||||
rc = sbefifo_regw(sbefifo, SBEFIFO_DOWN, SBEFIFO_PERFORM_RESET);
|
||||
if (rc) {
|
||||
sbefifo->broken = true;
|
||||
dev_err(dev, "Cleanup: Reset reg write failed, rc=%d\n", rc);
|
||||
|
|
Loading…
Reference in a new issue