[flasher PATCH 2/2] Only warn about unconfigured pins if they have a register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Stephen Warren <swarren@xxxxxxxxxx>

Some pins don't have a register and hence can't be configured. Don't warn
that those pins are unconfigured.

Signed-off-by: Stephen Warren <swarren@xxxxxxxxxx>
---
 tegra_pmx_board_parser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tegra_pmx_board_parser.py b/tegra_pmx_board_parser.py
index 7b45abe74a00..1ea16efb7dca 100644
--- a/tegra_pmx_board_parser.py
+++ b/tegra_pmx_board_parser.py
@@ -64,7 +64,7 @@ class Board(TopLevelParsedObj):
         return self._pincfgs_by_num
 
     def warn_about_unconfigured_pins(self):
-        unconfigured_gpio_pins = {gpio_pin.fullname for gpio_pin in self.soc.gpios_pins_by_num()}
+        unconfigured_gpio_pins = [gpio_pin.fullname for gpio_pin in self.soc.gpios_pins_by_num() if gpio_pin.reg]
         for gpio_pin in self.pincfgs_by_num():
             unconfigured_gpio_pins.remove(gpio_pin.gpio_pin.fullname)
         for gpio_pin in unconfigured_gpio_pins:
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux