public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] Fix the failure of adding phy with zero-address to port
@ 2023-12-04 12:29 Xingui Yang
  2023-12-04 12:29 ` [PATCH v5 1/3] scsi: libsas: Add helper for port add ex_phy Xingui Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Xingui Yang @ 2023-12-04 12:29 UTC (permalink / raw)
  To: john.g.garry, yanaijie, jejb, martin.petersen, damien.lemoal
  Cc: linux-scsi, linux-kernel, linuxarm, prime.zeng, chenxiang66,
	kangfenglong


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

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 (3):
  scsi: libsas: Add helper for port add ex_phy
  scsi: libsas: Move sas_add_parent_port() to sas_expander.c
  scsi: libsas: Fix the failure of adding phy with zero-address to port

 drivers/scsi/libsas/sas_expander.c | 34 ++++++++++++++++++++++++------
 drivers/scsi/libsas/sas_internal.h | 15 -------------
 2 files changed, 28 insertions(+), 21 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-12 14:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-04 12:29 [PATCH v5 0/3] Fix the failure of adding phy with zero-address to port Xingui Yang
2023-12-04 12:29 ` [PATCH v5 1/3] scsi: libsas: Add helper for port add ex_phy Xingui Yang
2023-12-04 13:08   ` John Garry
2023-12-04 12:29 ` [PATCH v5 2/3] scsi: libsas: Move sas_add_parent_port() to sas_expander.c Xingui Yang
2023-12-04 13:17   ` John Garry
2023-12-04 12:29 ` [PATCH v5 3/3] scsi: libsas: Fix the failure of adding phy with zero-address to port Xingui Yang
2023-12-04 18:05   ` John Garry
2023-12-05 13:22     ` yangxingui
2023-12-05 18:13       ` John Garry
2024-03-12 14:26         ` yangxingui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox