From: Damien Le Moal <dlemoal@kernel.org>
To: "Niklas Cassel" <cassel@kernel.org>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Jingoo Han" <jingoohan1@gmail.com>,
"Kishon Vijay Abraham I" <kishon@kernel.org>
Cc: Wilfred Mallawa <wilfred.mallawa@wdc.com>,
stable+noautosel@kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 5/6] PCI: endpoint: cleanup get_msix() callback
Date: Wed, 14 May 2025 15:41:28 +0900 [thread overview]
Message-ID: <971ba853-cc7e-48e2-9cb2-001d5c8ee8aa@kernel.org> (raw)
In-Reply-To: <20250513073055.169486-13-cassel@kernel.org>
On 5/13/25 16:31, Niklas Cassel wrote:
> The kdoc for pci_epc_get_msix() says:
> "Invoke to get the number of MSI-X interrupts allocated by the RC"
> the kdoc for the callback pci_epc_ops->get_msix() says:
> "ops to get the number of MSI-X interrupts allocated by the RC from the
> MSI-X capability register"
>
> pci_epc_ops->get_msix() does however return the number of interrupts
> in the encoding as defined by the Table Size field.
>
> Nowhere in the kdoc does it say that the returned number of interrupts
> is in Table Size encoding.
>
> Thus, it is very confusing that the wrapper function (pci_epc_get_msix())
> and the callback function (pci_epc_ops->get_msix()) don't return the same
> value.
>
> Cleanup the API so that the wrapper function and the callback function
> will have the same semantics.
Same comment as previous patches. Mention the semantic.
But looks good.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2025-05-14 6:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 7:30 [PATCH v2 0/6] PCI: endpoint: IRQ callback fixes and cleanups Niklas Cassel
2025-05-13 7:30 ` Niklas Cassel
2025-05-13 7:30 ` [PATCH v2 1/6] PCI: dwc: ep: Fix broken set_msix() callback Niklas Cassel
2025-05-13 7:30 ` [PATCH v2 2/6] PCI: cadence-ep: " Niklas Cassel
2025-05-13 7:30 ` [PATCH v2 3/6] PCI: endpoint: cleanup get_msi() callback Niklas Cassel
2025-05-13 7:30 ` Niklas Cassel
2025-05-14 6:35 ` Damien Le Moal
2025-05-14 6:35 ` Damien Le Moal
2025-05-13 7:30 ` [PATCH v2 4/6] PCI: endpoint: cleanup set_msi() callback Niklas Cassel
2025-05-13 7:30 ` Niklas Cassel
2025-05-14 6:39 ` Damien Le Moal
2025-05-14 6:39 ` Damien Le Moal
2025-05-13 7:31 ` [PATCH v2 5/6] PCI: endpoint: cleanup get_msix() callback Niklas Cassel
2025-05-14 6:41 ` Damien Le Moal [this message]
2025-05-13 7:31 ` [PATCH v2 6/6] PCI: endpoint: cleanup set_msix() callback Niklas Cassel
2025-05-14 6:43 ` Damien Le Moal
2025-05-13 10:25 ` [PATCH v2 0/6] PCI: endpoint: IRQ callback fixes and cleanups Krzysztof Wilczyński
2025-05-13 10:25 ` Krzysztof Wilczyński
2025-05-13 12:31 ` Niklas Cassel
2025-05-13 12:31 ` Niklas Cassel
2025-05-13 16:03 ` Manivannan Sadhasivam
2025-05-13 16:03 ` Manivannan Sadhasivam
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=971ba853-cc7e-48e2-9cb2-001d5c8ee8aa@kernel.org \
--to=dlemoal@kernel.org \
--cc=bhelgaas@google.com \
--cc=cassel@kernel.org \
--cc=jingoohan1@gmail.com \
--cc=kishon@kernel.org \
--cc=kw@linux.com \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh@kernel.org \
--cc=stable+noautosel@kernel.org \
--cc=wilfred.mallawa@wdc.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 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.