backport https://github.com/rmbq/android_kernel_htc_msm8960/commit/874f92583c8162d5fbf238d88acbb746b137df2e