All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: ludovic.desroches@microchip.com, agross@kernel.org,
	wsa+renesas@sang-engineering.com, ldewangan@nvidia.com
Cc: vkoul@kernel.org, linux-i2c@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-arm-msm@vger.kernel.org, digetx@gmail.com,
	linux-tegra@vger.kernel.org, thierry.reding@gmail.com,
	jonathanh@nvidia.com, nicolas.ferre@microchip.com,
	alexandre.belloni@bootlin.com, bjorn.andersson@linaro.org
Subject: [PATCH 1/4] i2c: at91: Use dma_request_chan() directly for channel request
Date: Wed, 13 Nov 2019 11:22:32 +0200	[thread overview]
Message-ID: <20191113092235.30440-2-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <20191113092235.30440-1-peter.ujfalusi@ti.com>

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/i2c/busses/i2c-at91-master.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-at91-master.c b/drivers/i2c/busses/i2c-at91-master.c
index 6e0b554dcd4e..7a862e00b475 100644
--- a/drivers/i2c/busses/i2c-at91-master.c
+++ b/drivers/i2c/busses/i2c-at91-master.c
@@ -758,14 +758,14 @@ static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
 	slave_config.dst_maxburst = 1;
 	slave_config.device_fc = false;
 
-	dma->chan_tx = dma_request_slave_channel_reason(dev->dev, "tx");
+	dma->chan_tx = dma_request_chan(dev->dev, "tx");
 	if (IS_ERR(dma->chan_tx)) {
 		ret = PTR_ERR(dma->chan_tx);
 		dma->chan_tx = NULL;
 		goto error;
 	}
 
-	dma->chan_rx = dma_request_slave_channel_reason(dev->dev, "rx");
+	dma->chan_rx = dma_request_chan(dev->dev, "rx");
 	if (IS_ERR(dma->chan_rx)) {
 		ret = PTR_ERR(dma->chan_rx);
 		dma->chan_rx = NULL;
-- 
Peter

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

WARNING: multiple messages have this Message-ID (diff)
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: <ludovic.desroches@microchip.com>, <agross@kernel.org>,
	<wsa+renesas@sang-engineering.com>, <ldewangan@nvidia.com>
Cc: <vkoul@kernel.org>, <linux-i2c@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-arm-msm@vger.kernel.org>, <digetx@gmail.com>,
	<linux-tegra@vger.kernel.org>, <thierry.reding@gmail.com>,
	<jonathanh@nvidia.com>, <nicolas.ferre@microchip.com>,
	<alexandre.belloni@bootlin.com>, <bjorn.andersson@linaro.org>
Subject: [PATCH 1/4] i2c: at91: Use dma_request_chan() directly for channel request
Date: Wed, 13 Nov 2019 11:22:32 +0200	[thread overview]
Message-ID: <20191113092235.30440-2-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <20191113092235.30440-1-peter.ujfalusi@ti.com>

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/i2c/busses/i2c-at91-master.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-at91-master.c b/drivers/i2c/busses/i2c-at91-master.c
index 6e0b554dcd4e..7a862e00b475 100644
--- a/drivers/i2c/busses/i2c-at91-master.c
+++ b/drivers/i2c/busses/i2c-at91-master.c
@@ -758,14 +758,14 @@ static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
 	slave_config.dst_maxburst = 1;
 	slave_config.device_fc = false;
 
-	dma->chan_tx = dma_request_slave_channel_reason(dev->dev, "tx");
+	dma->chan_tx = dma_request_chan(dev->dev, "tx");
 	if (IS_ERR(dma->chan_tx)) {
 		ret = PTR_ERR(dma->chan_tx);
 		dma->chan_tx = NULL;
 		goto error;
 	}
 
-	dma->chan_rx = dma_request_slave_channel_reason(dev->dev, "rx");
+	dma->chan_rx = dma_request_chan(dev->dev, "rx");
 	if (IS_ERR(dma->chan_rx)) {
 		ret = PTR_ERR(dma->chan_rx);
 		dma->chan_rx = NULL;
-- 
Peter

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


WARNING: multiple messages have this Message-ID (diff)
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: <ludovic.desroches@microchip.com>, <agross@kernel.org>,
	<wsa+renesas@sang-engineering.com>, <ldewangan@nvidia.com>
Cc: alexandre.belloni@bootlin.com, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org, jonathanh@nvidia.com,
	vkoul@kernel.org, thierry.reding@gmail.com,
	linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org,
	digetx@gmail.com, bjorn.andersson@linaro.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] i2c: at91: Use dma_request_chan() directly for channel request
Date: Wed, 13 Nov 2019 11:22:32 +0200	[thread overview]
Message-ID: <20191113092235.30440-2-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <20191113092235.30440-1-peter.ujfalusi@ti.com>

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/i2c/busses/i2c-at91-master.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-at91-master.c b/drivers/i2c/busses/i2c-at91-master.c
index 6e0b554dcd4e..7a862e00b475 100644
--- a/drivers/i2c/busses/i2c-at91-master.c
+++ b/drivers/i2c/busses/i2c-at91-master.c
@@ -758,14 +758,14 @@ static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr)
 	slave_config.dst_maxburst = 1;
 	slave_config.device_fc = false;
 
