mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iop-adma: detangle dma_alloc_writecombine() use and check
@ 2015-06-16 19:40 Luis R. Rodriguez
  2015-06-24 23:32 ` Luis R. Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Luis R. Rodriguez @ 2015-06-16 19:40 UTC (permalink / raw)
  To: vinod.koul; +Cc: dan.j.williams, dmaengine, linux-kernel, Luis R. Rodriguez

From: "Luis R. Rodriguez" <mcgrof@suse.com>

dma_alloc_writecombine()'s call and return value check is tangled in all
in one call. Detangle both calls as we're used to.

Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
---
 drivers/dma/iop-adma.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c
index 9988268..e4f4312 100644
--- a/drivers/dma/iop-adma.c
+++ b/drivers/dma/iop-adma.c
@@ -1300,10 +1300,11 @@ static int iop_adma_probe(struct platform_device *pdev)
 	 * note: writecombine gives slightly better performance, but
 	 * requires that we explicitly flush the writes
 	 */
-	if ((adev->dma_desc_pool_virt = dma_alloc_writecombine(&pdev->dev,
-					plat_data->pool_size,
-					&adev->dma_desc_pool,
-					GFP_KERNEL)) == NULL) {
+	adev->dma_desc_pool_virt = dma_alloc_writecombine(&pdev->dev,
+							  plat_data->pool_size,
+							  &adev->dma_desc_pool,
+							  GFP_KERNEL);
+	if (!adev->dma_desc_pool_virt) {
 		ret = -ENOMEM;
 		goto err_free_adev;
 	}
-- 
2.3.2.209.gd67f9d5.dirty


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iop-adma: detangle dma_alloc_writecombine() use and check
  2015-06-16 19:40 [PATCH] iop-adma: detangle dma_alloc_writecombine() use and check Luis R. Rodriguez
@ 2015-06-24 23:32 ` Luis R. Rodriguez
  2015-06-25 17:58   ` Luis R. Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Luis R. Rodriguez @ 2015-06-24 23:32 UTC (permalink / raw)
  To: vinod.koul; +Cc: dan.j.williams, dmaengine, linux-kernel, Luis R. Rodriguez

On Tue, Jun 16, 2015 at 12:40 PM, Luis R. Rodriguez
<mcgrof@do-not-panic.com> wrote:
> From: "Luis R. Rodriguez" <mcgrof@suse.com>
>
> dma_alloc_writecombine()'s call and return value check is tangled in all
> in one call. Detangle both calls as we're used to.
>
> Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>

Hey folks, can this be picked up for v4.2 or was it too late ?

 Luis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iop-adma: detangle dma_alloc_writecombine() use and check
  2015-06-24 23:32 ` Luis R. Rodriguez
@ 2015-06-25 17:58   ` Luis R. Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Luis R. Rodriguez @ 2015-06-25 17:58 UTC (permalink / raw)
  To: vinod.koul; +Cc: dan.j.williams, dmaengine, linux-kernel, Luis R. Rodriguez

On Wed, Jun 24, 2015 at 4:32 PM, Luis R. Rodriguez <mcgrof@suse.com> wrote:
> On Tue, Jun 16, 2015 at 12:40 PM, Luis R. Rodriguez
> <mcgrof@do-not-panic.com> wrote:
>> From: "Luis R. Rodriguez" <mcgrof@suse.com>
>>
>> dma_alloc_writecombine()'s call and return value check is tangled in all
>> in one call. Detangle both calls as we're used to.
>>
>> Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
>
> Hey folks, can this be picked up for v4.2 or was it too late ?

OK well so this would be needed to do a full scrape change on the
kernel for a rename of the API used, I'll merge this part of a bigger
series now. If you can follow up on that series that would be
appreciated. I'll cc you.

 Luis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-25 17:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16 19:40 [PATCH] iop-adma: detangle dma_alloc_writecombine() use and check Luis R. Rodriguez
2015-06-24 23:32 ` Luis R. Rodriguez
2015-06-25 17:58   ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®