diff mbox series

[3/3] tty: serial: tegra: Use dma_request_chan() directly for channel request

Message ID 20191113094618.1725-4-peter.ujfalusi@ti.com
State Accepted
Commit 84a25d956c4f2c1a7ce2eb0875f4a3151cb48958
Headers show
Series [1/3] tty: serial: amba-pl011: Use dma_request_chan() directly for channel request | expand

Commit Message

Peter Ujfalusi Nov. 13, 2019, 9:46 a.m. UTC
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
	dma_request_chan(dev, name)

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

---
 drivers/tty/serial/serial-tegra.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Comments

Jon Hunter Nov. 14, 2019, 7:05 a.m. UTC | #1
On 13/11/2019 09:46, Peter Ujfalusi wrote:
> dma_request_slave_channel_reason() is:

> #define dma_request_slave_channel_reason(dev, name) \

> 	dma_request_chan(dev, name)

> 

> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

> ---

>  drivers/tty/serial/serial-tegra.c | 3 +--

>  1 file changed, 1 insertion(+), 2 deletions(-)

> 

> diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c

> index 2f599515c133..b6ace6290e23 100644

> --- a/drivers/tty/serial/serial-tegra.c

> +++ b/drivers/tty/serial/serial-tegra.c

> @@ -1122,8 +1122,7 @@ static int tegra_uart_dma_channel_allocate(struct tegra_uart_port *tup,

>  	int ret;

>  	struct dma_slave_config dma_sconfig;

>  

> -	dma_chan = dma_request_slave_channel_reason(tup->uport.dev,

> -						dma_to_memory ? "rx" : "tx");

> +	dma_chan = dma_request_chan(tup->uport.dev, dma_to_memory ? "rx" : "tx");

>  	if (IS_ERR(dma_chan)) {

>  		ret = PTR_ERR(dma_chan);

>  		dev_err(tup->uport.dev,

> 


Acked-by: Jon Hunter <jonathanh@nvidia.com>


Cheers!
Jon

-- 
nvpublic
diff mbox series

Patch

diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c
index 2f599515c133..b6ace6290e23 100644
--- a/drivers/tty/serial/serial-tegra.c
+++ b/drivers/tty/serial/serial-tegra.c
@@ -1122,8 +1122,7 @@  static int tegra_uart_dma_channel_allocate(struct tegra_uart_port *tup,
 	int ret;
 	struct dma_slave_config dma_sconfig;
 
-	dma_chan = dma_request_slave_channel_reason(tup->uport.dev,
-						dma_to_memory ? "rx" : "tx");
+	dma_chan = dma_request_chan(tup->uport.dev, dma_to_memory ? "rx" : "tx");
 	if (IS_ERR(dma_chan)) {
 		ret = PTR_ERR(dma_chan);
 		dev_err(tup->uport.dev,