Message ID | 20130219183420.GA6851@arwen.pp.htv.fi (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index e065daa..58de594 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c @@ -354,6 +354,13 @@ static int omap_device_build_from_dt(struct platform_device *pdev) goto odbfd_exit1; } hwmods[i] = oh; + + /* + * reset all hwmods early on, but even if it fails to reset + * let it go through, driver might still be able to recover. + */ + ret = omap_hwmod_reset(oh); + WARN(ret < 0, "%s failed to reset\n", oh->name); } od = omap_device_alloc(pdev, hwmods, oh_cnt, NULL, 0);