commit | 94f6ee991262ee73dcee48ed77f8dd8e8a9401c3 | [log] [tgz] |
---|---|---|
author | Sriharsha Allenki <sallenki@codeaurora.org> | Thu Sep 17 18:31:17 2020 +0530 |
committer | Sriharsha Allenki <sallenki@codeaurora.org> | Thu Sep 17 22:45:44 2020 +0530 |
tree | 9073a1453684fbd426b071e687c2ede2c4828756 | |
parent | 53c1420242e05eb9f3566648cafd035cdbada532 [diff] |
USB: HAL: Prevent overriding the MaxPower value to zero If multiple uevents are generated when the device is in power delivery mode, the saved state of MaxPower is overwritten to zero. This causes the MaxPower to be set to 0 when a device that does not support power delivery is connected. Fix this by ignoring the uevents if the power operation mode is ot changed. Change-Id: I1414e2328e4cada640be6eb0d89a1cafa6eaf92f