summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-ptn5150.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-09-09 17:01:29 +0200
committerChanwoo Choi <cw00.choi@samsung.com>2020-09-29 17:38:54 +0200
commit6be65ed4f86aa7c4ba5c0193202d563f098e783f (patch)
treed115e3d297e96169276b20926b874b4bdc6b0b11 /drivers/extcon/extcon-ptn5150.c
parentextcon: ptn5150: Use defines for registers (diff)
downloadlinux-6be65ed4f86aa7c4ba5c0193202d563f098e783f.tar.xz
linux-6be65ed4f86aa7c4ba5c0193202d563f098e783f.zip
extcon: ptn5150: Do not print error during probe if nothing is attached
The commit 85256f611f66 ("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: 85256f611f66 ("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>
Diffstat (limited to '')
-rw-r--r--drivers/extcon/extcon-ptn5150.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c
index 1b68f56d8372..5b9a3cf8df26 100644
--- a/drivers/extcon/extcon-ptn5150.c
+++ b/drivers/extcon/extcon-ptn5150.c
@@ -97,7 +97,6 @@ static void ptn5150_check_state(struct ptn5150_info *info)
extcon_set_state_sync(info->edev, EXTCON_USB_HOST, true);
break;
default:
- dev_err(info->dev, "Unknown Port status : %x\n", port_status);
break;
}
}