dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Murphy <robin.murphy@arm.com>
To: vkoul@kernel.org
Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: [PATCH 9/9] dmaengine: pl330: Drop local dma_parms
Date: Thu,  3 Sep 2020 21:25:53 +0100	[thread overview]
Message-ID: <c9e58882e33f22f9b0a6d65a5507e24004512148.1599164692.git.robin.murphy@arm.com> (raw)
In-Reply-To: <cover.1599164692.git.robin.murphy@arm.com>

Since commit f458488425f1 ("amba: Initialize dma_parms for amba
devices"), struct amba_device already provides a dma_parms structure,
so we can save allocating another one.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 drivers/dma/pl330.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 2c508ee672b9..3d784e99635b 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -460,9 +460,6 @@ struct pl330_dmac {
 	/* DMA-Engine Device */
 	struct dma_device ddma;
 
-	/* Holds info about sg limitations */
-	struct device_dma_parameters dma_parms;
-
 	/* Pool of descriptors available for the DMAC's channels */
 	struct list_head desc_pool;
 	/* To protect desc_pool manipulation */
@@ -3158,8 +3155,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
 		}
 	}
 
-	adev->dev.dma_parms = &pl330->dma_parms;
-
 	/*
 	 * This is the limit for transfers with a buswidth of 1, larger
 	 * buswidths will have larger limits.
-- 
2.28.0.dirty


  parent reply	other threads:[~2020-09-03 20:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03 20:25 [PATCH 0/9] dmaengine: Tidy up dma_parms Robin Murphy
2020-09-03 20:25 ` [PATCH 1/9] dmaengine: axi-dmac: Drop local dma_parms Robin Murphy
2020-09-03 20:25 ` [PATCH 2/9] dmaengine: bcm2835: " Robin Murphy
2020-09-03 20:25 ` [PATCH 3/9] dmaengine: imx-dma: " Robin Murphy
2020-09-03 20:25 ` [PATCH 4/9] dmaengine: imx-sdma: " Robin Murphy
2020-09-03 20:25 ` [PATCH 5/9] dmaengine: mxs: " Robin Murphy
2020-09-03 20:25 ` [PATCH 6/9] dmaengine: rcar-dmac: " Robin Murphy
2020-09-03 20:25 ` [PATCH 7/9] dmaengine: ste_dma40: " Robin Murphy
2020-09-03 20:25 ` [PATCH 8/9] dmaengine: qcom: bam_dma: " Robin Murphy
2020-09-03 20:25 ` Robin Murphy [this message]
2020-09-11 12:12 ` [PATCH 0/9] dmaengine: Tidy up dma_parms Vinod Koul

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=c9e58882e33f22f9b0a6d65a5507e24004512148.1599164692.git.robin.murphy@arm.com \
    --to=robin.murphy@arm.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=vkoul@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).