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

Commit 5b380cb1 authored by Mark Brown's avatar Mark Brown
Browse files

Merge remote-tracking branch 'spi/topic/tegra' into spi-next

parents 84b61465 e91d2352
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ static unsigned tegra_spi_calculate_curr_xfer_param(
	unsigned max_len;
	unsigned total_fifo_words;

	tspi->bytes_per_word = (bits_per_word - 1) / 8 + 1;
	tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8);

	if (bits_per_word == 8 || bits_per_word == 16) {
		tspi->is_packed = 1;
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ static unsigned tegra_sflash_calculate_curr_xfer_param(
	unsigned remain_len = t->len - tsd->cur_pos;
	unsigned max_word;

	tsd->bytes_per_word = (t->bits_per_word - 1) / 8 + 1;
	tsd->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8);
	max_word = remain_len / tsd->bytes_per_word;
	if (max_word > SPI_FIFO_DEPTH)
		max_word = SPI_FIFO_DEPTH;
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ static unsigned tegra_slink_calculate_curr_xfer_param(
	unsigned total_fifo_words;

	bits_per_word = t->bits_per_word;
	tspi->bytes_per_word = (bits_per_word - 1) / 8 + 1;
	tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8);

	if (bits_per_word == 8 || bits_per_word == 16) {
		tspi->is_packed = 1;