Merge "allow standby function in the DRAINING and TRANSFERRING states" into main