Commit graph

304038 commits

Author SHA1 Message Date
Ajay Dudani
aa99a90650 input: pm8xxx-pwrkey: Update key press status during probe
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>
2013-03-04 12:47:34 -08:00
Ajay Dudani
93c63d759f input: pwrkey: Handle out-of-order press and release interrupts
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>
2013-03-04 12:47:33 -08:00
Iliyan Malchev
75f55110dc pmic8xxx-pwrkey: move to subsys_init
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:33 -08:00
Iliyan Malchev
2d58d21ace mako_defconfig: enable keyreset driver
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:32 -08:00
Iliyan Malchev
4d71f1bed9 mako: initialize main PMIC earlier
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:32 -08:00
Iliyan Malchev
c49f0bf07b pm8921-core: initialize pwrkey device earlier
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:31 -08:00
Dima Zavin
3e6f6f9e07 ARM: msm: lge: add keyreset device for charger mode
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>
2013-03-04 12:47:30 -08:00
Dima Zavin
e60b38622e input: keyreset: add support for reset after timeout
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>
2013-03-04 12:47:30 -08:00
Dima Zavin
0d90c6ea86 input: keyreset: move init to subsys to be ready early
Bug: 7344361
Change-Id: I3564a354fddd69f352704c9e819ea4538096264a
Signed-off-by: Dima Zavin <dima@android.com>
2013-03-04 12:47:29 -08:00
Dima Zavin
2768c87ae4 input: keyreset: process pressed keys at init
Bug: 7344361
Change-Id: I92c9ec8a7d2882f280af9a5807a6052e54ecc16a
Signed-off-by: Dima Zavin <dima@android.com>
2013-03-04 12:47:29 -08:00
Iliyan Malchev
acb41dd41e fix uninitialized variable warning
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:28 -08:00
Iliyan Malchev
e3fea752c1 fix section mismatch warnings
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:27 -08:00
Naseer Ahmed
c6128ebec5 msm: display: display idle checking update
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>
2013-03-04 12:47:27 -08:00
Naseer Ahmed
e486051c01 msm_fb: display: blt always enabled for 720p,1080p, secure buf
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
2013-03-04 12:47:26 -08:00
Naseer Ahmed
ffde53dc8f msm_fb: display: add options to switch blt mode for dsi video
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>
2013-03-04 12:47:26 -08:00
Naseer Ahmed
ca82d7b7cd msm: mdp: Remove mixer1 blt for external
BLT mode is not needed for external displays since
there is no extra downscaling needed for videos.
2013-03-04 12:47:25 -08:00
Devin Kim
f5520c6ba8 camera: fix null pointer execption
related commit is c124643993f76844b04cad635142181da81c3296

b/7355977

Change-Id: I7859af68e4d17065172aa27453230ccdef884521
2013-03-04 12:47:24 -08:00
Devin Kim
a4328beabe vt: fix race in vt_waitactive()
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>
2013-03-04 12:47:24 -08:00
taeyol.kim
4499421f9d camera: fix the preview being paused on touch af
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>
2013-03-04 12:47:23 -08:00
Iliyan Malchev
d9432e2b34 prima: release v3.2.1.8b
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>
2013-03-04 12:47:22 -08:00
Ajay Dudani
a5a1bacb35 USB: ci13xxx_udc: Apply posted writes workaround to control IN endpoint
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>
2013-03-04 12:47:22 -08:00
choongryeol.lee
7111d4da04 mako: thermal: change min charging current in thermal mitigation
Change minimum charging current to 400mA in thermal mitigation.
2013-03-04 12:47:21 -08:00
Ajay Dudani
0cfe78965e power: pm8921-bms: use consistent temperature units
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>
2013-03-04 12:47:21 -08:00
choongryeol.lee
6d5eafbcdf power: pm8921-bms: support wireless charger bms
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
2013-03-04 12:47:20 -08:00
choongryeol.lee
5f7eb9a0fc mako: power: support wireless charger bms using pm8921-bms
Support wireless charger bms using pm8921 bms.

