Marek Szyprowski 73a7a271b3 PCI: brcmstb: Fix build on 32bit ARM platforms with older compilers
Some older compilers have no implementation for the helper for 64-bit
unsigned division/modulo, so linking pcie-brcmstb driver causes the
"undefined reference to `__aeabi_uldivmod'" error.

*rc_bar2_size is always a power of two, because it is calculated as:
"1ULL << fls64(entry->res->end - entry->res->start)", so the modulo
operation in the subsequent check can be replaced by a simple logical
AND with a proper mask.

Link: https://lore.kernel.org/r/20200227115146.24515-1-m.szyprowski@samsung.com
Fixes: c0452137034b ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2020-02-27 08:06:20 -06:00
..
2020-01-23 16:40:03 -06:00
2020-01-15 11:00:40 -06:00
2020-02-06 14:17:38 +00:00
2018-03-19 14:20:43 -05:00
2019-11-28 08:54:55 -06:00
2019-07-09 07:24:53 -05:00
2019-09-23 16:10:08 -05:00
2018-03-19 14:20:43 -05:00
2018-10-02 10:14:32 +02:00
2019-11-28 08:54:36 -06:00
2020-02-05 17:49:54 +00:00
2019-11-28 08:54:55 -06:00
2020-01-31 14:48:54 -08:00
2018-06-29 21:17:26 -05:00
2020-01-29 17:00:02 -06:00
2018-03-19 14:20:43 -05:00
2019-06-13 16:49:45 -05:00
2019-09-23 16:10:31 -05:00
2019-05-13 18:34:46 -05:00