pinctrl: msm: prevent access to GPIOs used by trustzone
This commit is contained in:
parent
02b5845785
commit
b66e866c6c
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Sony Mobile Communications AB.
|
||||
* Copyright (C) 2021 XiaoMi, Inc.
|
||||
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -571,8 +572,16 @@ static void msm_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
|
||||
unsigned gpio = chip->base;
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < chip->ngpio; i++, gpio++)
|
||||
for (i = 0; i < chip->ngpio; i++, gpio++) {
|
||||
/**
|
||||
* bypass NFC SPI GPIO: 0~3 is NFC SE SPI
|
||||
* bypass FP SPI GPIO: 59~62 is FP SPI
|
||||
*/
|
||||
if ((i < 4) || (i >= 59 && i <= 62)) {
|
||||
continue;
|
||||
}
|
||||
msm_gpio_dbg_show_one(s, NULL, chip, i, gpio);
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
@ -1475,6 +1484,7 @@ static void msm_pinctrl_resume(void)
|
||||
name = desc->action->name;
|
||||
|
||||
pr_warn("%s: %d triggered %s\n", __func__, irq, name);
|
||||
|
||||
}
|
||||
}
|
||||
raw_spin_unlock_irqrestore(&pctrl->lock, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user