]> git.ipfire.org Git - thirdparty/linux.git/commit
bus: mhi: host: pci_generic: Round up nr_irqs to power of two
authorJavier Achirica <jachirica@gmail.com>
Fri, 3 Apr 2026 10:30:03 +0000 (12:30 +0200)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Tue, 12 May 2026 14:27:13 +0000 (19:57 +0530)
commit86f6dc05ea051fa03ebc03174bc00f734593465d
tree2b94a4e694767c59f613df80b3e9ffc03736f335
parent254f49634ee16a731174d2ae34bc50bd5f45e731
bus: mhi: host: pci_generic: Round up nr_irqs to power of two

When an MHI device uses standard MSI, the PCI core requires the allocated
number of vectors to be a strict power of two. But devices will only ask
for the irqs they need, so they might not be properly aligned.

Make sure a power-of-2 number of vectors is requested.

Signed-off-by: Javier Achirica <jachirica@gmail.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/CACixm21q7b_diEx5COZxVZm9EhZ0hnakM_WBjEWcCsznfWeniw@mail.gmail.com
drivers/bus/mhi/host/pci_generic.c