RE: [PATCH v2] OMAP2+: PM: omap_device: API for set/get MSTANDBY mode

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

 



Hi Paul,

> -----Original Message-----
> From: Paul Walmsley [mailto:paul@xxxxxxxxx] 
> Sent: Thursday, November 11, 2010 4:45 AM
> To: G, Manjunath Kondaiah
> Cc: linux-omap@xxxxxxxxxxxxxxx; Kevin Hilman; Gadiyar, Anand; 
> Cousson, Benoit
> Subject: Re: [PATCH v2] OMAP2+: PM: omap_device: API for 
> set/get MSTANDBY mode
> 
> Hello Manju,
[...]

> Nice patch description.  A few comments:
> 
> 1.  Is it the case that the MSTANDBYMODE only needs to switch between 
> (smart standby/force standby) and no standby?  Or will it 
> need to switch 
> between all three?

Requirement is - switch to no standby for short time and should be
reverted back to original standby mode. 
All the combinations are not required.

> 
> 2.  Rather than just using a single omap_device_mstandby() 
> function call, 
> I'd rather see something like omap_device_require_no_standby() and 
> omap_device_release_no_standby(). 

s/standby/mstandby ?
 
> omap_device_require_no_standby() would 
> force the initiator port into no-standby.  
> omap_device_release_no_standby() would return the initiator port 
> MSTANDBYMODE to whatever the state should be (this depends on whether 
> HWMOD_SWSUP_MSTDBY is set). 
 
How do we get previous stand by state in this API since standby mode is 
changed with "omap_device_require_no_standby"

> I'd rather not have the drivers 
> manage the 
> contents of the MSTANDBYMODE bits directly.  Then you should 
> be able to 
> drop _get_master_standbymode() and 
> omap_hwmod_get_master_idlemode() also.  
> Can you please make these changes?
> 
> 3. I have a few other comments below:
> 
> > 
> > Signed-off-by: G, Manjunath Kondaiah <manjugk@xxxxxx>
[...]
> > +int omap_hwmod_set_master_standbymode(struct omap_hwmod 
> *oh, u32 midlemode)
> > +{
> > +	u32 v;
> > +	int retval = 0;
> > +
> > +	if (!oh)
> > +		return -EINVAL;
> > +
> 
> I guess this needs to take the hwmod's mutex.
ok.
> 
> > +	v = oh->_sysc_cache;
> > +
> > +	retval = _set_master_standbymode(oh, midlemode, &v);
> > +	if (!retval)
> > +		_write_sysconfig(v, oh);
> 
> And release it here.
ok.

-Manjunath
--
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