public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [query] smartreflex: No PMIC hook to init smartreflex
@ 2011-01-25 15:25 Premi, Sanjeev
  2011-01-27  9:35 ` Menon, Nishanth
  0 siblings, 1 reply; 7+ messages in thread
From: Premi, Sanjeev @ 2011-01-25 15:25 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

Hi,

While building the kernel at 2.6.37, i see this warning for omap3evm - with omap3630:

Power Management for TI OMAP3.
sr_init: No PMIC hook to init smartreflex <-- THIS IS THE WARNING.
smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
SmartReflex Class3 initialized

In the code, i see this comment:
 /*
  * sr_init is a late init. If by then a pmic specific API is not
  * registered either there is no need for anything to be done on
  * the PMIC side or somebody has forgotten to register a PMIC
  * handler. Warn for the second condition.
  */
 if (sr_pmic_data && sr_pmic_data->sr_pmic_init)
  sr_pmic_data->sr_pmic_init();
 else
  pr_warning("%s: No PMIC hook to init smartreflex\n", __func__);

But, I couldn't find any place where PMIC is being registered.

premi # grep register_pmic *.c
omap_twl.c:     omap_voltage_register_pmic(voltdm, &omap4_mpu_volt_info);
omap_twl.c:     omap_voltage_register_pmic(voltdm, &omap4_iva_volt_info);
omap_twl.c:     omap_voltage_register_pmic(voltdm, &omap4_core_volt_info);
omap_twl.c:     omap_voltage_register_pmic(voltdm, &omap3_mpu_volt_info);
omap_twl.c:     omap_voltage_register_pmic(voltdm, &omap3_core_volt_info);
smartreflex.c: * omap_sr_register_pmic() - API to register pmic specific info.
smartreflex.c:void omap_sr_register_pmic(struct omap_sr_pmic_data *pmic_data)
voltage.c: * omap_voltage_register_pmic() - API to register PMIC specific data
voltage.c:int omap_voltage_register_pmic(struct voltagedomain *voltdm,

Where can I look for an example of registration?

~sanjeev

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-01  4:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25 15:25 [query] smartreflex: No PMIC hook to init smartreflex Premi, Sanjeev
2011-01-27  9:35 ` Menon, Nishanth
2011-01-27 14:07   ` Gulati, Shweta
2011-01-27 14:25   ` Vishwanath Sripathy
2011-01-27 16:53     ` Nishanth Menon
2011-01-31 16:20     ` Premi, Sanjeev
2011-02-01  4:50       ` Gulati, Shweta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox