From: Niklas Cassel <cassel@kernel.org>
To: Damien Le Moal <dlemoal@kernel.org>, Niklas Cassel <cassel@kernel.org>
Cc: Brian Norris <computersforpeace@gmail.com>, linux-ide@vger.kernel.org
Subject: [PATCH v4 5/5] ata: libata-core: Fix the ata_host_register() kdoc
Date: Thu, 10 Sep 2026 19:14:11 +0200 [thread overview]
Message-ID: <20260910171406.131211-12-cassel@kernel.org> (raw)
In-Reply-To: <20260910171406.131211-7-cassel@kernel.org>
ata_host_register() does not start the ports of the host, it requires
them to have been started already:
/* host must have been started */
if (!(host->flags & ATA_HOST_STARTED)) {
dev_err(host->dev, "BUG: trying to register unstarted host\n");
WARN_ON(1);
return -EINVAL;
}
Fix the kdoc accordingly, and fix the grammar of the last sentence while
at it.
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
drivers/ata/libata-core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 197f5d6e93ce..682c58889715 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -6237,9 +6237,9 @@ static void async_port_probe(void *data, async_cookie_t cookie)
* @sht: template for SCSI host
*
* Register initialized ATA host. @host is allocated using
- * ata_host_alloc() and fully initialized by LLD. This function
- * starts ports, registers @host with ATA and SCSI layers and
- * probe registered devices.
+ * ata_host_alloc(), fully initialized by the LLD and started using
+ * ata_host_start(). This function registers @host with the ATA and
+ * SCSI layers and probes the registered devices.
*
* On failure, the host remains started, i.e. the devres action
* registered by ata_host_start() is kept, so ->host_stop() is called by
--
2.55.0
prev parent reply other threads:[~2026-09-10 17:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 17:14 [PATCH v4 0/5] ata: Do not release the host resources twice on probe() failure Niklas Cassel
2026-09-10 17:14 ` [PATCH v4 1/5] ata: ahci_st: Assert the power down reset in the probe() error path Niklas Cassel
2026-09-10 17:29 ` sashiko-bot
2026-09-10 17:39 ` Niklas Cassel
2026-09-10 17:14 ` [PATCH v4 2/5] ata: sata_fsl: Fix use-after-free of host_priv on probe() failure Niklas Cassel
2026-09-10 17:14 ` [PATCH v4 3/5] ata: libahci: Free the IRQs when activating a multi-IRQ host fails Niklas Cassel
2026-09-10 17:14 ` [PATCH v4 4/5] ata: libata: Do not leave ata_host_stop() registered when activation fails Niklas Cassel
2026-09-10 17:14 ` Niklas Cassel [this message]
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=20260910171406.131211-12-cassel@kernel.org \
--to=cassel@kernel.org \
--cc=computersforpeace@gmail.com \
--cc=dlemoal@kernel.org \
--cc=linux-ide@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.