diff options
author | Steve Wilkins <[email protected]> | 2024-07-15 12:13:55 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-07-15 19:08:18 +0100 |
commit | 3a5e76283672efddf47cea39ccfe9f5735cc91d5 (patch) | |
tree | 2a00ae4bfd9aea0660712dfb6eb0833d1af6560c /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | de9850b5c606b754dd7861678d6e2874b96b04f8 (diff) |
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 <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>
Link: https://patch.msgid.link/20240715-designing-thus-05f7c26e1da7@wendy
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions