kernel/kernel-mfld-blackbay.git
12 years agoRevert "audio:sst: Change work queues to singlethread work queues"
Ramesh Babu K V [Mon, 4 Jun 2012 10:03:35 +0000 (15:33 +0530)]
Revert "audio:sst: Change work queues to singlethread work queues"

BZ: 37713

This reverts commit e669f0fd2aeb0ae5b7a524ad05e3a5c977eeb4ce.

Change-Id: I82f8f824dc639aa4a92b803f8a9947e51472e171
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/52158
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoHDMI-Audio: Fix Spinlock-Recursion and Null-Pointer issues
Shreyas Neerebailoor [Fri, 8 Jun 2012 04:39:38 +0000 (10:09 +0530)]
HDMI-Audio: Fix Spinlock-Recursion and Null-Pointer issues

BZ: 21688 37320

Change to prevent Recursive spinlock in trigger.
In middle of start trigger, if HDMI is Pluged-out, the driver
state is disconnected and unplug function calls snd_pcm_stop to
inform the upper layer about disconnection. This internally calls
snd_pcm_stop and stop trigger. Here the lock is recursively
acquired. Solution is to not call snd_pcm_stop if the
substream is active.

Change to prevent Substream NULL during programming buffer.
During successive quick plug and unplug of HDMI cable,
unplug is processed before Start trigger gets to process.
But the trigger state is saved. On unplug the Stop trigger is
called and because it is disconnected it does nothing. Once
cable is plugged in silence is played and the old saved
start trigger causes to retrieve the substream which is NULL
at this point of time. Solution is to clear Trigger state during
unplug. During Plugin inform the upper layer about the event,
if the substream is still active.

HDMI Audio code ported from R2 branch contains Dummy_playback
code. This workaround is no longer needed in R3. (ICS platform)
This patch removes dummy_playback implemtation. Some variables
are renamed for better readability.

Change-Id: I36f4b655316846f8dbf7e0f8935f6a6cff707624
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/52079
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4]lis3dh: Send init events to userspace when status changes
Leo Yan [Tue, 12 Jun 2012 00:24:22 +0000 (08:24 +0800)]
[PORT FROM R4]lis3dh: Send init events to userspace when status changes

BZ: 39086

In some use case, when sensor device's status changes, such as
enable/disable, interrupt/polling mode switching. Android framework
doesn't have enough accelerometer data to set window orientation
correctly, so we need to send them manually.

Change-Id: I53ba0b15b8dcabd01dab8209de9515570e5547a5
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/52406
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosmb347_charger: Add a small delay after OTG-disable.
Pavan Kumar S [Thu, 7 Jun 2012 09:27:29 +0000 (14:57 +0530)]
smb347_charger: Add a small delay after OTG-disable.

BZ: 39775

When OTG disabled and charging enabled, send the uevent after a
short delay, as Status Register C is not updated immediately.

Change-Id: I24160a7a5f9350aa50ca5dbad6af5b0c23a4188b
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Reviewed-on: http://android.intel.com:8080/51924
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agofmradio: new delivery from T.I with bug fixes in FM driver
Frode Isaksen [Mon, 4 Jun 2012 13:58:13 +0000 (15:58 +0200)]
fmradio: new delivery from T.I with bug fixes in FM driver

BZ: 39471

OMAPS00269234:
Changes in FM Driver include:( fm_drv_chr.c )

1. Initialization of the FM lock before the usage.

2.Removed call init_waitqueue_head as this is already done at fm_chr_open()

3.Memory leak fixes. Proper memory freeing for the FM SKB buffers

Change-Id: I6999a87a57bd7327b5aa90326ab9843a4c098cfe
Signed-off-by: Frode Isaksen <frodex.isaksen@intel.com>
Reviewed-on: http://android.intel.com:8080/51277
Reviewed-by: Peix, Fabien <fabien.peix@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: Zayet, Aymen <aymen.zayet@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoVPN: Enable L2TP/IPSec mode
Fei Yang [Fri, 18 May 2012 18:41:41 +0000 (11:41 -0700)]
VPN: Enable L2TP/IPSec mode

BZ: 37071

This patch set the following to enable VPN in L2TP/IPSec mode,
CONFIG_L2TP=y
CONFIG_NET_KEY=y
CONFIG_NET_KEY_MIGRATE=y

Change-Id: Ib00717215b646f67ce4539d1b4f8c8533ff671d6
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/52370
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoPtrace: enable the process to read other process's stack and comm
xiaobing tu [Wed, 6 Jun 2012 06:42:01 +0000 (14:42 +0800)]
Ptrace: enable the process to read other process's stack and comm

BZ: 36161

For debug usage,For debug ANR and UIWDT issues, we need get more details from the
/d/binder, /proc/xxx/stack, proc/xxx/comm, from it we can know which
process block the binder read, and we can also get more other useful
informations, but the current ptrace implement may block it. the patch
add a debugfs interface to enable read by default.
Signed-off-by: xiaobing tu <xiaobing.tu@intel.com>
Change-Id: Ied22eaa00316ff5e3602799af5825f2afb4fa21f
Reviewed-on: http://android.intel.com:8080/51907
Reviewed-by: Zhang, LongX <longx.zhang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Ren, Jack <jack.ren@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "hwmon: Change late resume priority to enable gfx first"
Marie-Celine Dubut [Mon, 11 Jun 2012 08:57:14 +0000 (10:57 +0200)]
Revert "hwmon: Change late resume priority to enable gfx first"

BZ: 37619

This reverts commit 2aa1c6020d920a6e77c967f7428db328c89536b5.
This reverts patch http://android.intel.com:8080/#/c/51961/

Change-Id: I361acce85160f5a761651c8710d4c8a37fc4f9fc
Signed-off-by: Marie-Celine Dubut <marie.celinex.dubut@intel.com>
Reviewed-on: http://android.intel.com:8080/52298

12 years agohsi_ffl_tty.c: Do not rely on TTY_THROTTLE when low_latency is set
Vincent Pillet [Wed, 30 May 2012 12:54:03 +0000 (14:54 +0200)]
hsi_ffl_tty.c: Do not rely on TTY_THROTTLE when low_latency is set

BZ: 35524

As TTY_THROTTLE can be wrong when tty->low_latency is set (rare race condition
identified), we stop relying on this bit. No drawback, as tty_insert_flip_string_flag
will return 0.

Change-Id: Iede1babcaa076cbb450dfafca4ef5266f37210a1
Signed-off-by: Vincent Pillet <vincentx.pillet@intel.com>
Reviewed-on: http://android.intel.com:8080/51986
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agon_gsm.c : Open gsmtty in blocking mode whitout taking count of Carrier Detect
Vincent Pillet [Wed, 9 May 2012 14:39:17 +0000 (16:39 +0200)]
n_gsm.c : Open gsmtty in blocking mode whitout taking count of Carrier Detect

BZ: 28988

Some modem (IMC, but other as well) do not set CD when DLCI for AT command are
opened. CLOCAL can't be used before the first open, as file descriptor is
needed (fd is given once CD is received)

We add here a new parameter to the MUX during initialization IOCTL.
Parameter name : clocal.
clocal = 1 : Force CLOCAL, ie. do not wait for Carrier Detect from modem
clocal = 0 : Wait for Carrier Detect from modem

Default value in MUX is 1.

As tty_port_block_til_ready will exit due to CLOCAL, we need also to wait UA
from modem. We have also to wait UA in gsmtty_close.

CLOCAL can be unset later as usual.

Change-Id: I01d78449dac3d21196aaa8f4f984baf8a3fb578f
Signed-off-by: Vincent Pillet <vincentx.pillet@intel.com>
Reviewed-on: http://android.intel.com:8080/51984
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: CSS/FW release from Synergy baseline of 30May2012
Michie Yamauchi [Thu, 31 May 2012 04:31:06 +0000 (06:31 +0200)]
atomisp: CSS/FW release from Synergy baseline of 30May2012

BZ: 28761

This release of CSS/FW addresses the following issues:
- Making thresholds for rejected AWB blocks tunable

Change-Id: I8b382a28825f41f8af6665f189087e32c260ebb4
Signed-off-by: Michie Yamauchi <michie.yamauchi@intel.com>
Reviewed-on: http://android.intel.com:8080/51527
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Van Immerzeel, Ronald <ronald.van.immerzeel@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: flash-light appears on the screen.
yoshio wada [Wed, 25 Apr 2012 23:53:49 +0000 (01:53 +0200)]
atomisp: flash-light appears on the screen.

BZ: 36446

keep the timing to write the itg and gain value into mt9e013 register.
- use SOF irq
- implement the gain delay filter in the sensor driver

Solution :
- atomisp
- libcamera
- libmfldadvci
- bionic

Change-Id: Iaba0da1906af9895af2b6f9054d3601d3455c044
Signed-off-by: Yoshio Wada <yoshio.wada@intel.com>
Reviewed-on: http://android.intel.com:8080/51348
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: fix regression in file injection support
Kai Vehmanen [Mon, 4 Jun 2012 15:46:06 +0000 (18:46 +0300)]
atomisp: fix regression in file injection support

BZ: 38404

File injection was broken in the following commit:
fd67fb1 atomisp: port css codebase to support mrfl vp

Most of the patch was affecting only CONFIG_X86_MRFLD builds, but it
contained one ifdef that significantly changed the code flow for other
platforms. This patches reverts those unintented changes.

Change-Id: I62580ab93f5f34b8a18dc3cee05382b7badcce07
Signed-off-by: Kai Vehmanen <kai.vehmanen@intel.com>
Reviewed-on: http://android.intel.com:8080/51300
Reviewed-by: Tao, Jing <jing.tao@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: fix kernel panic when setting csc
Geng Xiujun [Fri, 1 Jun 2012 05:23:23 +0000 (13:23 +0800)]
Gfx-Display: fix kernel panic when setting csc

BZ: 34537

operator precedence is misused.

Change-Id: Ifbfacc4ec108533b85f133b47b662e82a581a04e
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/51963
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: resolved the flashing issue when booting up SC1.
Jackie Li [Tue, 8 May 2012 02:40:51 +0000 (10:40 +0800)]
GFX-Display: resolved the flashing issue when booting up SC1.

BZ: 32042

Fixed by:
1. Not doing mode setting, DPMS operation and suspending/resuming before driver
   loadling completes, as IFWI turns on the MIPI panel when launching system;
2. Replacing mdfld_dsi_dbi_update_power() with mdfld_auo_dsi_dbi_set_power(),
   to avoid potential incorrect DCS command sequence.
3. Making DBI panel update_fb() work when the frame buffer device is used to
   update screen in droidboot mode.
4. Also fixed the droidboot displaying nothing issue caused by patch #47785,
   by sending "write_mem_start" DSI command in TE interrupt handler in droidboot
   mode where there isn't page flip request.

This issue is from Enzo BZ #570.

Change-Id: I9c52ef7e4e28ec6504be67843121293fbc2a6cd8
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/51962
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agohwmon: Change late resume priority to enable gfx first
John Mathew [Mon, 21 May 2012 14:43:51 +0000 (17:43 +0300)]
hwmon: Change late resume priority to enable gfx first

BZ: 37619

This patch is intended for BZ: 33446. Currently during a
system wide late resume call the hwmon late resume calls
are called before gfx_display late resume call. This patch
changes the order to enable gfx_diplay late resume calls
to be called before the hwmon late resume calls.

Change-Id: I8991998dc447b5940c85d3427fcb5aa43934adb5
Signed-off-by: John Mathew <john.mathew@intel.com>
Reviewed-on: http://android.intel.com:8080/51961
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX_display: optimize panel reset time
Ke Ai [Fri, 1 Jun 2012 06:27:13 +0000 (14:27 +0800)]
GFX_display: optimize panel reset time

BZ: 37475

contracted with panel vender,
After panel reset and before sending IC setting,
wait for 7ms is ok.

Change-Id: Idc3a4261f8288e2436a26c43d24562619ce515cd
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/51960
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/host:Enter runtime_suspend without 500ms delay when otg state == A_HOST
jianqian [Tue, 5 Jun 2012 06:23:50 +0000 (14:23 +0800)]
usb/host:Enter runtime_suspend without 500ms delay when otg state == A_HOST
 || otg state == A_WAIT_B_CON

BZ: 36969

Enter runtime_suspend without delay in runtime_idle to prevent port change happens
during 500ms delay.
If during 500ms delay, devices like mouse connect to port, this event can not process
for driver also enter runtime suspend.

Change to submit to R3-Stable.

Change-Id: I5286c0b69ca667a4a40052a273e014bfc3ad2fcb
Signed-off-by: jianqian <jianqiang.tang@intel.com>
Reviewed-on: http://android.intel.com:8080/51382
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/host : Add time-out wakelock to let usb finish work before system suspend
jianqian [Tue, 5 Jun 2012 05:38:58 +0000 (13:38 +0800)]
usb/host : Add time-out wakelock to let usb finish work before system suspend
 or after system resume.

BZ: 34381

[PATCH 3/3]

Add time-out wakelock in ehci-hcd.c and hub.c to let usb finish work before system suspend.

After enable D0i3/D3 for host, usb host do not hold any wakelock when
doing usb work, this will cause usb cannot finish enumeration and
releated work such as report uevent to upper layer to turn on screen
before system enter suspend.

Note: When system entering S3, this patch may not work for system may not
trigger any wakelock of this patch.

Change-Id: Ied432d1da40215589f7aeb644f3a3272aa60d506
Signed-off-by: jianqian <jianqiang.tang@intel.com>
Reviewed-on: http://android.intel.com:8080/51380
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/host : Add time-out wakelock data structure to usb_hcd and intel_mid_otg_xceiv.
jianqian [Tue, 5 Jun 2012 05:30:06 +0000 (13:30 +0800)]
usb/host : Add time-out wakelock data structure to usb_hcd and intel_mid_otg_xceiv.
Also do init and distory for this wakelock.

BZ: 34381

[PATCH 2/3]

Add time-out wakelock data structure to usb_hcd and intel_mid_otg_xceiv.
Also do init and distory for this wakelock.

Change-Id: Ifc24d16d83a25aaff4c0e0ad8d20af34dfaaf69c
Signed-off-by: jianqian <jianqiang.tang@intel.com>
Reviewed-on: http://android.intel.com:8080/51379
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/host : Disable persist_enable feature for there is risk for mistake.
jianqian [Tue, 5 Jun 2012 05:19:12 +0000 (13:19 +0800)]
usb/host : Disable persist_enable feature for there is risk for mistake.

BZ: 34381

[PATCH 1/3]

Disable persist_enable feature for there is risk for mistake
and can not turn on screen.

Change-Id: I6ac51eb4e67b6ebc7698682a46c2a29111ca0846
Signed-off-by: jianqian <jianqiang.tang@intel.com>
Reviewed-on: http://android.intel.com:8080/51378
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[REVERTME] Improve check of validity of Fabric Log Buffer
Christophe Lebouc [Thu, 7 Jun 2012 14:59:18 +0000 (16:59 +0200)]
[REVERTME] Improve check of validity of Fabric Log Buffer

BZ: 40861

Improve check of validity of Fabric Log Buffer

Change-Id: Ia1c605d4a14e58dd3f3c8769dff4a350589a59af
Signed-off-by: Christophe Lebouc <christophe.lebouc@intel.com>
Reviewed-on: http://android.intel.com:8080/52010
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Leveque, Olivier <olivier.leveque@intel.com>
Reviewed-by: Onkalo, Samu <samu.onkalo@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoHDMI-Audio: Prevent Suspend if the substream is alive
Shreyas Neerebailoor [Fri, 18 May 2012 03:27:35 +0000 (08:57 +0530)]
HDMI-Audio: Prevent Suspend if the substream is alive

BZ: 36456 36536

In cases of short and repeated sound clips like alarm,
the Stop-Start Triggers may be called in between.
On HDMI, if in between Stop and Start trigger, suspend
is requested, the device would move to suspend.
To prevent this suspend when the clip is still playing,
additional check for a valid substream is added.

Change-Id: I93ce38d8e27bfbe53568f94114d00b053243bec8
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/51410
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "Graphics: Lex display command mode support"
yifei.xue [Tue, 29 May 2012 08:31:47 +0000 (16:31 +0800)]
Revert "Graphics: Lex display command mode support"

BZ: 32664
This reverts commit 6a844894383789ecfdd760c8e617e21f212dbab4.

Change-Id: I790ddcca5db5994a1c1cb44aa210fdd1dca4f314
Signed-off-by: Erwan Mahe <erwan.mahe@intel.com>
Reviewed-on: http://android.intel.com:8080/52034

12 years agosfi-cpufreq : Modifying residency_count_multiplier according to maximum operating...
Prachita Talathi [Mon, 28 May 2012 10:39:05 +0000 (16:09 +0530)]
sfi-cpufreq : Modifying residency_count_multiplier according to maximum operating frequency supported by the platform

BZ: 38418

P-state driver calculates the CPU load value based upon the C-state(C2 to C6)
residencies in the given time interval. Since MSRs record the residency with 1MHz clock,
to compute the actual residency at maximum speed, the value should be multiplied by
a factor = (maximum clock / 1M ).

This patch makes the calculation of this multiplier generic by taking the maximum
frequency from the frequency table as the multiplier value.

Change-Id: I5f6e37cd3ad9e488c04c9926ddb8e9314ccb8947
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Signed-off-by: Prachita Talathi <prachita.j.talathi@intel.com>
Reviewed-on: http://android.intel.com:8080/51412
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2][Audio] Noise during phone call on Lenovo Medfield design
Mathieu Soulard [Tue, 5 Jun 2012 11:53:52 +0000 (13:53 +0200)]
[PORT FROM R2][Audio] Noise during phone call on Lenovo Medfield design

BZ: 38506

Audience recommends to assert the reset line 1ms minimum.
This patch increase the reset assert last from 100us to 1100us.

If the reset line is not asserted long enough, es305b internal
PLL initialization may fail. In such case noise is observed
during phone call.

Change-Id: I1c079ce8716bfae4260a30ec0c3be21322237e26
Signed-off-by: Mathieu Soulard <mathieu.soulard@intel.com>
Reviewed-on: http://android.intel.com:8080/51508
Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAPI for setting and reading UMIP OEM Factory flag
David Castelain [Fri, 11 May 2012 17:25:22 +0000 (19:25 +0200)]
API for setting and reading UMIP OEM Factory flag

BZ: 35509

API creation for setting and reading UMIP OEM Factory flag in intel_mid_umip.

Change-Id: Ie316a74e99517947c59449bd55c4af29db8f63d5
Signed-off-by: David Castelain <davidx.castelain@intel.com>
Reviewed-on: http://android.intel.com:8080/51533
Reviewed-by: Sahukar, Surya P <surya.p.sahukar@intel.com>
Tested-by: Afantenos, Marie CecileX <marie.cecilex.afantenos@intel.com>
Reviewed-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: check hdmi state in display runtime suspend
Tong, Bo [Wed, 6 Jun 2012 13:13:29 +0000 (21:13 +0800)]
Gfx-Display: check hdmi state in display runtime suspend

BZ: 37468

This is the patch to correct the logic of patch 49533 in which it will
block display goes into D0i3. By adding hdmi_state check to determine
if it need to check hdmi audio suspend status.

Change-Id: I6ae9a768f4c1d795b2fd7e17c4c2624646d9ce66
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/51779
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[GFX-DISPLAY] Disable psb frame buffer driver ops to avoid intel logo disappear.
Zhouzhou(Scott) Fang [Tue, 5 Jun 2012 14:09:25 +0000 (22:09 +0800)]
[GFX-DISPLAY] Disable psb frame buffer driver ops to avoid intel logo disappear.

BZ: 38396

There is a black screen interval between firmware logo and Android
system logo, the logo drawn by firmware will be cleared intentionly
by kernel console layer, it is not what we want. Since frame buffer
operation won't be needed in Andriod system, disable driver layer's ops.

Change-Id: I0e80d3600b9f0ffad5ba4fe43501e7d1c9863aac
Signed-off-by: Zhouzhou(Scott) Fang <zhouzhou.fang@intel.com>
Reviewed-on: http://android.intel.com:8080/51709
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: add related notification for vbus invalid case
Wu, Hao [Mon, 4 Jun 2012 13:45:00 +0000 (21:45 +0800)]
usb/penwell_otg: add related notification for vbus invalid case

BZ: 39874

Add vbus invalid notification from usb driver, for overcurrent
condition for USB host mode.

Change-Id: I413aa37bf87384b30a918d3facf9ae8b402acdff
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/51550
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg_test: use usb warning code instead of error code
Wu, Hao [Mon, 4 Jun 2012 11:20:22 +0000 (19:20 +0800)]
usb/penwell_otg_test: use usb warning code instead of error code

BZ: 39874

Use usb warning code will be more readable than just error code.

Change-Id: I6345a8a676beb45280926b595dce386ff68ddd57
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/51549
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/core: switch to usb warning code
Wu, Hao [Mon, 4 Jun 2012 11:19:40 +0000 (19:19 +0800)]
usb/core: switch to usb warning code

BZ: 39874

Use warning code will be more readable.

Change-Id: I8edbe195223bef323f6f1f4799e0c1dd8f656583
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/51548
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/core: add warning code for notifcation
Wu, Hao [Mon, 4 Jun 2012 11:17:39 +0000 (19:17 +0800)]
usb/core: add warning code for notifcation

BZ: 39874

Use warning code will be more readable than just error code.
Also add one more warning code for VBUS INVALID case.

Change-Id: I4f5343f6c25c134233c240ecf81652c1ab0d7294
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/51547
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphics: Lex display command mode support
yifei.xue [Tue, 29 May 2012 08:31:47 +0000 (16:31 +0800)]
Graphics: Lex display command mode support

BZ: 32664

Enable the LEX display command mode

Change-Id: I897654b6d864fa91b54202a1682e8b1f27337b67
Signed-off-by: yifei.xue <yifeix.xue@intel.com>
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/51697
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: sdhci: add spinlock when acquire/release eMMC mutex
Chuanxiao Dong [Mon, 4 Jun 2012 02:25:47 +0000 (10:25 +0800)]
mmc: sdhci: add spinlock when acquire/release eMMC mutex

BZ: 39815

If sdhci driver really has multiple threads acquiring eMMC mutex,
there is a race condition within acquiring and release mutex. This
patch will add a spinlock to avoid such race condition.

Change-Id: I2b9f84a1c0dc7010606853352bbd31c238c1b353
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/51148
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-DISPLAY: Add mutex in __dpi_panel_power_off to pretect pipe disabled after DRM_WA...
Li Zhuangzhi [Mon, 28 May 2012 13:39:07 +0000 (21:39 +0800)]
GFX-DISPLAY: Add mutex in __dpi_panel_power_off to pretect pipe disabled after DRM_WAIT_ON signaled

BZ: 37139

Issue:
On Lexington phones, press power button when playing video, sometimes sounds of video will still
playing for a while.

Solution:
Add mutex in __dpi_panel_power_off to pretect pipe disabled after DRM_WAIT_ON signaled by last
vblank event when playing video, otherwise the last vblank event will lost when pipe disabled
before vblank interrupt coming sometimes, it will cause the media pausing action blocking for 3s.

Change-Id: I2e55e3220619bdacd9cca83c67fbaac6be1dbaa6
Signed-off-by: Li Zhuangzhi <zhuangzhi.li@intel.com>
Reviewed-on: http://android.intel.com:8080/51376
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: refine HDMI audio interface in display driver
Lei Zhang [Mon, 21 May 2012 12:27:34 +0000 (20:27 +0800)]
Gfx-Display: refine HDMI audio interface in display driver

BZ: 37468

This is the kernel patch to refine HDMI audio interface in display driver.
(1) using ioctl interface to do hotplug event notification instead of doing
it in dpms, which gurantees the event won't miss to audio driver.
(2) define new query interface to check HDMI audio status instead of using
suspend to do audio busy check.
(3) modify some of the variable names.

Change-Id: I8f24f4a891ae92ca04769facf470f6dba28d0cbd
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/51375
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: postpone hdmi encoder restore
Geng Xiujun [Mon, 28 May 2012 10:48:52 +0000 (18:48 +0800)]
Gfx-Display: postpone hdmi encoder restore

BZ: 38178

after late resume, both mipi and hdmi are enabled, and lock screen should be
displayed. while actually an intermediate picture is showed before showing lock
screen. the reason is there is a early_suspend callback for fb device, a thread
loop in framework check its status to see whether fb device is ready to draw.
its level is 100, but the level of gfx_early_suspend is 150. so in early
suspend, the sequence is stop_drawing_early_suspend() --> gfx_early_suspend(),
while in late_resume, the sequence is gfx_late_resume() -->
start_drawing_late_resume(). so the first flip happens after enable pipe and
plane.

the solution is:
1. for mipi, before enabling pipe and plane, restore a black framebuffer.
2. for hdmi, postpone enable hdmi plane to let flip happen fist.

Change-Id: Ib15e72b24d02de97d4f8928afbcbb9fc24743ebd
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/51373
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agokernel-drm: avoid msvdx power-on to read IED register
Fei Jiang [Sun, 3 Jun 2012 15:45:50 +0000 (23:45 +0800)]
kernel-drm: avoid msvdx power-on to read IED register

BZ: 37972

Instead to use VA_RT_FORMAT_PROTECTED to detect if IED is on.
Power-on msvdx to read IED register is not reliable,
because driver only suspend msvdx during interrupt handler.

Change-Id: I28815478ae3baee1f47682955dbf3144575e6071
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/51061
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agokernel-drm: resolve linked list operation contend issue
Fei Jiang [Sun, 3 Jun 2012 14:00:22 +0000 (22:00 +0800)]
kernel-drm: resolve linked list operation contend issue

BZ: 38174

Linked list operation need be protected with spin_lock,
otherwise it will cause random contend issue.

Change-Id: I61102fe9f9e5c984d48046530aa893eb5992a42c
Signed-off-by: Fei Jiang <fei.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/51050
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoKERNEL:SWAP: disable SWAP
Fei Yang [Fri, 25 May 2012 22:33:51 +0000 (15:33 -0700)]
KERNEL:SWAP: disable SWAP

BZ: 36751

Disable SWAP as we don't have a swap partition on the phone or
tablet.

Change-Id: I25bfaa70bfebdcb0bdce2155e7ee5df358756f2d
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/51331
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosst: fix the potential spin dead lock and sched bug
liu chuansheng [Tue, 29 May 2012 15:19:03 +0000 (23:19 +0800)]
sst: fix the potential spin dead lock and sched bug

BZ: 38755

In sst interrupt handler, it will call sst_sync_post_message API,
which will try to get the spin_lock, if the irq handler is called
in the thread context which has obtained the spin_lock, it will cause
spin lock dead lock.

And sst_sync_post_message is called from irq handler, but usleep_range
is called by sst_sync_post_message which will cause shed bug due to
schedule in atomic.

Change-Id: I3bc063e78b9f6d65e989cffe4a95dba6acc048c5
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/51071
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[AUDIO] Intel MID I2S: Set the SSP in SLAVE MODE when closing the device
Selma Bensaid [Mon, 4 Jun 2012 09:15:14 +0000 (11:15 +0200)]
[AUDIO] Intel MID I2S: Set the SSP in SLAVE MODE when closing the device

BZ: 38025

IN BT SCO Normal Mode the SSP1 is used in MASTER MODE. The SSP1 should be
configured in SLAVE MODE when closed to avoid any impact on Modem-MSIC and
Modem-BT connection and avoid audio glitches.

Change-Id: I6628e82623c6d28e1aa60fa376e305de7c481a2c
Signed-off-by: Selma Bensaid <selma.bensaid@intel.com>
Reviewed-on: http://android.intel.com:8080/51394
Reviewed-by: De Chivre, Renaud <renaud.de.chivre@intel.com>
Reviewed-by: Le Gall, Louis <louis.le.gall@intel.com>
Reviewed-by: Di Folco, NeilX <neilx.di.folco@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[REVERT ME] Temporary enabling of PN544 trace
Dejan REBRACA [Thu, 24 May 2012 15:18:54 +0000 (17:18 +0200)]
[REVERT ME] Temporary enabling of PN544 trace

BZ: 38815

Urgent request to temporary enable PN544, to facilitate
debugging of tombstones (BZ 28323).

Change-Id: I1a39738e7f896e0c268c151ec998078a529eff03
Signed-off-by: Dejan REBRACA <dejanx.rebraca@intel.com>
Signed-off-by: Ken Wahid <kenx.wahid@intel.com>
Reviewed-on: http://android.intel.com:8080/51281
Reviewed-by: Niciarz, Sebastian <sebastian.niciarz@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agofmradio: set timeout 10 seconds instead of 500 jiffies in FM char driver read and...
Frode Isaksen [Thu, 24 May 2012 16:16:55 +0000 (18:16 +0200)]
fmradio: set timeout 10 seconds instead of 500 jiffies in FM char driver read and remove a printk on timeout

BZ: 33530

Set timeout as a multiple of HZ instead of jiffies in the FM char driver read function,
since jiffies may change with the kernel.
The timeout is set to 10 seconds as is done in the GPS char driver.
Also, do not log an error on read timeout, since it is not an error.

Change-Id: Ied50adfa56f1812d27caa671e11f8bdf08c2166e
Signed-off-by: Frode Isaksen <frodex.isaksen@intel.com>
Reviewed-on: http://android.intel.com:8080/51235
Reviewed-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: Peix, Fabien <fabien.peix@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4] [Enzo Support] Revert "atomisp: lc898211: add temporary code for early...
David Cohen [Thu, 31 May 2012 13:26:19 +0000 (06:26 -0700)]
[PORT FROM R4] [Enzo Support] Revert "atomisp: lc898211: add temporary code for early development stage"

BZ: 27947

This reverts commit 99db2b1afac52089c7f71c161094ebeeab1487c7.

Change-Id: I0663a5373d5abc00bed975bc8e6d8945029effe6
Orig-Change-Id: I66b49954927956dbdd7b41198460fa4938312b64
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/51398
Reviewed-by: Niemimuukko, Ukri <ukri.niemimuukko@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoFix OSNIB dump at BOOT
Guillaume Betous [Fri, 25 May 2012 09:09:42 +0000 (11:09 +0200)]
Fix OSNIB dump at BOOT

BZ: 38031

Fix correct call to osnib
Also fix variable name

Change-Id: I8a05e8417f64b5b0d305b7126782a1f96c99da60
Signed-off-by: Marie-Cecile Afantenos <marie.cecilex.afantenos@intel.com>
Reviewed-on: http://android.intel.com:8080/51253
Reviewed-by: Tardy, Pierre <pierre.tardy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoREVERTME: sdhci: add BUG_ON() in sdhci_request to catch call trace
Chuanxiao Dong [Tue, 5 Jun 2012 05:26:46 +0000 (13:26 +0800)]
REVERTME: sdhci: add BUG_ON() in sdhci_request to catch call trace

BZ: 37757

Add BUG_ON() to catch the error trace

Change-Id: I8ee27b97380bdae192ec3d1569d1b4baf9cdb970
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/51367
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopci: Check for CONFIG_ATOM_SOC_POWER instead of INTEL_MID_POWER
Jouni Hogander [Thu, 24 May 2012 10:50:31 +0000 (13:50 +0300)]
pci: Check for CONFIG_ATOM_SOC_POWER instead of INTEL_MID_POWER

BZ: 38231

INTEL_MID_POWER changed to CONFIG_ATOM_SOC_POWER. In pci.h we are
still checking INTEL_MID_POWER. Fix this by changing it to check for
CONFIG_ATOM_SOC_POWER.

Change-Id: I97135bac8b76e3b6f4886888a4ac49f7d9537aa6
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/51245
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoalarm: Set the PM alarm threshold to 70 secs.
Aymen Zayet [Wed, 23 May 2012 14:54:57 +0000 (16:54 +0200)]
alarm: Set the PM alarm threshold to 70 secs.

BZ: 26623

Depending on the average of the current consumption in S3 / S0i3 already
measured on Intel MID devices, the threshold should be set to 70 secs to
avoid draining the battery on excessive wakeups from RTC due to alarms.

Change-Id: Icf95bb0b110355da1cb80dc3ad59b71e9febcdc4
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/51244
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoalarm: Adding new threshold to avoid intensive wakeup from S3
Aymen Zayet [Wed, 7 Mar 2012 13:19:03 +0000 (14:19 +0100)]
alarm: Adding new threshold to avoid intensive wakeup from S3

BZ: 26623

For Mobile Internet Devices, saving power is one of the main requirement.
In general, such devices supports already some power management machanism
that allows to to optimize the power consumption (such as suspend to
ram and hibernation). But using such mechanisms could be very penalizing
in term of power consumption in the case where the wakeup from deep sleep
is triggered periodically.

Actually the suspend process starts by waken up all the devices in order
to well prepare them for a deep sleep. Experimental results shows that,
depending on the devices presents on the system, the suspend increases
significantly the power if the wakeup capable alarms are configured to be
triggered before a certain threshold.

Be careful while setting this parameter: a wrong value may increase the
power consumption. So, if no full study was performed on the target
platform, please leave it at its default value.

Change-Id: I6ccc031f4f6991e762e74b8c92a7fa850347f0a5
Signed-off-by: Vishwesh M Rudramuni<vishwesh.m.rudramuni@intel.com>
Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com>
Reviewed-on: http://android.intel.com:8080/51243
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R4] [Enzo Support] atomisp: forward motor's private data ioctl to motor...
David Cohen [Wed, 30 May 2012 17:35:22 +0000 (10:35 -0700)]
[PORT FROM R4] [Enzo Support] atomisp: forward motor's private data ioctl to motor's subdev

BZ: 27947

Change-Id: If9bee4f78db475f0665e46241f69642ba874f7b4
Orig-Change-Id: Ie728cbf37befcacdfa706886108184645cfebac2
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/51107
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosmb347_charger: Disable OTG during shutdown(Rebased from R3-main to R3-stable).
madhu [Mon, 4 Jun 2012 16:51:06 +0000 (22:21 +0530)]
smb347_charger: Disable OTG during shutdown(Rebased from R3-main to R3-stable).

BZ: 37067

Adding a .shutdown function, which disables the OTG.
This is required for the case where we shutdown and OTG is removed.
Unless OTG is disabled during shutdown, OTG-Enable bit in Command Register A
is not cleared in the next boot.

Change-Id: I9110659253d6650ced0cf85af3ff9ff1689b3dfe
Signed-off-by: madhu <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-on: http://android.intel.com:8080/51150
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatmel_mxt_ts: turn off anti-calibration
Hong Liu [Thu, 31 May 2012 06:48:08 +0000 (14:48 +0800)]
atmel_mxt_ts: turn off anti-calibration

BZ: 38574

It is suggested from vendor to turn off anti-calibration to improve
water immunity and palm detection.

But we can't just turned off anti-calibration totally.
f.e if we put one finger on touch panel when screen is turning on,
the area under finger will not work anymore until we press power button
to turn off and on the screen to let touch do a calibration to recover.

After screen on, using a timer to wait for 10s before turning off
anti-calibration. This will give touch firmware to recover from the
above situation.

Change-Id: I5cf7152a13b96f0198ebbfaf43099ed0533a5bed
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/51236
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoSTMD/HSI FFL: Modem Cold Reset not following SAS
Faouaz TENOUTIT [Tue, 29 May 2012 12:23:00 +0000 (14:23 +0200)]
STMD/HSI FFL: Modem Cold Reset not following SAS

BZ: 27564

Implemention of the modem cold reset according to the SAS:
- Set the RESET_BB_N pin to low before updating the PMIC register for
better sim protection

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

Change-Id: Ia544118e1f92d429082928e05895e37da4cf219a
Signed-off-by: Faouaz TENOUTIT <faouazx.tenoutit@intel.com>
Reviewed-on: http://android.intel.com:8080/50516
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoHSI AC_WAKE signal dropped before transmitting data
Faouaz TENOUTIT [Fri, 18 May 2012 15:22:02 +0000 (17:22 +0200)]
HSI AC_WAKE signal dropped before transmitting data

BZ: 30594

The AC_WAKE can be dropped in some situation when using PIO transmition mode.

The fix consist of adding two separate timers for RX and TX paths instead of
using one function to poll the wake signal state.

These timers are checking the status of the RX/TX FIFO each 10ms before
setting to low the AC_WAKE signal

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

Change-Id: Ifd5d9b2c010eee1102a255c9caf57a5179243916
Signed-off-by: Faouaz TENOUTIT <faouazx.tenoutit@intel.com>
Reviewed-on: http://android.intel.com:8080/49420
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Pillet, VincentX <vincentx.pillet@intel.com>
Reviewed-by: Akue, LoicX <loicx.akue@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodrivers/staging/matrix: Making matrix driver dynamic kernel module
vivek [Tue, 8 May 2012 19:56:20 +0000 (15:56 -0400)]
drivers/staging/matrix: Making matrix driver dynamic kernel module

BZ: 34094

Changes to make matrix driver dynamic kernel module.

Change-Id: Ie195bd2d6dda7053ead51398693616da600773ae
Signed-off-by: vivek <vivek.thakkar@intel.com>
Reviewed-on: http://android.intel.com:8080/47834
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Yung, Winson W <winson.w.yung@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodrivers/staging/matrix: CLV support for matrix
vivek [Tue, 8 May 2012 19:54:31 +0000 (15:54 -0400)]
drivers/staging/matrix: CLV support for matrix

BZ: 34094

1) To enable CLV platform, certain MSRs need to be read and written from
different logical cpus. Matrix driver which is upstreamed since WW16 needs to
support this.
2) Matrix application needs to read certain MSRs at the process launch. A new
IOCTL interface is thus proposed to allow ring3 to read/write any MSR.

Change-Id: I015cd2926317e48611f37452eb8ba2386fb63f34
Signed-off-by: vivek <vivek.thakkar@intel.com>
Reviewed-on: http://android.intel.com:8080/47833
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Yung, Winson W <winson.w.yung@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display:FB update status check,re-enable dsr.
Ke Ai [Wed, 9 May 2012 09:53:07 +0000 (17:53 +0800)]
GFX-Display:FB update status check,re-enable dsr.

BZ: 35248

for Enzo bug 969 / 1056 /568

1.BZ 969 return result of mdfld_dsi_send_dcs. then user space will
know retry to flip the surface

2.re-enable DSR feature to save power.

3.BZ 1056 clear some unused variable.

4.BZ 568wait for DBI FIFO empty befor send command,which fix
enzo

Change-Id: If1ce11ea7bda92f854f56151654eee11f3045d66
Signed-off-by: Ke Ai <ke.ai@intel.com>
Signed-off-by: Patel Hitesh <hitesh.k.patel@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/47787
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Audio] Change the Audience FW selection mechanism
Mathieu Soulard [Wed, 23 May 2012 15:31:35 +0000 (17:31 +0200)]
[Audio] Change the Audience FW selection mechanism

BZ: 25136

We need to control which firmware is loaded by the driver.

The es305b driver uses the platform data to know which firmware
should be loaded.
The FW selection is choosen on the user side. The solution is to
extend the BOOTUP_INIT ioctl command to handle the filename as
argument comming from the user space.

Change-Id: I5cbcdec6c77b9e89440e3bdc38d9b9eb06f8f661
Signed-off-by: Mathieu Soulard <mathieu.soulard@intel.com>
Reviewed-on: http://android.intel.com:8080/49920
Reviewed-by: De Chivre, Renaud <renaud.de.chivre@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEnable FFL Post Boot handshake only if FFL packet size is 4KB
lebsir [Fri, 11 May 2012 13:22:28 +0000 (15:22 +0200)]
Enable FFL Post Boot handshake only if FFL packet size is 4KB

BZ: 34885

Change-Id: I91d2b149b21de57e729518315ac8889fbd629658
Signed-off-by: lebsir <samix.lebsir@intel.com>
Reviewed-on: http://android.intel.com:8080/48427
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: Remove some redundant printk to avoid ISP hang up.
hpyang [Tue, 22 May 2012 08:40:15 +0000 (16:40 +0800)]
atomisp: Remove some redundant printk to avoid ISP hang up.

BZ: 38404

Delete some printk lines at sh_css_hrt.c::sh_css_hrt_s2m_send_frame,
as it will yield too much printout and cause ISP hang up.

Change-Id: I604939a6a12d6420bd3f486328d6444e7dab3ac2
Signed-off-by: hpyang <haipingx.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/49673
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD/Battery: fixes the phone freezing issue when process of shutdown.
Gurumurthy Gowdar [Tue, 29 May 2012 11:19:06 +0000 (16:49 +0530)]
MFLD/Battery: fixes the phone freezing issue when process of shutdown.

BZ: 35620

The patch fixes the phone freezing issue when the process of shutdown.

Change-Id: Icce3280405a43e31497482b1788d906157864985
Signed-off-by: Gurumurthy Gowdar <gurumurthyx.gowdar@intel.com>
Reviewed-on: http://android.intel.com:8080/50515
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: [REVERTME] request minimum CPU wakeup latency
Tuukka Toivonen [Thu, 24 May 2012 15:28:15 +0000 (18:28 +0300)]
atomisp: [REVERTME] request minimum CPU wakeup latency

BZ: 34648

CLV+ drivers put idle system into a low-performance mode which
causes ISP interrupts to disappear. This leads to ISP timeout errors
under light load. Fix the issue by requesting lowest wakeup latency
from pm_qos subsystem.

This is a temporary solution; the root cause should be still
investigated.

Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Change-Id: I32f58c60ae2c65bc44c4e7e1c4b958fe9022f1b7
Reviewed-on: http://android.intel.com:8080/49249
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: request sufficiently low CPU wakeup latency with pm_qos
Tuukka Toivonen [Thu, 17 May 2012 11:36:36 +0000 (14:36 +0300)]
atomisp: request sufficiently low CPU wakeup latency with pm_qos

BZ: 34648

Request sufficiently low CPU wakeup time to ensure that ISP interrupts
are served in time and that no frames are dropped.

Change-Id: Ia3bf36c05111555cd06321e1e40f14d34a4db488
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/50074
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBluetooth: synchronization for name assignment to HCI devices
Raffaele Aquilone [Tue, 15 May 2012 12:09:00 +0000 (14:09 +0200)]
Bluetooth: synchronization for name assignment to HCI devices

BZ: 36212

Improves readability, changing name to a variable and a macro

Change-Id: I62b9bf349f18d3fa04bd51a9e40171fbe6575bac
Signed-off-by: Raffaele Aquilone <raffaelex.aquilone@intel.com>
Reviewed-on: http://android.intel.com:8080/48832
Reviewed-by: Beldie, OvidiuX <ovidiux.beldie@intel.com>
Reviewed-by: Bransiec, ChristopheX <christophex.bransiec@intel.com>
Reviewed-by: Gros, JulienX <julienx.gros@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agokernel: We hit a kernel OOPS and it is associated with rcu.
Kun Jiang [Wed, 23 May 2012 05:50:38 +0000 (13:50 +0800)]
kernel: We hit a kernel OOPS and it is associated with rcu.

BZ: 35535

<3>[23898.789643] BUG: sleeping function called from invalid context at
/data/buildbot/workdir/ics/hardware/intel/linux-2.6/arch/x86/mm/fault.c:1103
<3>[23898.862215] in_atomic(): 0, irqs_disabled(): 0, pid: 10526, name:
Thread-6683
<4>[23898.967805] HSU serial 0000:00:05.1: 0000:00:05.2:HSU serial prevented me
to suspend...
<4>[23899.258526] Pid: 10526, comm: Thread-6683 Tainted: G        W
3.0.8-137685-ge7742f9 #1
<4>[23899.357404] HSU serial 0000:00:05.1: 0000:00:05.2:HSU serial prevented me
to suspend...
<4>[23899.904225] Call Trace:
<4>[23899.989209]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.000416]  [<c1238c2a>] __might_sleep+0x10a/0x110
<4>[23900.007357]  [<c1228021>] do_page_fault+0xd1/0x3c0
<4>[23900.013764]  [<c18e9ba9>] ? restore_all+0xf/0xf
<4>[23900.024024]  [<c17c007b>] ? napi_complete+0x8b/0x690
<4>[23900.029297]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.123739]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.128955]  [<c18ea0c3>] error_code+0x5f/0x64
<4>[23900.133466]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.138450]  [<c17f6298>] ? __ip_route_output_key+0x698/0x7c0
<4>[23900.144312]  [<c17f5f8d>] ? __ip_route_output_key+0x38d/0x7c0
<4>[23900.150730]  [<c17f63df>] ip_route_output_flow+0x1f/0x60
<4>[23900.156261]  [<c181de58>] ip4_datagram_connect+0x188/0x2b0
<4>[23900.161960]  [<c18e981f>] ? _raw_spin_unlock_bh+0x1f/0x30
<4>[23900.167834]  [<c18298d6>] inet_dgram_connect+0x36/0x80
<4>[23900.173224]  [<c14f9e88>] ? _copy_from_user+0x48/0x140
<4>[23900.178817]  [<c17ab9da>] sys_connect+0x9a/0xd0
<4>[23900.183538]  [<c132e93c>] ? alloc_file+0xdc/0x240
<4>[23900.189111]  [<c123925d>] ? sub_preempt_count+0x3d/0x50

Function free_fib_info resets nexthop_nh->nh_dev to NULL before releasing
fi. Other cpu might be accessing fi. Fixing it by delaying the resetting.

Change-Id: Ibc53378d4f0b6dd9f9fadbd690d7b6ab997c1dc2
Signed-off-by: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Signed-off-by: Kun Jiang <kunx.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/49812
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoIPC: add bus lock protect for ipc_device_list
Shijie Zhang [Tue, 22 May 2012 20:12:23 +0000 (04:12 +0800)]
IPC: add bus lock protect for ipc_device_list

BZ: 37748

In current IPC framework, ipc_device_list is not under protect by bus
lock, which may cause synchronization problem when they are accessed by
multi process at the same time. This patch puts it under protect of bus
lock to avoid this risk.

Change-Id: Ic48f2eb291ef900b1f1c498a3b6e7efb3fff8737
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/49725
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Charger: Fix the VBUS disconnect after 30s issue on CLV
Pandey Raj [Mon, 21 May 2012 11:45:43 +0000 (17:15 +0530)]
EM/Charger: Fix the VBUS disconnect after 30s issue on CLV

BZ: 34940

This patch fixes the VBUS disconnect issue on CLV platform by disabling the
WD timer as soon as host mode cable is inserted to the platform. This issue
happens only if the user connects the host mode cable before the charger cable.

Change-Id: I26c97af48bf366a2132f80e6cebc8acb92c9a480
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/49524
Reviewed-by: Hegde Kota, VinayX <vinayx.hegde.kota@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Prasad, Lakshmi G <lakshmi.g.prasad@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoved: schedule a work_queue in release method to try to power down ved
Li Zeng [Mon, 28 May 2012 09:38:41 +0000 (17:38 +0800)]
ved: schedule a work_queue in release method to try to power down ved

BZ: 37164

This is to make sure that ved is power off when not in use. Remove IS_MRST() check because mrst is no longer supported.

Change-Id: I4ca1718d7454c13147a77c6d008de9d3f594647f
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/50360
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: host: SD detection flow optimization
Chuanxiao Dong [Fri, 11 May 2012 09:43:52 +0000 (17:43 +0800)]
mmc: host: SD detection flow optimization

BZ: 38199

With continously insert/remove a SD card on Tablet, Fabric error
or kernel panic can happen, which would hang up the system.

As original design, when there happens error during sending command
to device, host controller needs to be reset to go back to a clean
state. This patch will change this. If there error is NOMEDIA, means
SD card is removed, host controller will not be reset until SD card
is plugged again. This makes sense.

This patch cannot workaround Fabric error, but seems can reduce the
kernel panic

Change-Id: I543b118305ee535fbdd9e03f15628b8622edcaa4
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/50108
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:sn95031:Updating Audio PLL Power up sequence
KuldeepX Vyas [Mon, 30 Apr 2012 06:14:11 +0000 (11:44 +0530)]
audio:sn95031:Updating Audio PLL Power up sequence

BZ: 33301

CLKSTRT bit is enabled prior to the PLLEN bit,
it violates TI recommandation.

Set the CLKSTRT bit at the end of the power-up sequence.

Change-Id: I08fea0a4512435c38bf10d8f5bdb9aeffd98b2c7
Signed-off-by: KuldeepX Vyas <kuldeepx.vyas@intel.com>
Reviewed-on: http://android.intel.com:8080/46688
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoadb reboot reboots in MOS
Guillaume Betous [Fri, 25 May 2012 08:48:11 +0000 (10:48 +0200)]
adb reboot reboots in MOS

BZ: 38390

Modification of logic for making "adb reboot" always go to MOS.

Now we have :
- adb reboot recovery => RECOVERY
- adb reboot bootloader => FASTBOOT
- adb reboot <any other parameter, or no parameter> => MOS

Change-Id: I9ac6f3ca504680a5fbaa9c062b781ccda8d1921c
Signed-off-by: Guillaume Betous <guillaumeX.betous@intel.com>
Reviewed-on: http://android.intel.com:8080/50157
Reviewed-by: Castelain, DavidX <davidx.castelain@intel.com>
Reviewed-by: Afantenos, Marie CecileX <marie.cecilex.afantenos@intel.com>
Reviewed-by: Sahukar, Surya P <surya.p.sahukar@intel.com>
Tested-by: Afantenos, Marie CecileX <marie.cecilex.afantenos@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoModem cold reset not working
sami lebsir [Fri, 25 May 2012 11:03:39 +0000 (13:03 +0200)]
Modem cold reset not working

BZ: 36562

Check the PMIC regs read/write return value then perform the modem reset

Change-Id: I44bb65b8c9ef4293e2964c619449c3f86c869fed
Signed-off-by: sami lebsir <samix.lebsir@intel.com>
Reviewed-on: http://android.intel.com:8080/50230
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:gadget: wait for a while before clean ep0 request
jzhuan5 [Thu, 24 May 2012 18:10:32 +0000 (14:10 -0400)]
usb:gadget: wait for a while before clean ep0 request

BZ: 37568

after disconnecting pullup, any flying request should be completed or
any potential request should be added within 50ms. 50ms should be enough
considering the interrupt maximun interval. so sleeping for 50ms and
dequeuing ep0 should be able to cleanup the request in ep0.

Change-Id: I9e131cd1217ec748be7a013894ce7c63ef4214a3
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/50022
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: remove unnecessary sleep
Geng Xiujun [Wed, 23 May 2012 03:33:10 +0000 (11:33 +0800)]
Gfx-display: remove unnecessary sleep

BZ: 37477

5ms sleep is unnecessary in pr2 panel's IC initialization as panel reset can
make sure this wait time.

Change-Id: I735e9e00651b28885d59bbc24bf2d96f0441a908
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/49804
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: correct sleep time for pr2 panel reset
Geng Xiujun [Wed, 23 May 2012 03:12:13 +0000 (11:12 +0800)]
Gfx-display: correct sleep time for pr2 panel reset

BZ: 37475

This patch has following changes:
(1). change sleep time to 3ms between pulling panel reset pin low and high.
(2). change sleep time to 10ms after reset panel.
(3). using usleep_range rather than mdelay.

Change-Id: I2bd8960c10333d2e4e9b8fbcd46bc69d27587b4c
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/49803
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: OEM Reserved IOCTL Range
Hitesh K. Patel [Mon, 21 May 2012 22:25:39 +0000 (15:25 -0700)]
GFX-Display: OEM Reserved IOCTL Range

BZ: 36587

Enzo BZ: 1056

Reserve OEM IOCTL range for customization of
OEM specific features.

Change-Id: Ib54ae1fa9dddbc71fb8ada6a256dacc9714634f1
Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
Reviewed-on: http://android.intel.com:8080/49773
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Graphics]: console_trylock is wrong used in driver code
Shi Yang [Sun, 20 May 2012 21:43:06 +0000 (05:43 +0800)]
[Graphics]: console_trylock is wrong used in driver code

BZ: 37316

console_trylock is not always return true. and if it return false but then do console_unlock, this may
cause error in kernel.
So change all code to use console_lock.

Change-Id: I0faf10a6795d442560559d6655be1d919655b89c
Signed-off-by: Shi Yang <yang.a.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/49482
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: He, Bo <bo.he@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: forbid runtime suspend for 2 seconds in HDMI hotplug workqueue
Lei Zhang [Mon, 21 May 2012 03:10:11 +0000 (11:10 +0800)]
Gfx-Display: forbid runtime suspend for 2 seconds in HDMI hotplug workqueue

BZ: 26745

This patch forbids runtime suspend in HDMI hotplug workqueue for 2 seconds.
This is used to prevent display driver goes to suspend status during hotplug
detect, and allow enough time for HDMI audio to be routed from IHF.

Change-Id: If67e3bb54c8d0d941f5d24a5abdaccaf01eb5682
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/49474
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: add new parameter to check FORCE turn on/off HDMI panel
Lei Zhang [Thu, 17 May 2012 10:36:25 +0000 (18:36 +0800)]
Gfx-display: add new parameter to check FORCE turn on/off HDMI panel

BZ: 37296

This patch adds new parameter to check whether to force to turn on/off
HDMI panel. It is used for incoming call UC to forcely turn on/off HDMI
even when rotation happens.

Change-Id: I082319411d08a97068690e6010d86f89011c162f
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/49468
Reviewed-by: Geng, Xiujun <xiujun.geng@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdded return of Ri - Ri' match
Steve Shortess [Thu, 17 May 2012 17:33:39 +0000 (10:33 -0700)]
Added return of Ri - Ri' match

BZ: 36338
Function was not properly return state after frame update while checking hdcp link status.

Change-Id: Ibfe627d8c9cc9987b78929d6963cc851426b1965
Signed-off-by: Steve Shortess <stevex.w.shortess@intel.com>
Reviewed-on: http://android.intel.com:8080/49254
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9e013: cleanup settings and add requested resolutions
Robert Jong-A-Lock [Fri, 18 May 2012 13:13:36 +0000 (15:13 +0200)]
mt9e013:  cleanup settings and add requested resolutions

BZ: 37208 22615 24210

After the Kconfig change was made to the driver some settings
splilled into the new files. the blackbay and enzo headers have
been cleared of these settings.
3rd party apps need a 1024x576 mode in video which they use as
preview, this mode has been added.
WVGA now has better FoV.
Skipping settings were corrected in the blackbay and enzo headers.

Change-Id: I352c0c93b9f1be6c95dd702b7912008c065107ea
Reviewed-on: http://android.intel.com:8080/49411
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Tested-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "GFX-Display: resolved the flashing issue when booting up SC1."
Randy Xu [Thu, 24 May 2012 09:33:55 +0000 (17:33 +0800)]
Revert "GFX-Display: resolved the flashing issue when booting up SC1."

BZ: 38205

Patch 47708 may cause instability on PR1 flashing
This reverts commit 677278e8e7adc7bbcc49298cf83809cd5e2d6b64.

Change-Id: I88356102f94296c8abc0f97a253047ee3d9e566d
Signed-off-by: Randy Xu <randy.xu@intel.com>
Reviewed-on: http://android.intel.com:8080/50038
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD/Battery: Clean up battery status setting logic
Ramakrishna Pallala [Wed, 2 May 2012 23:05:30 +0000 (04:35 +0530)]
MFLD/Battery: Clean up battery status setting logic

BZ: 17854

The current code doesn't set the battery status to NOT Charging
even if the writes to MSIC register fails, it only logs the error.

This patch sets the battery status to NOT Charging if there is a
MSIC register write fail and also cleans up the battery status
setting logic.

Change-Id: Iea83c2ba2473d523d8d36c3242ca3e5307451c0f
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/47166
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD/Battery: fix battery full logic for transition b/w temperature zones
Ramakrishna Pallala [Tue, 22 May 2012 14:16:12 +0000 (19:46 +0530)]
MFLD/Battery: fix battery full logic for transition b/w temperature zones

BZ: 37894

This patch fixes the battery full detection logic in case of
temperature transition b/w battery charge profle.

Change-Id: Iff9651b3fa5f35b45a8cec53b0661e69ef3e102f
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49753
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosound core: add soc_delay
Vinod Koul [Mon, 14 May 2012 10:08:13 +0000 (15:38 +0530)]
sound core: add soc_delay

BZ: 35394

soc_delay is a new delay varible which should be added to overall sound delay
reporting. This is the delay encountered in queing of buffers inside soc, like
dsp buffers, usb usb queue delay etc

Change-Id: I8483ed9d7f345dcd2124d97e9c807e6e11fc34d7
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/49238
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatmel_mxt_ts: Change the touch calibration condition
Leo Yan [Fri, 18 May 2012 02:22:34 +0000 (10:22 +0800)]
atmel_mxt_ts: Change the touch calibration condition

BZ: 29396

When the screen is resumed, we won't do calibration if there is a
finger on the touch panel since that will cause the finger pressed
area has wrong calibration and couldn't detect the touch later.

Change-Id: I8c54f2629592e14bc30b3bea1e4f35bd0520a4cf
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/49296
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio Comms I2S Test Driver : add timeout + add abort command support
Renaud de Chivre [Thu, 3 May 2012 09:11:58 +0000 (11:11 +0200)]
Audio Comms I2S Test Driver : add timeout + add abort command support

BZ: 37691

Add timeout on read and write that will abort ssp operation if elapsed.
Add checks concerning dma channel allocation.

Change-Id: I62e6ebfde12defcc0165ee6e188d0a5eb3691c6d
Signed-off-by: Renaud de Chivre <renaud.de.chivre@intel.com>
Reviewed-on: http://android.intel.com:8080/47226
Reviewed-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoImprove logs at reboot time
Guillaume Betous [Fri, 11 May 2012 15:38:10 +0000 (17:38 +0200)]
Improve logs at reboot time

BZ: 30330

Add message for reset type.

Change-Id: I8283f8c851e5ea92709cc2a4f744f73633b47c45
Signed-off-by: Guillaume Betous <guillaumeX.betous@intel.com>
Reviewed-on: http://android.intel.com:8080/48465
Reviewed-by: Monnier, Olivier <olivier.monnier@intel.com>
Tested-by: Monnier, Olivier <olivier.monnier@intel.com>
12 years agohsu: workaround premature TX DMA irq
Alek Du [Tue, 22 May 2012 10:32:50 +0000 (10:32 +0000)]
hsu: workaround premature TX DMA irq

BZ: 25843

When CTS assert, HSU TX DMA will stop and report TX DMA irq, which is a
violation against the HSU spec.

Workaround this by reading D0SAR and count the real chars sent -- don't
assume all TX chars are sent.

Change-Id: Ic43f40e1d2437d6e33f8d53b84d116168f921a45
Signed-off-by: Alek Du <alek.du@intel.com>
Reviewed-on: http://android.intel.com:8080/49696
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-DISPLAY: Fix screen messy display or flash issue when pressing pwr button to...
Li Zhuangzhi [Thu, 17 May 2012 07:23:06 +0000 (15:23 +0800)]
GFX-DISPLAY: Fix screen messy display or flash issue when pressing pwr button to resume system

BZ: 36939

Issue:
Board screen display flash while pressing power key to resume system on Lexington DUT.

Solution:
Case1:
When panel and interface are initializing, there maybe some noise showed on display,
We'd better turn on the backlight after the initialization operation, this can avoid some
noise issue. And it's not good turn on backlight with full brightness at the beginning,
it will cause a flash when screen on, the brightness level should be controlled by
lastbrightnesslevel parameter after initialization.
Case2:
__dpi_panel_power_on() will reset the panel and then enable DSI
PLL, config the DSI controller, then exit ULPS state, set low
power output hold, then call p_funcs->drv_ic_init(), at this
moment, the MIPI is in low power mode, so change the hs to lp in
init to improve the ic init stability.

Change-Id: If2b5d748c00a60680536435acb0a1908d163466b
Signed-off-by: Li Zhuangzhi <zhuangzhi.li@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/49302
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/BCU: Enabling BCU Configuration for all CTP platforms
Shravan [Wed, 23 May 2012 04:52:33 +0000 (10:22 +0530)]
EM/BCU: Enabling BCU Configuration for all CTP platforms

BZ: 35622

The patch enables configuration settings for BCU driver in
all of the CTP platforms

Change-Id: I89e6dff431ad318f83b345305d8986a161cd831f
Signed-off-by: Chaurasia, Avinash K <avinash.k.chaurasia@intel.com>
Reviewed-on: http://android.intel.com:8080/49807
Reviewed-by: Rapaka, Naveen <naveen.rapaka@intel.com>
Reviewed-by: R, Durgadoss <durgadoss.r@intel.com>
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosmb347_charger: fix battery status reporting logic for charger faults
Ramakrishna Pallala [Tue, 22 May 2012 04:56:41 +0000 (10:26 +0530)]
smb347_charger: fix battery status reporting logic for charger faults

BZ: 34671

This patch checks for charger status register for determining the
battery charging status and reports Discharing/Charging/Not Charging/Full
accordingly.

This patch also adds the interrupt support for Safety Timer Expiration.

Change-Id: Ib7a34e5ceb1655228163a979db2cd3cc746a8d36
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49618
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomfd: Avoid access the hsu reg in !active state
liu chuansheng [Tue, 22 May 2012 15:50:50 +0000 (23:50 +0800)]
mfd: Avoid access the hsu reg in !active state

BZ: 37758

There is a rare case in function serial_hsu_stop_tx(),
which will call pm_runtime_get() without sync, then access
the hsu reg, it will cause fabric error.

To fix it, like serial_hsu_stop_rx(), when in case of non-active
runtime state, queue the stop tx command in qwork worker to do it.

Change-Id: Id6aa540db20db532a2f4b56d770111b985b26756
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/49633
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoHSU DMA interrupt might happen during HSU suspending
Bin Yang [Tue, 22 May 2012 02:21:16 +0000 (10:21 +0800)]
HSU DMA interrupt might happen during HSU suspending

BZ: 37758

HSU DMA interrupt is shared for all ports. So it is always
enabled during HSU port suspending. If TX is pending on this
port, it might trigger TX after suspend.

Change-Id: I288023543e06b6cd9312327d94c99b95dad1664f
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/49585
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: correct sleep function usage for DVx
Geng Xiujun [Thu, 17 May 2012 02:44:34 +0000 (10:44 +0800)]
Gfx-display: correct sleep function usage for DVx

BZ: 36765

use usleep_range instead of mdelay and msleep for short time delay.

Change-Id: Ic9b1bb246e555d8817d87f4d25347bcf0a9f7049
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/49126
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBattery: New sysfs to selectively disable charge-safety-timer.
Pavan Kumar S [Tue, 8 May 2012 09:21:06 +0000 (14:51 +0530)]
Battery: New sysfs to selectively disable charge-safety-timer.

BZ: 34016

Adding a new sysfs to disable charge-safety-timer.
Safety-timer will be enabled by default.

Change-Id: I3fd758efee1fabab88d3f23b0383a8a2c53e43c8
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Reviewed-on: http://android.intel.com:8080/47802
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Gowdar, GurumurthyX <gurumurthyx.gowdar@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Singh, NavjotX <navjotx.singh@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio: Extend GPIO jack detection support for all medfield based devices
Namarta Kohli [Mon, 21 May 2012 09:38:44 +0000 (15:08 +0530)]
Audio: Extend GPIO jack detection support for all medfield based devices

BZ: 37120

Redridge device has a GPIO pin which can be used to detect high impedance
headsets.

With this GPIO support, whenever an insert interrupt is received and the
micbias value is out of range, it checks the GPIO pin and reports the jack as
a HEADSET if the GPIO pin says that there is a headset.

Change-Id: I6ea08050b1c965a23937ab9a5e6d36e9a66486d2
Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/49514
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomax170xx_battery: disable shutdown methods from user space
Ramakrishna Pallala [Fri, 18 May 2012 16:18:58 +0000 (21:48 +0530)]
max170xx_battery: disable shutdown methods from user space

BZ: 19950

This patch enables the user space to disable default shutdown
methods set by platform. By adding the disable_shutdown_methods
sysfs interface under its device directory so the user space write
into this file to disable the shutdown methods.

Usage:
To disable default fuel gauge based shutdown:
echo 1 > disable_shutdown_methods

To disable OCV based shutdown:
echo 2 > disable_shutdown_methods

To disable LOWBATT based shutdown:
echo 4 > disable_shutdown_methods

To disable all types of shutdown:
echo 7 > disable_shutdown_methods

Change-Id: Ic10034d3cf2a59fb05fa09f518d96cc843c3ea4b
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49426
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>