In reply to Swasti101:
Hi,
The code for reset phase is correct. When run_phase is called it executes the reset, configure, main and shutdown in sequential order, and pre and post are there for each of them, for support if any. Why you want to wait for the reset phase?