kernel_samsung_a53x/drivers/scsi/hisi_sas
Yihang Li 1560c592a8 scsi: hisi_sas: Replace with standard error code return value
[ Upstream commit d34ee535705eb43885bc0f561c63046f697355ad ]

In function hisi_sas_controller_prereset(), -ENOSYS (Function not
implemented) should be returned if the driver does not support .soft_reset.
Returns -EPERM (Operation not permitted) if HISI_SAS_RESETTING_BIT is
already be set.

In function _suspend_v3_hw(), returns -EPERM (Operation not permitted) if
HISI_SAS_RESETTING_BIT is already be set.

Fixes: 4522204ab218 ("scsi: hisi_sas: tidy host controller reset function a bit")
Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1702525516-51258-3-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:36 +01:00
..
hisi_sas.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hisi_sas_main.c scsi: hisi_sas: Replace with standard error code return value 2024-11-18 12:12:36 +01:00
hisi_sas_v1_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hisi_sas_v2_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hisi_sas_v3_hw.c scsi: hisi_sas: Replace with standard error code return value 2024-11-18 12:12:36 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00