All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benoit Cousson <b-cousson@ti.com>
To: "Govindraj.R" <govindraj.raja@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	Kevin Hilman <khilman@deeprootsystems.com>
Subject: Re: [pm-wip/uart][PATCH 3/6] Serial: Modify OMAP3 hwmod data file with      uart data.
Date: Mon, 24 May 2010 23:39:19 +0200	[thread overview]
Message-ID: <4BFAF207.9030509@ti.com> (raw)
In-Reply-To: <48121.192.168.10.88.1274362717.squirrel@dbdmail.itg.ti.com>

Hi Govindraj,

On 5/20/2010 3:38 PM, Govindraj.R wrote:
>
> With this patch we retain uart name and just "uart"
> rather than uart_hwmod as per autogenerated file for
> omap4 just to retain common names across hwmod data files.
> Also pass rx channel id as first dma platform parameter
> to driver.

Why do you need to change the order of the DMA channels?
They are supposed to be queried using the name, not by position.
The point is that I'm not taking care of the position during the
OMAP4 generation, so you should not rely on that.

Thanks,
Benoit


> Cc: Kevin Hilman<khilman@deeprootsystems.com>
> Signed-off-by: Govindraj.R<govindraj.raja@ti.com>
> ---
>   arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   12 ++++++------
>   arch/arm/mach-omap2/serial.c               |    2 +-
>   2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
> index 079a65e..580ca5b 100644
> --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
> +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
> @@ -350,8 +350,8 @@ static struct omap_hwmod_irq_info uart1_mpu_irqs[] = {
>   };
>
>   static struct omap_hwmod_dma_info uart1_sdma_chs[] = {
> -	{ .name = "tx",	.dma_ch = OMAP24XX_DMA_UART1_TX, },
>   	{ .name = "rx",	.dma_ch = OMAP24XX_DMA_UART1_RX, },
> +	{ .name = "tx",	.dma_ch = OMAP24XX_DMA_UART1_TX, },
>   };
>
>   static struct omap_hwmod_ocp_if *omap3xxx_uart1_slaves[] = {
> @@ -359,7 +359,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_uart1_slaves[] = {
>   };
>
>   static struct omap_hwmod omap3xxx_uart1_hwmod = {
> -	.name		= "uart1_hwmod",
> +	.name		= "uart1",
>   	.mpu_irqs	= uart1_mpu_irqs,
>   	.mpu_irqs_cnt	= ARRAY_SIZE(uart1_mpu_irqs),
>   	.sdma_chs	= uart1_sdma_chs,
> @@ -384,8 +384,8 @@ static struct omap_hwmod_irq_info uart2_mpu_irqs[] = {
>   };
>
>   static struct omap_hwmod_dma_info uart2_sdma_chs[] = {
> -	{ .name = "tx",	.dma_ch = OMAP24XX_DMA_UART2_TX, },
>   	{ .name = "rx",	.dma_ch = OMAP24XX_DMA_UART2_RX, },
> +	{ .name = "tx",	.dma_ch = OMAP24XX_DMA_UART2_TX, },
>   };
>
>   static struct omap_hwmod_ocp_if *omap3xxx_uart2_slaves[] = {
> @@ -393,7 +393,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_uart2_slaves[] = {
>   };
>
>   static struct omap_hwmod omap3xxx_uart2_hwmod = {
> -	.name		= "uart2_hwmod",
> +	.name		= "uart2",
>   	.mpu_irqs	= uart2_mpu_irqs,
>   	.mpu_irqs_cnt	= ARRAY_SIZE(uart2_mpu_irqs),
>   	.sdma_chs	= uart2_sdma_chs,
> @@ -418,8 +418,8 @@ static struct omap_hwmod_irq_info uart3_mpu_irqs[] = {
>   };
>
>   static struct omap_hwmod_dma_info uart3_sdma_chs[] = {
> -	{ .name = "tx",	.dma_ch = OMAP24XX_DMA_UART3_TX, },
>   	{ .name = "rx",	.dma_ch = OMAP24XX_DMA_UART3_RX, },
> +	{ .name = "tx",	.dma_ch = OMAP24XX_DMA_UART3_TX, },
>   };
>
>   static struct omap_hwmod_ocp_if *omap3xxx_uart3_slaves[] = {
> @@ -427,7 +427,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_uart3_slaves[] = {
>   };
>
>   static struct omap_hwmod omap3xxx_uart3_hwmod = {
> -	.name		= "uart3_hwmod",
> +	.name		= "uart3",
>   	.mpu_irqs	= uart3_mpu_irqs,
>   	.mpu_irqs_cnt	= ARRAY_SIZE(uart3_mpu_irqs),
>   	.sdma_chs	= uart3_sdma_chs,
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index 7d0dc3a..9b71c1e 100644
> --- a/arch/arm/mach-omap2/serial.c
> +++ b/arch/arm/mach-omap2/serial.c
> @@ -578,7 +578,7 @@ void __init omap_serial_early_init(void)
>   		struct omap_uart_state *uart;
>
>   		snprintf(oh_name, MAX_UART_HWMOD_NAME_LEN,
> -			 "uart%d_hwmod", i + 1);
> +			 "uart%d", i + 1);
>   		oh = omap_hwmod_lookup(oh_name);
>   		if (!oh)
>   			break;


  reply	other threads:[~2010-05-24 21:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 13:38 [pm-wip/uart][PATCH 3/6] Serial: Modify OMAP3 hwmod data file with uart data Govindraj.R
2010-05-24 21:39 ` Benoit Cousson [this message]
2010-05-25 13:02   ` Govindraj

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=4BFAF207.9030509@ti.com \
    --to=b-cousson@ti.com \
    --cc=govindraj.raja@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.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 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.