RE: [PATCH] OMAP: HWMOD: Bug fixes in hwmod structure definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>>-----Original Message-----
>>From: Paul Walmsley [mailto:paul@xxxxxxxxx]
>>Sent: Friday, February 19, 2010 2:20 AM
>>To: Gopinath, Thara
>>Cc: linux-omap@xxxxxxxxxxxxxxx
>>Subject: Re: [PATCH] OMAP: HWMOD: Bug fixes in hwmod structure definitions
>>
>>Hello Thara,
>>
>>some comments.
>>
>>On Thu, 18 Feb 2010, Thara Gopinath wrote:
>>
>>> This patch corrects the width of some variables in hwmod structures
>>> where the values to be stored in these variables exceed the current
>>> field width.
>>>
>>> Signed-off-by: Thara Gopinath <thara@xxxxxx>
>>> Cc: Paul Walmsley <paul@xxxxxxxxx>
>>> ---
>>>  arch/arm/plat-omap/include/plat/omap_hwmod.h |    6 +++---
>>>  1 files changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-
>>omap/include/plat/omap_hwmod.h
>>> index 921990e..06a7f20 100644
>>> --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h
>>> +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h
>>> @@ -258,7 +258,7 @@ struct omap_hwmod_sysconfig {
>>>  	u16 sysc_offs;
>>>  	u16 syss_offs;
>>>  	u8 idlemodes;
>>> -	u8 sysc_flags;
>>> +	u16 sysc_flags;
>>
>>This part is fine.
>>
>>>  	u8 clockact;
>>>  };
>>>
>>> @@ -280,9 +280,9 @@ struct omap_hwmod_sysconfig {
>>>  struct omap_hwmod_omap2_prcm {
>>>  	s16 module_offs;
>>>  	u8 prcm_reg_id;
>>> -	u8 module_bit;
>>> +	u32 module_bit;
>>>  	u8 idlest_reg_id;
>>> -	u8 idlest_idle_bit;
>>> +	u32 idlest_idle_bit;
>>>  	u8 idlest_stdby_bit;
>>>  };
>>
>>This part I don't understand.  These are bit shifts in a 32 bit register,
>>e.g., (1 << idlest_idle_bit), so how could these ever exceed 31?

Hi Paul,

Oh... ok. I was under the impression these bits are to be assigned the value
1 << shift.. My bad.. Do you want me to re sumbmit the patch with just the
first fix.

Regards
Thara

>>
>>
>>- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux