Commit Graph

304028 Commits

Author SHA1 Message Date
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
Naseer Ahmed
eae171b96b msm: display: Do not create release fence in suspend
When in suspend state, display operation will be stopped,
fence will not be signaled

Signed-off-by: Ken Zhang <kenz@codeaurora.org>
2013-03-04 12:47:04 -08:00
Naseer Ahmed
590f819b66 msm: display: panel recovering from suspend
In suspend state, fb_open cannot turn on panel, need save this info
for resume.
In suspend state, blank setting needs be cached to be used at resuming.

Signed-off-by: Ken Zhang <kenz@codeaurora.org>
2013-03-04 12:47:03 -08:00
Naseer Ahmed
4c1b041757 msm: display: allow fb open even in suspend state
resume might be coming later, allow fb open sucessfully, only
panel driver needs be delayed

Signed-off-by: Ken Zhang <kenz@codeaurora.org>
2013-03-04 12:47:03 -08:00
Saurabh Shah
4c241bf133 msm: display: Allow MDP clocks to use Max clock.
Allowing the MDP clock to use its Max clock in order to avoid the blt
mode switch issues for both MDP mixers, as blt mode switch resulting
in HW hung

Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2013-03-04 12:47:02 -08:00
Ajay Dudani
8a7c73e5b9 staging: android: lowmemorykiller: Change default debug_level to 1
The select...to kill messages are not very useful when not debugging
the lowmemorykiller itself. After the change to check TIF_MEMDIE
instead of using a task notifer this message can also get very
noisy.

Change-Id: Ice171c25801d6faa454b885a23b24b002423b754
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2013-03-04 12:47:01 -08:00
Ajay Dudani
6efdaee3ca staging: android: lowmemorykiller: Don't count reserved free memory
The amount of reserved memory varies between devices. Subtract it
here to reduce the amount of devices specific tuning needed for the
minfree values.

Change-Id: I466ae8b18f5972f6f6d8b5a7d8c4ae69660de53a
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2013-03-04 12:47:01 -08:00
Ajay Dudani
036ffe8786 staging: android: lowmemorykiller: Add config option to support oom_adj values
The conversion to use oom_score_adj instead of the deprecated oom_adj
values breaks existing user-space code. Add a config option to convert
oom_adj values written to oom_score_adj values if they appear to be
valid oom_adj values.

Change-Id: I68308125059b802ee2991feefb07e9703bc48549
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2013-03-04 12:47:00 -08:00
Glenn Kasten
29e4b90027 No world-writable files in debugfs
Change-Id: I60c9107b9f6aef53efbe6fa67f1465b2f1a7c2bb
Signed-off-by: Glenn Kasten <gkasten@google.com>
2013-03-04 12:47:00 -08:00
SathishKumar Mani
69b1f52a8d apq8064: Add support for hdmi multichannel
Provide support for hdmi channel fixup.
Fix channel map order to WAV format.

BUG-ID: 7156174
Signed-off-by: SathishKumar Mani <smani@codeaurora.org>
2013-03-04 12:46:59 -08:00
Naseer Ahmed
6c9ad4d7e6 msm: fb: make the pan task interruptible 2013-03-04 12:46:58 -08:00