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

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

Merge "serial: msm_serial_hs: set the DMA mask and the coherent DMA mask"

parents a250c213 af9bf852
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2688,8 +2688,7 @@ static int msm_hs_startup(struct uart_port *uport)
	tx->dma_in_flight = false;
	MSM_HS_DBG("%s():desc usage flag 0x%lx\n", __func__, rx->queued_flag);
	timer_setup(&(tx->tx_timeout_timer),
			tx_timeout_handler,
			(unsigned long) msm_uport);
			tx_timeout_handler, 0);

	/* Enable reading the current CTS, no harm even if CTS is ignored */
	msm_uport->imr_reg |= UARTDM_ISR_CURRENT_CTS_BMSK;
@@ -3316,6 +3315,12 @@ static int msm_hs_probe(struct platform_device *pdev)
	unsigned long data;
	char name[30];

	ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
	if (ret) {
		dev_err(&pdev->dev, "could not set DMA mask\n");
		return ret;
	}

	if (pdev->dev.of_node) {
		dev_dbg(&pdev->dev, "device tree enabled\n");
		pdata = msm_hs_dt_to_pdata(pdev);