summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-15audio:use single block DMA transfer for firmware downloadRamesh Babu K V1-18/+62
BZ: 35751 Fabric error has been noticed when we use LLI DMA along with single block transfer. LLI and single block DMAs works good independently. Fabric error have been experienced when switching from single block DMA to LLI DMA. Added single block DMA transfer support for downloading firmware. Change-Id: I5df836fea163612a56e2edf2d5d8a9ff89b8111c Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com> Reviewed-on: http://android.intel.com:8080/52368 Reviewed-by: R, Dharageswari <dharageswari.r@intel.com> Reviewed-by: Vinnakota, Lakshmi N <lakshmi.n.vinnakota@intel.com> Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@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>
2012-06-15Revert "atmel_mxt_ts: Change the touch calibration condition"jli1271-46/+20
BZ: 40848 This reverts commit e1a5b9cfefe16f7de8024562f7c988b1db7e4272. The patch reverted here sometime causing touch screen stop responding when device comes from suspend. The patch reverted skips touch screen calibration progress if fingers are detected on touch sreen when device comes from suspend, this may cause touch screen stop responding. Change-Id: I9d509bbc41dacf3ec71f948f12cc4ebe057c94d0 Signed-off-by: jli127 <jian.d.li@intel.com> Reviewed-on: http://android.intel.com:8080/52495 Reviewed-by: Liu, Hong <hong.liu@intel.com> Reviewed-by: Du, Alek <alek.du@intel.com> Reviewed-by: Yan, Leo <leo.yan@intel.com> Tested-by: Tang, HaifengX <haifengx.tang@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
2012-06-14ST: Adding Runtime PM and S3 support for the shared transport releaseAymen Zayet5-45/+73
BZ: 24772 This patch provides the implementation of PM runtime corresponding to the new release of the shared transport layer : - All the newly added callbacks for the KIM driver have been defined. - The previous implementation of PM runtime get/put have been moved to the new callbacks .chip_asleep() and .chip_awake() for more consistency. - Add more check to avoid S3 while the device is in ST_LL_AWAKE state. Change-Id: I0aa6aceb5b6c692584e224dee03f9fadbb8dcfdb Signed-off-by: Aymen Zayet <aymenx.zayet@intel.com> Reviewed-on: http://android.intel.com:8080/51770 Reviewed-by: Champciaux, Nicolas <nicolas.champciaux@intel.com> Tested-by: Champciaux, Nicolas <nicolas.champciaux@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
2012-06-14Kernel config: Enable SLUB allocator debuggingEmmanuel Berthier3-4/+5
BZ: 39652 In order to be able to debug kernel memory corruptions (generating Paging request BUGs), it could be useful to activate SLUB allocator debugging features. Signed-off-by: Emmanuel Berthier <emmanuel.berthier@intel.com> Change-Id: I1687bae9cb750a1856c4b4d8646b495f8315a317 Reviewed-on: http://android.intel.com:8080/52492 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>
2012-06-14[Graphics]: Enable the LEX command mode DSTB,CABC, fix the tearing issueyifei.xue3-72/+74
BZ: 40910 Enable the LEX command mode DSTB support, add dynamic interface to control CABC(enable the CABC default). Disable CABC: echo 0 > /sys/module/gfx/parameters/psb_enable_lex_cabc The root cause of commad mode tearing is DC writing the panel internal mem with direction bottom to top while the panel scan the internal mem with direction top to bottom. Change-Id: Ieae5298cad716a04e4a028dbf1d1e09e3325c350 Signed-off-by: yifei.xue <yifeix.xue@intel.com> Reviewed-on: http://android.intel.com:8080/52416 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>
2012-06-14Graphics: Lex display command mode supportyifei.xue5-61/+87
BZ: 32664 Enable the LEX display command mode Change-Id: I17545d9af9e769383dbe26a4d74e412a4a278bba Signed-off-by: yifei.xue <yifeix.xue@intel.com> Signed-off-by: Ke Ai <ke.ai@intel.com> Signed-off-by: Tong, Bo <box.tong@intel.com> Reviewed-on: http://android.intel.com:8080/52423 Reviewed-by: Xu, Randy <randy.xu@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
2012-06-14GFX-Display: Fix Out Of Memory issue when playing video while rotating the ↵Lingyun Zhu1-1/+2
device with suspend and resume BZ: 39131 Add definitaion of SUPPORT_LARGE_GENERAL_HEAP in kernel/driver/staging/mrst/medfield/Makefile to enlarge the GeneralHeap in gpu, and ensure there is enough video memory for video playing while rotate the screen with suspend and resume. Change-Id: If7653c1068a01f22dca77d2342555222dc0765cf Signed-off-by: Lingyun Zhu <lingyun.zhu@intel.com> Reviewed-on: http://android.intel.com:8080/52413 Reviewed-by: Tong, BoX <box.tong@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>
2012-06-14GFX-Display: refine the dsi_error_handlerzhong Dongsheng1-155/+139
BZ:35254 Update the error handling and refine the logging. Change-Id: Ia4441a503a7357ab254bd8bb7d2feb31744e8812 Signed-off-by: zhong Dongsheng <dongsheng.zhang@intel.com> Signed-off-by: Ke Ai <ke.ai@intel.com> Reviewed-on: http://android.intel.com:8080/52411 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>
2012-06-14GFX-display: Suboptimal sequence in mdfld_dsi_pr2_power_onKe Ai1-9/+11
BZ: 38884 optimize the sequence of TURN_ON because according spec, after TURN_ON need wait 100ms. after exit sleep 120ms is needed. here try to optimize the sequence to reduce the wait time Change-Id: I0f81d52d294895e5c83672ecff436bf3de33d53a Signed-off-by: Ke Ai <ke.ai@intel.com> Reviewed-on: http://android.intel.com:8080/52315 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>
2012-06-14fw_update: fw upgrade memory handleLi, Ning1-145/+151
BZ: 40065 There are some potential issues in fw_update driver, such as haven't set pointer to NULL after freed and not having cancel IFWI upgrade mechanism. Add an early_param "alloc_fota_mem_early". If it's set, the 4M fota memory will be allocated during driver init. At the same time, the memory allocation at binary file writing is still kept as before. A new sysfs interface is created for user space to cancel fw update by: echo 1 > /sys/devices/ipc/intel_fw_update.0/fw_info/cancel_update Change-Id: I149c88c56ea77adfe004161f20167b8408d7e983 Signed-off-by: Li, Ning <ning.li@intel.com> Reviewed-on: http://android.intel.com:8080/52573 Reviewed-by: Du, Alek <alek.du@intel.com> Reviewed-by: Puech, Yann <yann.puech@intel.com> Reviewed-by: Yang, Bin <bin.yang@intel.com> Tested-by: Tang, HaifengX <haifengx.tang@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
2012-06-14max170xx_battery: add fake temperature supportRamakrishna Pallala1-1/+66
BZ: 40875 This patch enables the user space to get fake battery temperature from fuel gauge driver.This is needed for doing conformence tests by HW teams. Usage: To get fake battery temperature reported: echo 1 > enable_fake_temp To get real battery temperature: echo 0 > enable_fake_temp Change-Id: Iee154da96ba9cb212cf4b52d09101429d8067520 Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Reviewed-on: http://android.intel.com:8080/52023 Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com> Reviewed-by: Mitra, DebalinaX <debalinax.mitra@intel.com> 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>
2012-06-13Gfx-Display: change CABC PWM frequency to 200hzGeng Xiujun1-2/+2
BZ: 32836 set CABC PWM frequency to 200hz can reduce headset noise significantly. and flicker issue is ignorable. Change-Id: Ia4e4eeb61ef05e1c4f8163fd686326115de99143 Signed-off-by: Geng Xiujun <xiujun.geng@intel.com> Reviewed-on: http://android.intel.com:8080/52311 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>
2012-06-13Revert "Audio: Synchronous message posting for ALSA trigger commands"Ramesh Babu K V6-158/+97
BZ: 37713 This reverts commit 27ee72007abaf4a8fe9a3579923ad893d2f28842. Change-Id: I957bc01caefdd48620d520a89c2b51da1f53cc7d Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com> Reviewed-on: http://android.intel.com:8080/52159 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>
2012-06-13Revert "audio:sst: Change work queues to singlethread work queues"Ramesh Babu K V1-6/+3
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>
2012-06-13HDMI-Audio: Fix Spinlock-Recursion and Null-Pointer issuesShreyas Neerebailoor3-198/+81
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>
2012-06-12[PORT FROM R4]lis3dh: Send init events to userspace when status changesLeo Yan1-24/+22
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>
2012-06-12smb347_charger: Add a small delay after OTG-disable.Pavan Kumar S1-0/+5
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>
2012-06-12fmradio: new delivery from T.I with bug fixes in FM driverFrode Isaksen1-29/+8
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>
2012-06-11VPN: Enable L2TP/IPSec modeFei Yang3-6/+9
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>
2012-06-11Ptrace: enable the process to read other process's stack and commxiaobing tu1-1/+7
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>
2012-06-11Revert "hwmon: Change late resume priority to enable gfx first"Marie-Celine Dubut5-5/+5
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
2012-06-08hsi_ffl_tty.c: Do not rely on TTY_THROTTLE when low_latency is setVincent Pillet1-1/+11
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>
2012-06-08n_gsm.c : Open gsmtty in blocking mode whitout taking count of Carrier DetectVincent Pillet2-1/+37
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>
2012-06-08atomisp: CSS/FW release from Synergy baseline of 30May2012Michie Yamauchi5-2/+32
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>
2012-06-08atomisp: flash-light appears on the screen.yoshio wada15-66/+295
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>
2012-06-08atomisp: fix regression in file injection supportKai Vehmanen1-2/+5
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>
2012-06-08Gfx-Display: fix kernel panic when setting cscGeng Xiujun1-38/+38
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>
2012-06-08GFX-Display: resolved the flashing issue when booting up SC1.Jackie Li9-30/+59
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>
2012-06-08hwmon: Change late resume priority to enable gfx firstJohn Mathew5-5/+5
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>
2012-06-08GFX_display: optimize panel reset timeKe Ai1-3/+3
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>
2012-06-08usb/host:Enter runtime_suspend without 500ms delay when otg state == A_HOSTjianqian1-0/+6
|| 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>
2012-06-08usb/host : Add time-out wakelock to let usb finish work before system suspendjianqian3-0/+24
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>
2012-06-08usb/host : Add time-out wakelock data structure to usb_hcd and ↵jianqian3-0/+16
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>
2012-06-08usb/host : Disable persist_enable feature for there is risk for mistake.jianqian1-2/+5
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>
2012-06-08[REVERTME] Improve check of validity of Fabric Log BufferChristophe Lebouc1-0/+3
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>
2012-06-07HDMI-Audio: Prevent Suspend if the substream is aliveShreyas Neerebailoor2-1/+10
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>
2012-06-07Revert "Graphics: Lex display command mode support"yifei.xue5-87/+61
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
2012-06-07sfi-cpufreq : Modifying residency_count_multiplier according to maximum ↵Prachita Talathi1-15/+30
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>
2012-06-07[PORT FROM R2][Audio] Noise during phone call on Lenovo Medfield designMathieu Soulard1-2/+2
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>
2012-06-07API for setting and reading UMIP OEM Factory flagDavid Castelain1-10/+88
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>
2012-06-07Gfx-Display: check hdmi state in display runtime suspendTong, Bo1-1/+1
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>
2012-06-07[GFX-DISPLAY] Disable psb frame buffer driver ops to avoid intel logo disappear.Zhouzhou(Scott) Fang1-3/+15
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>
2012-06-06usb/penwell_otg: add related notification for vbus invalid caseWu, Hao1-0/+22
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>
2012-06-06usb/penwell_otg_test: use usb warning code instead of error codeWu, Hao1-1/+1
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>
2012-06-06usb/core: switch to usb warning codeWu, Hao1-1/+3
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>
2012-06-06usb/core: add warning code for notifcationWu, Hao2-4/+18
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>
2012-06-06Graphics: Lex display command mode supportyifei.xue5-61/+87
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>
2012-06-06mmc: sdhci: add spinlock when acquire/release eMMC mutexChuanxiao Dong3-4/+18
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>
2012-06-06GFX-DISPLAY: Add mutex in __dpi_panel_power_off to pretect pipe disabled ↵Li Zhuangzhi1-0/+9
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>
2012-06-06Gfx-Display: refine HDMI audio interface in display driverLei Zhang8-25/+104
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>