-	dma->chan_tx = dma_request_slave_channel_reason(dev->dev, "tx");
+	dma->chan_tx = dma_request_chan(dev->dev, "tx");
 	if (IS_ERR(dma->chan_tx)) {
 		ret = PTR_ERR(dma->chan_tx);
 		dma->chan_tx = NULL;
 		goto error;
 	}
 
-	dma->chan_rx = dma_request_slave_channel_reason(dev->dev, "rx");
+	dma->chan_rx = dma_request_chan(dev->dev, "rx");
 	if (IS_ERR(dma->chan_rx)) {
 		ret = PTR_ERR(dma->chan_rx);
 		dma->chan_rx = NULL;
-- 
Peter

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-11-13  9:22 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-13  9:22 [PATCH 0/4] i2c: Use dma_request_chan() directly for channel request Peter Ujfalusi
2019-11-13  9:22 ` Peter Ujfalusi
2019-11-13  9:22 ` Peter Ujfalusi
2019-11-13  9:22 ` Peter Ujfalusi [this message]
2019-11-13  9:22   ` [PATCH 1/4] i2c: at91: " Peter Ujfalusi
2019-11-13  9:22   ` Peter Ujfalusi
2019-11-13 13:35   ` Ludovic.Desroches
2019-11-13 13:35     ` Ludovic.Desroches
2019-11-13 13:35     ` Ludovic.Desroches
2019-11-13  9:22 ` [PATCH 2/4] i2c: qup: " Peter Ujfalusi
2019-11-13  9:22   ` Peter Ujfalusi
2019-11-13  9:22   ` Peter Ujfalusi
2019-11-13  9:22 ` [PATCH 3/4] i2c: sh_mobile: " Peter Ujfalusi
2019-11-13  9:22   ` Peter Ujfalusi
2019-11-13  9:22   ` Peter Ujfalusi
2019-11-13  9:22 ` [PATCH 4/4] i2c: tegra: " Peter Ujfalusi
2019-11-13  9:22   ` Peter Ujfalusi
2019-11-13  9:22   ` Peter Ujfalusi
2019-11-14  7:05   ` Jon Hunter
2019-11-14  7:05     ` Jon Hunter
2019-11-14  7:05     ` Jon Hunter
2019-11-14  4:34 ` [PATCH 0/4] i2c: " Vinod Koul
2019-11-14  4:34   ` Vinod Koul
2019-11-14 20:43 ` Wolfram Sang
2019-11-14 20:43   ` Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191113092235.30440-2-peter.ujfalusi@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=agross@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=digetx@gmail.com \
    --cc=jonathanh@nvidia.com \
    --cc=ldewangan@nvidia.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=ludovic.desroches@microchip.com \
    --cc=nicolas.ferre@microchip.com \
    --cc=thierry.reding@gmail.com \
    --cc=vkoul@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.