* [PATCH] soc: tegra: match wait_for_completion_timeout return type
@ 2015-03-09 7:12 ` Nicholas Mc Guire
0 siblings, 0 replies; 4+ messages in thread
From: Nicholas Mc Guire @ 2015-03-09 7:12 UTC (permalink / raw)
To: Stephen Warren
Cc: Thierry Reding, Alexandre Courbot, Peter De Schrijver,
Wolfram Sang, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Nicholas Mc Guire
return type of wait_for_completion_timeout is unsigned long not int. An
appropriately named unsigned long is added and the assignment fixed up.
Signed-off-by: Nicholas Mc Guire <hofrat-Q945KHDl0DbYtjvyW6yDsg@public.gmane.org>
---
This was only compile tested for tegra_defconfig
(implies CONFIG_ARCH_TEGRA_2x_SOC=y)
Patch is against 4.0-rc2 linux-next (localversion-next is -next-20150306)
drivers/soc/tegra/fuse/fuse-tegra20.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/tegra/fuse/fuse-tegra20.c b/drivers/soc/tegra/fuse/fuse-tegra20.c
index 5eff6f0..6acc2c4 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra20.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra20.c
@@ -59,6 +59,7 @@ static u32 tegra20_fuse_readl(const unsigned int offset)
int ret;
u32 val = 0;
struct dma_async_tx_descriptor *dma_desc;
+ unsigned long time_left;
mutex_lock(&apb_dma_lock);
@@ -82,9 +83,10 @@ static u32 tegra20_fuse_readl(const unsigned int offset)
dmaengine_submit(dma_desc);
dma_async_issue_pending(apb_dma_chan);
- ret = wait_for_completion_timeout(&apb_dma_wait, msecs_to_jiffies(50));
+ time_left = wait_for_completion_timeout(&apb_dma_wait,
+ msecs_to_jiffies(50));
- if (WARN(ret == 0, "apb read dma timed out"))
+ if (WARN(time_left == 0, "apb read dma timed out"))
dmaengine_terminate_all(apb_dma_chan);
else
val = *apb_buffer;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] soc: tegra: match wait_for_completion_timeout return type
@ 2015-03-09 7:12 ` Nicholas Mc Guire
0 siblings, 0 replies; 4+ messages in thread
From: Nicholas Mc Guire @ 2015-03-09 7:12 UTC (permalink / raw)
To: Stephen Warren
Cc: Thierry Reding, Alexandre Courbot, Peter De Schrijver,
Wolfram Sang, linux-tegra, linux-kernel, Nicholas Mc Guire
return type of wait_for_completion_timeout is unsigned long not int. An
appropriately named unsigned long is added and the assignment fixed up.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
---
This was only compile tested for tegra_defconfig
(implies CONFIG_ARCH_TEGRA_2x_SOC=y)
Patch is against 4.0-rc2 linux-next (localversion-next is -next-20150306)
drivers/soc/tegra/fuse/fuse-tegra20.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/tegra/fuse/fuse-tegra20.c b/drivers/soc/tegra/fuse/fuse-tegra20.c
index 5eff6f0..6acc2c4 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra20.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra20.c
@@ -59,6 +59,7 @@ static u32 tegra20_fuse_readl(const unsigned int offset)
int ret;
u32 val = 0;
struct dma_async_tx_descriptor *dma_desc;
+ unsigned long time_left;
mutex_lock(&apb_dma_lock);
@@ -82,9 +83,10 @@ static u32 tegra20_fuse_readl(const unsigned int offset)
dmaengine_submit(dma_desc);
dma_async_issue_pending(apb_dma_chan);
- ret = wait_for_completion_timeout(&apb_dma_wait, msecs_to_jiffies(50));
+ time_left = wait_for_completion_timeout(&apb_dma_wait,
+ msecs_to_jiffies(50));
- if (WARN(ret == 0, "apb read dma timed out"))
+ if (WARN(time_left == 0, "apb read dma timed out"))
dmaengine_terminate_all(apb_dma_chan);
else
val = *apb_buffer;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] soc: tegra: match wait_for_completion_timeout return type
2015-03-09 7:12 ` Nicholas Mc Guire
@ 2015-03-11 8:05 ` Thierry Reding
-1 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2015-03-11 8:05 UTC (permalink / raw)
To: Nicholas Mc Guire
Cc: Stephen Warren, Alexandre Courbot, Peter De Schrijver,
Wolfram Sang, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 635 bytes --]
On Mon, Mar 09, 2015 at 03:12:26AM -0400, Nicholas Mc Guire wrote:
> return type of wait_for_completion_timeout is unsigned long not int. An
> appropriately named unsigned long is added and the assignment fixed up.
>
> Signed-off-by: Nicholas Mc Guire <hofrat-Q945KHDl0DbYtjvyW6yDsg@public.gmane.org>
> ---
>
> This was only compile tested for tegra_defconfig
> (implies CONFIG_ARCH_TEGRA_2x_SOC=y)
>
> Patch is against 4.0-rc2 linux-next (localversion-next is -next-20150306)
>
> drivers/soc/tegra/fuse/fuse-tegra20.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] soc: tegra: match wait_for_completion_timeout return type
@ 2015-03-11 8:05 ` Thierry Reding
0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2015-03-11 8:05 UTC (permalink / raw)
To: Nicholas Mc Guire
Cc: Stephen Warren, Alexandre Courbot, Peter De Schrijver,
Wolfram Sang, linux-tegra, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
On Mon, Mar 09, 2015 at 03:12:26AM -0400, Nicholas Mc Guire wrote:
> return type of wait_for_completion_timeout is unsigned long not int. An
> appropriately named unsigned long is added and the assignment fixed up.
>
> Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
> ---
>
> This was only compile tested for tegra_defconfig
> (implies CONFIG_ARCH_TEGRA_2x_SOC=y)
>
> Patch is against 4.0-rc2 linux-next (localversion-next is -next-20150306)
>
> drivers/soc/tegra/fuse/fuse-tegra20.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-11 8:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 7:12 [PATCH] soc: tegra: match wait_for_completion_timeout return type Nicholas Mc Guire
2015-03-09 7:12 ` Nicholas Mc Guire
[not found] ` <1425885146-29065-1-git-send-email-hofrat-Q945KHDl0DbYtjvyW6yDsg@public.gmane.org>
2015-03-11 8:05 ` Thierry Reding
2015-03-11 8:05 ` Thierry Reding
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.