PCI: rework BAR size calculation
The probe code now does a much better job at detecting bad BARs.
Also make sure to preserve any previous content of the BAR
registers if we don't relocate them.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8dee314 commit 0fee6f111f8e2e967192d983dede083fcd781b79
@Lucas Stach Lucas Stach authored on 23 Jun 2015
Sascha Hauer committed on 25 Jun 2015
Showing 1 changed file
View
drivers/pci/pci.c