SATA devices attached to an expander maybe generate incorrect IOs when physical link re-establish at a lower link rate. This is due to the expander PHY attached to a SATA PHY is using link rate greater than the physical PHY link rate which is re-established. This patchset fixes the issue. Yihang Li (2): scsi: libsas: Add sas_update_linkrate() scsi: libsas: Add sas_check_port_linkrate() drivers/scsi/libsas/sas_discover.c | 18 +++++++++++++- drivers/scsi/libsas/sas_expander.c | 40 ++++++++++++++++++++++++++++++ drivers/scsi/libsas/sas_internal.h | 1 + 3 files changed, 58 insertions(+), 1 deletion(-) -- 2.30.0