[RFC] using amba_pl08x driver for s3c64xx SoCs

Linus Walleij linus.walleij at linaro.org
Thu Aug 11 11:04:18 EDT 2011


On Mon, Aug 8, 2011 at 6:51 AM, Alim Akhtar <alim.akhtar at gmail.com> wrote:

> static int pl08x_phy_channel_busy(struct pl08x_phy_chan *ch)
> {
>        struct pl08x_dma_chan *plchan = ch->serving;
>        struct pl08x_driver_data *pl08x;
>        unsigned int val;
>
>        if(plchan == NULL)
>                return false;
>
>        pl08x = plchan->host;
>
>        if(pl08x->vd->is_pl080_s3c)
>                val = readl(ch->base + PL080S_CH_CONFIG);
>        else
>                val = readl(ch->base + PL080_CH_CONFIG);
>
>        return val & PL080_CONFIG_ACTIVE;
> }

Aha, that's the bug :-)

Acked-by.

Thanks,
Linus Walleij



More information about the linux-arm-kernel mailing list