[U-Boot] [PATCH v3 02/10] armv7: add miscellaneous utility macros

Aneesh V
2011-06-01T06:01:48Z

Hi Simon,

On Wednesday 01 June 2011 07:43 AM, Simon Glass wrote:
> On Tue, May 31, 2011 at 12:54 AM, V, Aneesh<aneesh@ti.com> wrote:
>> Hi Wolfgang,
>>
>> On Tue, May 17, 2011 at 2:57 PM, Wolfgang Denk<wd@denx.de> wrote:
>>> Dear Aneesh V,
>>>
>>> In message<4DD23561.70105@ti.com> you wrote:
>>>>
>>>> In fact I had searched for a macro for similar needs as my
>>>> set_bit_field() is addressing in Linux Kernel too but didn't find any.
>>> ...
>>>> I couldn't find any utility macros/functions for doing something like
>>>> this.
>>>>
>>>> Please somebody correct me if I am wrong.
>>>
>>> I am not aware of such a functionality in the Linux kernel, either.
>>>
>>> A quick search did not even show any attempts to introduce such macros
>>> to Linux. It appears they don't need such a feature ?
>>
>> Wolfgang, what's your final take on this. Can I continue to use the utility
>> macros given that I don't have any 'standard' alternative. For register
>> accesses I shall move to setclrbits*() macros that you had suggested.
>> But for bit operations I do not have any alternatives.
>>
>> best regards,
>> Aneesh
>>
>
> Hi Aneesh,
>
> If it helps, I will email a cleaned up bitfield patch to the list
> tomorrow. I hoping that it will get a warm reception :-)

Thanks. That's great news at least for me.

best regards,
Aneesh