Power key could be in pressed state during boot. Set the flag
to track the press status properly by reading press irq status.
CRs-fixed: 404018
Change-Id: I93a8584420002d9cb399484b3ac77fa2ed954690
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
There is a possibility of receiving a release interrupt
before press when both these actions (press and release) of the
power-key are very close-by (~1-2ms) to the debounce time
of the key. Handle this case by maintaining a state variable.
Also mark the release interrupt as a wakeup source to
wakeup the system when the above mentioned abnormal case
occurs.
CRs-Fixed: 394289
Change-Id: I74475c1e5159dd30e52aca91243eec7e2fac4d57
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
If booted into charger mode, it may take a while to boot into the
userspace charger daemon. If the user is holding the power button during
boot, the keyreset driver will hard-reboot the device.
Change-Id: I36e9e195988b6158b1d129e7a32fd9c967b4813c
Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
If a timeout is requested, a delayed work item will be
scheduled to restart the device. If the keys are released
before the timeout expires, the reset is aborted.
As expected, the reset_fn can be used to reset the device
after the timeout.
Bug: 7344361
Change-Id: I1d77cdb3dcc63f579b1250506f0a30de1e033d67
Signed-off-by: Dima Zavin <dima@android.com>
msm_fb_blank_sub might be called for UNBLANK from
display update work queue, which is at commit state.
Idle detection is invalid in this situation
Add detection for external snd earlyuspend/resume interface.
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Currently switching mdp blt mode is done in dmap done isr which could
cause mdp hang for some panels/targets. One option is added: turning
off timing generator when switching blt mode, to avoid hang issues.
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
pm_restore_console() is called from the suspend/resume path, and this
calls vt_move_to_console(), which calls vt_waitactive().
There's a race in this path which causes the process which requests the
suspend to sleep indefinitely waiting for an event which already
happened:
P1 P2
vt_move_to_console()
set_console()
schedule_console_callback()
vt_waitactive()
check n == fg_console +1
console_callback()
switch_screen()
vt_event_post() // no waiters
vt_event_wait() // forever
Fix the race by ensuring we're registered for the event before we check
if it's already completed.
Change-Id: I83ad994a12d40759d6ff3d46796446853c2a88de
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Preview is paused because of delay in msm_actuator_set_default_focus. The code
to fix af mechanical sound are moved to power down function.
Signed-off-by: Iliyan Malchev <malchev@google.com>
git://codeaurora.org/external/wlan/prima.git
e898e0f wlan: Release 3.2.1.8b
cec588a Disable LFR when a concurrent session is active
9405b17 wlan: Release 3.2.1.8a
4566648 Revert "Don't support LFR when concurrent."
3dd2c24 wlan: Release 3.2.1.8
654a74c TX data path hang issue fix
6877698 Kick DXE TX channel when exit IMPS, if any valid pending frame in the ring
af98ff3 TX DXE Channel descriptor async uncovered cover case fix
1ec64d6 State Machine Cleanup during State transitions
5460b45 Log levels changed appropriately
cb96ba4 Don't support LFR when concurrent.
91dc957 Fix buffer overflow and NULL pointer dereference
c9bcca5 Add support for SoftAP Random BSSID
Signed-off-by: Iliyan Malchev <malchev@google.com>
The controller always does posted writes to transfer descriptors.
A transfer completion interrupt may be generated before dTD is
updated in system memory. A software workaround is already in
place to give 10usec delay after receiving the completion interrupt
if the first dTD in the queue is still active. But this delay
is given only for OUT endpoints. In theory this problem is applicable
to both IN and OUT endpoints. But none of the function drivers indicate
any problem with IN endpoints. Hence delay is not given for IN
endpoints.
The status phase of a control transfer may get stuck if the above
issue is hit for EP0 IN endpoint. Hence apply the software workaround
for EP0 IN endpoint.
CRs-fixed: 409573
Change-Id: Ic07a4421c0066645459d2cc566f0df6691084a43
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
There is bug in the code where interpolate_pc is passed temperature in
DegC at one call site vs deciDegCelcius at other.
Use degC consistently.
Change-Id: I3e5e92e39adf904e62d4c5ffcb6d370c0655f7cf
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Since WLC(wireless charger) supply power to battery without PM8921 charger,
the SoC value is not accurate. This patch adjust OCV(open circuit voltage)
and max CV(constant voltage) value to compensate difference between
WLC and pm8921-charger.
Change-Id: I8fa368f706866d93451c2f663da69c010f9b2a35
When the charger is not initialized it returns -EINVAL when asked
whether usb charger is plugged in. Use the restart reason to check
if we started with a charger insertion.
Change-Id: I2e8fcb4a15af3a66331a921d378bfd5d2dfe4533
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
The BMS driver needs to know the restart reason of the pmic. Add
an api in the pm8xxx design to provide the restart reason.
Change-Id: I0bbad22c5fed8c32dd7de387194e94c8d4b9ad75
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
git://codeaurora.org/external/wlan/prima.git
d79e81f wlan: Release 3.2.1.7b
eb0542d Convert VOS_ASSERT to an ERROR log
7f23467 Revert "TL Low resource problem fix"
83a0e64 wlan: Release 3.2.1.7a
af9315b Revert "No longer call csrNeighborRoamHandleEmptyScanResult()"
57be66e wlan: Release 3.2.1.7
aca98a1 Changes to handle gracefully init scan failure in roaming case
1ea8824 Ignore TX completion failure for Data Null (PM=1) mode during roam
2708e06 No longer call csrNeighborRoamHandleEmptyScanResult()
9edea5d TL Low resource problem fix
f76988f wlan: Fix for memory corruption
19d871e Fix for vos_lock_acquire() failing with return code -4 (i.e -EINTR)
ede9643 Not able to connect back to security AP
2c18409 wlan: Release 3.2.1.6d
a6861f9 Included a Missing prototype declaration
02970dc Return an error if a scan is requested while one is ongoing.
0df9a8b Enqueue preauth in sme command queue
c273de3 wlan: Release 3.2.1.6c
925d334 Proper handling of ENTER IMPS/BMPS failure in host side
c4295cb wlan: Release 3.2.1.6b
ddb06c8 Out-of-bound array indexing while preparing scan channel list.
Signed-off-by: Iliyan Malchev <malchev@google.com>
Before execute operation on display, make sure it is complete idle
Because non-blocking display update has been introduced, need make sure
display update has finished in all entrances except the ones for
initialization.
Change-Id: I0660080262b7e5895f5f558c0a9f71aa84b9aa99
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Modem boots up completedly and opens the logical channel. Mutex is initialized
at that time. If sysmon_get_reason is accessed before that, panic occurs by
accessing the uninitialized mutex. Since this is a valid access scenario, we
add a flag to check if the subsystem has been probed, and return an error if
sysmon_get_reason() gets called before that.
Change-Id: If81f9fc1be5b9e0e9e6e69366d1b8d6df35e2857
Signed-off-by: Iliyan Malchev <malchev@google.com>
Update the ramdump segments to support Riva 1.1; 7MB is allocated to
Riva now across all 8960 and 8064 platforms.
Riva 1.1 0x8f000000 - 0x8f700000
Riva 1.0 0x8f200000 - 0x8f700000
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
Signed-off-by: Jeff Johnson <jjohnson@codeaurora.org>
lge crash handler works only if ssr level is soc. if ssr level is
indepedent, do not set ssr magic number.
b/7309021
Change-Id: I7a2ce6a83a508269b08ad60019d52fb4caa3c4c2
If you execute reboot command without cmd(argument), kernel doesn't
write the boot reason. So you read 'hw_reset' even if no hardware reset.
Change-Id: I20b93f63ab5d04df6521aeac123cabfd16bb42ae
Verify that the user specified length for a PMEM region is smaller than the
size of the entire region as reported by the kernel APIs.
Change-Id: Ic0dedbad0127bdaed70eafc00238b44f982b093b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
While searching for the available buffer entry in the buffer pool the search
should begin from index 1 as zeroth entry is reserved.
Change-Id: I051b0232bb782f073ba9ad0b757a799703814df3
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
- Kernel messages are getting flooded with warning
messages when no valid routing found from source
to sink
- Ratelimit the warning messages
Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
git://codeaurora.org/external/wlan/prima.git
351e056 wlan: Release 3.2.1.6a
fc26b52 Fixed driver initialization problem in case of init error
Signed-off-by: Iliyan Malchev <malchev@google.com>
- Fixed issues in production test
. ghost touch in high and low temperature
. ghost touch with noisy charger connect
. sensing test
- Stablized thumb operation
- Fixed flapping finger width report
Change-Id: I350ed94b9bfcb5a8feba3e0c9529ea86472097cd
Signed-off-by: Iliyan Malchev <malchev@google.com>
Mako's MIPI line clock is a little bit higher than LGSI's recommendation. Due
to this higher clock, flickering could happen in some panels. This patch
reduces the MIPI line clock as LGSI's recommendation.
This also reduces current consumption by ~10mA when the LCD is on.
Signed-off-by: Iliyan Malchev <malchev@google.com>
Calculated SoC could be fluctuated by system load. This patch
remove these fluctuation by using previous SoC if calculated Soc
is higher than previous value during discharging.
Change-Id: I1d144207125ed3c55030004fee1eb4b2489a298c
some function drivers receive control requests before configuration is
selected, which are not being handled due to configuratiopn checks in
android gadget driver, which is resulting in stall on control endpoint.
Fix this issue, by removing the configuration checks, so that function
driver control requests are handled properly.
Change-Id: I90975bb6a7c0201de7715932469c603fea6954af
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Change it to 256 bytes from 384 bytes.
Most USB-AUDIO devices are limited to 256 byte for max iso buffer size. If a
IN_EP_MAX_PACKET_SIZE is bigger than a USB-AUDIO device's max iso buffer size,
it will cause noise. This patch will prevent this case as possibe by reducing
packet size. When using 44.1khz, 2ch, 16bit audio data, if max packet size is
bigger than 176 bytes, it's no problem.
Signed-off-by: Iliyan Malchev <malchev@google.com>