Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: spi-geni-qcom: Don't initialize completion for normal message

We only use this completion when we're doing something that isn't a
message transfer. For example, changing CS or aborting/canceling a
command. All of those situations properly reinitialize the completion
before sending the GENI the special command to change CS or cancel, etc.
Given that, let's remove the initialization here.

Cc: Girish Mahadevan <girishm@codeaurora.org>
Cc: Dilip Kota <dkota@codeaurora.org>
Cc: Alok Chauhan <alokc@codeaurora.org>
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Stephen Boyd and committed by
Mark Brown
0357a3da 74fa750e

-1
-1
drivers/spi/spi-geni-qcom.c
··· 233 233 struct geni_se *se = &mas->se; 234 234 235 235 geni_se_select_mode(se, GENI_SE_FIFO); 236 - reinit_completion(&mas->xfer_done); 237 236 ret = setup_fifo_params(spi_msg->spi, spi); 238 237 if (ret) 239 238 dev_err(mas->dev, "Couldn't select mode %d\n", ret);