PCI: amlogic: Fix reset assertion via gpio descriptor
authorRemi Pommarel <repk@triplefau.lt>
Sun, 1 Sep 2019 13:39:15 +0000 (15:39 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 15 Oct 2019 13:57:32 +0000 (14:57 +0100)
commit4d3186a525b3f6af7d5f468e94b79b9e92cf3853
tree5f70067bca4ae53efe7490e2a1c73ba0e1ec0b15
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
PCI: amlogic: Fix reset assertion via gpio descriptor

Normally asserting reset signal on gpio would be achieved with:
gpiod_set_value_cansleep(reset_gpio, 1);

Meson PCI driver set reset value to '0' instead of '1' as it takes into
account the PERST# signal polarity. The polarity should be taken care
in the device tree instead.

This fixes the reset assertion meaning and moves out the polarity
configuration in DT (please note that there is no DT currently using
this driver).

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/pci/controller/dwc/pci-meson.c