[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdaz9g7cRc1rAMHUzRbLcrYtB-kPCB6bFEMYZxxmWfLNSg@mail.gmail.com>
Date: Wed, 11 Apr 2012 09:59:25 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Viresh Kumar <viresh.kumar@...com>
Cc: Vinod Koul <vinod.koul@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Dan Williams <dan.j.williams@...el.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Russell King <linux@....linux.org.uk>,
Alim Akhtar <alim.akhtar@...il.com>
Subject: Re: [PATCH 2/2] dma/amba-pl08x: add support for the Nomadik variant
On Tue, Apr 10, 2012 at 5:43 AM, Viresh Kumar <viresh.kumar@...com> wrote:
> On 4/10/2012 2:23 AM, Linus Walleij wrote:
>> + val = readl(ch->base + PL080_CH_CONFIG);
>> + if (val & (PL080N_CONFIG_ITPROT | PL080N_CONFIG_SECPROT)) {
>> + dev_info(&adev->dev, "physical channel %d reserved "
>> + "for secure access only\n", i);
>
> Better not to break the print string. Go beyond 80 columns.
OK
>> + ch->locked = true;
>> + } else
>> + ch->locked = false;
>> + }
>> +
>
> Memory for ch is allocated with kmalloc and so its default value is garbage.
> So we must set locked to false in else part here.
Hm maybe better to kzalloc() the channel structs?
>> @@ -2036,9 +2069,9 @@ static struct amba_id pl08x_ids[] = {
>> },
>> /* Nomadik 8815 PL080 variant */
>> {
>> - .id = 0x00280880,
>> + .id = 0x00280080,
>
> Has this changed? How it worked earlier?
Never worked until now. It was based on incorrect data sheets...
I'll send a V2 ASAP.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists