Skip to content
Unverified Commit dc5fa590 authored by Leilk Liu's avatar Leilk Liu Committed by Mark Brown
Browse files

spi: take the SPI IO-mutex in the spi_set_cs_timing method



this patch takes the io_mutex to prevent an unprotected HW
register modification in the set_cs_timing callback.

Fixes: 4cea6b8c ("spi: add power control when set_cs_timing")
Signed-off-by: default avatarLeilk Liu <leilk.liu@mediatek.com>
Link: https://lore.kernel.org/r/20210508060214.1485-1-leilk.liu@mediatek.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 680ec054
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment