Skip to content

scsi: libsas: Fix the failure of adding phy with zero-address to port

Xingui Yang linux-scsi lkml 3 versions – Applied

Status from this message: Applied to 6.10/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 2 repliesApplied
  2. v53 patches 6 repliesSuperseded
  3. v41 patch 9 repliesSuperseded

Changes in v6 from the cover letter

1. rename sas_add_parent_port() to sas_ex_add_parent_port() based on John's suggestion.
2. Distill port settings into a single patch.
3. Update comments information.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/4scsi: libsas: Add helper for port add ex_phydrivers/scsi/libsas/sas_expander.c+8 -30 replies
2/4scsi: libsas: Move sas_add_parent_port() to sas_expander.cdrivers/scsi/libsas/sas_expander.c drivers/scsi/libsas/sas_internal.h+17 -170 replies
3/4scsi: libsas: Set port when ex_phy is added or deleteddrivers/scsi/libsas/sas_expander.c+5 -20 replies
4/4scsi: libsas: Fix the failure of adding phy with zero-address to portdrivers/scsi/libsas/sas_expander.c+1 -20 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchJohn Garry
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/4] scsi: libsas: Fix the failure of adding phy with zero-address to port

This series is to solve the problem of a BUG() when adding phy with zero address to a new port.

v5 -> v6
1. rename sas_add_parent_port() to sas_ex_add_parent_port() based on John's suggestion.
2. Distill port settings into a single patch.
3. Update comments information.

v4 -> v5
1. Add new helper sas_port_add_ex_phy() based on John's suggestion.
2. Move sas_add_parent_port() to sas_expander.c based on John's suggestion.
3. Update the comments.

v3 -> v4:
1. Update patch title and comments based on John's suggestion.

v2 -> v3:
1. Set ex_dev->parent_port to NULL when the number of PHYs of the parent port becomes 0.
2. Update the comments.

v1 -> v2:
1. Set ex_phy->port with parent_port when ex_phy is added to the parent port.
2. Set ex_phy to NULL when free expander.
3. Update the comments.

Xingui Yang (4):
scsi: libsas: Add helper for port add ex_phy
scsi: libsas: Move sas_add_parent_port() to sas_expander.c
scsi: libsas: Set port when ex_phy is added or deleted
scsi: libsas: Fix the failure of adding phy with zero-address to port

 drivers/scsi/libsas/sas_expander.c | 38 +++++++++++++++++++++++-------
 drivers/scsi/libsas/sas_internal.h | 15 ------------
 2 files changed, 30 insertions(+), 23 deletions(-)
Signature · 1 line
2.17.1