Skip to content
Commit 6f64d0ad authored by Steve Wilkins's avatar Steve Wilkins Committed by harish h
Browse files

spi: microchip-core: fix init function not setting the master and motorola modes

commit 277dbb1c3f37945d80e9a45036fd006df8551fd7 from
https://github.com/linux4microchip/linux.git linux-6.6-mchp+fpga

mchp_corespi_init() reads the CONTROL register, sets the master and
motorola bits, but doesn't write the value back to the register. The
function also doesn't ensure the controller is disabled at the start,
which may present a problem if the controller was used by an
earlier boot stage as some settings (including the mode) can only be
modified while the controller is disabled.

Fixes: 9ac8d176

 ("spi: add support for microchip fpga spi controllers")
Signed-off-by: default avatarSteve Wilkins <steve.wilkins@raymarine.com>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarharish h <harish.h@windriver.com>
parent dbecb436
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