platform/kernel/kernel-mfld-blackbay.git
11 years agoinit/calibrate: Fix bug in calibrate_delay
Jouni Hogander [Tue, 19 Jun 2012 11:03:21 +0000 (14:03 +0300)]
init/calibrate: Fix bug in calibrate_delay

BZ: 41942

There is a bug in calibrate_delay which causes delay calibration to be
performed on nonboot cpus when waking up from S3. This has huge impact on
screen resume latency. Fix this by correcting errorneous else if statement.

Change-Id: I57d0bd83f44d58ed8abe5e8aab7b34b00de04e2f
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/53297
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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>
11 years agoIPC: add delay if read mip failed
Dong Yang [Tue, 19 Jun 2012 05:20:29 +0000 (13:20 +0800)]
IPC: add delay if read mip failed

BZ: 42495

The read_mip() function uses a dead loop to access mip, if read
mip access failed, this is not reasonable, since SCU will access
the emmc, and get the emmc mutex, if get mutex failed, SCU will
return and this function will read error return status and
trigger the IPC again. This will bring up the SCU interrupt storm,
about 800 times/second, and impact the other IPC. So we add a
delay in this loop, or IPC will continue until IA release the
emmc mutex.

Change-Id: I022fd46e04530b31d5118f91f3b1404b3ab85d0d
Signed-off-by: Dong Yang <dong.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/53241
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: He, Bo <bo.he@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agodrivers: staging: sep: Acquire IMR base from register for secure dma
Mark Allyn [Tue, 19 Jun 2012 21:14:59 +0000 (14:14 -0700)]
drivers: staging: sep: Acquire IMR base from register for secure dma

BZ: 42711

Bug: 42711

Change-Id: Ie92b58c9f508453582a53c3ee838b57fb5dc476f
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Reviewed-on: http://android.intel.com:8080/53365
Reviewed-by: Mangalampalli, Jayant <jayant.mangalampalli@intel.com>
Tested-by: Mangalampalli, Jayant <jayant.mangalampalli@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agommc: panic_ops: release Dekker mutex during ipanic saving
Chuanxiao Dong [Mon, 18 Jun 2012 02:07:37 +0000 (10:07 +0800)]
mmc: panic_ops: release Dekker mutex during ipanic saving

BZ: 42244

panic_ops: release Dekker mutex during ipanic saving

Change-Id: I675e033887244714cc8d6e720e1ce195cc76dd86
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/53044
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agoltr301als: Change the adc-lux conversion method
Leo Yan [Fri, 15 Jun 2012 09:58:48 +0000 (17:58 +0800)]
ltr301als: Change the adc-lux conversion method

BZ: 39399 41574

The adc-lux conversion is not accurate on the DV20, change the
algorithm and coefficent according to the vendor's advice.

Change-Id: I5a6e11c86c8553cd40732c9cf300421a69ac440b
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/52892
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agoGfx-Display: [REVERTME] improve the SW workaround 47423
Geng Xiujun [Mon, 11 Jun 2012 08:24:31 +0000 (16:24 +0800)]
Gfx-Display: [REVERTME] improve the SW workaround 47423

BZ: 41053

The patch move WA 47423 from pci_fixup callback to i2c driver context. Once
there's a device using I2C bus 2, then try to turn on vadd, after finishing
transfer, try to turn off vadd. The turn off vadd operation is put in a delay
work queue, it will be delayed 100ms. once there's no device accessing this i2c
bus, then vadd will be turned off, otherwise the work will be canceled. This can
reduce time consumption if there're constant bus accessing.
another change is after turn on vadd, change wait time from 260ms to 60ms per
CMI panel spec, and before enabling GPIO_BL, wait another 200ms. this can save
200ms if there's i2c accessing before panel on.

Change-Id: I5d9e9e919506da606283e9e26b4cd9ce327bb736
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/52721
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years ago[CRASHLOG] Reformat fabric err logs
Christophe Guerard [Mon, 18 Jun 2012 13:16:29 +0000 (15:16 +0200)]
[CRASHLOG] Reformat fabric err logs

BZ: 42166

The display format of the hex value of each Dword is changed
to show all bytes of the Dword for cosmetic

Change-Id: I8c02ddde240d68b0514222415f97eb3c585b4cba
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/53124
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@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>
11 years ago[PORT FROM R4] mt9e013: add 480p+ 20% dvs envelope resolution
Robert Jong-A-Lock [Wed, 13 Jun 2012 07:08:32 +0000 (09:08 +0200)]
[PORT FROM R4] mt9e013: add 480p+ 20% dvs envelope resolution

BZ: 41002

For ICS a 480p sensor setting that also includes a 20% FoV needs to be added.
The sensor will then select this resolution instead of the two different ones
it was selecting before.

Change-Id: I28ec2ad8fee0266684173d72bb4b4983f76508b0
Orig-Change-Id: Ic19b0a6118edf4aec284f04c3f11ee4ee3eca5b8
Signed-off-by: Robert Jong-A-Lock <robert.jong-a-lock@intel.com>
Reviewed-on: http://android.intel.com:8080/52856
Reviewed-by: Niemimuukko, Ukri <ukri.niemimuukko@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agomt9m114: implement VIDIOC_S/G_PARM for setting/getting stream parameters
Tuukka Toivonen [Mon, 18 Jun 2012 08:59:36 +0000 (11:59 +0300)]
mt9m114: implement VIDIOC_S/G_PARM for setting/getting stream parameters

BZ: 41720

Implement VIDIOC_G_PARM and VIDIOC_S_PARM to set and get struct
v4l2_streamparm.

Change-Id: I18eef26ced26b6bb871d737c0e47e28b7fe61fdb
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/53085
Reviewed-by: Wang, Wen W <wen.w.wang@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>
11 years agoatomisp: return framerate for VIDIOC_G_PARM ioctl call
Tuukka Toivonen [Mon, 18 Jun 2012 08:08:14 +0000 (11:08 +0300)]
atomisp: return framerate for VIDIOC_G_PARM ioctl call

BZ: 41720

VIDIOC_G_PARM should return the video frame rate, so call the
sensor driver to get the frame rate and return it.

Change-Id: Icbe636971934facfa11bf4732e0d4230c23e2789
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/53070
Reviewed-by: Wang, Wen W <wen.w.wang@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>
11 years agomt9e013: add a full FOV mode for 1080p
Tuukka Toivonen [Fri, 15 Jun 2012 07:48:17 +0000 (10:48 +0300)]
mt9e013: add a full FOV mode for 1080p

BZ: 41720

Add sensor mode with full field-of-view (FOV) and resolution
1640x956 @ 30 fps for Blackbay. This mode can be used for creating
1080p mode by using ISP upscaling.

Also add an option to specifically enable sensor modes which have
less than full FOV. Enable low FOV modes for Blackbay but leave
disabled for Enzo and Lexington.

Change-Id: Ib8d0743bcad62b1d275266add4c3a1a398941ef5
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52874
Reviewed-by: Laakso, Antti <antti.laakso@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>
11 years agoatomisp: disable digital video stabilization when upscaling
Tuukka Toivonen [Thu, 14 Jun 2012 14:28:47 +0000 (17:28 +0300)]
atomisp: disable digital video stabilization when upscaling

BZ: 41720

Disable digital image stabilization (DVS) when ISP is doing
upscaling.

Change-Id: I6fc84d79476a534c6eabff04b9cccd92e0155d39
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52800
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@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>
11 years agoatomisp: calculate zoom factor properly when upscaling
Tuukka Toivonen [Thu, 14 Jun 2012 14:24:54 +0000 (17:24 +0300)]
atomisp: calculate zoom factor properly when upscaling

BZ: 41720

ISP zoom must be properly configured when upscaling is enabled.
Calculate the zoom limits and scale the user provided zoom
factor into proper range.

Change-Id: I755e0a87da6da56523208bde7d5051cbac6778eb
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52799
Reviewed-by: Laakso, Antti <antti.laakso@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>
11 years agoov8830: implement VIDIOC_G_PARM for getting stream parameters
Tuukka Toivonen [Wed, 13 Jun 2012 11:39:52 +0000 (14:39 +0300)]
ov8830: implement VIDIOC_G_PARM for getting stream parameters

BZ: 41720

Implement function to return struct v4l2_streamparm and call this
function from VIDIOC_S_PARM handler to fill the returned
structure. Also clear sensor mode parameters when streaming mode
is set. The sensor mode should be selected after the streaming mode
has been set.

Change-Id: I8fcac0925db91a9a691f5cb126e9fc992827bf2b
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52730
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@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>
11 years agoatomisp: enable upscaling on ISP
Tuukka Toivonen [Wed, 13 Jun 2012 08:17:01 +0000 (11:17 +0300)]
atomisp: enable upscaling on ISP

BZ: 41720

If the requested resolution is bigger than what the sensor supports,
use ISP upscaler to construct image of desired size instead of
returning a smaller resolution to user space.

Change-Id: Ie7b9e55fbe28b38b976851008f03537456501d26
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52729
Reviewed-by: Laakso, Antti <antti.laakso@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>
11 years agomt9e013: implement VIDIOC_G_PARM for getting stream parameters
Tuukka Toivonen [Wed, 13 Jun 2012 07:36:24 +0000 (10:36 +0300)]
mt9e013: implement VIDIOC_G_PARM for getting stream parameters

BZ: 41720

Implement function to return struct v4l2_streamparm and call this
function from VIDIOC_S_PARM handler to fill the returned
structure. Also clear sensor mode parameters when streaming mode
is set. The sensor mode should be selected after the streaming mode
has been set.

Change-Id: I040510ce6b767695a1425e76388da4f57c8801d3
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52728
Reviewed-by: Niemimuukko, Ukri <ukri.niemimuukko@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@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>
11 years agoatomisp: clear struct v4l2_streamparm which is passed to sensor driver
Tuukka Toivonen [Wed, 6 Jun 2012 07:48:27 +0000 (10:48 +0300)]
atomisp: clear struct v4l2_streamparm which is passed to sensor driver

BZ: 41720

AtomISP driver calls s_parm function of sensor drivers and gives
as an argument struct v4l2_streamparm without clearing it. This
causes random parameters to be passed on to drivers causing
possibly random effects.

Change-Id: Id04321ccbebf2ccaa30cdc5debfa1d3396330369
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/52727
Reviewed-by: Niemimuukko, Ukri <ukri.niemimuukko@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@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>
11 years agoatomisp: Wrong cache page alignment
Emmanuel Berthier [Tue, 12 Jun 2012 11:07:22 +0000 (13:07 +0200)]
atomisp: Wrong cache page alignment

BZ: 41025

After enabling SLUB allocator debugging (cf BZ 39652), we get strange warning
logs:

KERNEL : [ 51.307896] WARNING: at hardware/intel/linux-2.6/arch/x86/mm/pageattr.c:877 change_page_attr_set_clr+0x273/0x420()

It appears that ISP pages are not aligned to kernel pages (0x400 instead of
0x1000).
Signed-off-by: Emmanuel Berthier <emmanuel.berthier@intel.com>
Change-Id: I57e0f747f45640bcaf3b83bd798bcb31e68a6d31
Reviewed-on: http://android.intel.com:8080/52491
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agoignore xmitr checking while port is inactive
Bin Yang [Wed, 13 Jun 2012 03:18:24 +0000 (11:18 +0800)]
ignore xmitr checking while port is inactive

BZ: 41591

when hsu is inactive, all hsu accesses will be put into a queue.
It is not necessary to check the xmitr.

Change-Id: Ief9268da85c7f5d7fcb6e309658acc93e6e454cf
Signed-off-by: Bin Yang <bin.yang@intel.com>
Signed-off-by: Wang Yiyang <yiyang.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/52844
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>
11 years ago[GFX-3D]Release last flip buffer after a while even if there is no new frame coming
Yun Tu(Mark Tu) [Sat, 16 Jun 2012 06:55:29 +0000 (14:55 +0800)]
[GFX-3D]Release last flip buffer after a while even if there is no new frame coming

BZ:42074

Release last flip buffer after a while even if there is no new frame coming,
as looks like user space try to lock last frame without submitting a new frame first
and cause dead lock then
Signed-off-by: Yun Tu(Mark Tu) <yun.tu@intel.com>
Change-Id: Ifa76783985418cd2011546c01169c996baf25901
Reviewed-on: http://android.intel.com:8080/52876
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-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>
11 years agousb:otg: wait for system resume before stopping host
jzhuan5 [Thu, 14 Jun 2012 22:24:49 +0000 (18:24 -0400)]
usb:otg: wait for system resume before stopping host

BZ: 38545

add a PM notifier to know whether system is resumed.
EHCI driver should not be removed until system is resumed.

Change-Id: I012d1130215f08bd4230af8adf4068d8cb588c0b
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/52758
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@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: Gao, Yunpeng <yunpeng.gao@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agomax11871: add 06-17 driver drop from maxim
Hong Liu [Mon, 18 Jun 2012 08:36:56 +0000 (16:36 +0800)]
max11871: add 06-17 driver drop from maxim

BZ: 42240

Maxim new release (intel-2012-06-17), including new firmware + driver to
support LEX PR2.0.

Change-Id: I35e0a8b4445ec8b0bf6bbada0395d7a496def1f3
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/53080
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>
11 years ago[PORT FROM R2][REVERTME] cpu: trigger a BUG() when boot cpu1 failed when being woke...
ShuoX Liu [Mon, 21 May 2012 01:36:30 +0000 (09:36 +0800)]
[PORT FROM R2][REVERTME] cpu: trigger a BUG() when boot cpu1 failed when being woke up from S3.

BZ: 36367

From yanmin:
It's hard to reproduce this issue and we don't know where CPU 1 is
running when it happens. A potential patch is to call BUG() to trigger
a panic when CPU 0 couldn't boot CPU 1, so system would reboot by
software WDT and wouldn't consume power unconsciously.

Change-Id: I32624a6875b435655dc0fe7e3f647dbbeb6d793a
Orig-Change-Id: I700068ab629cf60061ac24315733aeedb5710b86
Signed-off-by: Yanmin Zhang <yanmin.zhang@intel.com>
Signed-off-by: ShuoX Liu <shuox.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/52325
Reviewed-by: Popescu, CatalinX <catalinx.popescu@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agoGFX: config the right active power latency to 50ms
liu chuansheng [Thu, 14 Jun 2012 11:31:05 +0000 (19:31 +0800)]
GFX: config the right active power latency to 50ms

BZ: 38510

Now the GFX SYS_SGX_ACTIVE_POWER_LATENCY_MS is 5, which should
effect the system load and reduce the performance.

After refer some other manufacturing config, 50 -- 100 is the
reasonable value.

Change-Id: Ie77a0a6b9344586feb28eb2a31057e12ec1428e6
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/52709
Reviewed-by: Shi, Yang A <yang.a.shi@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-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>
11 years agoGraphics: Update graphics kernel driver to DDK 905891
gwang23 [Mon, 28 May 2012 10:20:21 +0000 (18:20 +0800)]
Graphics: Update graphics kernel driver to DDK 905891

BZ: 38713

Update graphics kernel driver to DDK 905891

Change-Id: Icfb4db392c2699369a32fd1446bf31135a38dba9
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/52593
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years ago[PVR/GFX]: Enable one IMG option to avoid SGX lock up
Randy Xu [Sat, 9 Jun 2012 03:25:01 +0000 (11:25 +0800)]
[PVR/GFX]: Enable one IMG option to avoid SGX lock up

BZ: 37183

Per IMG's suggestion, enable kernel driver option to avoid SGX lock up
   SUPPORT_DC_CMDCOMPLETE_WHEN_NO_LONGER_DISPLAYED := 1

More, Mark solves the tearing issue introduced by this option

Change-Id: I280ece6cfaa09e97e24dae8b4a92058ad27ba17b
Signed-off-by: Randy Xu <randy.xu@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/52258
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
11 years agofw_update: fix buffer overflow issue
Li, Ning [Wed, 13 Jun 2012 08:02:55 +0000 (16:02 +0800)]
fw_update: fix buffer overflow issue

BZ: 41666

Klocwork scan found a "Buffer Overflow in Bound String Copy" issue
in intel_scu_fw_update.c. This patch fix this issue.

Change-Id: Id328f616f079b42553ffc6cf1d50be3422880f9d
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/52601
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>
11 years agoaudio:use single block DMA transfer for firmware download
Ramesh Babu K V [Mon, 11 Jun 2012 16:44:12 +0000 (22:14 +0530)]
audio:use single block DMA transfer for firmware download

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>
11 years agoRevert "atmel_mxt_ts: Change the touch calibration condition"
jli127 [Tue, 12 Jun 2012 11:45:35 +0000 (19:45 +0800)]
Revert "atmel_mxt_ts: Change the touch calibration condition"

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>
11 years agoST: Adding Runtime PM and S3 support for the shared transport release
Aymen Zayet [Fri, 16 Mar 2012 14:01:30 +0000 (15:01 +0100)]
ST: Adding Runtime PM and S3 support for the shared transport release

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>
11 years agoKernel config: Enable SLUB allocator debugging
Emmanuel Berthier [Tue, 12 Jun 2012 11:19:11 +0000 (13:19 +0200)]
Kernel config: Enable SLUB allocator debugging

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>
11 years ago[Graphics]: Enable the LEX command mode DSTB,CABC, fix the tearing issue
yifei.xue [Fri, 8 Jun 2012 03:08:14 +0000 (11:08 +0800)]
[Graphics]: Enable the LEX command mode DSTB,CABC, fix the tearing issue

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>
11 years agoGraphics: Lex display command mode support
yifei.xue [Tue, 29 May 2012 08:31:47 +0000 (16:31 +0800)]
Graphics: Lex display command mode support

BZ: 32664

Enable the LEX display command mode

Change-Id: 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>
11 years agoGFX-Display: Fix Out Of Memory issue when playing video while rotating the device...
Lingyun Zhu [Wed, 6 Jun 2012 02:05:28 +0000 (10:05 +0800)]
GFX-Display: Fix Out Of Memory issue when playing video while rotating the 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>
11 years agoGFX-Display: refine the dsi_error_handler
zhong Dongsheng [Sun, 3 Jun 2012 22:38:38 +0000 (06:38 +0800)]
GFX-Display: refine the dsi_error_handler

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>
11 years agoGFX-display: Suboptimal sequence in mdfld_dsi_pr2_power_on
Ke Ai [Fri, 1 Jun 2012 06:41:11 +0000 (14:41 +0800)]
GFX-display:  Suboptimal sequence in mdfld_dsi_pr2_power_on

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>
12 years agofw_update: fw upgrade memory handle
Li, Ning [Wed, 6 Jun 2012 09:47:07 +0000 (17:47 +0800)]
fw_update: fw upgrade memory handle

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>
12 years agomax170xx_battery: add fake temperature support
Ramakrishna Pallala [Thu, 7 Jun 2012 15:00:38 +0000 (20:30 +0530)]
max170xx_battery: add fake temperature support

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>
12 years agoGfx-Display: change CABC PWM frequency to 200hz
Geng Xiujun [Fri, 8 Jun 2012 05:41:39 +0000 (13:41 +0800)]
Gfx-Display: change CABC PWM frequency to 200hz

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>
12 years agoRevert "Audio: Synchronous message posting for ALSA trigger commands"
Ramesh Babu K V [Mon, 4 Jun 2012 10:04:11 +0000 (15:34 +0530)]
Revert "Audio: Synchronous message posting for ALSA trigger commands"

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>
12 years agoRevert "audio:sst: Change work queues to singlethread work queues"
Ramesh Babu K V [Mon, 4 Jun 2012 10:03:35 +0000 (15:33 +0530)]
Revert "audio:sst: Change work queues to singlethread work queues"

BZ: 37713

This reverts commit e669f0fd2aeb0ae5b7a524ad05e3a5c977eeb4ce.

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

BZ: 21688 37320

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

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

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

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

BZ: 39086

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

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

BZ: 39775

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

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

BZ: 39471

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

1. Initialization of the FM lock before the usage.

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

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

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

BZ: 37071

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

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

BZ: 36161

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

BZ: 37619

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

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

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

BZ: 35524

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

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

BZ: 28988

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

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

Default value in MUX is 1.

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

CLOCAL can be unset later as usual.

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

BZ: 28761

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

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

BZ: 36446

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

Solution :
- atomisp
- libcamera
- libmfldadvci
- bionic

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

BZ: 38404

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

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

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

BZ: 34537

operator precedence is misused.

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

BZ: 32042

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

This issue is from Enzo BZ #570.

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

BZ: 37619

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

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

BZ: 37475

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

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

BZ: 36969

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

Change to submit to R3-Stable.

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

BZ: 34381

[PATCH 3/3]

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

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

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

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

BZ: 34381

[PATCH 2/3]

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

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

BZ: 34381

[PATCH 1/3]

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

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

BZ: 40861

Improve check of validity of Fabric Log Buffer

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

BZ: 36456 36536

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

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

BZ: 32664
This reverts commit 6a844894383789ecfdd760c8e617e21f212dbab4.

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

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

BZ: 38418

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

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

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

BZ: 38506

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

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

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

BZ: 35509

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

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

BZ: 37468

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

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

BZ: 38396

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

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

BZ: 39874

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

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

BZ: 39874

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

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

BZ: 39874

Use warning code will be more readable.

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

BZ: 39874

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

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

BZ: 32664

Enable the LEX display command mode

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

BZ: 39815

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

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

BZ: 37139

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

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

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

BZ: 37468

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

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

BZ: 38178

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

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

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

BZ: 37972

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

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

BZ: 38174

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

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

BZ: 36751

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

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

BZ: 38755

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

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

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

BZ: 38025

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

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

BZ: 38815

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

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

BZ: 33530

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

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

BZ: 27947

This reverts commit 99db2b1afac52089c7f71c161094ebeeab1487c7.

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

BZ: 38031

Fix correct call to osnib
Also fix variable name

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

BZ: 37757

Add BUG_ON() to catch the error trace

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

BZ: 38231

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

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

BZ: 26623

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

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

BZ: 26623

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

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

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

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

BZ: 27947

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

BZ: 37067

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

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

BZ: 38574

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

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

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

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

BZ: 27564

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

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

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

BZ: 30594

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

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

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

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

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

BZ: 34094

Changes to make matrix driver dynamic kernel module.

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

BZ: 34094

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

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

BZ: 35248

for Enzo bug 969 / 1056 /568

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

2.re-enable DSR feature to save power.

3.BZ 1056 clear some unused variable.

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

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

BZ: 25136

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

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

Change-Id: I5cbcdec6c77b9e89440e3bdc38d9b9eb06f8f661
Signed-off-by: Mathieu Soulard <mathieu.soulard@intel.com>
Reviewed-on: http://android.intel.com:8080/49920
Reviewed-by: De Chivre, Renaud <renaud.de.chivre@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>