From: vinod.koul@intel.com (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [RESEND PATCH v4 1/3] dmaengine: vdma: Add config structure to differentiate dmas
Date: Thu, 12 May 2016 21:39:50 +0530 [thread overview]
Message-ID: <20160512160950.GF2274@localhost> (raw)
In-Reply-To: <1463046228-21651-2-git-send-email-appanad@xilinx.com>
On Thu, May 12, 2016 at 03:13:46PM +0530, Kedareswara rao Appana wrote:
> This patch adds config structure in the driver to differentiate
> AXI DMA's and to add more features(clock support etc..) to these DMA's.
>
> Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
> ---
> drivers/dma/xilinx/xilinx_vdma.c | 83 ++++++++++++++++++++++++----------------
> 1 file changed, 51 insertions(+), 32 deletions(-)
>
> diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c
> index 626939b..1d50e05 100644
> --- a/drivers/dma/xilinx/xilinx_vdma.c
> +++ b/drivers/dma/xilinx/xilinx_vdma.c
> @@ -342,6 +342,10 @@ struct xilinx_dma_chan {
> void (*start_transfer)(struct xilinx_dma_chan *chan);
> };
>
> +struct dma_config {
xilinx_dma_config ?
This makes reader believe that thismight be coething related to dmaengine
core
> static const struct of_device_id xilinx_dma_of_ids[] = {
> - { .compatible = "xlnx,axi-dma-1.00.a",
> - .data = (void *)XDMA_TYPE_AXIDMA },
> - { .compatible = "xlnx,axi-cdma-1.00.a",
> - .data = (void *)XDMA_TYPE_CDMA },
> - { .compatible = "xlnx,axi-vdma-1.00.a",
> - .data = (void *)XDMA_TYPE_VDMA },
> + { .compatible = "xlnx,axi-dma-1.00.a", .data = &axidma_config },
> + { .compatible = "xlnx,axi-cdma-1.00.a", .data = &axicdma_config },
> + { .compatible = "xlnx,axi-vdma-1.00.a", .data = &axivdma_config },
why do we want a struct for this and not pass XDMA_TYPE_xxx as .data
--
~Vinod
WARNING: multiple messages have this Message-ID (diff)
From: Vinod Koul <vinod.koul@intel.com>
To: Kedareswara rao Appana <appana.durga.rao@xilinx.com>
Cc: mark.rutland@arm.com, moritz.fischer@ettus.com,
anirudh@xilinx.com, pawel.moll@arm.com,
ijc+devicetree@hellion.org.uk, svemula@xilinx.com,
michal.simek@xilinx.com, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, robh+dt@kernel.org,
laurent.pinchart@ideasonboard.com, luis@debethencourt.com,
galak@codeaurora.org, dmaengine@vger.kernel.org,
dan.j.williams@intel.com, appanad@xilinx.com,
soren.brinkmann@xilinx.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [RESEND PATCH v4 1/3] dmaengine: vdma: Add config structure to differentiate dmas
Date: Thu, 12 May 2016 21:39:50 +0530 [thread overview]
Message-ID: <20160512160950.GF2274@localhost> (raw)
In-Reply-To: <1463046228-21651-2-git-send-email-appanad@xilinx.com>
On Thu, May 12, 2016 at 03:13:46PM +0530, Kedareswara rao Appana wrote:
> This patch adds config structure in the driver to differentiate
> AXI DMA's and to add more features(clock support etc..) to these DMA's.
>
> Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
> ---
> drivers/dma/xilinx/xilinx_vdma.c | 83 ++++++++++++++++++++++++----------------
> 1 file changed, 51 insertions(+), 32 deletions(-)
>
> diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c
> index 626939b..1d50e05 100644
> --- a/drivers/dma/xilinx/xilinx_vdma.c
> +++ b/drivers/dma/xilinx/xilinx_vdma.c
> @@ -342,6 +342,10 @@ struct xilinx_dma_chan {
> void (*start_transfer)(struct xilinx_dma_chan *chan);
> };
>
> +struct dma_config {
xilinx_dma_config ?
This makes reader believe that thismight be coething related to dmaengine
core
> static const struct of_device_id xilinx_dma_of_ids[] = {
> - { .compatible = "xlnx,axi-dma-1.00.a",
> - .data = (void *)XDMA_TYPE_AXIDMA },
> - { .compatible = "xlnx,axi-cdma-1.00.a",
> - .data = (void *)XDMA_TYPE_CDMA },
> - { .compatible = "xlnx,axi-vdma-1.00.a",
> - .data = (void *)XDMA_TYPE_VDMA },
> + { .compatible = "xlnx,axi-dma-1.00.a", .data = &axidma_config },
> + { .compatible = "xlnx,axi-cdma-1.00.a", .data = &axicdma_config },
> + { .compatible = "xlnx,axi-vdma-1.00.a", .data = &axivdma_config },
why do we want a struct for this and not pass XDMA_TYPE_xxx as .data
--
~Vinod
WARNING: multiple messages have this Message-ID (diff)
From: Vinod Koul <vinod.koul@intel.com>
To: Kedareswara rao Appana <appana.durga.rao@xilinx.com>
Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
michal.simek@xilinx.com, soren.brinkmann@xilinx.com,
dan.j.williams@intel.com, appanad@xilinx.com,
moritz.fischer@ettus.com, laurent.pinchart@ideasonboard.com,
luis@debethencourt.com, svemula@xilinx.com, anirudh@xilinx.com,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org
Subject: Re: [RESEND PATCH v4 1/3] dmaengine: vdma: Add config structure to differentiate dmas
Date: Thu, 12 May 2016 21:39:50 +0530 [thread overview]
Message-ID: <20160512160950.GF2274@localhost> (raw)
In-Reply-To: <1463046228-21651-2-git-send-email-appanad@xilinx.com>
On Thu, May 12, 2016 at 03:13:46PM +0530, Kedareswara rao Appana wrote:
> This patch adds config structure in the driver to differentiate
> AXI DMA's and to add more features(clock support etc..) to these DMA's.
>
> Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
> ---
> drivers/dma/xilinx/xilinx_vdma.c | 83 ++++++++++++++++++++++++----------------
> 1 file changed, 51 insertions(+), 32 deletions(-)
>
> diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c
> index 626939b..1d50e05 100644
> --- a/drivers/dma/xilinx/xilinx_vdma.c
> +++ b/drivers/dma/xilinx/xilinx_vdma.c
> @@ -342,6 +342,10 @@ struct xilinx_dma_chan {
> void (*start_transfer)(struct xilinx_dma_chan *chan);
> };
>
> +struct dma_config {
xilinx_dma_config ?
This makes reader believe that thismight be coething related to dmaengine
core
> static const struct of_device_id xilinx_dma_of_ids[] = {
> - { .compatible = "xlnx,axi-dma-1.00.a",
> - .data = (void *)XDMA_TYPE_AXIDMA },
> - { .compatible = "xlnx,axi-cdma-1.00.a",
> - .data = (void *)XDMA_TYPE_CDMA },
> - { .compatible = "xlnx,axi-vdma-1.00.a",
> - .data = (void *)XDMA_TYPE_VDMA },
> + { .compatible = "xlnx,axi-dma-1.00.a", .data = &axidma_config },
> + { .compatible = "xlnx,axi-cdma-1.00.a", .data = &axicdma_config },
> + { .compatible = "xlnx,axi-vdma-1.00.a", .data = &axivdma_config },
why do we want a struct for this and not pass XDMA_TYPE_xxx as .data
--
~Vinod
next prev parent reply other threads:[~2016-05-12 16:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 9:43 [RESEND PATCH v4 0/3] dmaengine: Add clock support for AXI DMAS Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
2016-05-12 9:43 ` [RESEND PATCH v4 1/3] dmaengine: vdma: Add config structure to differentiate dmas Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
2016-05-12 16:09 ` Vinod Koul [this message]
2016-05-12 16:09 ` Vinod Koul
2016-05-12 16:09 ` Vinod Koul
2016-05-12 16:09 ` Appana Durga Kedareswara Rao
2016-05-12 16:09 ` Appana Durga Kedareswara Rao
2016-05-12 16:09 ` Appana Durga Kedareswara Rao
2016-05-12 9:43 ` [RESEND PATCH v4 2/3] Documentation: DT: vdma: Add clock support for dmas Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
2016-05-12 9:43 ` [RESEND PATCH v4 3/3] dmaengine: vdma: Add clock support Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
2016-05-12 9:43 ` Kedareswara rao Appana
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=20160512160950.GF2274@localhost \
--to=vinod.koul@intel.com \
--cc=linux-arm-kernel@lists.infradead.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 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.