Re: [PATCH v2 1/3] scsi: libsas: refactor sas_ex_to_ata() using new helper sas_ex_to_dev()
From: Jason Yan
Date: Wed May 13 2026 - 02:20:05 EST
在 2026/5/13 10:16, Xingui Yang 写道:
The sas_ex_to_ata() function checks for an attached ATA device on an
expander phy. Refactor it to use a new helper function sas_ex_to_dev()
which returns any device type attached to an expander phy, improving code
reuse and allowing other code paths to find attached devices regardless
of type.
No functional changes intended.
Signed-off-by: Xingui Yang<yangxingui@xxxxxxxxxx>
---
drivers/scsi/libsas/sas_expander.c | 12 ++++++++----
drivers/scsi/libsas/sas_internal.h | 1 +
2 files changed, 9 insertions(+), 4 deletions(-)
Reviewed-by: Jason Yan <yanaijie@xxxxxxxxxx>