summaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2020-07-31 01:03:26 +0300
committerJoel Stanley <joel@jms.id.au>2020-08-13 06:48:22 +0300
commit1c1dc36f17bc182c278ff876d11de00fe96309bb (patch)
tree61aa370b8ed4f27bdcef6eaa90f95ba9732aacde /lib/mpi/mpiutil.c
parenta8491dbd49c38930ce71930515a75aa57b4252c9 (diff)
downloadlinux-1c1dc36f17bc182c278ff876d11de00fe96309bb.tar.xz
spi: fsi: Fix use of the bneq+ sequencer instruction
All of the switches in N2_count_control in the counter configuration are required to make the branch if not equal and increment command work. Set them when using bneq+. A side effect of this mode requires a dummy write to TDR when both transmitting and receiving otherwise the controller won't start shifting receive data. It is likely not possible to avoid TDR underrun errors in this mode and they are harmless, so do not check for them. OpenBMC-Staging-Count: 1 Fixes: bbb6b2f9865b ("spi: Add FSI-attached SPI controller driver") Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions