aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMichal Vokáč <[email protected]>2024-01-26 11:49:35 +0100
committerJakub Kicinski <[email protected]>2024-01-29 18:14:07 -0800
commitc44fc98f0a8ffd94fa0bd291928e7e312ffc7ca4 (patch)
treea1611f08c91a34ec6b82846dfc18437be3544cf7 /tools/perf/scripts/python/event_analyzing_sample.py
parent577e4432f3ac810049cb7e6b71f4d96ec7c6e894 (diff)
net: dsa: qca8k: fix illegal usage of GPIO
When working with GPIO, its direction must be set either when the GPIO is requested by gpiod_get*() or later on by one of the gpiod_direction_*() functions. Neither of this is done here which results in undefined behavior on some systems. As the reset GPIO is used right after it is requested here, it makes sense to configure it as GPIOD_OUT_HIGH right away. With that, the following gpiod_set_value_cansleep(1) becomes redundant and can be safely removed. Fixes: a653f2f538f9 ("net: dsa: qca8k: introduce reset via gpio feature") Signed-off-by: Michal Vokáč <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions