sb/intel/common: Reset Pre-OP after atomic SPI cycle is finished
Make sure that the Pre-Op register is cleared when an atomic cycle has been finished without errors. Change-Id: Ied88337125b125474b411e2f39f668171d15bfac Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/29634 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
parent
26d706bb33
commit
f13a6f9e05
|
@ -2,6 +2,7 @@
|
||||||
* Copyright (c) 2011 The Chromium OS Authors.
|
* Copyright (c) 2011 The Chromium OS Authors.
|
||||||
* Copyright (C) 2009, 2010 Carl-Daniel Hailfinger
|
* Copyright (C) 2009, 2010 Carl-Daniel Hailfinger
|
||||||
* Copyright (C) 2011 Stefan Tauner
|
* Copyright (C) 2011 Stefan Tauner
|
||||||
|
* Copyright (C) 2018 Siemens AG
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License as
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
@ -608,7 +609,7 @@ static int spi_ctrlr_xfer(const struct spi_slave *slave, const void *dout,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
goto spi_xfer_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -673,6 +674,7 @@ static int spi_ctrlr_xfer(const struct spi_slave *slave, const void *dout,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spi_xfer_exit:
|
||||||
/* Clear atomic preop now that xfer is done */
|
/* Clear atomic preop now that xfer is done */
|
||||||
writew_(0, cntlr->preop);
|
writew_(0, cntlr->preop);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue