[PATCH v3] PCI: mediatek-gen3: Fix 64-bit type truncation in mtk_pcie_set_trans_table()

Manivannan Sadhasivam manivannan.sadhasivam at oss.qualcomm.com
Thu Sep 10 01:10:37 PDT 2026


On Tue, 28 Jul 2026 12:28:10 +0000, Sreeraj S Kurup wrote:
> The variables cpu_addr, pci_addr, and remaining in
> mtk_pcie_set_trans_table() are of type resource_size_t, which is 64-bit
> on 64-bit architectures.
> 
> Using 32-bit helpers fls(), ffs(), and BIT() causes 64-bit integer
> truncation when computing window sizes and address alignments above 4GB.
> 
> [...]

Applied, thanks!

[1/1] PCI: mediatek-gen3: Fix 64-bit type truncation in mtk_pcie_set_trans_table()
      commit: 13335fca4c23b1a6736ec9c7efc3750154a2ca24

Best regards,
-- 
மணிவண்ணன் சதாசிவம்





More information about the Linux-mediatek mailing list