]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: endpoint: pci-epf-vntb: Align MW naming with config names
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 3 Jun 2025 17:03:39 +0000 (19:03 +0200)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 23 Jun 2025 12:04:08 +0000 (06:04 -0600)
commita079d83c4afd4896f7f29bd9e807cb382043b360
treef01a7a9ec0c55caaecb2dd6475936b30dd2601af
parent7ea488cce73263231662e426639dd3e836537068
PCI: endpoint: pci-epf-vntb: Align MW naming with config names

The config file related to the memory windows start the numbering of
the MW from 1. The other NTB function does the same, yet the enumeration
defining the BARs of the vNTB function starts numbering the MW from 0.

Both numbering should be fine, but mixing the two is a bit confusing. The
configfs file being the interface with userspace, keep that stable and
consistently start the numbering of the MW from 1.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
[mani: commit message rewording]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250603-pci-vntb-bar-mapping-v2-2-fc685a22ad28@baylibre.com
drivers/pci/endpoint/functions/pci-epf-vntb.c