diff options
author | Jie Zhan <zhanjie9@hisilicon.com> | 2022-11-18 16:37:12 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-25 11:25:39 +0100 |
commit | 8ec73f41504b924243f3f55af89ad8ac52039c76 (patch) | |
tree | c99c0424a30de03ab59b0efe63b43ca0b87b24c9 /include/scsi | |
parent | 38c5d24d87235f5f047c8d868fc1460544993b8b (diff) | |
download | linux-stable-8ec73f41504b924243f3f55af89ad8ac52039c76.tar.gz linux-stable-8ec73f41504b924243f3f55af89ad8ac52039c76.tar.bz2 linux-stable-8ec73f41504b924243f3f55af89ad8ac52039c76.zip |
scsi: libsas: Add smp_ata_check_ready_type()
[ Upstream commit 9181ce3cb5d96f0ee28246a857ca651830fa3746 ]
Create function smp_ata_check_ready_type() for LLDDs to wait for SATA
devices to come up after a link reset.
Signed-off-by: Jie Zhan <zhanjie9@hisilicon.com>
Link: https://lore.kernel.org/r/20221118083714.4034612-4-zhanjie9@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 3c2673a09cf1 ("scsi: hisi_sas: Fix SATA devices missing issue during I_T nexus reset")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/sas_ata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/sas_ata.h b/include/scsi/sas_ata.h index a1df4f9d57a3..ec646217e7f6 100644 --- a/include/scsi/sas_ata.h +++ b/include/scsi/sas_ata.h @@ -35,6 +35,7 @@ void sas_ata_end_eh(struct ata_port *ap); int sas_execute_ata_cmd(struct domain_device *device, u8 *fis, int force_phy_id); int sas_ata_wait_after_reset(struct domain_device *dev, unsigned long deadline); +int smp_ata_check_ready_type(struct ata_link *link); #else @@ -98,6 +99,11 @@ static inline int sas_ata_wait_after_reset(struct domain_device *dev, { return -ETIMEDOUT; } + +static inline int smp_ata_check_ready_type(struct ata_link *link) +{ + return 0; +} #endif #endif /* _SAS_ATA_H_ */ |