Thread (35 messages) 35 messages, 4 authors, 2016-09-06

[PATCH v3 10/22] usb: chipidea: Consolidate extcon notifiers

From: Stephen Boyd <hidden>
Date: 2016-09-03 01:03:30
Also in: linux-arm-msm, lkml

On Thu, Sep 1, 2016 at 8:17 PM, Peter Chen [off-list ref] wrote:
On Wed, Aug 31, 2016 at 05:40:24PM -0700, Stephen Boyd wrote:
quoted

              if (cable->state)
-                     val |= OTGSC_ID;
+                     val &= ~OTGSC_ID; /* A device */
              else
-                     val &= ~OTGSC_ID;
+                     val |= OTGSC_ID; /* B device */

              if (cable->enabled)
                      val |= OTGSC_IDIE;
/**
 * struct ci_hdrc_cable - structure for external connector cable state tracking
 * @state: current state of the line

You may change the name of variable "state" to "connected", per I
understand, it has changed to the meaning of connected status for your patch.
Ok sure.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help