From: Niklas Cassel <cassel@kernel.org>
To: Damien Le Moal <dlemoal@kernel.org>,
Niklas Cassel <cassel@kernel.org>,
John Garry <john.g.garry@oracle.com>,
Jason Yan <yanaijie@huawei.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org
Subject: [PATCH v4 0/9] ata,libsas: Assign the unique id used for printing earlier
Date: Wed, 3 Jul 2024 20:44:17 +0200 [thread overview]
Message-ID: <20240703184418.723066-11-cassel@kernel.org> (raw)
Hello all,
This series moves the assignment of ap->print_id, which is used as a
unique id for each port, earlier, such that we can use the ata_port_*
print functions even before the ata_host has been registered.
While the patch series was orginally meant to simply assign a unique
id used for printing earlier (ap->print_id), it has since grown to
also include cleanups related to ata_port_alloc() (since ap->print_id
is now assigned in ata_port_alloc()).
Kind regards,
Niklas
Changes since v3:
-Picked up tags.
-Clarified commit message, and avoid word useless, for patch
"ata,scsi: Remove wrappers ata_sas_tport_{add,delete}()"
-Clarified commit message, and avoid word useless, for patch
"ata,scsi: Remove wrapper ata_sas_port_alloc()"
-Remove superfluous sata_port_info struct, as it is not strictly needed
anymore, and instead perform the initializations directly in
sas_ata_init().
Link to v3:
https://lore.kernel.org/linux-ide/20240702160756.596955-11-cassel@kernel.org/
Link to v2:
https://lore.kernel.org/linux-ide/20240626180031.4050226-15-cassel@kernel.org/
Link to v1:
https://lore.kernel.org/linux-ide/20240618153537.2687621-7-cassel@kernel.org/
Niklas Cassel (9):
ata,scsi: Remove wrappers ata_sas_tport_{add,delete}()
ata: libata: Remove unused function declaration for ata_scsi_detect()
ata: libata-core: Remove support for decreasing the number of ports
ata: libata-sata: Remove superfluous assignment in
ata_sas_port_alloc()
ata: libata-core: Remove local_port_no struct member
ata: libata: Assign print_id at port allocation time
ata: libata-core: Reuse available ata_port print_ids
ata,scsi: Remove wrapper ata_sas_port_alloc()
ata: ahci: Add debug print for external port
drivers/ata/ahci.c | 4 ++-
drivers/ata/libata-core.c | 41 +++++++++----------------
drivers/ata/libata-sata.c | 49 ------------------------------
drivers/ata/libata-transport.c | 5 ++-
drivers/ata/libata-transport.h | 3 --
drivers/ata/libata.h | 2 --
drivers/scsi/libsas/sas_ata.c | 22 ++++++--------
drivers/scsi/libsas/sas_discover.c | 2 +-
include/linux/libata.h | 11 +++----
9 files changed, 37 insertions(+), 102 deletions(-)
--
2.45.2
next reply other threads:[~2024-07-03 18:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-03 18:44 Niklas Cassel [this message]
2024-07-03 18:44 ` [PATCH v4 1/9] ata,scsi: Remove wrappers ata_sas_tport_{add,delete}() Niklas Cassel
2024-07-03 18:44 ` [PATCH v4 2/9] ata: libata: Remove unused function declaration for ata_scsi_detect() Niklas Cassel
2024-07-03 18:44 ` [PATCH v4 3/9] ata: libata-core: Remove support for decreasing the number of ports Niklas Cassel
2024-07-03 18:44 ` [PATCH v4 4/9] ata: libata-sata: Remove superfluous assignment in ata_sas_port_alloc() Niklas Cassel
2024-07-03 18:44 ` [PATCH v4 5/9] ata: libata-core: Remove local_port_no struct member Niklas Cassel
2024-07-03 18:44 ` [PATCH v4 6/9] ata: libata: Assign print_id at port allocation time Niklas Cassel
2024-07-03 18:44 ` [PATCH v4 7/9] ata: libata-core: Reuse available ata_port print_ids Niklas Cassel
2024-07-03 18:44 ` [PATCH v4 8/9] ata,scsi: Remove wrapper ata_sas_port_alloc() Niklas Cassel
2024-07-04 7:04 ` John Garry
2024-07-03 18:44 ` [PATCH v4 9/9] ata: ahci: Add debug print for external port Niklas Cassel
2024-07-04 3:05 ` [PATCH v4 0/9] ata,libsas: Assign the unique id used for printing earlier Martin K. Petersen
2024-07-04 10:02 ` Niklas Cassel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240703184418.723066-11-cassel@kernel.org \
--to=cassel@kernel.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=dlemoal@kernel.org \
--cc=john.g.garry@oracle.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=yanaijie@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).