Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e99165a authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull minor spi MXS fixes from Mark Brown:
 "These fixes are both pretty minor ones and are driver local."

* tag 'spi-mxs' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc:
  spi: mxs: Terminate DMA in case of DMA timeout
  spi: mxs: Assign message status after transfer finished
parents 065c8012 44968466
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -323,6 +323,7 @@ static int mxs_spi_txrx_dma(struct mxs_spi *spi, int cs,
	if (!ret) {
	if (!ret) {
		dev_err(ssp->dev, "DMA transfer timeout\n");
		dev_err(ssp->dev, "DMA transfer timeout\n");
		ret = -ETIMEDOUT;
		ret = -ETIMEDOUT;
		dmaengine_terminate_all(ssp->dmach);
		goto err_vmalloc;
		goto err_vmalloc;
	}
	}


@@ -480,7 +481,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
		first = last = 0;
		first = last = 0;
	}
	}


	m->status = 0;
	m->status = status;
	spi_finalize_current_message(master);
	spi_finalize_current_message(master);


	return status;
	return status;