aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorStephan Gerhold <[email protected]>2019-10-10 17:47:20 +0200
committerChanwoo Choi <[email protected]>2019-10-11 10:43:26 +0900
commit6942635032cfd3e003e980d2dfa4e6323a3ce145 (patch)
treeb8e4259a672214f4dd08cec7d21d5d64d182bddb /tools/perf/scripts/python/netdev-times.py
parente81b88932985c9134d410f4eaaaa9b81a3b4bd0c (diff)
extcon: sm5502: Reset registers during initialization
On some devices (e.g. Samsung Galaxy A5 (2015)), the bootloader seems to keep interrupts enabled for SM5502 when booting Linux. Changing the cable state (i.e. plugging in a cable) - until the driver is loaded - will therefore produce an interrupt that is never read. In this situation, the cable state will be stuck forever on the initial state because SM5502 stops sending interrupts. This can be avoided by clearing those pending interrupts after the driver has been loaded. One way to do this is to reset all registers to default state by writing to SM5502_REG_RESET. This ensures that we start from a clean state, with all interrupts disabled. Suggested-by: Chanwoo Choi <[email protected]> Signed-off-by: Stephan Gerhold <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions