spi: spi-geni-qcom: Fix non-byte aligned bits per word logic
For cases where bits per word isn't a byte aligned value, the driver
will program incorrect transaction lengths, such a mismatch can put the
GENI state machine in a bad state leading to transfer failures.
If a transaction times out before all the Tx bytes are sent out, then
ensure that the Tx watermark interrupt is disabled as part of the timeout
handling routine to prevent an interrupt storm. Also ensure that the
device's resources are enabled before running the ISR.
Change-Id: I16699c19e1b1f459a8ac99369663d4787f75c197
Signed-off-by:
Girish Mahadevan <girishm@codeaurora.org>
Loading
Please register or sign in to comment