for PS error logic for EC
Merge pull request #810 from huili2/ps_error_logic_ec

for PS error logic for EC