projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52dd56b
)
x86: ich-spi: Clear atomic preop only when SPI settings are not locked
author
Bin Meng
<bmeng.cn@gmail.com>
Sun, 27 Aug 2017 02:22:59 +0000
(19:22 -0700)
committer
Bin Meng
<bmeng.cn@gmail.com>
Sat, 2 Sep 2017 15:35:55 +0000
(23:35 +0800)
The atomic preop register can only be written when SPI settings are
not locked, otherwise it's read-only.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/spi/ich.c
patch
|
blob
|
history
diff --git
a/drivers/spi/ich.c
b/drivers/spi/ich.c
index 5a3d6908152b0d653d462e39354b4a4607d28413..22fc83dd725d2154890f048234dc83994f4c1c99 100644
(file)
--- a/
drivers/spi/ich.c
+++ b/
drivers/spi/ich.c
@@
-563,7
+563,8
@@
static int ich_spi_xfer(struct udevice *dev, unsigned int bitlen,
}
/* Clear atomic preop now that xfer is done */
- ich_writew(ctlr, 0, ctlr->preop);
+ if (!lock)
+ ich_writew(ctlr, 0, ctlr->preop);
return 0;
}