Continously wakelock acquired by usb_moded(Maybe not a bug after profiling)

REPRODUCIBILITY:
OS VERSION: 4.5.0.24
HARDWARE: XPeria 1 II
UI LANGUAGE: US
REGRESSION:

DESCRIPTION:

wake_lock constantly being required by moded_usb, either with moded_usb_input or moded_usb_state. This greatly impacts the current required by the sleeping system.

PRECONDITIONS:

STEPS TO REPRODUCE:

  1. Install the os
  2. check with cat /sys/power/wake_lock when device is screen off
  3. cpu merely gets into sleep, power constantly remains at around 200ma

EXPECTED RESULT:

if this were used for handling usb event, does it better store the mode in the disk? At least don’t need to let it block the wake_lock all the time should be a better option.

ACTUAL RESULT:

MODIFICATIONS:

ADDITIONAL INFORMATION:

P.S.: No matter it actives or not, when disabled, there will going to be a tftp_server showed in wake_lock, and both situation cpu does gets into sleep mode sporadically, so looks like it didn’t halt the sleep pattern, Is there any button I can close this bug?