kernel/kernel-mfld-blackbay.git
12 years agointel_scu_pmic & intel_scu_mip: change the driver init priority
Shijie Zhang [Mon, 16 Apr 2012 13:45:23 +0000 (21:45 +0800)]
intel_scu_pmic & intel_scu_mip: change the driver init priority

BZ: 31879

OCD driver needs mip interface to access the mip data during init.
So PMIC and MIP driver initcall should be called before OCD driver
init. This patch fixes this problem.

Change-Id: I03071922c3b5e53ee98dd3c83111c4467c27906c
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/43521
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Kumar S, Pavan <pavan.kumar.s@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@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_pmic: fix potiential buffer overflow problem
Shijie Zhang [Thu, 12 Apr 2012 16:37:58 +0000 (00:37 +0800)]
intel_scu_pmic: fix potiential buffer overflow problem

BZ: 31509

Use snprintf instead of sprintf to avoid potiential buffer overflow problem,
and sscanf will return 0 instead of -1 when no args is converted succefully.

This patch fixes this two potiential issues.

Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Change-Id: I27d3b79b43258056a8318efa0dae10677e53fd03
Reviewed-on: http://android.intel.com:8080/43249
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
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 agoEM/THERMAL: Fix for filename error to load the thermal driver
debalina [Thu, 19 Apr 2012 17:35:43 +0000 (23:05 +0530)]
EM/THERMAL: Fix for filename error to load the thermal driver

BZ: 32210

Post the merge of patch #43334, thermal driver failed to load correctly.
This happened due to errors in filenames and device names in the code.
This patch corrects these filename errors and loads the thermal driver correctly.

Change-Id: I0867a1d04f8d0f5fa157b3b855ca7918259f5987
Signed-off-by: debalina mitra <debalinax.mitra@intel.com>
Reviewed-on: http://android.intel.com:8080/43960
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Hari, NeelamX <neelamx.hari@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 agoEM/THERMAL: Enable thermal sensor driver for Clover Trail platform
Shravan [Mon, 9 Apr 2012 12:54:48 +0000 (18:24 +0530)]
EM/THERMAL: Enable thermal sensor driver for Clover Trail platform

BZ: 30799

This patch adds the necessary changes to enable thermal sensor driver for
clover trail platform. Platform specific changes are also added to the driver
making it a common driver for both Medfield and CT platform.

Change-Id: I4523dea793d57737687f8b7974d47957985726e2
Signed-off-by: Shravan <shravan.k.b.m@intel.com>
Reviewed-on: http://android.intel.com:8080/42849
Reviewed-by: Krishna R, Ananth <ananth.krishna.r@intel.com>
Reviewed-by: R, Durgadoss <durgadoss.r@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 agoLTR301 support for redridge DV20
Christophe Continente [Tue, 10 Apr 2012 14:34:20 +0000 (16:34 +0200)]
LTR301 support for redridge DV20

BZ: 31107

On DV2 boards the light sensor is replaced with a ltr301 sensor sitting on i2c5
bus address 0x23.

Patch ported from OTC branch, with changes including:
1. add "enable" sysfs entry to control enable/disable device
2. auto tuning threshold to generate interrupt when lux changes

Change-Id: Ic759149adb2c148f0c2df4a07dcba8db75d85954
Signed-off-by: Christophe Continente <christophe.continente@intel.com>
Signed-off-by: Forrest Zhao <forrest.zhao@intel.com>
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/42950
Reviewed-by: Chen, Jie D <jie.d.chen@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 agousb:langwell_udc: enable sram and workaround dTD tripwire issue
jzhuan5 [Thu, 23 Feb 2012 15:26:43 +0000 (10:26 -0500)]
usb:langwell_udc: enable sram and workaround dTD tripwire issue

BZ: 28733

This patch is a w/a to fix the dTD tripwire defect found in CLV A0.
The w/a should be removed after we have CLV+ B0.

Change-Id: I4824c99ceaac82e849690f8d9dd9a1fa1663e1b0
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/38249
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Wu, Xia <xia.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 agommc: enable boot partition accessing for CLV
Chuanxiao Dong [Wed, 11 Apr 2012 09:00:19 +0000 (17:00 +0800)]
mmc: enable boot partition accessing for CLV

BZ: 31365

UMIP driver needs to access boot partition from IA. So eMMC driver
needs to open the access for it

Change-Id: I73a6df32e0229f9a24469524ba4f248236ae0659
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/43090
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Gao, Yunpeng <yunpeng.gao@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: adjust secure erase/trim calculation
Chuanxiao Dong [Tue, 10 Apr 2012 07:16:43 +0000 (15:16 +0800)]
mmc: adjust secure erase/trim calculation

BZ: 30907

Although some eMMC card needs a larger timeout value for secure trim/erase
operations, but they can finish in a short time. For these eMMC card, we
can let them to enable this feature

Change-Id: I63534ea08eddb9456513472632fb502df5d3a1f7
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/43089
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "[PORT FROM R2]mmc: core: increase eMMC card write timeout response time"
Chuanxiao Dong [Tue, 10 Apr 2012 04:08:56 +0000 (12:08 +0800)]
Revert "[PORT FROM R2]mmc: core: increase eMMC card write timeout response time"

BZ: 31364

This reverts commit cb9a4398354af070b33a6eff8b9da2698a5b311e.
As bug described, let driver have a retry is better than increasing timeout
value

Change-Id: I07c0632cb2f85b47523e9058e7ed553131543bb1
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/43088
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoDrivers: staging: sep: add fastcall api for insert shared addr
Mark Allyn [Thu, 5 Apr 2012 23:49:36 +0000 (16:49 -0700)]
Drivers: staging: sep: add fastcall api for insert shared addr

BZ: 30718

The fastcall interface requires a different method of handling
a request to have the shared area physical address to be
inserted into the message pool.

Bug: 30718
Change-Id: I64d04f2afaf0bfb9a7c9f66f8513dcff20fa88cc
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Reviewed-on: http://android.intel.com:8080/42608
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>
12 years agopowerdk: update wakelock tracepoint
German Monroy [Tue, 10 Apr 2012 22:23:15 +0000 (15:23 -0700)]
powerdk: update wakelock tracepoint

BZ 31198

Fix from Lim Min Yeol that:
1. Moves trace function inside spinlock because wakelock pointer could
get invalidated during a tracing event
2. Polishes output

Change-Id: I3f4f7a0560f5a4494e3d85a7e1bd76ed77fba44e
Signed-off-by: Lim Min Yeol <min.yeol.lim@intel.com>
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/42990
Reviewed-by: Zhang, Dongxing <dongxing.zhang@intel.com>
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@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 agosfi: Change SFI based device IRQ polarity to active high
Winson Yung [Tue, 10 Apr 2012 16:41:56 +0000 (09:41 -0700)]
sfi: Change SFI based device IRQ polarity to active high

BZ: 31180

Found during HSI/modem integration with ICS that setting
SFI based device IRQ polarity to active low causes lots
of spurious interrupts. Change it to active high to make
SFI base device IRQ work correctly.

Change-Id: I9a61751cbd1bac3745a94687bac2255fe6a68d5f
Signed-off-by: Winson Yung <winson.w.yung@intel.com>
Reviewed-on: http://android.intel.com:8080/42969
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Sahukar, Surya P <surya.p.sahukar@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 ago[display-dv10]: donot suspend lvds bridge in dpms operation
Geng Xiujun [Tue, 17 Apr 2012 09:35:06 +0000 (17:35 +0800)]
[display-dv10]: donot suspend lvds bridge in dpms operation

BZ: 31725

This is a WA, it just sends dpi turn on/shut down package to panel during dpms
operation.

Change-Id: I2ff229c3517b2b8c01ffc1a798942c5d37da1991
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/43693
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[display]: Port 3 patches from R3 and do some code clean
Geng Xiujun [Tue, 17 Apr 2012 02:52:47 +0000 (10:52 +0800)]
[display]: Port 3 patches from R3 and do some code clean

BZ: 32073

0001-GFX-DISPLAY-Add-vblank-mask-when-enable-disable-PIPE.patch: BZ: 25812
0002-GFX-DISPLAY-Fix-MIPI-panel-power-faild-issue.patch: BZ: 21666
0003-HDMI-Audio-play-music-via-HDMI-will-play-from-the-sp.patch: BZ: 18714

And this patch also does code clean for patch set 2, simplify its logic.

Change-Id: I3324e53871f9b6d77928cf6d20a0404463ea7c67
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/43632
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 agoGfx-Display: [patch 1/3] Fix the issue of HDMI Fabric error
Lei Zhang [Fri, 13 Apr 2012 05:40:16 +0000 (13:40 +0800)]
Gfx-Display: [patch 1/3] Fix the issue of HDMI Fabric error

BZ: 30610

This is the kernel driver patch to fix the issue of HDMI fabric error.
It uses bhdmiconnected to indicate the status of HDMI power island on/off;
uses hdmi_state to indicate the HDMI hotplug signal. In this way, add
protection in mdfld_dsi_connector_dpms, mipi_hdmi_vsync_check where may
still access hdmi regs after power off.

This patch needs to co-work with another patch for HDMIObserver.

Change-Id: Ie78d9f73b0fb6abaea9e02de2b009245137fede3
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/43504
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 agomax17042: add max17047 entry in device id table
Ramakrishna Pallala [Mon, 16 Apr 2012 00:07:29 +0000 (05:37 +0530)]
max17042: add max17047 entry in device id table

BZ: 30836

max17047 is same as max17050 chip, it only differs in
silicon packaging from max17050. max17042 driver
already supports max17050 chip so to support max17047 we
just need to add max17047 entry in its device id table.

This patch modifies the board-redridge.c file to
support this new chip on the platform. And also
adds the new entry max170xx_battery to power supplied_to
list of msic and smb347 charger drivers.

Change-Id: Ife2fb984e432a7a10bc168a772f0d7ccabdc00a5
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/43159
Reviewed-by: Hari, NeelamX <neelamx.hari@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 ago[PORT FROM R2] Revert "[REVERT ME]n_gsm: add dedicated traces in MUX for APIMR issues"
lebsir [Tue, 17 Apr 2012 09:50:53 +0000 (11:50 +0200)]
[PORT FROM R2] Revert "[REVERT ME]n_gsm: add dedicated traces in MUX for APIMR issues"

BZ: 25958

This reverts commit 6fe94a56686e6f4139518c0e9e072da68ecccd71.
This reverts patch http://android.intel.com:8080/#/c/41335

Change-Id: Ib47c9dbd3f2217f1ec2c5c89a1c2a05c661cc886
Signed-off-by: lebsir <samix.lebsir@intel.com>
Reviewed-on: http://android.intel.com:8080/43685
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "usb:gadget: remove string Medfield in serial number"
Remy Protat [Wed, 18 Apr 2012 10:19:47 +0000 (12:19 +0200)]
Revert "usb:gadget: remove string Medfield in serial number"

BZ: 29562

This reverts commit ba9cfb970c548106d3deee3f0bca8d52fed25108.

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

12 years agousb:gadget: cancel pending control request after disconnection
jzhuan5 [Wed, 11 Apr 2012 17:45:47 +0000 (13:45 -0400)]
usb:gadget: cancel pending control request after disconnection

BZ: 30958

Control requests can be pending on ep0IN after disconnection, after re-connection,
the request completes but the gadget (e.g. RNDIS) is already removed, this causes
NULL pointer issue. The patch removes the pending control request after disconnection.

Change-Id: Ifc9dc823ab550c0451667128c78c6f2ecebe1c4c
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/43029
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: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:langwell_udc: fix a fabric error caused by langwell_ep_dequeue
jzhuan5 [Tue, 17 Apr 2012 02:49:20 +0000 (22:49 -0400)]
usb:langwell_udc: fix a fabric error caused by langwell_ep_dequeue

BZ: 32071

upper layer may call usb_ep_dequeue without knowing the power state of
device controller. Conventionally in langwell_udc, got_irq can be used
to check if current state is fully powerd. So we need to make sure got_irq
is set in langwell_ep_dequeue() before accessing any register.

Change-Id: I8e8ae491b368d5392b84ccc4658a6be66b213cb5
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/43587
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 agomfld_pmu: add might_sleep in pmu_pci_set_power_state
Illyas Mansoor [Sun, 15 Apr 2012 16:13:25 +0000 (21:43 +0530)]
mfld_pmu: add might_sleep in pmu_pci_set_power_state

BZ: 31847

It is possible that pmu_pci_set_power_state() could be called from atomic
context if pm_runtime_irq_safe() is set by a driver and runtime_put/get called
from an atomic context.

But our implementation of set_power_state() does not allow calls to be made to
pmu_pci_set_power_state() is atomic context

Hence make it explicit by calling might_sleep() and let it provide a call stack
if anyone attempts to do so.

Change-Id: I141e1573e97e017c018c4a2576dfe4494c6d8f32
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/43507
Reviewed-by: Hogander, Jouni <jouni.hogander@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 agointel_scu_ipc: add might_sleep to ipc_command
Illyas Mansoor [Sun, 15 Apr 2012 15:29:27 +0000 (20:59 +0530)]
intel_scu_ipc: add might_sleep to ipc_command

BZ: 31846

ipc_command() function calls two blocking calls
but does not warn if called from atomic context

pm_qos_update_request() is a blocking call
acquire_scu_ready_sem() is a blocking call

Fixed this by adding might_sleep() to catch such calls.

Change-Id: I1308278a7870f2cd7f0ed2610d79d3c3efc3d266
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/43506
Reviewed-by: Rudramuni, Vishwesh M <vishwesh.m.rudramuni@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Li, Ning <ning.li@intel.com>
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Added max170xx_battery device id into charger driver
Pandey Raj [Mon, 16 Apr 2012 11:23:35 +0000 (16:53 +0530)]
EM/Battery: Added max170xx_battery device id into charger driver

BZ: 30836

This patch adds a new entry max170xx_battery to bq24192_power_supplied_to
list of bq24192 charger driver to make the FG chip generic. The FG driver
initializes the chip depending upon the platform type.

Change-Id: Id57ccc6ff3effb366b3c7fa09987b9f56644729c
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/43569
Reviewed-by: Gross, Mark <mark.gross@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 agoEM/Battery: Enable maintenance charging on clovertrail platform
Pandey Raj [Mon, 16 Apr 2012 11:09:59 +0000 (16:39 +0530)]
EM/Battery: Enable maintenance charging on clovertrail platform

BZ: 27582

This patch enables the maintenance charging on clovertrail platform.
Maintenance charging kicks in whenever the battery voltage goes below
the low maintenance threshold currently defined in board file. Once the
maintenance charging parameters are there in SFI table we will read the
values from the SFI table and program the charger as per the maintenance
threshold data defined. Currently the full charge voltage is 4176mV
and the maintenance charging lower threshold is 4076mV. The charging
current during maintenance is 500mA

Change-Id: I900671d6a1703455831b519ccb0c835e6dbbe232
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/43285
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Moving battery characterization data into board file for clovertrail
Pandey Raj [Mon, 16 Apr 2012 10:03:33 +0000 (15:33 +0530)]
EM/Battery: Moving battery characterization data into board file for clovertrail

BZ: 30263

This patch is submitted to move the battery characterization data into board
file. Since there is a dependency on SMIP to provide this data, moving data
temporarily. Once the SMIP provides the battery characterization data, the
driver will read the data from SMIP only.

Change-Id: I45f677e5cd8a33bcfe1015959765332dafbe9379
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/43549
Reviewed-by: Gross, Mark <mark.gross@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 agoov8830: HACK: allow driver to function even if AF detection fails
Tuukka Toivonen [Mon, 16 Apr 2012 12:58:49 +0000 (15:58 +0300)]
ov8830: HACK: allow driver to function even if AF detection fails

BZ: 27473

With some hardware, gpio pins are not properly configured to supply
power to the lens driver chip and consequently the chip will not
respond to i2c commands. This caused the drv201 detection function
to fail and whole ov8830 driver to fail functioning at all, even
from driving the sensor.

This patch allows ov8830 driver to drive sensor even if the lens driver
chip detection fails by ignoring the error code returned by the drv201
detection function. In this case only the focus functionality is disabled.

Change-Id: I552f638d8b7f84017feee62858094bc6b8d0726f
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/43578
Reviewed-by: Cohen, David A <david.a.cohen@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 agoctp_defconfig, mfld_defconfig: enable platform-specific camera drivers
Tuukka Toivonen [Tue, 3 Apr 2012 14:18:30 +0000 (17:18 +0300)]
ctp_defconfig, mfld_defconfig: enable platform-specific camera drivers

BZ: 27473

Enable camera related subdevices (primary camera sensor, secondary
camera sensor, and flash driver) for Medfield and Clovertrail.

Change-Id: Idfb0ab40200f46a057a9957f966131f1830824ae
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/42262
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Gao, Bin <bin.gao@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: fix Kconfig
Tuukka Toivonen [Mon, 16 Apr 2012 10:47:01 +0000 (13:47 +0300)]
atomisp: fix Kconfig

BZ: 31681

The 'default m' line is removed to make non-medfield users happy. The other
lines are fixed accordingly to the checkpatch.pl.

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Change-Id: I8d202bccc3a2fa40b8ff885d9def7964c1e4a379
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/35257
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: remove dependencies from AtomISP to subdevice drivers
Tuukka Toivonen [Mon, 2 Apr 2012 09:51:10 +0000 (12:51 +0300)]
atomisp: remove dependencies from AtomISP to subdevice drivers

BZ: 27473

Enabling AtomISP used to select also all sensor drivers in
the Kconfig. There is no point compiling all sensor drivers
for all platforms, so remove this dependency.

Change-Id: I44255cd33d3e4562841c083f6b6492d99b7fe8c2
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/42097
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: add initial driver for drv201 AF actuator into ov8830 driver
Tuukka Toivonen [Wed, 28 Mar 2012 12:37:11 +0000 (15:37 +0300)]
ov8830: add initial driver for drv201 AF actuator into ov8830 driver

BZ: 27473

Add initial support for drv201 AF actuator into the ov8830 driver.
The drv201 code should be moved into a separate driver later on,
so prefix all functions related to the drv201 with drv201.

Change-Id: I06d4c7c86279c5f0280a9fe7adc1077c49c65c75
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/41354
Reviewed-by: Cohen, David A <david.a.cohen@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 agoGraphic: Critical Klocwork issues for ICS scan 91
luliuhui [Mon, 16 Apr 2012 07:28:43 +0000 (15:28 +0800)]
Graphic: Critical Klocwork issues for ICS scan 91

BZ: 31927

Revise kw issue in round 91 scan in kernel

Change-Id: I78ccb16588156a7022fda8c9dae5f67f46af64d6
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/43532
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agoEnable CABC for DV10
Geng Xiujun [Fri, 13 Apr 2012 08:59:37 +0000 (16:59 +0800)]
Enable CABC for DV10

BZ: 31709

This patch enables CABC for lvds panel.

Change-Id: If5e74a510201b569b0a100d985bb9a77cbf13a97
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/43405
Reviewed-by: Park, Yong-joon <yong-joon.park@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 agoDisplay: Optimize the delay time when gi display panel screen on
zhang dongming [Fri, 13 Apr 2012 02:17:46 +0000 (10:17 +0800)]
Display: Optimize the delay time when gi display panel screen on

BZ: 29879

There so many delay in gi panel dpi ic init. cause gi Screen wake up
slowly after power key pressed. Optimize the delay time when Screen on.

Change-Id: I5450eb0e6d63815eaa18ed8c5cd079e2c191a603
Signed-off-by: zhang dongming <dongmingx.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/43333
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 agousb: revert USB patch42291
wu xia [Mon, 16 Apr 2012 06:29:33 +0000 (14:29 +0800)]
usb: revert USB patch42291

BZ: 31759

Patch42291 remove a USB HW workaround from USB driver. But
removing this workaround cause instability for CTP VV automated
testing. This means that the HW issue still exists on Cloverview
version. Revert this patch.

Change-Id: I8652e9968b56336d3d872f16d3a1dc0eaf07eb8f
Signed-off-by: wu xia <xia.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43537
Reviewed-by: Bourahmani, KarimX <karimx.bourahmani@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[LOGS] Swap thread id and process id
Christophe Guerard [Fri, 13 Apr 2012 09:12:35 +0000 (11:12 +0200)]
[LOGS] Swap thread id and process id

BZ: 31375

Change-Id: I80c25de5fbb0d7196f5e620bbc9f597882558a1e
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/43418
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopanic handle: check partition boundary when log is written
Zhang Dongxing [Wed, 11 Apr 2012 05:29:26 +0000 (13:29 +0800)]
panic handle: check partition boundary when log is written

BZ: 31254

Change-Id: I9736b1c8b6bca677058ebca1dcdab11773dfc79a
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/43030
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Zhang, Jun <jun.zhang@intel.com>
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@intel.com>
Tested-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdd OTG switch in DWC3 device driver.
Yu Wang [Fri, 13 Apr 2012 09:53:16 +0000 (17:53 +0800)]
Add OTG switch in DWC3 device driver.

BZ: 31649

This patch implements start_device() and stop_device() interfaces
provided for
OTG driver to satisfy the dynamic switch between host and device
functions.

Change-Id: I600c6187123fd3435f90ae1fbca382e59024df31
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/43427
Reviewed-by: Yuan, Hang <hang.yuan@intel.com>
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 agodwc_otg: Support switch host and device directly via sysfs.
Yu Wang [Thu, 12 Apr 2012 09:51:26 +0000 (17:51 +0800)]
dwc_otg: Support switch host and device directly via sysfs.

BZ: 31708

Currently, the sysfs interface can't support switch HOST to DEVICE or
DEVICE to HOST directly. We have to restart whole HVP platform to do
this switch. There are two patches to fix this issue, this patch is for
host side fixing.

Fix build warning, and merge part of code about vbus control from Synopsys
reference code.

Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Change-Id: Ic6ddb01174a8990b833d0f2b27a8a7447d69b7e2
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/43423
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 agohsi_ffl_tty: increase modem boot timeout to 60 seconds as per IMC request
Olivier Stoltz Douchet [Mon, 16 Apr 2012 08:12:46 +0000 (10:12 +0200)]
hsi_ffl_tty: increase modem boot timeout to 60 seconds as per IMC request

BZ: 28292

The modem post boot handshake timeout is currently set to 10 seconds, which
seems to be sufficient a time for the modem to setup its HSI IPC. But, this
assertion is not true and the modem can take up to one minute to boot up.

This patch is simply increasing the modem boot timeout to 60 seconds instead
of 10 seconds to allow correct modem reboot handshake in all contexts.

Still, this timeout value shall be fine tuned when the modem firmware will be
allowing shorter boot sequences - one minute seems huge for setting up the IPC.

Change-Id: Ie3dd6f58458fc5c6b628744588014a63698b774e
Signed-off-by: Olivier Stoltz Douchet <olivierx.stoltz-douchet@intel.com>
Reviewed-on: http://android.intel.com:8080/43536
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lucas, Guillaume <guillaume.lucas@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 agousb:gadget: remove string Medfield in serial number
jzhuan5 [Tue, 10 Apr 2012 23:44:06 +0000 (19:44 -0400)]
usb:gadget: remove string Medfield in serial number

BZ: 29562

The "Medfield" in serial number is meaningless, the patch replaces it with 0s to avoid the confusion when running
on HW platforms other than Medfield.

Change-Id: I5bafd5b5cce95bed8e296d7a85fd953722f868dd
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/42919
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/penwell_otg: add phy reset after reenable phy in initialization
jzhuan5 [Wed, 11 Apr 2012 05:43:06 +0000 (13:43 +0800)]
usb/penwell_otg: add phy reset after reenable phy in initialization

BZ: 31265

As we have to disable (power-off) and reenable (power-on) phy during
driver init process, but sometimes in the initialization process,
PHY will generate some unexpected interrupts like ID=0, which will
confuse the OTG state machine, but it goes way after we did phy reset
per test result. So this patch adds PHY reset to avoid this issue.

Change-Id: I3b853116b824fd1d58df2af3ec0819866afe4e60
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43034
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 agoMIPI: Add necessary delay per HW DSI spec
Ke Ai [Sat, 14 Apr 2012 22:48:55 +0000 (06:48 +0800)]
MIPI: Add necessary delay per HW DSI spec

BZ: 24684

Solve the MIPI on/off "fifo not empty" issue

Change-Id: Ic181674188dbb31cb4bcdf3d3f7f54cc3b50be82
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/43500
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 gamma and csc update interface
Ke Ai [Thu, 8 Mar 2012 08:13:16 +0000 (16:13 +0800)]
GFX-Display: add gamma and csc update interface

BZ: 29537

add a interface that named

psb_csc_gamma_setting_ioctl

to support csc and gamma change

Change-Id: I5bef6b87f832ed565a4ddb0f31f7c892fdf6da6e
Signed-off-by: Ke Ai <ke.ai@intel.com>
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/42653
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 agoSMP: blocked at csd_lock when bringing up the non-boot CPUs during waking up from...
liu chuansheng [Fri, 9 Mar 2012 16:53:42 +0000 (00:53 +0800)]
SMP: blocked at csd_lock when bringing up the non-boot CPUs during waking up from suspend state

BZ: 26556

When system wake up from suspend state, sometimes the Jack interrrupt is comming
quickly and the corresponding irq thread snd_mfld_codec_intr_detection will call
ipc_command, which will call smp_call_function at last.

The call trace is like below:
snd_mfld_codec_intr_detection -->
sn95031_jack_detection -->
snd_soc_update_bits -->
snd_soc_read -->
sn95031_read -->
... -->
ipc_command -->
pm_qos_update_request -->
... -->
smp_call_function

At the same time, the suspend worker thread is bringing up the non-boot CPUs
(just only one on our platform).
The call trace is like below:
pm_suspend -->
suspend_devices_and_enter -->
enable_nonboot_cpus -->
_cpu_up -->
native_cpu_up

At this step, the second CPU is running start_secondary, and have set the
cpu online flag. In smp_call_function_single, it will send an IPI and waiting
for csd_unlock, but in some race conditions, the IPI message do not handled by
second CPU maybe due to the irq is still in disabled state.

THe solution is waiting for the second CPU gone into active status, then send the IPI
command to the second CPU.

Change-Id: I837d0ec4f07625f00ac68816e9c298161c26fea3
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/38081
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Li, Zhuangzhi <zhuangzhi.li@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 agoHDMI-Audio: Update process_trigger flag to valid HAD state.
Vaibhav Agarwal [Tue, 28 Feb 2012 11:05:04 +0000 (16:35 +0530)]
HDMI-Audio: Update process_trigger flag to valid HAD state.

BZ: 24898 24987

During Dummy playback, statement to modifyprocess_trigger flag
is missing. This moves HAD to invalid state in some cases.

The solution is to modify process_trigger flag to valid HAD state.
HAD state is also updated with DISCONNECT, when the device is absent
and prepare is called.

Includes HDMI Klocwork spinlock error correction.

Change-Id: I17f272cca392e329b34ceb595d6fd7f4cfbc9586
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@intel.com>
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/36842
Reviewed-by: Vinnakota, Lakshmi N <lakshmi.n.vinnakota@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 agon_gsm: don't allow write if state is not DLCI_OPEN
Guillaume Lucas [Thu, 12 Apr 2012 14:20:24 +0000 (16:20 +0200)]
n_gsm: don't allow write if state is not DLCI_OPEN

BZ: 31586

The n_gsm code doesn't have protection to avoid to perform
a write if a DLCi is not in the DLCI_OPEN state. This means
that it's possible to have data sending to the modem when
the DLCi is in the DLCI_OPENING state. Means, when the DLCi
is performing the asynchronous open.

To avoid this, this patch fix the write operation to return
the EAGAIN error if the write is not allowed.
Signed-off-by: Guillaume Lucas <guillaume.lucas@intel.com>
Change-Id: I3a98a9960e62a82afe96b1694a0a67727d84f5bb
Reviewed-on: http://android.intel.com:8080/43298
Reviewed-by: Lucas, Guillaume <guillaume.lucas@intel.com>
Reviewed-by: Pillet, VincentX <vincentx.pillet@intel.com>
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Robert, Denis <denis.robert@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
12 years agommc: disable eMMC boot partition access for Merrifield VP
Yunpeng Gao [Fri, 13 Apr 2012 05:29:10 +0000 (13:29 +0800)]
mmc: disable eMMC boot partition access for Merrifield VP

BZ: 30542

The eMMC component in current Merrifield VP platform only implemnted
eMMC boot partition 0, did not implemented boot partition 1, which is
required by eMMC Spec. And the VP platform will crash if eMMC boot
partition 1 is accessed during kerenl boot.

This patch disable eMMC boot partition access for VP platform to
avoid this issue.

Change-Id: If74015fc69a32fc5da5c0968e109c3cbc9c5b50f
Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/43347
Reviewed-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agohsu: do not write to console when emmc_ipanic
Li, Ning [Wed, 11 Apr 2012 08:30:40 +0000 (16:30 +0800)]
hsu: do not write to console when emmc_ipanic

BZ: 30826

When emmc_ipanic happens, panic logs will be keeping output to
console for more than 15 senconds, then watchdog will be triggered.
This causes kernel unable to save the log to emmc. This patch fixes
this issue by stop writing logs to console when emmc_ipanic.

Change-Id: I1482c79116cad0c590ff64ef4c273a5dc3eba071
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/43066
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
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 agoehci-langwell-pci: set port as non-otg port
Wu, Hao [Wed, 11 Apr 2012 13:10:52 +0000 (21:10 +0800)]
ehci-langwell-pci: set port as non-otg port

BZ: 31285

If the port is defined as otg-port, then current
code in usb core will try to start HNP, which is
not needed. so need to set our port as non-otg port.

Change-Id: I65316bd683296bd72c290c57fc5ecee78205678c
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43114
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@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: never send A_ALT_HNP_SUPPORT to OTG2.0 device
Wu, Hao [Wed, 11 Apr 2012 13:02:30 +0000 (21:02 +0800)]
usb: never send A_ALT_HNP_SUPPORT to OTG2.0 device

BZ: 31285

A_ALT_HNP_SUPPORT is obsolete in USB OTG2.0 Spec. so
host should not send such command to USB OTG2.0 device.

Change-Id: I493a47fb26aff9920ab1a67e80bad8e4123c45dc
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43113
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@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 agoi386_ctp_defconfig: enable usb penwell_otg test mode
Wu, Hao [Wed, 11 Apr 2012 13:00:24 +0000 (21:00 +0800)]
i386_ctp_defconfig: enable usb penwell_otg test mode

BZ: 31292

Enable usb penwell_otg_test mode.

Change-Id: I4547d915ab42b7f8f07fcdd218ac5d82d31de74f
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43112
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@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 agoi386_mfld_defconfig: enable usb penwell_otg Test mode support
Wu, Hao [Wed, 11 Apr 2012 12:58:09 +0000 (20:58 +0800)]
i386_mfld_defconfig: enable usb penwell_otg Test mode support

BZ: 31292

Enable USB penwell_otg Test mode support.

Change-Id: I69ad8d2c3eff5cfaaede789e7e3dba9b719321e0
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43111
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@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 agoi386_ctp_defconfig: enable langwell_udc OTG support
Wu, Hao [Wed, 11 Apr 2012 10:06:34 +0000 (18:06 +0800)]
i386_ctp_defconfig: enable langwell_udc OTG support

BZ: 29011

For clv, we need OTG support in langwell_udc.

Change-Id: I203609937b088381b913d15f0f3f3444779f9a42
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43085
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 agousb/langwell_udc: only set gadget_is_otg when otg support is needed.
Wu, Hao [Wed, 11 Apr 2012 10:02:47 +0000 (18:02 +0800)]
usb/langwell_udc: only set gadget_is_otg when otg support is needed.

BZ: 29011

Set gadget_is_otg value if udc really needs support OTG. This value
will be used by gadget to decide if OTG descriptor is needed or not.

Change-Id: I31d18473f9e8ddbfc6c97e4a697a0a0a205963c2
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43084
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 agousb/gadget: add option for langwell_udc otg support
Wu, Hao [Wed, 11 Apr 2012 10:00:22 +0000 (18:00 +0800)]
usb/gadget: add option for langwell_udc otg support

BZ: 29011

This patch adds one kernel option to decide if langwell_udc
needs otg support or not. This will finally decide if OTG
descriptor is needed or not.

Change-Id: Icef6cfdbed22db290643a936225a812bfe9e0d26
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43083
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 ago[Grpahics/Display]: Free the allocated memory in error paths of psb_gtt.c:psb_gtt_mm_...
yifei.xue [Thu, 12 Apr 2012 05:14:33 +0000 (13:14 +0800)]
[Grpahics/Display]: Free the allocated memory in error paths of psb_gtt.c:psb_gtt_mm_alloc_insert_ht()

BZ: 31379

The functions drm_ht_create(),psb_gtt_mm_insert_ht_locked() may fails then the memory
allocated for the hash table entry and/or the drm hash table will leak.
The patch free the allocated memory when invoke fails.

Change-Id: Icd8a8a7ed9073e333830b9d829042ba1993d6b8d
Signed-off-by: yifei.xue <yifeix.xue@intel.com>
Reviewed-on: http://android.intel.com:8080/43223
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Weinehall, David <david.weinehall@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[Display]: complete the mode config of PIPEA when start os
shi yang [Thu, 12 Apr 2012 05:12:12 +0000 (13:12 +0800)]
[Display]: complete the mode config of PIPEA when start os

BZ: 30129

in function of mdfld_crtc_dsi_mode_set,display will set pipe config base
on different Panel. But this don't set when panel first power on.
So we add this config when commit MIPI show.

/* Setup pipe configuration for different panels
 * The formula recommended from hw team is as below:
 * (htotal * 5ns * hdelay) >= 8000ns
 * hdelay is the count of delayed HBLANK scan lines
 * And the max hdelay is 4
 * by programming of PIPE(A/C) CONF bit 28:27:
 * 00 = 1 scan line, 01 = 2 scan line,
 * 02 = 3 scan line, 03 = 4 scan line
 */

Change-Id: If20521d48d83d0925e42c22d50eff20e007b0bd0
Signed-off-by: shi yang <yang.a.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/43220
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRefactored board files
German Monroy [Fri, 13 Apr 2012 20:30:32 +0000 (13:30 -0700)]
Refactored board files

BZ:28671

Board files for different platforms have lot of common code, hence
to avoid code duplication we have re-factored the current board
file structure into following.

For each device we have created a separate platform_*device_name*.c,h
files.

platform_*device_name*.c - Contains device init and helper
   functions.
platform_*device_name*.h - Contains extern declaration of init
   function.

Compilation of these platform files is controlled using corresponding
driver CONFIG options.

To use these devices, In board files we will have to just include the
header file and add reference to the device init function in the
device_id structure.

Change-Id: Id8b80d41fd8253b624bf46ef72e41f4a4bb7238d
Signed-off-by: sathyanarayanan kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/43334
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "kernel: when the phone power on we met lots of WTF crash."
Desurmont, DavidX [Fri, 13 Apr 2012 13:08:50 +0000 (06:08 -0700)]
Revert "kernel: when the phone power on we met lots of WTF crash."

BZ: 28359

This reverts commit 3de48a10e27d8ff44c38d3de97a34830c4a80d71
Orig-Change-Id: I7f04202cdb66a0c1855f941efc42323769706b0a
Change-Id: I36dadf743eee50004556e5338e09368afe55f2ed
Reviewed-on: http://android.intel.com:8080/43446
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: mt9e013: read otp banks in reverse order
David Cohen [Thu, 12 Apr 2012 15:14:54 +0000 (18:14 +0300)]
atomisp: mt9e013: read otp banks in reverse order

BZ: 31599

OTP banks should be read in reverse order to be able to get up-to-date
data.

Change-Id: I38865dab4e4004aade2d9829614dd4e893cc733d
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/43306
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: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMt9e013: Set sensor pixel rate clk to 96MHz
shuguang gong [Sat, 7 Apr 2012 03:26:22 +0000 (23:26 -0400)]
Mt9e013: Set sensor pixel rate clk to 96MHz

BZ: 27683

ISP work frequency is only 200MHz on Lexington board.
High sensor pixel rate doesn't give enough OTF processing time
for ISP. This patch will decrease sensor pixel rate to 96MHz
and make ISP can work OTF.

Change-Id: I5e7e291781af7786ced33f3a82baf374cc267705
Signed-off-by: Shuguang Gong <shuguang.gong@intel.com>
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/42713
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 "[PORT FROM R2]audio: sn95031: modify PCM2"
Ramesh Babu K V [Wed, 11 Apr 2012 13:02:46 +0000 (18:32 +0530)]
Revert "[PORT FROM R2]audio: sn95031: modify PCM2"

BZ: 30843

This reverts commit ce35adf759aab6fcc13754eb8db020a41d531c6b.

The patch reverted here causing some crackling noise issues.
The reverted patch was wrongly enabling PCM2 during voice
call.  The simultaneous enabling of both PCM2 and PCM1 during
voice call might cause crackling noise.

Fix the error by reverting patch #38989. This patch was added
to address the PCM2 enabling sequence as per the spec.  Reverting
the patch would not cause any functionality difference.

Change-Id: Iab9f9320428ae5a39002cb5dc4f99eb49002d1a9
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/43103
Reviewed-by: Vinnakota, Lakshmi N <lakshmi.n.vinnakota@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: use LLI dma transfer for audio firmware download.
namarta [Fri, 13 Apr 2012 05:05:45 +0000 (10:35 +0530)]
Audio: use LLI dma transfer for audio firmware download.

BZ: 25658

Currently firmware is downloaded through single block dma mode.
This causes sst driver to submit block by block.

Add support for LLI (Linked list item also known as multi block) DMA transfer
in which driver can submit multiple DMA descriptor and then initiated
DMA just in one trigger. This will use DMA engine's capability effectively
thus reducing the time consumed in downloading the audio firmware.

This patch implements memory to memory LLI transfer mechanism in DMA driver
and modifies the SST driver to use the LLI capability.

Change-Id: I1b0ce209eae7eb3ae7392dfb66a34d8388610e71
Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/40906
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Vinnakota, Lakshmi N <lakshmi.n.vinnakota@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: [HACK DV20] load correct cfg file
Hong Liu [Wed, 11 Apr 2012 07:50:18 +0000 (15:50 +0800)]
atmel_mxt_ts: [HACK DV20] load correct cfg file

BZ: 31105

There are 3 touch panels used on medfield tablet, we need to load correct
cfg file to make touch work.
dv1.0       mxt1386         0x4c maxtouch.cfg
dv2.0       mxt1386_wintek  0x4c maxtouch_wintek.cfg
dv2.0       mxt1386_hanns   0x4d maxtouch_hanns.cfg

currently we use dev name to differentiate dv10 or dv20 panel, while uses
i2c slave address to differentiate two dv20 panels.

This hack can be removed once firmware can runtime detect panel type.

Change-Id: Ie1ba8793f2e311322b1b0f98772de5b1b6d4de7a
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/43071
Reviewed-by: Wood, Brian J <brian.j.wood@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 agoatmel_mxt_ts: [HACK DV20] detect touchscreen i2c addr runtime
Hong Liu [Wed, 11 Apr 2012 07:05:37 +0000 (15:05 +0800)]
atmel_mxt_ts: [HACK DV20] detect touchscreen i2c addr runtime

BZ: 31105

DV1.5/2.0 hardware comes in two variants with different touch panels.
The touchscreen controller has different i2c address depending on the panel,
WintekA0=0x4c and Hannstouch=0x4d.
Searching for device at mxt1386 address, if not found use the other address.

This hack should be removed once SFI table has one correct touchscreen entry.

Patch ported from OTC branch.

Change-Id: Idfcdcf6f43dff1921a515f78dd548bcc3dd3f6dc
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/43070
Reviewed-by: Wood, Brian J <brian.j.wood@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 agoboard-blackbay: changed fuel gauge gpio pin name to max_fg_alert
Ramakrishna Pallala [Mon, 9 Apr 2012 01:22:39 +0000 (06:52 +0530)]
board-blackbay: changed fuel gauge gpio pin name to max_fg_alert

BZ: 31370

This patch modifies the gpio pin name to max_fg_alert. This will
avoid the dependency to know device id as the alert pin is present
on all platforms we can have single unique gpio pin name.

Change-Id: Ic7234e8e743e79c9286e685cb5b2ee49d382bc40
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/42788
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Hari, NeelamX <neelamx.hari@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 agoboard-redridge: changed fuel gauge gpio pin name to max_fg_alert
Ramakrishna Pallala [Wed, 11 Apr 2012 02:34:59 +0000 (08:04 +0530)]
board-redridge: changed fuel gauge gpio pin name to max_fg_alert

BZ: 31370

This patch modifies the gpio pin name to max_fg_alert. This will
avoid the dependency to know device id as the alert pin is present
on all platforms we can have single unique gpio pin name.

Change-Id: I7eb79a44d3ea2f5743da741dd7ca668f0a89093c
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/43091
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Hari, NeelamX <neelamx.hari@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 agoboard-redridge: add support to read fuel gauge data from umip
Ramakrishna Pallala [Tue, 10 Apr 2012 09:42:49 +0000 (15:12 +0530)]
board-redridge: add support to read fuel gauge data from umip

BZ: 30840

This patch removes the WA to initialize the fuel gauge data and
adds the support to read this data from UMIP.

Change-Id: I5784b9442b8232a1db3a2166f64b2d50f5e6bd64
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/42978
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Hari, NeelamX <neelamx.hari@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 agokernel-drm: remove buffer allocation for msvdx fw on Medfiled D0
Fei Jiang [Sun, 8 Apr 2012 19:21:20 +0000 (03:21 +0800)]
kernel-drm: remove buffer allocation for msvdx fw on Medfiled D0

BZ: 30913

For Penwell D0, msvdx fw is loaded by punit, so kernel drm driver don't need allocate buffer for fw.

Change-Id: I52060ae7579210b5dafb4f94d8f7219029a77676
Reviewed-on: http://android.intel.com:8080/42774
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
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 agoatomisp: mt9e013: Remove D1 resolutions from Aptina mt9e013 driver
Robert Jong-A-Lock [Fri, 23 Mar 2012 15:07:58 +0000 (16:07 +0100)]
atomisp: mt9e013: Remove D1 resolutions from Aptina mt9e013 driver

BZ: 28819

Remove D1 resolutions from Aptina mt9e013 driver

Change-Id: I862d7bc185f4da6710055da51cfdc74229605ea6
Reviewed-on: http://android.intel.com:8080/42918
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: Fix TERM_EN_COUNT and PCI revision to enable secondary camera for CLV+
Bin Gao [Sat, 7 Apr 2012 00:52:13 +0000 (17:52 -0700)]
atomisp: Fix TERM_EN_COUNT and PCI revision to enable secondary camera for CLV+

BZ: 30868

Previously the driver decides "Penwell B0" and "Non Penwell B0" simply by PCI
revision. Unfortunately CLV+ A0 has PCI revision 0x6 which is identical to
Penwell B0, thus the driver uses a wrong TERM_EN_COUNT bit definition.

This patch revised the PCI revision and TERM_EN_COUNT setting codes and make it
sure working for CLV+.

Change-Id: I6205d47fa8481eefde8584151f6da2ef55ca8299
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/42729
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[REVERT ME] hsi: increase TX timeout to 2.5 sec
Guillaume Lucas [Wed, 11 Apr 2012 12:57:36 +0000 (14:57 +0200)]
[REVERT ME] hsi: increase TX timeout to 2.5 sec

BZ: 31385

TX timeout decrease from 2.5 sec to 100ms make regressions.
This REVERT ME patch restore the previous value of 2.5 sec
waiting a clean fix for the issue track by BZ 30613.
Signed-off-by: Guillaume Lucas <guillaume.lucas@intel.com>
Change-Id: I85e6a1a6d34d8c1540ab48820b6a3e79aac4a5cb
Reviewed-on: http://android.intel.com:8080/43104
Reviewed-by: Lucas, Guillaume <guillaume.lucas@intel.com>
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
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 agoModem HSI Flashing protocol driver
Faouaz TENOUTIT [Mon, 2 Apr 2012 14:42:33 +0000 (16:42 +0200)]
Modem HSI Flashing protocol driver

BZ: 31184

Implementation of Modem HSI flashing protocol driver

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

Change-Id: Iec2d7c370931a60cb5db07fbafb45859ec9fd1f2
Signed-off-by: Faouaz TENOUTIT <faouazx.tenoutit@intel.com>
Reviewed-on: http://android.intel.com:8080/42147
Reviewed-by: Stoltz-douchet, OlivierX <olivierx.stoltz-douchet@intel.com>
Reviewed-by: Pillet, VincentX <vincentx.pillet@intel.com>
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
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 agointel_mid_powerbtn: update shared SRAM address for CLV and CLVP
Renganathan, Prabu [Wed, 11 Apr 2012 00:03:50 +0000 (17:03 -0700)]
intel_mid_powerbtn: update shared SRAM address for CLV and CLVP

BZ: 30822

In CLV shared SRAM address for pb status is changed to 0xFFFF7FCB
and CLVP it is 0xFFFFEFCB.

This change is made in the SCU vA0.08

Change-Id: Ie0f824b4befc6c368d3dda6d70bcbcfda6d391c3
Signed-off-by: Renganathan, Prabu <prabu.renganathan@intel.com>
Reviewed-on: http://android.intel.com:8080/42986
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Bourahmani, KarimX <karimx.bourahmani@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agochange SFI table entry for usb_otg_phy_reset to usb_otg_phy_rst
Ponnusamy, Siva Prasath [Thu, 29 Mar 2012 16:11:12 +0000 (09:11 -0700)]
change SFI table entry for usb_otg_phy_reset to usb_otg_phy_rst

BZ: 29728

Change SFI table entry name usb_otg_phy_reset to usb_otg_phy_rst to
allign with the SFI Specs of not exceeding too many characters.

Change-Id: I53333de51f9a41019637ceef5b6dcd6e18ec1c7e
Signed-off-by: Ponnusamy, Siva Prasath
<siva.prasath.ponnusamy@intel.com>
Reviewed-on: http://android.intel.com:8080/41686
Reviewed-by: Mai, Leonard <leonard.mai@intel.com>
Reviewed-by: Ponnusamy, Siva Prasath <siva.prasath.ponnusamy@intel.com>
Reviewed-by: Bourahmani, KarimX <karimx.bourahmani@intel.com>
Tested-by: Bourahmani, KarimX <karimx.bourahmani@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]kernel panic when doing camera stress test
Cheon-Woei Ng [Thu, 12 Apr 2012 00:16:56 +0000 (17:16 -0700)]
[PORT from R2]kernel panic when doing camera stress test

BZ: 31445

Port R2 patch originally tracked with BZ22906 to ICS.

Change-Id: I01b1978c521315f38f41375442d635fa6ed4e6e0
Signed-off-by: Cheon-Woei Ng <cheon-woei.ng@intel.com>
Reviewed-on: http://android.intel.com:8080/43193
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphic: Critical Klocwork issues for ICS scan 76
luliuhui [Fri, 6 Apr 2012 08:35:43 +0000 (16:35 +0800)]
Graphic: Critical Klocwork issues for ICS scan 76

BZ: 23906

Revise kw issue in round 76 scan in kernel

Change-Id: Icff4101bac42834628b7d9628f09ed58268025e4
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/42663
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 agohwc: update swapchain to save/restore plane position & size
Jackie Li [Sat, 31 Mar 2012 11:19:36 +0000 (19:19 +0800)]
hwc: update swapchain to save/restore plane position & size

BZ: 28857

Kernel patch for sprite + overlay blending support.

This patch sets primary plane pixel format to BRGA8888 to support
premultipled alpha blending between sprite & overlay planes.

Change-Id: I9d7252e5bf45c95015eff73dbde04df8212f7e61
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/41994
Reviewed-by: Hu, Austin <austin.hu@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 agointel_scu_mip: Add mip sysfs interface
Shijie Zhang [Tue, 10 Apr 2012 14:19:34 +0000 (22:19 +0800)]
intel_scu_mip: Add mip sysfs interface

BZ: 30963

This patch adds sysfs interface for intel_scu_mip driver, which can be
used for debugging and testing of mip read/write.

Change-Id: Iae052d7773f5a056feaecaabc3cfff4e47a301a6
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/42863
Reviewed-by: Du, Alek <alek.du@intel.com>
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 ago[Revert me]: workaround to enable KPD LED on Lexington
Shijie Zhang [Tue, 10 Apr 2012 09:50:57 +0000 (17:50 +0800)]
[Revert me]: workaround to enable KPD LED on Lexington

BZ: 29806

Using hard coding GPIO pin for KPD LED on Lexington before IAFW adding
the corresponding GPIO pin in SFI table.

Change-Id: I462ce163c94f5ff3abb86f39cec58a7a4b9bfb75
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/42832
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 agoEnable KPD LED on Lexington
Shijie Zhang [Mon, 9 Apr 2012 13:13:19 +0000 (21:13 +0800)]
Enable KPD LED on Lexington

BZ: 29806

This patch adds support for keypad LED function for Lexington
platform.

Change-Id: I3eab691ea4aa546921dbff650feb2b19ace93268
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/42762
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 agointel_basincove_gpadc: port MRFLD GPADC code to ICS
Shijie Zhang [Thu, 5 Apr 2012 20:54:45 +0000 (04:54 +0800)]
intel_basincove_gpadc: port MRFLD GPADC code to ICS

BZ: 30664

Porting MRFLD GAPDC driver to ICS mainline branch.

Change-Id: Ic1f6ef5e829bc502b4049e616254d53ba1288f2a
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/42611
Reviewed-by: Du, Alek <alek.du@intel.com>
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 agoRevert "Port a bunch of patches from R2"
Desurmont, DavidX [Thu, 12 Apr 2012 15:30:08 +0000 (08:30 -0700)]
Revert "Port a bunch of patches from R2"

BZ: 17008

This reverts commit 9421b882f8bd89aa9fb08ce823b1a55a06aaa032
Orig-Change-Id: I555f741c5e3effe3685fd86ad85db6ef842da3c4
Change-Id: I944209da2c5f3644e9d2b4d6257d379ddd30cd17
Reviewed-on: http://android.intel.com:8080/43308
Reviewed-by: Lemoine, Philippe <philippe.lemoine@intel.com>
Tested-by: Lemoine, Philippe <philippe.lemoine@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoModem reset implementation (via sysfs) + eDLP update
Faouaz TENOUTIT [Wed, 21 Mar 2012 15:53:58 +0000 (16:53 +0100)]
Modem reset implementation (via sysfs) + eDLP update

BZ: 26113

dlp_main.c
- Update the module version (1.1)
- Use the hsi_port_claimed to check if the HSI client is claimed
- Use the user provided debug parameter value (when used as module)
- Create a worqueue used for TTY data forwarding

dlp_ctrl.c
- Backport the modem cold reset implementation from MFLD
- Add log when a modem reset/power is requested
    - Correct the modem reset & power timing values
- Factorize the call of gpio_request/gpio_directions to one function
- Remove the gpio_export call, to stop exporting GPIO => Any applications
 should use the eDLP module params/ioctls to perform actions

dlp_net.c:
- Use the same value of TX timeout for TTY/NET channels
- Add the reset/hangup management
- No need to clainm the HSI port by the NET if (already done by the probe)
- Dont call the hsi_flusi in the net_stop function (avoid flushing everything)
- Send the CANCEL_CONN when closing the NET interface

dlp_tty.c:
    - Add a workqueue for TTY data forwrading (not the rx_complete anymore)
- Add the reset/hangup management
- Change TTYNAME defien to IPC_TTYNAME
- Send the CANCEL_CONN when closing the TTY port

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

Change-Id: I869f811da89b821d2b93a56bd8606c92037f435d
Signed-off-by: Faouaz TENOUTIT <faouazx.tenoutit@intel.com>
Reviewed-on: http://android.intel.com:8080/40000
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Stoltz-douchet, OlivierX <olivierx.stoltz-douchet@intel.com>
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 agohdmi-audio:mark the alsa ring buffer memory as uncached
Ramesh Babu K V [Wed, 4 Apr 2012 08:30:41 +0000 (14:00 +0530)]
hdmi-audio:mark the alsa ring buffer memory as uncached

BZ: 29792

When mmap method of driver is called, driver remaps
the buffers to user space using remap_pfn_range().
However this doesn't guaranteed to mark the pages
as non-cacheble.

As per Documentation/x86/pat.txt, if RAM region is
mmap'ed then in addition remap_pfn_range() we need to use
set_memory_uc() for marking pages as uncacheble.

Change-Id: I0152bb0cea1d0aef4b2eca9f82e59d932b1939a6
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/42472
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Vinnakota, Lakshmi N <lakshmi.n.vinnakota@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: sn95031: [WORKAROUND]Make jack detect delay time longer for Lexington platform
lizhuangzhi [Tue, 27 Mar 2012 00:49:13 +0000 (08:49 +0800)]
audio: sn95031: [WORKAROUND]Make jack detect delay time longer for Lexington platform

BZ: 27775

On LEX platform, the jack module type is changed. Jack_DET is connected to the left
HP channel, only one interrupt occur during people plug in headset, It's good
for plug interrupt stable, But the mic bias voltage maybe unstale after 250ms
wq delay, Use CONFIG_SND_MFLD_MACHINE_GI macro to control 700ms longer time delay as
workaround for LEX platform.

Change-Id: I274b915644adaeed8749a49cd5655e6b16c81ed0
Signed-off-by: Zhuangzhi Li <zhuangzhi.li@intel.com>
Reviewed-on: http://android.intel.com:8080/40775
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gross, Mark <mark.gross@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: Exposed LPE Mixer controls for the HAL to select the Mixer required
KP, Jeeja [Thu, 22 Mar 2012 16:17:57 +0000 (21:47 +0530)]
audio: Exposed LPE Mixer controls for the HAL to select the Mixer required
based on the sink device

BZ: 26104

Added support for device pipeline configuration by exposing LPE Mixer
elements as ALSA mixer controls.
To add support in SOc for add platform controls, following alsa patchs
 are applied
1. 0001-ASoC-core-Add-API-call-to-register-platform-kcontrol
2. 0002-ASoC-core-Make-platform-probe-more-like-codec-probe

Change-Id: I01b829294f82753496f06a5df05afec4c48384b7
Signed-off-by: KP, Jeeja <jeeja.kp@intel.com>
Reviewed-on: http://android.intel.com:8080/40136
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agokernel: when the phone power on we met lots of WTF crash.
Kun Jiang [Wed, 21 Mar 2012 06:06:16 +0000 (14:06 +0800)]
kernel: when the phone power on we met lots of WTF crash.

BZ: 28359

The ipv6-tables didn't open in the past so all the ip6tables operate fail.

Open the config in kernel to enable the ipv6-tables.

Signed-off-by: Kun Jiang <kunx.jiang@intel.com>
Change-Id: I7f04202cdb66a0c1855f941efc42323769706b0a
Reviewed-on: http://android.intel.com:8080/39911
Reviewed-by: He, Bo <bo.he@intel.com>
Reviewed-by: Tang, Rico <rico.tang@intel.com>
Reviewed-by: Jiang, KunX <kunx.jiang@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 ago [Graphics/3D]: Reset pLastSyncInfo to fix Post and Post2 switch hang issue
Marc Mao [Tue, 10 Apr 2012 08:34:02 +0000 (16:34 +0800)]
 [Graphics/3D]: Reset pLastSyncInfo to fix Post and Post2 switch hang issue

 BZ: 30855

  When HWC enabled, HWC bypass layers will displayed by Post2 interface. But normal
Framebuffer will still use Post interface. In kernel driver, Post2 will call
PVRSRVSwapToDCBuffer2KM, it will append last frame's sync info to current flip command.
But if app switch for Post, the previous buffer maybe is freed and the sync info is wrong.
The patch will clear the pLastSyncInfo and then PVRSRVSwapToDCBuffer2KM will not append
last frame's sync info to the first frame after switch.

Change-Id: If700cd17aa6d55d4e9bf2574e18e078c307ee764
Signed-off-by: Marc Mao <marc.mao@intel.com>
Reviewed-on: http://android.intel.com:8080/42890
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Wang, Gang A <gang.a.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoPort a bunch of patches from R2
Tong, Bo [Wed, 14 Mar 2012 04:54:28 +0000 (12:54 +0800)]
Port a bunch of patches from R2

BZ: 17008

This patch includes below bug fixing

0001-GFX-DISPLAY-Add-vblank-mask-when-enable-disable-PIPE.patch: BZ: 25812
0002-GFX-DISPLAY-Fix-MIPI-panel-power-faild-issue.patch:         BZ: 21666
0003-HDMI-Audio-play-music-via-HDMI-will-play-from-the-sp.patch: BZ: 18714

Change-Id: I555f741c5e3effe3685fd86ad85db6ef842da3c4
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/42018
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 agomax11871: Correct the coordinate of touch keypad area
lizhuangzhi [Mon, 9 Apr 2012 08:26:46 +0000 (16:26 +0800)]
max11871: Correct the coordinate of touch keypad area

BZ: 29565

Make touch keypad area bigger to improve user experience

Change-Id: I5c498fd4c5a2b1233490128e93da40a6dd44b19f
Signed-off-by: lizhuangzhi <zhuangzhi.li@intel.com>
Reviewed-on: http://android.intel.com:8080/42783
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Liu, Chuansheng <chuansheng.liu@intel.com>
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 ago[PORT FROM R2] atmel_mxt224: limit i2c read write block size to 30 bytes
Hong Liu [Thu, 5 Apr 2012 05:49:58 +0000 (13:49 +0800)]
[PORT FROM R2] atmel_mxt224: limit i2c read write block size to 30 bytes

BZ: 30319

The designware i2c controller only supports 32 bytes read/write due to
hardware limitation, we need to split big i2c block read/write into
several 32-byte trunk to avoid i2c "TX FIFO overrun" error.

Since mxt224 uses 16bit address, this leaves 30 bytes for data read/write.

Change-Id: I7e9998d90b0432709224926933e91328ce4a1672
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/42859
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 agosupport different hsu pin settings on multi platform
Bin Yang [Fri, 6 Apr 2012 10:50:23 +0000 (18:50 +0800)]
support different hsu pin settings on multi platform

BZ: 30744

Old HSU driver hard coding the pin setting. It cannot
work on CLV VV/PRx board correctly.

This patch supports different pin settings on multi platform.

Change-Id: Ie9b8a591df680a9f61687c70444cf5233b28c08c
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/42685
Reviewed-by: Zhang, Shijie <shijie.zhang@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 agoRevert Klocwork fixes on non-Intel codes
Cheon-Woei Ng [Thu, 5 Apr 2012 22:02:21 +0000 (15:02 -0700)]
Revert Klocwork fixes on non-Intel codes

BZ: 23909

Klocwork fixes were commited for non-Intel codes by mistake.  Revert the fix per Kernel Team request.

Change-Id: Idddf1bd7adf45f6a0d48d3fc7fa5114059a355ff
Signed-off-by: Cheon-Woei Ng <cheon-woei.ng@intel.com>
Reviewed-on: http://android.intel.com:8080/42609
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "intel_mid_osip: update intel osnib and oshob driver"
Desurmont, DavidX [Wed, 11 Apr 2012 08:11:23 +0000 (01:11 -0700)]
Revert "intel_mid_osip: update intel osnib and oshob driver"

BZ: 28905

This reverts commit f0e0db4ea6e7df1dfd6c6c78a5654d2999be19dc
orig-change-id: I1aaf95f44bd85b524dde52b0e2542a9d6f811c3e

Change-Id: If7c5f05165d7e857ddc5d948794660a1000b1cbc
Reviewed-on: http://android.intel.com:8080/43061
Reviewed-by: Desurmont, DavidX <davidx.desurmont@intel.com>
Tested-by: Desurmont, DavidX <davidx.desurmont@intel.com>
12 years agoALSA: aloop - Use vmalloc buffer
Takashi Iwai [Sat, 24 Sep 2011 10:16:29 +0000 (12:16 +0200)]
ALSA: aloop - Use vmalloc buffer

BZ: 30009

This patch is back ported ICS kernel from k3.2 rc1

snd-aloop driver is virtual and has no need for allocating contiguous
pages.  It'll be more system-friendly to use vmalloc buffers.

Change-Id: I8cc6901f38706daa5cb1dfbddb34cc6b648236da
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ramesh Babu K V <ramesh.babu@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/42441
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Balguri, Mamatha <mamatha.balguri@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 agoCTS failure: android.permission.cts.FileSystemPermissionTest#testAllFilesInSysAreNotW...
jli119X [Mon, 9 Apr 2012 05:17:45 +0000 (13:17 +0800)]
CTS failure: android.permission.cts.FileSystemPermissionTest#testAllFilesInSysAreNotWritable

BZ: 20679

Remove the writeable access for others group to fix this CTS issue

Change-Id: Ie4fbd0c4645250952b9e03d61c87619edc6e03f6
Signed-off-by: jli119X <jianpingx.li@intel.com>
Reviewed-on: http://android.intel.com:8080/42759
Reviewed-by: Zhang, Hongyu <hongyu.zhang@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Li, XiaojingX <xiaojingx.li@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-DISPLAY: [DV10] Fix MIPI panel mode setting fial issue
Geng Xiujun [Fri, 6 Apr 2012 04:50:47 +0000 (12:50 +0800)]
GFX-DISPLAY: [DV10] Fix MIPI panel mode setting fial issue

BZ: 30737

Connector's detect founction should return its status.

Change-Id: I7b1146a335e7d5071b9ec81dc1e6f1de01964a7c
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/42638
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Xu, Randy <randy.xu@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 agoGFX-Display: Improve interpolation for CABC
Anand Bodas [Thu, 5 Apr 2012 17:53:09 +0000 (23:23 +0530)]
GFX-Display: Improve interpolation for CABC

BZ: 29577

This patch makes CABC use 4-point interpolation and
removes color artefacts in images.

Change-Id: Ie5d478225e2b974ce8ec55f87fcbae74b6e89220
Signed-off-by: Anand Bodas <anand.v.bodas@intel.com>
Reviewed-on: http://android.intel.com:8080/42567
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>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-DISPLAY: Fix I2C error for DV10 when resume
Geng Xiujun [Sun, 1 Apr 2012 08:26:47 +0000 (16:26 +0800)]
GFX-DISPLAY: Fix I2C error for DV10 when resume

BZ: 30094

This patch has the following changes:
1. Call mode setting function in late resume.
2. Enable lvds bridge suspend.

Change-Id: I87fcc746a8478feb555b654f656edbec6ed8fe24
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/42040
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>