From: Samuel Ortiz <sameo@linux.intel.com>
To: "Richard Röjfors" <richard.rojfors@pelagicore.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] mfd: timberdale: Use DMA for ks8842
Date: Mon, 27 Sep 2010 12:32:35 +0200 [thread overview]
Message-ID: <20100927103234.GD2560@sortiz-mobl> (raw)
In-Reply-To: <1284562164.23817.8.camel@debian>
Hi Richard,
On Wed, Sep 15, 2010 at 04:49:24PM +0200, Richard Röjfors wrote:
> This patch defines platform data for the ks8842 int the timberdale
> MFD.
> The platform data contains DMA channels to be used by the driver.
Patch applied, thanks.
You may want to rebase your video-in patches so that Mauro will be able to
apply them cleanly.
Cheers,
Samuel.
> Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
> ---
> diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c
> index ac59950..727f62c 100644
> --- a/drivers/mfd/timberdale.c
> +++ b/drivers/mfd/timberdale.c
> @@ -43,6 +43,8 @@
>
> #include <linux/timb_dma.h>
>
> +#include <linux/ks8842.h>
> +
> #include "timberdale.h"
>
> #define DRIVER_NAME "timberdale"
> @@ -161,6 +163,12 @@ static const __devinitconst struct resource timberdale_spi_resources[] = {
> },
> };
>
> +static __devinitdata struct ks8842_platform_data
> + timberdale_ks8842_platform_data = {
> + .rx_dma_channel = DMA_ETH_RX,
> + .tx_dma_channel = DMA_ETH_TX
> +};
> +
> static const __devinitconst struct resource timberdale_eth_resources[] = {
> {
> .start = ETHOFFSET,
> @@ -389,6 +397,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = {
> .name = "ks8842",
> .num_resources = ARRAY_SIZE(timberdale_eth_resources),
> .resources = timberdale_eth_resources,
> + .platform_data = &timberdale_ks8842_platform_data,
> + .data_size = sizeof(timberdale_ks8842_platform_data)
> },
> };
>
> @@ -447,6 +457,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = {
> .name = "ks8842",
> .num_resources = ARRAY_SIZE(timberdale_eth_resources),
> .resources = timberdale_eth_resources,
> + .platform_data = &timberdale_ks8842_platform_data,
> + .data_size = sizeof(timberdale_ks8842_platform_data)
> },
> };
>
> @@ -538,6 +550,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = {
> .name = "ks8842",
> .num_resources = ARRAY_SIZE(timberdale_eth_resources),
> .resources = timberdale_eth_resources,
> + .platform_data = &timberdale_ks8842_platform_data,
> + .data_size = sizeof(timberdale_ks8842_platform_data)
> },
> };
>
>
--
Intel Open Source Technology Centre
http://oss.intel.com/
prev parent reply other threads:[~2010-09-27 10:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-15 14:49 [PATCH] mfd: timberdale: Use DMA for ks8842 Richard Röjfors
2010-09-27 10:32 ` Samuel Ortiz [this message]
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=20100927103234.GD2560@sortiz-mobl \
--to=sameo@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=richard.rojfors@pelagicore.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.