kernel/kernel-mfld-blackbay.git
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>
12 years agoatomisp: Update MACC tables to prevent colors from clipping
repo sync [Thu, 3 May 2012 05:45:13 +0000 (08:45 +0300)]
atomisp: Update MACC tables to prevent colors from clipping

BZ: 27172

Update skin whitening, green enhancement and sky enhancement tables to prevent colors from clipping.

Change-Id: Ibef0d59bf4e97ece9a6e01de65685d4659f3979a
Signed-off-by: repo sync <timo.gerasimow@intel.com>
Reviewed-on: http://android.intel.com:8080/47160
Reviewed-by: Finnila, Tapio <tapio.finnila@intel.com>
Reviewed-by: Wada, Yoshio <yoshio.wada@intel.com>
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Minato, Takehiro <takehiro.minato@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@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 agodw-i2c: correct I2C FIFO size to 256 bytes
Li, Ning [Fri, 18 May 2012 05:13:40 +0000 (13:13 +0800)]
dw-i2c: correct I2C FIFO size to 256 bytes

BZ: 37123

I2C FIFO is set as 32 bytes in current driver. It will impact our
customer touchscreen driver implementation. Based on silicon team
feedback, need to correct I2C FIFO size to 256 bytes.
Meanwhile, correct one log description.

Change-Id: Icb07a9251cf24eeda76b1cbbf9f1d6ac83c506c5
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/49305
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agologger: Do not disable Android logging completely if pti_init fails
Jouni Hogander [Tue, 22 May 2012 10:47:07 +0000 (13:47 +0300)]
logger: Do not disable Android logging completely if pti_init fails

BZ: 37726

Currently logger_init exits and android logging is not initialized at
all if init_pti fails. This doesn't make sense as pti is not needed by
Android logging.

Fix this by just printing out error message when failure happens
instead of stopping the initialization.

Change-Id: I51432e414659750f780d626833b8862c82544ce7
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/49699
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: fix PR0 always off
Ke Ai [Tue, 22 May 2012 09:01:37 +0000 (17:01 +0800)]
GFX-Display: fix PR0 always off

BZ: 37685

1.for ic_init function change to have return value,
if still as void, when check the resturn status, it will be
turn, then unnecessory reset happen

2. update it return value

Signed-off-by: Ke Ai <ke.ai@intel.com>
Change-Id: Ieb961bf0031608cc44168c985b230e6775fedc4f
Reviewed-on: http://android.intel.com:8080/49671
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 for CTP Plus Platform
Shravan [Fri, 18 May 2012 10:35:01 +0000 (16:05 +0530)]
EM/BCU: Enabling BCU for CTP Plus Platform

BZ: 35622

This patch is for implementing BCU driver to detect
voltage drop in the system and perform action
required for those interrupts. Configuration
files updated for all CTP platforms.

Change-Id: Ib2fa25f166190fcb3acac512ded46085eeca0bc0
Signed-off-by: Rapaka, Naveen <naveen.rapaka@intel.com>
Reviewed-on: http://android.intel.com:8080/49352
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: R, Durgadoss <durgadoss.r@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: Tardy, Pierre <pierre.tardy@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 R2]pti: Check if pti is enabled in mipi header
Jouni Hogander [Tue, 27 Mar 2012 10:36:32 +0000 (13:36 +0300)]
[PORT FROM R2]pti: Check if pti is enabled in mipi header

BZ: 28818

Check in init if pti is enabled in mipi header. In case of pti is
disabled return error to avoid further accesses on pti.

Return NULL from pti_request_masterchannel if init have failed due to
disabled pti or some other error.

Change-Id: I3944c2e22b4bbe3f99b11763fb3f63c83da1b39a
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/46039
Reviewed-by: Skowronski, Philippe <philippe.skowronski@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Tested-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agogfx-display: restore hdmi dpll register
Geng Xiujun [Mon, 21 May 2012 12:23:45 +0000 (20:23 +0800)]
gfx-display: restore hdmi dpll register

BZ: 37424

hdmi dpll register is missed, it needs restore. and dsi context is NULL if pipe
equals to 1, it will cause kernel ipanic.

Change-Id: Ic2d11bbc803af476138a514f5893a4c5514ab4bd
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/49528
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: Hu, Austin <austin.hu@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 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: Ie2896876690848ef1a77e67b3cd869a30db29535
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/47708
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 agopnwotg_test: send usb warning when test device is not supported
Wu, Hao [Thu, 17 May 2012 07:27:05 +0000 (15:27 +0800)]
pnwotg_test: send usb warning when test device is not supported

BZ: 30607

Notify usb warning when test device is not supported by pnwotg_test
driver.

Change-Id: Idafbea1cb2d2668b929bc63ee5351a88bd95a6f0
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/49178
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
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/hub: send usb warning to user space when get descriptor failed.
Wu, Hao [Thu, 17 May 2012 07:25:17 +0000 (15:25 +0800)]
usb/hub: send usb warning to user space when get descriptor failed.

BZ: 30607

Notify usb warning when get descriptor failed.

Change-Id: I6f39a03c35abf10b88f2a138b2b9392882429839
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/49177
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
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 uevent notification interface for usb warnings
Wu, Hao [Thu, 17 May 2012 07:23:19 +0000 (15:23 +0800)]
usb/core: add uevent notification interface for usb warnings

BZ: 30607

This patch added basic notification function used to send uevents
to userspace for usb warnings.

Change-Id: I8cac8481d087a59eb069971207e75bb97ab7f3b5
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/49176
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
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 agoctp_charger: fix the temperature look up logic.
Pankaj Mistry [Thu, 17 May 2012 09:42:47 +0000 (15:12 +0530)]
ctp_charger: fix the temperature look up logic.

BZ: 36483

This patch fixes the temperature look up logic in
ctp_sfi_temp_range_lookup. This patch also cleans up the SFI
table population in ctp_sfi_table_populate.

Change-Id: I43ebae25f47525fc455be1eaa251033318c1be0a
Signed-off-by: Pankaj Mistry <pankaj.mistry@intel.com>
Reviewed-on: http://android.intel.com:8080/49212
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Tank, Jayesh KumarX <jayesh.kumarx.tank@intel.com>
Reviewed-by: Pandey, Raj <raj.pandey@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 agosched: fix OOPS when build_sched_domains percpu allocation fails
Yanmin Zhang [Thu, 19 Apr 2012 07:11:05 +0000 (15:11 +0800)]
sched: fix OOPS when build_sched_domains percpu allocation fails

BZ:30950

Under extreme memory used up situation, percpu allocation
might fails. We hit it when waking up system from suspend-to-ram.

Change-Id: I846f463a9d4af9801e7ac2da3a3d0daf7bcc6e82
Signed-off-by: Yanmin Zhang <yanmin.zhang@intel.com>
Signed-off-by: he, bo <bo.he@intel.com>
Reviewed-on: http://android.intel.com:8080/43977
Reviewed-by: Liu, ShuoX <shuox.liu@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 agoaudio:sst: Flush message reply wq before allowing runtime suspend to exit
Samu Onkalo [Thu, 17 May 2012 10:34:08 +0000 (13:34 +0300)]
audio:sst: Flush message reply wq before allowing runtime suspend to exit

BZ: 32221

Audio IPC message processing happens in a workqueue while the runtime
suspend in running in different context. There is a race condition
between those. Sometimes runtime suspend turns the audio sub system off
before the message workqueue is finished. At the end of the
message handling there are writes to audio sub system registers.

Flush the message handling workqueues before leaving the runtime_suspend
call. This guarantees that the other activity is properly finished.

Change-Id: I1612fb3206a186b0877f0c8dc94bf0ee40c9dfe5
Signed-off-by: Samu Onkalo <samu.onkalo@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/49229
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agoaudio:sst: Change work queues to singlethread work queues
Samu Onkalo [Thu, 17 May 2012 10:13:01 +0000 (13:13 +0300)]
audio:sst: Change work queues to singlethread work queues

BZ: 32221

There is one worker in each of the work queues. Having three per-cpu
work queues are little bit overkill. Singlethread work queues are
more than enough.

Change-Id: If8e96fea61d15ac761984293fac4e10812173c53
Signed-off-by: Samu Onkalo <samu.onkalo@intel.com>
Reviewed-on: http://android.intel.com:8080/49228
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@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 agoAudio: Synchronous message posting for ALSA trigger commands
Namarta Kohli [Wed, 9 May 2012 09:45:32 +0000 (15:15 +0530)]
Audio: Synchronous message posting for ALSA trigger commands

BZ: 34971

In SST driver, whenever ALSA trigger commands are received from alsa framework,
driver schedules work queue.  Inside work queue, IPC message to LPE will be
sent.There will few milli seconds (depends on kernel threads) delay between
acknowledging ALSA with trigger command and actual start of operation by LPE.
ALSA expects trigger commands to be handled immediately and hence it is called
atomically.

Modify audio driver to post trigger message synchronously when trigger command
is received.

Change-Id: Ibb638e355bc06fac1923141b868be947238196b2
Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/47948
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 agomid_pmu: remove forever loop while shutdown in progress
Illyas Mansoor [Tue, 8 May 2012 03:46:08 +0000 (09:16 +0530)]
mid_pmu: remove forever loop while shutdown in progress

BZ: 31284

DUT hangs while ctrl-alt-del key is pressed, this is
caused because of a forever loop in pmu_pci_set_power_state
that was used to block d0ix commands from causing IPC commands
blocking the shutdown process.

Now that we have removed the restriction of IPC/PMU command
synchrnoization this can also be removed.

Acknowledgement:
Tu, Xiaobing <xiaobing.tu@intel.com> root caused this issue.

Change-Id: I6bd4762a65d3e77c7d130660d831bb1297730eb6
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Tested-by: Tu, Xiaobing <xiaobing.tu@intel.com>
Reviewed-on: http://android.intel.com:8080/47722
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphics: Dump the Commands in Queue when SGX timeout
gwang23 [Thu, 17 May 2012 03:47:05 +0000 (11:47 +0800)]
Graphics: Dump the Commands in Queue when SGX timeout

BZ: 32306

Add command dump remained in Queue when SGX timeout. Help to debug
SGX timeout/recovery issues.

Change-Id: I13e913b9fd1d4d9f7db1077b35fce35ddc814325
Signed-off-by: gwang23 <gang.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/49157
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 agoGraphics: Fix a NULL issue in PVRSRVInsertCommandKM
gwang23 [Thu, 17 May 2012 02:58:48 +0000 (10:58 +0800)]
Graphics: Fix a NULL issue in PVRSRVInsertCommandKM

BZ: 35113

In the normal path, the psSwapChain->ppsLastSyncInfos[j] would not
be NULL. But in some error exit path, for example, PVRSRVGetQueueSpaceKM
failed, the psSwapChain->ppsLastSyncInfos[j] may be NULL.

Need to filter out the NULL in psSwapChain->ppsLastSyncInfos.

Change-Id: Ieba6c3659c77f3341f8ddf8003a0f10a13b772fd
Signed-off-by: gwang23 <gang.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/49132
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
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 agoGFX-Display: fix CABC control interface not work
Ke Ai [Thu, 17 May 2012 02:14:36 +0000 (10:14 +0800)]
GFX-Display: fix CABC control interface not work

BZ: 35376

1. CABC disable and enable control is missing, when
some one add code to control CABC backlight reduce range
according backligh level.

2. if control interface not work, the CABC will be always
on , then we can not measure the power reduce.

Change-Id: I5e7e33b0f8fe2656e63afb3a14f01f7c2ea8969d
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/49122
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Geng, Xiujun <xiujun.geng@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: improve panel on/off path
Ke Ai [Wed, 16 May 2012 03:26:12 +0000 (11:26 +0800)]
GFX-display: improve panel on/off path

BZ: 24684

1. add recovery mechanism when dsi
controller abnormal, such as FIFO not empty.

2. avoid duplicate setting for DPI controll
let SHUT_DOWN and TURN_ON symmetrical.

3. move mipi port disable before panel power off.
which symmetrical with power on case

Change-Id: I2a6c5f0b0984fadeb96988589b6d0eb9a398be37
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/48900
Reviewed-by: Pan, Zhenjie <zhenjie.pan@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Geng, Xiujun <xiujun.geng@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: Disable HDMI with Config option
Hitesh K. Patel [Tue, 15 May 2012 23:18:54 +0000 (16:18 -0700)]
GFX-Display: Disable HDMI with Config option

BZ: 36600

Enzo BZ: 984

When using CONFIG_MDF_HDMI flag not all the HDMI components
were being disabled.  This patch should fix the issue.

Change-Id: I76ce864d86d8c5c48b1da5f68950b5b4b15d289a
Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
Reviewed-on: http://android.intel.com:8080/48870
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Geng, Xiujun <xiujun.geng@intel.com>
Reviewed-by: Xue, YifeiX <yifeix.xue@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: fix issue of screen mess on HDMI during MT call
Lei Zhang [Tue, 8 May 2012 02:09:27 +0000 (10:09 +0800)]
Gfx-display: fix issue of screen mess on HDMI during MT call

BZ: 34312

This issue is because under the scenario of playing video while receiving
a MT call, the size and stride of HDMI plane are set to be the video size.
When restore the surface to be init_screen, as the size and stride are not
correct, it will show the messy picture on HDMI.
Fix this issue by adding the restore of init_screen size and stride.

Change-Id: I0e757ed1d9788fca2b10958e9814cd2ed72f9d21
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/47713
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 agoRevert "[REVERT ME] hsi: increase TX timeout to 2.5 sec"
Nicolas LOUIS [Fri, 18 May 2012 12:33:41 +0000 (14:33 +0200)]
Revert "[REVERT ME] hsi: increase TX timeout to 2.5 sec"

BZ: 31385

This reverts commit 16c0349d47b22b8385db11f6adc43b2fe5ac5153.
This reverts patch http://android.intel.com:8080/#/c/43104

Change-Id: If04d884676a14e23a8a82270c917b3f4bab4a924
Signed-off-by: Nicolas LOUIS <nicolasx.louis@intel.com>
Reviewed-on: http://android.intel.com:8080/49402
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Robert, Denis <denis.robert@intel.com>
Tested-by: Robert, Denis <denis.robert@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: SW Method for ESD detection and recovery
faxing [Wed, 9 May 2012 17:20:48 +0000 (10:20 -0700)]
GFX-Display: SW Method for ESD detection and recovery

BZ: 31620

Enzo Bugs: 665, 602, 762

1. This patch created a timer to monitor ESD error. If an ESD is detected, the display panel will be reset. It had been verified in Enzo's phone and CMI panel in CLV+
2. Fixed format error/warning by checkpatch

Signed-off-by: faxing <faxing.lu@intel.com>
Change-Id: I10fe4354510d4e1eb2e93029b948416c84fc5097
Signed-off-by: faxing <faxing.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/48072
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio Comms I2S Driver : Abort functionnality
Renaud de Chivre [Thu, 3 May 2012 09:04:39 +0000 (11:04 +0200)]
Audio Comms I2S Driver : Abort functionnality

BZ: 34596

Add abort command support in ssp driver.
Add enable/disable ssp APIs.

Change-Id: Ic512890cee8d257f44b72969f73ded6f5bb26134
Signed-off-by: Renaud de Chivre <renaud.de.chivre@intel.com>
Reviewed-on: http://android.intel.com:8080/47225
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 agoAudio Comms I2S Driver : update for MRFL
Renaud de Chivre [Thu, 3 May 2012 12:12:40 +0000 (14:12 +0200)]
Audio Comms I2S Driver : update for MRFL

BZ: 30374

SSP driver update for Merrifield platform support.

Change-Id: I3c4066064f066f335d02140c40ceb2bf46cbcb8e
Signed-off-by: Renaud de Chivre <renaud.de.chivre@intel.com>
Reviewed-on: http://android.intel.com:8080/42557
Reviewed-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio Comms I2S Driver : cleanup
Renaud de Chivre [Thu, 3 May 2012 08:47:38 +0000 (10:47 +0200)]
Audio Comms I2S Driver : cleanup

BZ: 34579

Code cleanup and reorganization.
Add a macro that helps to define registers' fields.
Add some logs.

Change-Id: I3aa5c9b86d3dc25fa7920604d14cabffd930e4ff
Signed-off-by: Renaud de Chivre <renaud.de.chivre@intel.com>
Reviewed-on: http://android.intel.com:8080/47224
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 ago[AUDIO] ASOC SSP I2S: migration of ALSA SSP to ASOC Framework.
Selma Bensaid [Wed, 9 May 2012 12:11:07 +0000 (14:11 +0200)]
[AUDIO] ASOC SSP I2S: migration of ALSA SSP to ASOC Framework.

BZ: 8512

Migration of the modem mix and BT/FM alsa card to Alsa Asoc
framework. It will be actived in a later patch.

Change-Id: Ida7ad09e6124a4f1457268755e8af449d3a7f184
Signed-off-by: Francois Gaffie <francoisx.gaffie@intel.com>
Signed-off-by: Selma Bensaid <selma.bensaid@intel.com>
Reviewed-on: http://android.intel.com:8080/20357
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBattery: set POWER_SUPPLY_PROP_ONLINE appropriately.
Pavan Kumar S [Tue, 8 May 2012 08:35:57 +0000 (14:05 +0530)]
Battery: set POWER_SUPPLY_PROP_ONLINE appropriately.

BZ: 24596

POWER_SUPPLY_PROP_ONLINE property should be set to 1 as long as
the charger is in a healthy state.
This should be the case even if charging is disabled due to some error,
other than those related to the power-supply.

Change-Id: Ia0bb45334321c8161dd85d98bde0a565ed67033a
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Reviewed-on: http://android.intel.com:8080/47775
Reviewed-by: Desurmont, David <david.desurmont@intel.com>
Tested-by: Desurmont, David <david.desurmont@intel.com>
12 years agoipc: fix sleep in atomic context during reboot
Li, Ning [Thu, 3 May 2012 10:17:40 +0000 (18:17 +0800)]
ipc: fix sleep in atomic context during reboot

BZ: 34240

Currently we use intel_scu_ipc_simple_command() to send reset
command to SCU. If panic happens and reboot, there might be sleep
in atomic context. This patch fixes this issue.

Change-Id: Icb9fd26e0ac7e497679bc4090b68d4e8b7dcf35c
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/47366
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
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 agosmb347_charger: enable debugs logs in charger driver
Ramakrishna Pallala [Wed, 16 May 2012 13:28:25 +0000 (18:58 +0530)]
smb347_charger: enable debugs logs in charger driver

BZ: 36806

This adds the debug logs in driver to capture different event
from HW.

Change-Id: Ib36bcec218f6001fe30997da014e46de88ef7efa
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49021
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Gowdar, GurumurthyX <gurumurthyx.gowdar@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 agomax170xx_batteey: disable 71 model scaling for Redridge tablet
Ramakrishna Pallala [Wed, 16 May 2012 06:10:06 +0000 (11:40 +0530)]
max170xx_batteey: disable 71 model scaling for Redridge tablet

BZ: 36109

This patch disables the 71% model scaling on max17042 fuel gauge
for redridge as the config data we recieved is for 100% model.

To have good initial accuracy we need POR on the board. So this patch
also adds WA to do chip reset on FW update. This WA will be removed by
ww21 build.

Change-Id: I98374b46aa69ac11959fcf21314c5a58b8723046
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/48945
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: Kurtadkar, Yashodhan <yashodhan.kurtadkar@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 agoxHCI: Add error handle for event completed handler.
Yu Wang [Tue, 8 May 2012 06:59:40 +0000 (14:59 +0800)]
xHCI: Add error handle for event completed handler.

BZ: 35199

This is klockwork tool build error. The ep_index variable possible equal
to -1, then cause the eps array overflow.

Change-Id: If7722a411d6cb415ba0481fc6a0e4784adc469f3
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/47758
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Gao, Yunpeng <yunpeng.gao@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodwc_otg: Merge synopsys 2.10a release for dwc_otg driver.
Yu Wang [Tue, 8 May 2012 02:53:07 +0000 (10:53 +0800)]
dwc_otg: Merge synopsys 2.10a release for dwc_otg driver.

BZ: 35160

This release was support hibernate mode which set disable by default. We
will open this feature when enable power management for DWC3 device and
xHCI driver.
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Change-Id: I09dd4ad46091eb4cfad069b5a484b181030e9853
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/47714
Reviewed-by: Gao, Yunpeng <yunpeng.gao@intel.com>
Tested-by: Gao, Yunpeng <yunpeng.gao@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb host:Enable ACM/NCM class driver on VV board SPH
jianqian [Thu, 12 Apr 2012 08:55:17 +0000 (16:55 +0800)]
usb host:Enable ACM/NCM class driver on VV board SPH

BZ: 31236

Add kernel config of ACM && NCM on VV board SPH
to let ACM class driver work with modem,
also NCM can work normally.
This is based SPH host controller can work normally
on VV board.
Signed-off-by: jianqian <jianqiang.tang@intel.com>
Change-Id: I942a72386609d6b09d0e9a8a35fc5a13aab7c76f
Reviewed-on: http://android.intel.com:8080/43253
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Wang, Feng A <feng.a.wang@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Tang, Richard <richard.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 host:Enable USB SPH Controller on VV Board.
jianqian [Thu, 12 Apr 2012 03:37:18 +0000 (11:37 +0800)]
usb host:Enable USB SPH Controller on VV Board.

BZ: 27557

Add feng.a.wang's patch for VV SPH.
In CloverTrail, a SPH is used to connect to Modem and others.
This patch need to use with New IFWI(See BZ25515) for detail.
Remaind: New IFWI in BZ25515 can not work with
public release for vibrator error during kernel boot up.
I have verified this patch can let HUB and kerboard work with
New IFWI and disable vibrator related function.
NCM and ACM support will in another patch.

Signed-off-by: jianqian <jianqiang.tang@intel.com>
Change-Id: Idac35407251e6134f06fedf77845f7238a788b3f
Reviewed-on: http://android.intel.com:8080/43211
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Wang, Feng A <feng.a.wang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.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 agokernel-drm: fix thumbernail scrambled issue when IED is enabled
Fei Jiang [Wed, 9 May 2012 13:50:17 +0000 (21:50 +0800)]
kernel-drm: fix thumbernail scrambled issue when IED is enabled

BZ: 32464

Video kernel driver need query DRM_CNTL_STATE register to know whether IED is enabled. Then return the state to user space driver.
When widevine is running, IED will be enabled and video surface will be encrypted. So CPU will only get scambled image.
For that case, need return error for vaDeriveImage and vaGetImage.

Change-Id: I9da4dfa88af241fb0729695b4e9e8266e8583bb0
Reviewed-on: http://android.intel.com:8080/48098
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-by: Qiu, Junhai <junhai.qiu@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 agoRevert "drivers/misc: ipanic should have a module parameter to specify dump partition"
Benoit Romieu [Wed, 16 May 2012 18:22:24 +0000 (20:22 +0200)]
Revert "drivers/misc: ipanic should have a module parameter to specify dump partition"

BZ: 31275

This reverts commit 60115cd03e11228fc5b68105da13ccc021d0fb89.

Change-Id: I07c2181dcb1fa7d887943d11905cd07f9f8da3c7
Signed-off-by: Benoit Romieu <benoit.romieu@intel.com>
Reviewed-on: http://android.intel.com:8080/49075
Reviewed-by: Carpentier, Olivier <olivier.carpentier@intel.com>
Tested-by: Carpentier, Olivier <olivier.carpentier@intel.com>
12 years agoUpgrade board_ids management
Christophe Lebouc [Wed, 16 May 2012 13:29:05 +0000 (15:29 +0200)]
Upgrade board_ids management

BZ: 35949

Upgrade board_ids management

Change-Id: Iab11035e9fa148d7f36be46f5dd43e4dc04c08e4
Signed-off-by: Christophe Lebouc <christophe.lebouc@intel.com>
Reviewed-on: http://android.intel.com:8080/49010
Reviewed-by: Rimauro, Gilles <gilles.rimauro@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agowakeup_log: adding the irq action name to output
liu chuansheng [Fri, 11 May 2012 11:59:30 +0000 (17:29 +0530)]
wakeup_log: adding the irq action name to output

BZ: 29086

This patch got left out when the code refactor happened

details:

When system wakeup from S3, current wakeup is as below:
[  123.765635] wakeup from  IRQ 67
We can not easily to know where is the IRQ from, unless
cat /proc/interrupts.

The changing is adding the action name to output, the traces
will like below:
[  320.280637] wakeup from  IRQ 67
[  320.280643] IRQ 67,action name:msic_power_btn

Change-Id: Ibfb4e9cd65eb6ceaa1583d5bd2b27acaffa577cc
Orig-Change-Id: Ieda5eea7e51d0e98fb1ff213467e86d91fa62d37
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/40767
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Signed-off-by: Sundar Iyer <sundar.iyer@intel.com>
Reviewed-on: http://android.intel.com:8080/48381
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
12 years agowakelock: remove redundant sys_sync call in suspend
Illyas Mansoor [Mon, 14 May 2012 10:00:28 +0000 (15:30 +0530)]
wakelock: remove redundant sys_sync call in suspend

BZ: 36230

Redundant call to sys_sync() in wakelock.c

In wakelock.c@suspend()

suspend()->sys_sync()->pm_suspend()->enter_suspend()->sys_sync()

hence it is duplicate can be removed.

Change-Id: Ic558803d66694f89fa444fa264acf08943d456ba
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/48682
Reviewed-by: Popescu, CatalinX <catalinx.popescu@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_fw_update: intel fw update driver
Li, Ning [Fri, 13 Apr 2012 07:23:01 +0000 (15:23 +0800)]
intel_scu_fw_update: intel fw update driver

BZ: 31683

Based on currect IPC driver framework, it is not suitable to put
FW update code inside IPC bus driver. So we move it to a dedicated
FW update driver, to make it more clear in logic.

Signed-off-by: Li, Ning <ning.li@intel.com>
Change-Id: Ic2f4a98a1861cc6f137d1d2e67ec3e7ac9ce65fa
Reviewed-on: http://android.intel.com:8080/43377
Reviewed-by: Li, Ning <ning.li@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yang, Fei <fei.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 agoipc: enhance IPC driver interfaces
Li, Ning [Tue, 24 Apr 2012 03:57:41 +0000 (11:57 +0800)]
ipc: enhance IPC driver interfaces

BZ: 31886

Add two external interfaces in IPC driver:
intel_scu_ipc_send_command() to send IPC command only,
intel_scu_ipc_check_status() to check IPC status.

Change-Id: If5fa62d0cc933a2e0a2cfc5069181596fc58e1a2
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/43850
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agox86: Call idle notifiers
German Monroy [Tue, 15 May 2012 00:14:19 +0000 (17:14 -0700)]
x86: Call idle notifiers

BZ: 35303

Google patched the idle loop for x86-64 (commit 1fd57f722c) and for ARM
(commit 41fa406c26), but they forgot x86-32.

This is preventing their interactive governor from upshifting CPU
frequencies in intel's SOC platforms (e.g. Medfield, etc.).

Fixing that.

NOTE: The notifier calls are not located in the same exact place in the
idle loop for x86-64 and ARM.  The notifier is called inside the
`while(!need_resched)' loop in x86-64 and outside of it in ARM.  Since
Google has likely tuned this governor for ARM, leaving it as in ARM.

Change-Id: Ibefd0c8f08e4b4c24c4a5c32dcdc574f9090b2b9
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/48858
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@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 agogfx-display: optimize gfx late resume code for DVx
Geng Xiujun [Mon, 14 May 2012 08:02:49 +0000 (16:02 +0800)]
gfx-display: optimize gfx late resume code for DVx

BZ: 33421

remove redundant code in mipi encoder mode set, and make some optimiaztions to make
gfx late resume faster for DVx. with this patch, time consumption of gfx_late_resume
is almost the same with PRx.

Change-Id: Ied6e1ade9874139bd69d8dbab1728f5516632151
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/48654
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodrivers/misc: ipanic should have a module parameter to specify dump partition
Robert Jarzmik [Fri, 11 May 2012 15:31:49 +0000 (17:31 +0200)]
drivers/misc: ipanic should have a module parameter to specify dump partition

BZ: 31275

Previously, dump partition was always number 6 (ie. mmcblk0p6). This
prevents repartitioning and reordering on futur boards.

This patch keeps 6 as the default, but makes the number configurable
as a module param :
 - with kernel commandline emmc_ipanic.ipanic_part_number=3 for mmcblk0p3

Change-Id: Ia14be05f4d265778118e33707fb9dc81416bce91
Signed-off-by: Robert Jarzmik <robert.jarzmik@intel.com>
Reviewed-on: http://android.intel.com:8080/48482
Tested-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoenable ADB function with DWC3 USB device driver
Jiebing Li [Tue, 8 May 2012 08:15:00 +0000 (16:15 +0800)]
enable ADB function with DWC3 USB device driver

BZ: 35178

This patch makes the following changes to support ADB:
1. add super/full speed support in Android ADB function
2. modify PID and VID in order to re-use Medfield Windows tool
3. set OUT transfer length to multiple of MaxPacketSize

Change-Id: I304833a1b91a426ed64fef773a9f364f93555cb9
Signed-off-by: Jiebing Li <jiebing.li@intel.com>
Reviewed-on: http://android.intel.com:8080/47774
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Gao, Yunpeng <yunpeng.gao@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Enable temperature based charging use case on clovertrail.
Pankaj Mistry [Fri, 11 May 2012 14:52:54 +0000 (20:22 +0530)]
EM/Battery: Enable temperature based charging use case on clovertrail.

BZ: 34235

This patch adds temprature based charging and extreme charging
use-cases. As part of the patch following has been added:
1. existing worker thread bq24192_maintenance_worker, tempearture
based charging capability
2. SFI table parsing for battery properties
3. Extreme charging capability via sysfs interface
4. Temperature reading capability via ADC

Change-Id: I207f71a620065655906e49e3783f5e910a5fa6b8
Signed-off-by: Pankaj Mistry <pankaj.mistry@intel.com>
Reviewed-on: http://android.intel.com:8080/46949
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Pandey, Raj <raj.pandey@intel.com>
Reviewed-by: Prasad, Lakshmi G <lakshmi.g.prasad@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agoSPID: Implement Soft_Platform_ID
Fei Yang [Tue, 27 Mar 2012 22:27:06 +0000 (15:27 -0700)]
SPID: Implement Soft_Platform_ID

BZ: 23571

Soft Platform ID is defined to enable single kernel and IFWI binary (per
SoC solution) that can be used in Over-The-Air payload delivery. Soft
Platform ID consists of 2-bytes customer ID, 2-bytes vendor ID, 2-bytes
manufacturer ID, 2-bytes platform family ID, 2-bytes product line ID, 2-bytes
hardware ID, and 10-bytes Field Replaceable Unit region. FRU is further
devided into 20 nibbles (4-bits each) to identify changeable
parts/components/devices of a specific hardware which need the attention
from FW and OS.
Only OEMB table version 4 or later supports SPID, the older versions only
populate board_id and board_fab which are deprecated by the introduction of
SPID.
D0 Penwell based products will not support SPID, kernel identifies these by
checking OEMB revision and board_id.

Change-Id: Ifc06b4b17434e41433932e0f126bb89b6d7779b2
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/41046
Reviewed-by: Yoke, Nicholas J <nicholas.j.yoke@intel.com>
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 agoRevert "BCU: implementation of BCU driver"
Remy Protat [Wed, 16 May 2012 08:54:47 +0000 (10:54 +0200)]
Revert "BCU: implementation of BCU driver"

BZ: 34339

This reverts commit d6e118240bc5c4c8e6a810ef0c157b8c18205cb4.

Change-Id: I197d6dd121e738d102414cccdbf260d57f10a21c
Signed-off-by: Remy Protat <remyx.protat@intel.com>
Reviewed-on: http://android.intel.com:8080/48965

12 years agoRevert " Set primary plane format to RGBX."
Jason Hu [Tue, 15 May 2012 11:22:35 +0000 (19:22 +0800)]
Revert " Set primary plane format to RGBX."

BZ: 36187

This reverts commit 55cc11fb966881a95bd3328830729c2f3820234c.

Change-Id: I9807c77983c079b3bae9d723d8c5d789f6ccb1b2
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/48828
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Protat, RemyX <remyx.protat@intel.com>
Tested-by: Protat, RemyX <remyx.protat@intel.com>
12 years ago[ASoC Core] Backport ASoC cores patch for Multi platform's DAI support
Selma Bensaid [Thu, 10 May 2012 09:14:35 +0000 (11:14 +0200)]
[ASoC Core] Backport ASoC cores patch for Multi platform's DAI support

BZ: 33508

To enable Audio Comms ASoC migration we need to enbale the Multi
platform's DAI support. Thus the following patches need to be
backported:
ASoC: soc-pcm: Remove unused global mutex
6fc562e49cb42792ff347f253fe9d026e8e16f34

ASoC: pcm - rename snd_codec_close() to snd_pcm_close().
91d5e6b4f5900cb46f92cd98d561a1a54bbca6b6

ASoC: core - PCM mutex per rtd
b8c0dab9bf3373010e857a8d3f1b594c60a348dd

ASoC: soc-pcm: Allocate PCM operations dynamically to support multiple DAIs
a500231da461cfe29541cb4b8422eb9bf59aa6ac

Change-Id: I64292b32dac2dbc974b41edcd8478051cb51bf55
Signed-off-by: Selma Bensaid <selma.bensaid@intel.com>
Reviewed-on: http://android.intel.com:8080/48251
Reviewed-by: Le Gall, Louis <louis.le.gall@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoplatform_max17042: tune battery Over Voltage Detection value
Ramakrishna Pallala [Sat, 12 May 2012 03:59:26 +0000 (09:29 +0530)]
platform_max17042: tune battery Over Voltage Detection value

BZ: 35786

This patch tunes the battery over voltage detection value to
4300mV which is aligned with charger OVP detection value.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Change-Id: I689a4d288bab03ef313cce472becf93ac2a99539
Reviewed-on: http://android.intel.com:8080/48568
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 agomid_pmu: double up() called for scu_ready_sem due to c6 offload timeout
Illyas Mansoor [Fri, 11 May 2012 14:20:26 +0000 (19:50 +0530)]
mid_pmu: double up() called for scu_ready_sem due to c6 offload timeout

BZ: 36028

when C6 offload fails pmu driver double up()'s the scu_ready_sem
causing unbalanced semaphore.

Increased the C6 offload timeout from 500usecs to 1.5msecs
fixed double up() scu_ready_sem.

Acknowledgement:
Onkalo, Samu <samu.onkalo@intel.com> for finding this bug.

Change-Id: Ie0c8a0fdd94ed386f09043f4ed13ce2a49fd4f23
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/48447
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomid_pmu: otc ics pmu driver patches ported to umg ics
Illyas Mansoor [Thu, 10 May 2012 18:11:47 +0000 (23:41 +0530)]
mid_pmu: otc ics pmu driver patches ported to umg ics

BZ: 34256

commit c1e44f12ce693e1e49d409808a1da2de37182142
Author: Olev Kartau <olev.kartau@intel.com>
Date:   Thu Mar 15 15:04:03 2012 +0200

    pmu: interrupt status read value should be signed int

    u8 status was used to store value from pmu_read_interrupt_status
    which returns signed int. Comparing u8 to -1 could never match.
    Also, split status and ret.value to differently typed variables.

Signed-off-by: Olev Kartau <olev.kartau@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
commit b123e410c7ae3019b2eecc7c7549002be559d45a
Author: Austin Zhang <austin.zhang@intel.com>
Date:   Thu Feb 23 09:23:53 2012 -0800

    KER-106: avoid s0i1-idle hang

    Prevent re-entrant S0i1, just like we do for S0i3;
    and thus avoid a system hang with S0i1 enabled.

    https://sa.otcshare.org/jira/browse/KER-106

    With this patch in place, and loglevel 15
    (which works around GRA-27), S0i1 has never
    been observed to hang during over-night testing.

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Tested-by: Yong Wang <yong.y.wang@intel.com
Tested-by: Kristen C. Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Change-Id: I3932e333ce123d1cf5d7e2dd8b80c258e872633e
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/48298
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Popescu, CatalinX <catalinx.popescu@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] mid_pmu: retry d0ix if completion fails
Illyas Mansoor [Fri, 4 May 2012 15:18:45 +0000 (20:48 +0530)]
[PORT FROM R2] mid_pmu: retry d0ix if completion fails

BZ: 32634

We get kernel panic in pmu_pci_set_power_state() while
waiting for d0ix command completion interrupt, we timeout for
the d0ix completion interrupt and see that transition is still
not complete.

<2>[ 8519.381692] pmu_pci_set_power_state: completion timeout: 8086 0829 0000:00:02.3          penwell_otg:
<2>[ 8519.381934] interrupt pending = 0
<2>[ 8519.382019] pmu_busy_status = 0
<2>[ 8519.382097] suspend_started = 0
<2>[ 8519.382175] shutdown_started = 0
<2>[ 8519.382254] interactive_cmd_sent = 0
<2>[ 8519.382343] camera_off = 1 display_off = 1
<2>[ 8519.382442] s0ix_possible = 0xf
<2>[ 8519.382520] s0ix_entered = 0x0
<2>[ 8519.382596] pmu_current_state = 0

We will avoid setting the d0ix completion interrupt.

This should remove one of the variable that may affect
this issue.

Also we retry sending d0ix command, until it fails thrice or succeeds.

Change-Id: I00355647a4cba2f737f1d4ba6737eb40bdf465e0
Orig-Change-Id: I3804ee03ef8964cc37c151ce973a81f5ef82c286
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/44452
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 ago[WORKAROUND] FM: add an alsa controls to modify HSMIXER register
Sylvain Pichon [Fri, 11 May 2012 17:16:50 +0000 (19:16 +0200)]
[WORKAROUND] FM: add an alsa controls to modify HSMIXER register

BZ: 32239

This allows to modify HSMIXER and mix PCM1+PCM2
(FM + media/alerts)
This is a wrokaround to enable use case and will
be implemented properly in BZ 36048

Change-Id: I4ecc27af6e2c8cdc77b62affd06057fe3c8043b3
Signed-off-by: Sylvain Pichon <sylvainx.pichon@intel.com>
Reviewed-on: http://android.intel.com:8080/48492
Reviewed-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@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[GFX-Display] add a watch dog for flip chain
Yun Tu(Mark Tu) [Thu, 23 Feb 2012 01:26:28 +0000 (09:26 +0800)]
[GFX-Display] add a watch dog for flip chain

BZ:32306

3D flip depends on vysnc interrupt by default, so 3D will get blocked if there are something
wrong on display vsync interrupt. Add this watch dog so we can flush flip queue once we detected
the missing of vsync interrupt and avoid ANR of appliaction

Change-Id: I91a85fea3fafdada124191ace73a967935cf295d
Signed-off-by: Yun Tu(Mark Tu) <yun.tu@intel.com>
Reviewed-on: http://android.intel.com:8080/48116
Reviewed-by: Wang, Gang A <gang.a.wang@intel.com>
Reviewed-by: He, Bo <bo.he@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphics: Setting correct DSI PLL and MIPI DPHY parameters according the target DSI...
yifei.xue [Wed, 9 May 2012 07:57:53 +0000 (15:57 +0800)]
Graphics: Setting correct DSI PLL and MIPI DPHY parameters according the target DSI DataRate

BZ: 34504

Setting correct DSI PLL and MIPI DPHY parameters according the target DSI DataRate.

Signed-off-by: yifei.xue <yifeix.xue@intel.com>
Change-Id: Ieb2a0494178589c95097484c9b62f7ed8129b670
Reviewed-on: http://android.intel.com:8080/47939
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@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: host: disable mmcblk0rpmb for MFLD projects
Chuanxiao Dong [Thu, 10 May 2012 10:38:49 +0000 (18:38 +0800)]
mmc: host: disable mmcblk0rpmb for MFLD projects

BZ: 35778

mmcblk0rpmb is not used in MFLD projects. Disable it.

Change-Id: I743e1937f86d181526252e21e19b1e55e7826a3f
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/48221
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 agoi386_mfld_defconfig: Enable ipv6-tables
Kun Jiang [Thu, 10 May 2012 10:35:38 +0000 (18:35 +0800)]
i386_mfld_defconfig: Enable ipv6-tables

BZ: 28359

The ipv6-tables didn't open in the past so all the ip6tables operate fail.
When ipv6-tables had open, if CONFIG_NETFILTER_XT_MATCH_QUOTA and
CONFIG_NETFILTER_XT_MATCH_QUOTA2 didn't open, that the pc can't connect to
the internet through the phone(ap hot).

Open the config in i386_mfld_defconfig to enable the ipv6-tables and quota.

Change-Id: I1ccb1715011de7b81af04e4f5dbedc2e4248fd41
Signed-off-by: Kun Jiang <kunx.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/48218
Reviewed-by: He, Bo <bo.he@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agoVPN: Enable PPP for VPN.
Fei Yang [Tue, 8 May 2012 00:10:22 +0000 (17:10 -0700)]
VPN: Enable PPP for VPN.

BZ: 28558

Port from R2, BZ: 18546.
Intel build can't connect to internet through VPN, but Borqs build can,
compare the code, I find that we need open some settings.
Signed-off-by: bxu10X <bxu10X@intel.com>
Reviewed-on: http://android.intel.com:8080/30089
Reviewed-by: Xu, BinX <binx.xu@intel.com>
Reviewed-by: Yin, Fengwei <fengwei.yin@intel.com>
Reviewed-by: Ren, Jack <jack.ren@intel.com>
Reviewed-by: Shen, JianchunX <jianchunx.shen@intel.com>
Reviewed-by: Li, XiaojingX <xiaojingx.li@intel.com>
Reviewed-by: Peng, BoX <box.peng@intel.com>
Reviewed-by: Tian, XiaojunX <xiaojunx.tian@intel.com>
Tested-by: Li, XiaojingX <xiaojingx.li@intel.com>
Change-Id: I3dd6d01a50bcc67a409c2ddcf2570b0b4c1bec5a
Reviewed-on: http://android.intel.com:8080/47700
Reviewed-by: Ji, WeiweiX <weiweix.ji@intel.com>
Reviewed-by: Gross, Mark <mark.gross@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 agoBluetooth: synchronization for assigning names to HCI devices
Raffaele Aquilone [Thu, 3 May 2012 08:31:56 +0000 (10:31 +0200)]
Bluetooth: synchronization for assigning names to HCI devices

BZ: 27942

Introducing a synchronization mechanism for assigning names to HCI devices,
sorting out a race condition that sometimes occurs, consisting in a device
reconnecting with the same name it already has before having completed
disconnection.

Change-Id: I9545886f24f81e16df3c8aa3459db20a8e268f46
Signed-off-by: Raffaele Aquilone <raffaelex.aquilone@intel.com>
Reviewed-on: http://android.intel.com:8080/47174
Reviewed-by: Bransiec, ChristopheX <christophex.bransiec@intel.com>
Reviewed-by: Beldie, OvidiuX <ovidiux.beldie@intel.com>
Reviewed-by: Gros, JulienX <julienx.gros@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agocpufreq: Add cpufreq_getload() helper
Sundar Iyer [Tue, 28 Feb 2012 05:22:55 +0000 (10:52 +0530)]
cpufreq: Add cpufreq_getload() helper

BZ: 31189

For today's advanced platforms, the HW provides idle time accounting
through residency counters. These counters are the most direct and most
accurate statistics about the time spent in various idle states. Also for a
hyper-threaded or both-cores-tied-to-same frequency configuration, the total
load calculated by the OS per-thread or per-core may not reflect the true
need to increase/decrease the frequency, leading to performance impacts.

This patch adds an optional variable to get CPU load from the platform driver
in such cases. The decision to change the frequency is now impacted by the
HW statistics if the platform supports this.

Change-Id: Ic8e4cb45281e989a3f389fa5bb3129f758dbf608
Signed-off-by: Sundar Iyer <sundar.iyer@intel.com>
Signed-off-by: Chuan A Wang <chuan.a.wang@intel.com>
Signed-off-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Ke Chen <ke.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/48471
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 agocpufreq/x86: Enable __getload() helper for Medfield-x86 platform
Sundar Iyer [Mon, 19 Mar 2012 09:57:59 +0000 (15:27 +0530)]
cpufreq/x86: Enable __getload() helper for Medfield-x86 platform

BZ: 31189

Enable the hardware based load calculation for the Medfield x86-HT platform.
This makes sure that the on-demand governor responds correctly to the load
based on the physical core and not the logical siblings

Change-Id: Iaeaf5f154ca955f3e8cfe09c052f23913edbf5a1
Signed-off-by: Chuan A Wang <chuan.a.wang@intel.com>
Signed-off-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Ke Chen <ke.chen@intel.com>
Signed-off-by: Sundar Iyer <sundar.iyer@intel.com>
Reviewed-on: http://android.intel.com:8080/48470
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 agodisplay: turn on/off backlight of lvds panel in mipi dpms
Geng Xiujun [Tue, 8 May 2012 06:26:47 +0000 (14:26 +0800)]
display: turn on/off backlight of lvds panel in mipi dpms

BZ: 34728

turn on/off backlight of lvds panel in mipi dpms operation

Change-Id: I9199a8b1ab36552247682a2ab66c4106e6166e7b
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/47751
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Xu, Randy <randy.xu@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 ago Set primary plane format to RGBX.
Marc Mao [Thu, 3 May 2012 04:08:09 +0000 (12:08 +0800)]
 Set primary plane format to RGBX.

 BZ: 33412

 This is the kernel part of patch to fix regression caused by HWC overlay + sprite blending
implementation. We have a hw issue in display controller to display RGBA plane. We can't set
it to RGBA if there only primary plane is displayed. This patch will set primary plane to RGBX
if no overlay displayed, other wise it is set to RGBA.

Change-Id: I1f74dfb2841df771e1b9a0b14d390b17eb49ab40
Signed-off-by: Marc Mao <marc.mao@intel.com>
Reviewed-on: http://android.intel.com:8080/47155
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@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: improve command mode panel FB update
Ke Ai [Wed, 9 May 2012 02:53:50 +0000 (10:53 +0800)]
GFX-Display: improve command mode panel FB update

BZ: 34799

for Enzo BZ 609

1. use async flip instead of schedual work queue,
  to avoid the influnce of continully touch and usb
  hotplug
2. enable hw te 61190[3:2], to avoid tearing.
3. wait for dbi fifo , before process new FB flip,
  to reduce CPU loading

Change-Id: Icd43038224d75856cc8e0c58f86cab44f0525933
Signed-off-by: Ke Ai <ke.ai@intel.com>
Signed-off-by: Patel Hitesh <hitesh.k.patel@intel.com>
Reviewed-on: http://android.intel.com:8080/47785
Reviewed-by: Tong, BoX <box.tong@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 the reg setting of MIPI in driver
Lei Zhang [Thu, 3 May 2012 03:58:43 +0000 (11:58 +0800)]
Gfx-Display: correct the reg setting of MIPI in driver

BZ: 29163

This is a supplement to patch 40888 which correct the MIPI reg 0x61190 setting.
The former patch just correct the setting for Video mode; this patch clean the
code for MIPI command mode.

Change-Id: I41f32409cbdaf9131461cc409b06e7b5bac6e8e4
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/47144
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Patel, Hitesh K <hitesh.k.patel@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Lu, Faxing <faxing.lu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoDisplay sw driver update: VGH/VGL parameter change
faxing [Wed, 11 Apr 2012 22:06:03 +0000 (15:06 -0700)]
Display sw driver update: VGH/VGL parameter change

BZ: 31177

Based upon instructions from CMI,
the 4th parameter of Set Power will be changed from 0x24 to 0xa5

Change-Id: Ia9f59532946630ec518350b8117fd138d292d6e5
Signed-off-by: faxing <faxing.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/43186
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Yoke, Nicholas J <nicholas.j.yoke@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[PATCH] change add_timer to mod_timer
Li, Ning [Tue, 8 May 2012 07:41:00 +0000 (15:41 +0800)]
[PATCH] change add_timer to mod_timer

BZ: 34961

HSU driver might delete timer without sync in tasklet. The pending
timer might exist before next add_timer. It is better to use
mod_timer instead of add_timer.

Change-Id: I5762791f70a011b05e9e57d614a6e041ad27a400
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/47762
Reviewed-by: Cai, Stanley W <stanley.w.cai@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_ipc.c: Write chksum data when writing osnib data.
lwan89x [Fri, 23 Mar 2012 08:13:17 +0000 (16:13 +0800)]
intel_scu_ipc.c: Write chksum data when writing osnib data.

BZ: 24109

Change-Id: I1c102eed594b4b661fefdf989ff95d4e60488800
Signed-off-by: lwan89x <liangx.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/40435
Reviewed-by: Puech, Yann <yann.puech@intel.com>
Reviewed-by: Romieu, Benoit <benoit.romieu@intel.com>
Tested-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9e013: remove unnecessary msleep
Tao Jing [Sat, 28 Apr 2012 09:01:37 +0000 (17:01 +0800)]
mt9e013: remove unnecessary msleep

BZ: 32405

set 0 to gpio and then msleep before set 1 to gpio is unnecessary in
mt9e013_gpio_ctrl.

Change-Id: Id23755bbb4701c5657fc683e124b85cbdb039671
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/46665
Reviewed-by: Mahe, Erwan <erwan.mahe@intel.com>
Tested-by: Mahe, Erwan <erwan.mahe@intel.com>