]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Make minimum bridge window alignment reference more obvious
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 7 May 2024 10:25:22 +0000 (13:25 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Jun 2024 19:51:07 +0000 (14:51 -0500)
commit8fa0a44eb0adfa94d099e0beba641e8306a178db
treedccda2cdc2c964e71af6651313d5924774e67a68
parent903534fa7d30214d8ba840ab1cd9e917e0c88e41
PCI: Make minimum bridge window alignment reference more obvious

Calculations related to bridge window size contain literal 20 that is the
minimum alignment for a bridge window. Make the code more obvious by
converting the literal 20 to __ffs(SZ_1M).

Link: https://lore.kernel.org/r/20240507102523.57320-8-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[bhelgaas: squash https://lore.kernel.org/r/20240612093250.17544-1-ilpo.jarvinen@linux.intel.com]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/setup-bus.c