pcie: designware: mvebu: do not configure ATU for IO when not used
authorMarcin Wojtas <mw@semihalf.com>
Fri, 30 Apr 2021 13:33:15 +0000 (15:33 +0200)
committerStefan Roese <sr@denx.de>
Sun, 16 May 2021 04:48:45 +0000 (06:48 +0200)
commit1fde894e793ebae10c6e43da68b90d5d9b47465e
treed067ac84f76a5b2a9d07c349c8606f93b1056788
parent7d8e1651da96771f37bbfff84636ac4e34aecc30
pcie: designware: mvebu: do not configure ATU for IO when not used

The pcie_dw_mvebu configure ATU regions for memory, configuration
and IO space types. However the latter is not obligatory
and when not specified in the device tree, causes wrong
ATU configuration. Fix that by adding a dependency on the
detected PCIE regions count.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-on: https://sj1git1.cavium.com/18136
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Tested-by: Kostya Porotchkin <kostap@marvell.com>
drivers/pci/pcie_dw_mvebu.c