]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: stm32: Fix EP page_size alignment
authorChristian Bruel <christian.bruel@foss.st.com>
Fri, 14 Nov 2025 08:08:05 +0000 (09:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:04 +0000 (14:03 +0100)
commit9ea941e8bba68f9cefd4ed18663a3a8c85e836e1
tree42c5dfd04445f6b5f903975423f417317256a43a
parent0e82816b68968ae3011386cdb60da0305842ee04
PCI: stm32: Fix EP page_size alignment

[ Upstream commit ff529a9307a03ec03ed9751da053b57149300053 ]

pci_epc_mem_alloc_addr() allocates a CPU address from the ATU window phys
base and a page number. Set the ep->page_size so the resulting CPU address
is correctly aligned with the ATU required alignment.

Fixes: 151f3d29baf4 ("PCI: stm32-ep: Add PCIe Endpoint support for STM32MP25")
Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
[mani: added fixes tag]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20251114-atu_align_ep-v1-1-88da5366fa04@foss.st.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pcie-stm32-ep.c