Steve Wilkins 3a5e762836
spi: microchip-core: fix init function not setting the master and motorola modes
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: 9ac8d17694b6 ("spi: add support for microchip fpga spi controllers")
Signed-off-by: Steve Wilkins <steve.wilkins@raymarine.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20240715-designing-thus-05f7c26e1da7@wendy
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-07-15 19:08:18 +01:00
..
2024-07-08 17:01:10 +01:00
2024-07-08 17:01:10 +01:00
2024-07-08 17:01:10 +01:00
2024-06-25 20:04:31 +01:00
2024-02-13 15:48:22 +00:00
2024-06-11 11:38:25 +01:00
2024-03-18 17:30:46 +00:00
2024-06-11 11:38:25 +01:00
2023-08-21 14:29:37 +01:00
2024-07-05 18:47:46 +01:00