scsi: hisi_sas: use true/false as input parameter of sas_phy_reset()
driver inclusion category: bugfix bugzilla: NA CVE: NA When calling sas_phy_reset(), we need to specify whether the reset type is hard reset or link reset. In the code we use two numbers: 0 and 1. In fact, we can't immediately determine whether these two numbers is a normal number or true/false. Therefore, we use true/false to replace 1/0. When set true, it mean we will run hardreset; When false, we don't run hardreset this time, which mean that we will run linkreset. Feature or Bugfix: Bugfix Signed-off-by: NJiaxing Luo <luojiaxing@huawei.com> Signed-off-by: NJohn Garry <john.garry@huawei.com> Signed-off-by: Nluojiaxing <luojiaxing@huawei.com> Reviewed-by: Nchenxiang <chenxiang66@hisilicon.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录