[PATCH] cadence_qspi: Refactor the flash reset functionality