]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: libsas: Add a helper sas_get_sas_addr_and_dev_type()
authorXingui Yang <yangxingui@huawei.com>
Thu, 7 Mar 2024 14:14:12 +0000 (14:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:32:50 +0000 (15:32 +0200)
commit3141369be85b2139654e3f4ca1ee1f253a75b8a3
tree8236e739c993217d82e224578e37052386e98117
parent182bf9031428e728402c6fd11e21448317035082
scsi: libsas: Add a helper sas_get_sas_addr_and_dev_type()

commit a57345279fd311ba679b8083feb0eec5272c7729 upstream.

Add a helper to get attached_sas_addr and device type from disc_resp.

Suggested-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Xingui Yang <yangxingui@huawei.com>
Link: https://lore.kernel.org/r/20240307141413.48049-2-yangxingui@huawei.com
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/libsas/sas_expander.c