diff options
| author | Haowen Tu <tuhaowen@uniontech.com> | 2026-11-16 10:24:42 +0800 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-11-15 23:23:53 -0800 |
| commit | c7ef3bffd5f48bde1a1bbbd181fbc73e721d87e9 (patch) | |
| tree | 32727fe18088d53d07fb0c405d8a0afdf6aff2a1 /tools/perf/scripts/python | |
| parent | ce8010f11f3ea62f8675e9bc921ee485aef82019 (diff) | |
Input: max77693-haptic - disable bias on failed open
max77693_haptic_open() enables the MAX77843 bias before enabling the motor
regulator. If regulator_enable() fails, the function returns without
turning the bias off. The input core does not call the close callback
after a failed open, so its bias cleanup does not run either.
Disable the bias before returning the regulator error. The bias helper
already handles reporting register access errors and is a no-op for the
other supported chip variants.
Fixes: 56bbc99e6914 ("Input: max77693: Add support for Maxim 77843")
Signed-off-by: Haowen Tu <tuhaowen@uniontech.com>
Link: https://patch.msgid.link/98F5ACA9EADBEC89+20261116022442.3298673-1-tuhaowen@uniontech.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
