[Linuxarm] [PATCH for-next 3/5] RDMA/hns: Refactor reset state checking flow