Dejin Zheng d4707d79fa PCI: xgene: Fix cfg resource mapping
In commit e2dcd20b1645 a change was made to use
devm_platform_ioremap_resource_byname() to simplify code and remove
the res variable; this was wrong since the res variable is still needed
and as an outcome the port->cfg_addr gets an erroneous address.

Revert the change going back to original behaviour.

Link: https://lore.kernel.org/r/20210328144118.305074-1-zhengdejin5@gmail.com
Fixes: e2dcd20b1645a ("PCI: controller: Convert to devm_platform_ioremap_resource_byname()")
Reported-by: dann.frazier@canonical.com
Tested-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org    # v5.9+
2021-03-31 10:28:38 +01:00
..
2021-02-25 09:56:08 -08:00
2020-08-05 18:24:16 -05:00
2020-08-05 18:24:22 -05:00
2020-07-29 14:25:18 -05:00
2020-10-22 12:41:00 -07:00
2020-12-16 13:42:26 -08:00
2020-12-15 16:49:59 -08:00
2020-12-15 15:11:08 -06:00
2021-02-11 15:59:19 +01:00
2021-02-25 09:56:08 -08:00
2021-02-21 14:44:44 -08:00
2020-12-15 15:11:08 -06:00
2021-02-11 15:59:19 +01:00
2021-02-10 16:46:29 -06:00
2020-12-15 15:11:08 -06:00
2020-08-05 18:23:14 -05:00