Hey Guys,
In connection with deep sleep for the dm365, I am having an issue with vpfe_suspend(). Originally I had no support for vpfe_suspend, so I used part of the following patch http://osdir.com/ml/linux-media/2009-11/msg00807.html which is actually for the dm644x. I did not use the ccdc_save_context() and ccdc_restore_context() functions, as they seemed to not do anything (i.e. after ccdc_save_context, I printed the registers and they were all zero). So regardless of whether I used the ccdc_save/restore_context functions, I still experienced a different issue.
The issue is, when vpfe_suspend is called, it calls vpfe_disable_clock(vpfe_dev), which calls clk_disable(vpfe_dev->clks[i]). At this point, where the clock is being disabled, the processor sometimes hangs. Because the issue is not consistent, it makes it more difficult to debug and hence fix.
Any help will be much appreciated.
Regards
Arshad