Home
last modified time | relevance | path

Searched hist:"59 ab0fa0c8078f46e747f03191830385f111b35b" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/spi/
H A Dspi-geni-qcom.cdiff 59ab0fa0c8078f46e747f03191830385f111b35b Sat Jun 20 04:22:33 CEST 2020 Stephen Boyd <swboyd@chromium.org> spi: spi-geni-qcom: Don't set {tx,rx}_rem_bytes unnecessarily

We only need to test for these counters being non-zero when we see the
end of a transfer. If we're doing a CS change then they will already be
zero. This implies that we don't need to set these to 0 if we're
cancelling an in flight transfer too, because we only care to test these
counters when the 'DONE' bit is set in the hardware and we've set them
to non-zero for a transfer.

This is a non-functional change, just cleanup to consolidate code.

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200620022233.64716-3-swboyd@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>