Here are some miscellaneous cleanups and fixes for the hns driver, including refactor, some newly added checks and so on. Previous discussion: v2: https://patchwork.kernel.org/cover/11765125/ v1: https://patchwork.kernel.org/cover/11761647/ Changes since v2: Fix some issuses according to Jason's comments. - Change 'unlikely' to 'WARN_ON' and remove prints when getting illegal opcodes. - Drop patch #2 from v1 because the newly added check is meaningless for sparse. - Add fixes tag for patch #3 ~ #5. - Change '1 << PAGE_SHIFT' to 'PAGE_SIZE' in patch #6. Changes since v1: - Fix a missing assignment of owner_bit in set_rc_wqe() Jiaran Zhang (2): RDMA/hns: Add check for the validity of sl configuration RDMA/hns: Solve the overflow of the calc_pg_sz() Lang Cheng (1): RDMA/hns: Correct typo of hns_roce_create_cq() Weihang Li (3): RDMA/hns: Refactor process about opcode in post_send() RDMA/hns: Fix configuration of ack_req_freq in QPC RDMA/hns: Fix missing sq_sig_type when querying QP Wenpeng Liang (1): RDMA/hns: Fix the wrong value of rnr_retry when querying qp Yangyang Li (1): RDMA/hns: Add interception for resizing SRQs drivers/infiniband/hw/hns/hns_roce_cq.c | 2 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 178 ++++++++++++++++++----------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 2 + 3 files changed, 114 insertions(+), 68 deletions(-) -- 2.8.1