diff options
| author | Woody Lin <woody_lin@htc.com> | 2017-02-06 14:31:03 +0800 |
|---|---|---|
| committer | Siluxsept <ronny.horn.rh@gmail.com> | 2020-05-26 14:40:19 +0200 |
| commit | 02ffdd7b38b628ff7051462377849fa36e5800a5 (patch) | |
| tree | 3e1d45a8e9c8d54b55267fdbd10687f185502178 | |
| parent | 2208578e38907dfa9716205970a76de36f8f9d03 (diff) | |
Accessing pins owned by TZ crashes the system. Avoid to access these
pins in msm_gpio_dbg_show so that we can cat "/d/gpio" to monitor pin
states without crash.
Bug: 34906817
Change-Id: Ib5347dee882299361094e31cfb7950b65716e654
Signed-off-by: Woody Lin <woody_lin@htc.com>
| -rw-r--r-- | drivers/pinctrl/qcom/pinctrl-msm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 86435f3cf..99d186995 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -659,6 +659,10 @@ static void msm_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) unsigned i; for (i = 0; i < chip->ngpio; i++, gpio++) { + /* Bypass GPIO pins owned by TZ */ + switch (gpio) + case 81 ... 84: continue; + msm_gpio_dbg_show_one(s, NULL, chip, i, gpio); seq_puts(s, "\n"); } |
