]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: ptn5150: Do not print error during probe if nothing is attached
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 9 Sep 2020 15:01:29 +0000 (17:01 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Sep 2020 15:38:54 +0000 (00:38 +0900)
commit805cfafb55a2c8a73d1170baadf36b6a87bec733
treed115e3d297e96169276b20926b874b4bdc6b0b11
parent27c7e489de2002a6b1019f9dff56846a26e5fae3
extcon: ptn5150: Do not print error during probe if nothing is attached

The commit 2caa72a83ae5 ("extcon: ptn5150: Check current USB mode when
probing") reused code for checking CC status register in the probe path
to determine what is initially connected.  However if nothing is
connected, the CC status register will have 0x0 value and print an error
message:

    ptn5150 1-003d: Unknown Port status : 0

This is not an error.  Also any other unknown port status values are not
really errors but unhandled cases.

Fixes: 2caa72a83ae5 ("extcon: ptn5150: Check current USB mode when probing")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-ptn5150.c