projects
/
GitHub
/
LineageOS
/
android_hardware_samsung.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
428bd3e
)
hidl: usb: Add missing moisture detection uevent
author
Tim Zimmermann
<tim@linux4.de>
Sun, 3 Apr 2022 04:11:53 +0000
(06:11 +0200)
committer
Tim Zimmermann
<tim@linux4.de>
Sun, 3 Apr 2022 04:12:08 +0000
(06:12 +0200)
* CCIC=DRY is used if there's no more moisture detected
Change-Id: I48f2e34c027bb5967dade435f6e7840ad05c71c2
hidl/usb/Usb.cpp
patch
|
blob
|
blame
|
history
diff --git
a/hidl/usb/Usb.cpp
b/hidl/usb/Usb.cpp
index 2498e420f69c1f451720382910f9e755e604cb2b..1b494ac76970f1b6d4b179bd7d1b09e39329bde2 100644
(file)
--- a/
hidl/usb/Usb.cpp
+++ b/
hidl/usb/Usb.cpp
@@
-646,7
+646,8
@@
static void uevent_event(uint32_t /*epevents*/, struct data *payload) {
pthread_cond_signal(&payload->usb->mPartnerCV);
pthread_mutex_unlock(&payload->usb->mPartnerLock);
} else if (!strncmp(cp, "DEVTYPE=typec_", strlen("DEVTYPE=typec_")) ||
- !strncmp(cp, "CCIC=WATER", strlen("CCIC=WATER"))) {
+ !strncmp(cp, "CCIC=WATER", strlen("CCIC=WATER")) ||
+ !strncmp(cp, "CCIC=DRY", strlen("CCIC=DRY"))) {
hidl_vec<PortStatus> currentPortStatus_1_2;
queryVersionHelper(payload->usb, ¤tPortStatus_1_2);