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

Commit b490abfe authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "spi: spi-msm-geni: Propagate change form 4.14 to 5.4"

parents 96b195bf 45203d00
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -1069,11 +1069,17 @@ static int spi_geni_mas_setup(struct spi_master *spi)
	/* Transmit an entire FIFO worth of data per IRQ */
	mas->tx_wm = 1;

	mas->gsi_mode =
		(geni_read_reg(mas->base, GENI_IF_FIFO_DISABLE_RO) &
					FIFO_IF_DISABLE);

	if (mas->gsi_mode) {
		mas->tx = dma_request_slave_channel(mas->dev, "tx");
		if (IS_ERR_OR_NULL(mas->tx)) {
			dev_info(mas->dev, "Failed to get tx DMA ch %ld\n",
						PTR_ERR(mas->tx));
	} else {
			goto setup_ipc;
		}
		mas->rx = dma_request_slave_channel(mas->dev, "rx");
		if (IS_ERR_OR_NULL(mas->rx)) {
			dev_info(mas->dev, "Failed to get rx DMA ch %ld\n",
@@ -1152,9 +1158,6 @@ static int spi_geni_mas_setup(struct spi_master *spi)
	if (mas->set_miso_sampling)
		spi_geni_set_sampling_rate(mas, major, minor);

	mas->gsi_mode =
		(geni_read_reg(mas->base, GENI_IF_FIFO_DISABLE_RO) &
						FIFO_IF_DISABLE);
	if (mas->dis_autosuspend)
		GENI_SE_DBG(mas->ipc, false, mas->dev,
				"Auto Suspend is disabled\n");