linux/drivers/scsi/libsas
Niklas Cassel 7a2719b122 scsi: libsas: Add dev_parent_is_expander() helper
[ Upstream commit e5eb72c92e ]

Many libsas drivers check if the parent of the device is an expander.
Create a helper that the libsas drivers will use in follow up commits.

Suggested-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Link: https://lore.kernel.org/r/20250814173215.1765055-15-cassel@kernel.org
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: ad70c6bc77 ("scsi: pm80xx: Fix pm8001_abort_task() for chip_8006 when using an expander")
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:03:43 +02:00
..
Kconfig scsi: libsas: Drop BLK_DEV_BSGLIB selection 2021-07-27 00:06:42 -04:00
Makefile scsi: libsas: Allow libsas to include SCSI header files directly 2021-07-20 23:11:17 -04:00
sas_ata.c SCSI misc on 20250806 2025-08-06 15:44:25 +03:00
sas_discover.c scsi: libsas: Use a bool for sas_deform_port() second argument 2025-07-25 09:03:57 -04:00
sas_event.c scsi: libsas: Use bool for queue_work() return code 2022-02-27 21:48:30 -05:00
sas_expander.c scsi: libsas: Add dev_parent_is_expander() helper 2025-10-15 12:03:43 +02:00
sas_host_smp.c scsi: libsas: Delete struct scsi_core 2023-08-21 17:50:58 -04:00
sas_init.c scsi: Expand all create*_workqueue() invocations 2024-08-22 21:28:55 -04:00
sas_internal.h scsi: libsas: Use a bool for sas_deform_port() second argument 2025-07-25 09:03:57 -04:00
sas_phy.c scsi: libsas: Use a bool for sas_deform_port() second argument 2025-07-25 09:03:57 -04:00
sas_port.c scsi: libsas: Use a bool for sas_deform_port() second argument 2025-07-25 09:03:57 -04:00
sas_scsi_host.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
sas_task.c scsi: libsas: Use enum for response frame DATAPRES field 2022-02-19 15:59:34 -05:00