Re: [PATCH] dma: imx-dma: Fix kernel crash due to missing clockconversion

From: Sascha Hauer
Date: Wed Jul 04 2012 - 03:06:44 EST


On Tue, Jul 03, 2012 at 03:33:29PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@xxxxxxxxx>
>
> With the new i.MX clock infrastructure we need to request the dma clocks
> seperately: ahb and ipg clocks.
>
> This fixes the following kernel crash and make audio to be functional again:
>
>
> Reported-by: Javier Martin <javier.martin@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>

One minor comment inside, should you have to resend this, please
consider addressing it. Otherwise:

Acked-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

> ---
> drivers/dma/imx-dma.c | 36 +++++++++++++++++++++++++-----------
> 1 files changed, 25 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
> index fcfeb3c..5084975 100644
> --- a/drivers/dma/imx-dma.c
> +++ b/drivers/dma/imx-dma.c
> @@ -172,7 +172,8 @@ struct imxdma_engine {
> struct device_dma_parameters dma_parms;
> struct dma_device dma_device;
> void __iomem *base;
> - struct clk *dma_clk;
> + struct clk *dma_ahb;
> + struct clk *dma_ipg;

I would prefer the names 'clk_*' so that it's a bit more obvious what
these are.

Sascha

--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/