[Top] [All Lists]

Re: [PATCH V3 06/10] MIPS: lantiq: add NOR flash support

To: Sergei Shtylyov <>
Subject: Re: [PATCH V3 06/10] MIPS: lantiq: add NOR flash support
From: John Crispin <>
Date: Fri, 04 Mar 2011 21:13:00 +0100
Cc: Ralf Baechle <>, Ralph Hempel <>, David Woodhouse <>, Daniel Schwierzeck <>,,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100913 Icedove/3.0.7

>> +    if (ltq_mtd_probing)
>> +        adr ^= 2;
>> +    spin_lock_irqsave(&ebu_lock, flags);
>> +    temp.x[0] = *((__u16 *)(map->virt + adr));
>> +    spin_unlock_irqrestore(&ebu_lock, flags);
>    Hm, what does this lock gain, if the read is atomic anyway?

the SoC has a hardware arbitor for the EBU. I have so far not been able
to activate it properly and the lock is needed to protect from PCI and
NOR i/o clashing with eachother. i know that the arbitor works when
using lantiqs 2.6.28. i will provide a follow up patch once i figured
how to bring up the arbitor properly. until that time we need to use the


<Prev in Thread] Current Thread [Next in Thread>