Change-Id: Ica47637bde86f125aa9b0ebdc4816d3715436009
2013-03-04 12:47:20 -08:00
choongryeol.lee
9843a708f3 power: pm8921-bms: use restart reason for usb detection
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>
2013-03-04 12:47:19 -08:00
choongryeol.lee
9309bccb81 mfd: pm8xxx: provide api to read restart reason
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>
2013-03-04 12:47:18 -08:00
Iliyan Malchev
668d54f380 prima: release v3.2.1.7b
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>
2013-03-04 12:47:18 -08:00
insup.choi
7d0c310829 camera: fast auto focus
-retriggering at little shapeness change
-enhancing low performance such as hand jitter
2013-03-04 12:47:17 -08:00
Naseer Ahmed
c2975c4ed3 msm: display: add more checking to ensure display is idle
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>
2013-03-04 12:47:16 -08:00
Devin Kim
017f1bf60d sysmon: check if mutex lock is available
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>
2013-03-04 12:47:16 -08:00
insup.choi
b2e0ace458 camera: fixed turning off camera making a sound
Change-Id: I34dec05cda506ff6f1aa6d660b89349ce0125d54
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:15 -08:00
Jeff Johnson
bcb805b30a wcnss: Update Riva ramdump segments
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>
2013-03-04 12:47:15 -08:00
Devin Kim
21d0347404 debug: subsystem_restart: do not set ssr magic number on independent ssr
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
2013-03-04 12:47:14 -08:00
Naseer Ahmed
8bc7f7dfd6 msm: mdp: Fix clocks
The max supported clock was wrong
2013-03-04 12:47:14 -08:00
Devin Kim
045007dc26 mako: fix typo of ram_console
Boot into --> Boot info

Change-Id: I3f49d61ad64fb5159eca4159c84a2e95caea55b8
2013-03-04 12:47:13 -08:00
Devin Kim
471e4d5bef Revert "staging: android: ram_console: honor dmesg_restrict"
This reverts commit dd09979346.

Change-Id: If3d555d89f9aea765961b90eb2cd65dd92a78949
2013-03-04 12:47:12 -08:00
Devin Kim
63e59a96a6 msm: restart: write bootreason as reboot when reboot without cmd(argument)
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
2013-03-04 12:47:12 -08:00
Devin Kim
35bf4c9678 mako: append the boot reason to last_kmsg
b/7307796

Change-Id: I8e2a7fc81af1fd7df030571f856e06b93fad85dc
2013-03-04 12:47:11 -08:00
Ajay Dudani
5f63a32adc msm: kgsl: improved bounds checking on user-specified parameters
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>
2013-03-04 12:47:11 -08:00
Ajay Dudani
b6c60c851b msm: vidc: fix buffer pool index
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>
2013-03-04 12:47:10 -08:00
SathishKumar Mani
453e0966b1 ASoc: soc-pcm: Move dev_warn to pr_warn_ratelimited
- 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>
2013-03-04 12:47:09 -08:00
Iliyan Malchev
2b3bd90bcc prima: release v3.2.1.6a
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>
2013-03-04 12:47:09 -08:00
Devin Kim
d6f83486c8 mako: leds: fix greenish fadeout
Fixed pluse notification light being greenish with it fades out.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-03-04 12:47:08 -08:00
Jongrak Kwon
b56d966c19 mako: touch: PLG137 firmware E027 update
- 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>
2013-03-04 12:47:08 -08:00
choongryeol.lee
36faabbf48 mako: display: reduce mipi line clock per LGSI spec
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>
2013-03-04 12:47:07 -08:00
choongryeol.lee
c904c588f0 power: pm8921-bms: remove SoC fluctuation during discharging
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
2013-03-04 12:47:06 -08:00
taeju.park
18eddfffdd usb: gadget: Handle function control requests before set config
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>
2013-03-04 12:47:06 -08:00
chahee.kim
e82facee16 USB: gadget: f_audio_source: change max ISO packet size
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>
2013-03-04 12:47:05 -08:00
ehgrace.kim
f0f3c48835 mako: slimbus: fix the duplicated slimbus code
There were duplicated codes to check whether there are pending changes

Change-Id: I4554c6be94c42f236f487e335fa1dbe71b970c12
2013-03-04 12:47:04 -08:00