* [PATCH 4/8]usb: musb: HWMOD database structures fixes OMAP4
@ 2010-08-06 15:57 Hema HK
2010-08-09 11:52 ` Cousson, Benoit
0 siblings, 1 reply; 3+ messages in thread
From: Hema HK @ 2010-08-06 15:57 UTC (permalink / raw)
To: linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA
Cc: Hema HK, Felipe Balbi, Tony Lindgren, Kevin Hilman
From: Hema HK <hemahk-l0cyMroinI0@public.gmane.org>
Fixed the missing sysc settings for OMAP4 and enabled the OMAP4
hwmod data structure.
Signed-off-by: Hema HK <hemahk-l0cyMroinI0@public.gmane.org>
Cc: Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
Cc: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: Kevin Hilman <khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
---
Index: linux-omap-pm/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
===================================================================
--- linux-omap-pm.orig/arch/arm/mach-omap2/omap_hwmod_44xx_data.c 2010-08-06 08:31:45.885868560 -0400
+++ linux-omap-pm/arch/arm/mach-omap2/omap_hwmod_44xx_data.c 2010-08-06 08:35:41.250112281 -0400
@@ -4516,8 +4516,15 @@
*/
static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
- .sysc_flags = SYSS_MISSING,
- .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
+
+ .rev_offs = 0x0400,
+ .sysc_offs = 0x0404,
+ .syss_offs = 0x0408,
+ .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
+ SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
+ SYSC_HAS_AUTOIDLE,
+ .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART,
+ .sysc_fields = &omap_hwmod_sysc_type1,
};
static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
@@ -4884,7 +4891,7 @@
/* usb_host_hs class */
/* &omap44xx_usb_host_hs_hwmod, */
/* usb_otg_hs class */
-/* &omap44xx_usb_otg_hs_hwmod, */
+ &omap44xx_usb_otg_hs_hwmod,
/* usb_tll_hs class */
/* &omap44xx_usb_tll_hs_hwmod, */
/* wd_timer class */
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 4/8]usb: musb: HWMOD database structures fixes OMAP4
2010-08-06 15:57 [PATCH 4/8]usb: musb: HWMOD database structures fixes OMAP4 Hema HK
@ 2010-08-09 11:52 ` Cousson, Benoit
[not found] ` <4C5FEBE4.1060707-l0cyMroinI0@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Cousson, Benoit @ 2010-08-09 11:52 UTC (permalink / raw)
To: Kalliguddi, Hema
Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org,
Felipe Balbi, Tony Lindgren, Kevin Hilman
Hi Hema,
On 8/6/2010 5:57 PM, Kalliguddi, Hema wrote:
> From: Hema HK<hemahk@ti.com>
>
> Fixed the missing sysc settings for OMAP4 and enabled the OMAP4
> hwmod data structure.
>
> Signed-off-by: Hema HK<hemahk@ti.com>
> Cc: Felipe Balbi<felipe.balbi@nokia.com>
> Cc: Tony Lindgren<tony@atomide.com>
> Cc: Kevin Hilman<khilman@deeprootsystems.com>
It is a good practice, if not mandatory, to CC the authors of the file
you are modifying with your patch.
Neither Paul, nor myself are in CC of this patch. Could you please add
us to this one and the other ones when applicable?
> ---
>
> Index: linux-omap-pm/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
> ===================================================================
> --- linux-omap-pm.orig/arch/arm/mach-omap2/omap_hwmod_44xx_data.c 2010-08-06 08:31:45.885868560 -0400
> +++ linux-omap-pm/arch/arm/mach-omap2/omap_hwmod_44xx_data.c 2010-08-06 08:35:41.250112281 -0400
> @@ -4516,8 +4516,15 @@
> */
>
> static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
> - .sysc_flags = SYSS_MISSING,
> - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
> +
> + .rev_offs = 0x0400,
> + .sysc_offs = 0x0404,
> + .syss_offs = 0x0408,
> + .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
> + SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
> + SYSC_HAS_AUTOIDLE,
> + .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART,
> + .sysc_fields =&omap_hwmod_sysc_type1,
> };
This part if fine except the missing MIDLE_XXX modes. Here is the
modified version using the same convention as other modules:
> static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
> - .sysc_flags = SYSS_MISSING,
> - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
> + .rev_offs = 0x0400,
> + .sysc_offs = 0x0404,
> + .syss_offs = 0x0408,
> + .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
> + SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
> + SYSC_HAS_SOFTRESET),
> + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
> + MSTANDBY_FORCE | MSTANDBY_NO |
MSTANDBY_SMART),
> + .sysc_fields = &omap_hwmod_sysc_type1,
> };
I don't have any preference for the parens, but in order to be
consistent with the already existing hwmods, let's keep them.
Regards,
Benoit
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 4/8]usb: musb: HWMOD database structures fixes OMAP4
[not found] ` <4C5FEBE4.1060707-l0cyMroinI0@public.gmane.org>
@ 2010-08-10 5:12 ` Kalliguddi, Hema
0 siblings, 0 replies; 3+ messages in thread
From: Kalliguddi, Hema @ 2010-08-10 5:12 UTC (permalink / raw)
To: Cousson, Benoit
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Felipe Balbi,
Tony Lindgren, Kevin Hilman
Hi,
>-----Original Message-----
>From: Cousson, Benoit
>Sent: Monday, August 09, 2010 5:22 PM
>To: Kalliguddi, Hema
>Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org;
>Felipe Balbi; Tony Lindgren; Kevin Hilman
>Subject: Re: [PATCH 4/8]usb: musb: HWMOD database structures
>fixes OMAP4
>
>Hi Hema,
>
>On 8/6/2010 5:57 PM, Kalliguddi, Hema wrote:
>> From: Hema HK<hemahk-l0cyMroinI0@public.gmane.org>
>>
>> Fixed the missing sysc settings for OMAP4 and enabled the OMAP4
>> hwmod data structure.
>>
>> Signed-off-by: Hema HK<hemahk-l0cyMroinI0@public.gmane.org>
>> Cc: Felipe Balbi<felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
>> Cc: Tony Lindgren<tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
>> Cc: Kevin Hilman<khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
>
>It is a good practice, if not mandatory, to CC the authors of the file
>you are modifying with your patch.
>Neither Paul, nor myself are in CC of this patch. Could you please add
>us to this one and the other ones when applicable?
It is mistake of not CCing the owner. I will take care of it.
>
>> ---
>>
>> Index: linux-omap-pm/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
>> ===================================================================
>> ---
>linux-omap-pm.orig/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
>2010-08-06 08:31:45.885868560 -0400
>> +++ linux-omap-pm/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
>2010-08-06 08:35:41.250112281 -0400
>> @@ -4516,8 +4516,15 @@
>> */
>>
>> static struct omap_hwmod_class_sysconfig
>omap44xx_usb_otg_hs_sysc = {
>> - .sysc_flags = SYSS_MISSING,
>> - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
>> +
>> + .rev_offs = 0x0400,
>> + .sysc_offs = 0x0404,
>> + .syss_offs = 0x0408,
>> + .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
>> + SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
>> + SYSC_HAS_AUTOIDLE,
>> + .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART,
>> + .sysc_fields =&omap_hwmod_sysc_type1,
>> };
>
>This part if fine except the missing MIDLE_XXX modes. Here is the
>modified version using the same convention as other modules:
OK. I will add it.
>
> > static struct omap_hwmod_class_sysconfig
>omap44xx_usb_otg_hs_sysc = {
> > - .sysc_flags = SYSS_MISSING,
> > - .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
> > + .rev_offs = 0x0400,
> > + .sysc_offs = 0x0404,
> > + .syss_offs = 0x0408,
> > + .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
> > + SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
> > + SYSC_HAS_SOFTRESET),
> > + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
> > + MSTANDBY_FORCE | MSTANDBY_NO |
>MSTANDBY_SMART),
> > + .sysc_fields = &omap_hwmod_sysc_type1,
> > };
>
>I don't have any preference for the parens, but in order to be
>consistent with the already existing hwmods, let's keep them.
There was comment from Sergie to remove the parens for omap3 database. So I have removed.
>
>Regards,
>Benoit
>--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-10 5:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-06 15:57 [PATCH 4/8]usb: musb: HWMOD database structures fixes OMAP4 Hema HK
2010-08-09 11:52 ` Cousson, Benoit
[not found] ` <4C5FEBE4.1060707-l0cyMroinI0@public.gmane.org>
2010-08-10 5:12 ` Kalliguddi, Hema
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).