hidl: usb: Add missing moisture detection uevent
authorTim Zimmermann <tim@linux4.de>
Sun, 3 Apr 2022 04:11:53 +0000 (06:11 +0200)
committerTim 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

index 2498e420f69c1f451720382910f9e755e604cb2b..1b494ac76970f1b6d4b179bd7d1b09e39329bde2 100644 (file)
@@ -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, &currentPortStatus_1_2);