summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2022-03-01 10:35:43 +0000
committerLeo Yu-Chi Liang <[email protected]>2022-03-15 17:43:11 +0800
commitbae4d9fbd97623ccb96ad634128d1aa98faa30f2 (patch)
tree1c9c9f4b836f83aadde57cc699248eb75143592c /include/linux
parent40b6435a62befe3e487b6ea0ff69a0206a907b0b (diff)
spi: dw: Actually mask interrupts
The designware spi driver unconditionally uses polling. The comment to spi_hw_init() also states that the function should disable interrupts. According to the DesignWare DW_apb_ssi Databook, value 0xff in IMR enables all interrupts. Since we want to mask all interrupts write 0x0 instead. On the canaan k210 board, pressing the reset button twice to reset the board will run u-boot. If u-boot boots Linux without having SPI interrupts masked, Linux will hang as soon as interrupts are enabled, because of an interrupt storm. Properly masking the SPI interrupts in u-boot allows us to successfully boot Linux, even after resetting the board. Fixes: 5bef6fd79f94 ("spi: Add designware master SPI DM driver used on SoCFPGA") Signed-off-by: Sean Anderson <[email protected]> [Niklas: rewrite commit message] Signed-off-by: Niklas Cassel <[email protected]> Reviewed-by: Sean Anderson <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions