diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-08-17 09:00:04 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2020-09-24 12:20:48 +0200 |
commit | 85256f611f664b0bd0f6c1c0693d0df6e096f279 (patch) | |
tree | ab5bb348ba7ce78f46e00754feff0bf80bff2a0d /scripts | |
parent | extcon: ptn5150: Lower the noisiness of probe (diff) | |
download | linux-85256f611f664b0bd0f6c1c0693d0df6e096f279.tar.xz linux-85256f611f664b0bd0f6c1c0693d0df6e096f279.zip |
extcon: ptn5150: Check current USB mode when probing
When machine boots up, the USB could be already in OTG mode. In such
case there will be no interrupt coming to ptn5150 device and driver will
report default state of nothing connected. Detection of USB connection
would happen on first unplug of the cable.
Factor out code for checking current connection mode and call it right
after probe so the existing USB mode will be properly reported.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions