kernel/kernel-mfld-blackbay.git
12 years agomerrifield: initial platform code
Mark F. Brown [Fri, 24 Feb 2012 02:07:06 +0000 (18:07 -0800)]
merrifield: initial platform code

BZ: 25129

INTEL_MID_CPU_CHIP_TANGIER support added
mrfl soc platform specific code added
board-vp virtual platform specific code added
apb timers are deprecated in tangier

Change-Id: I5d5230e6ba78662e9d43bd11ba2d062ebc782255
Signed-off-by: Mark F. Brown <mark.f.brown@intel.com>
Reviewed-on: http://android.intel.com:8080/36583
Reviewed-by: Ng, Cheon-woei <cheon-woei.ng@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[PORT FROM R2]audio: add codec control for high perf mode
Vinod Koul [Mon, 6 Feb 2012 05:46:08 +0000 (11:16 +0530)]
[PORT FROM R2]audio: add codec control for high perf mode

BZ: 21177

This patch add a new kcontrol for configuring the high perfomance mode for
codec. This control should be set for high_prof mode to get bettr audio quality
and in low_power mode for getting better battery life.
Setting hp mode for simultanoesu routing (in codec) to both headset and speaker
doesnot work. It will work only in lp mode.

Change-Id: I7026c572a0a330c5a324a6ad3700bdf34ac88a3c
Old-Change-Id: I7a46ad9a57662216ee49decef1b0eccb74e86fa1
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/37816
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 agoDisk Encryption: Enable software file system encryption
Norvin Shuster [Wed, 29 Feb 2012 19:06:17 +0000 (11:06 -0800)]
Disk Encryption: Enable software file system encryption

BZ: 25592

Include device-mapper and SHA256 and CBC crypto modes to support
User File system encryption use case.

Change-Id: I4b2e74cdc45df1c2abc982f5af591ccd7dd06f2d
Signed-off-by: Norvin Shuster <Norvin.Shuster@intel.com>
Reviewed-on: http://android.intel.com:8080/37062
Reviewed-by: Shuster, Norvin <norvin.shuster@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: Allyn, Mark A <mark.a.allyn@intel.com>
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 agoFM: driver clean-up
Fabien Peix [Tue, 6 Mar 2012 15:11:23 +0000 (16:11 +0100)]
FM: driver clean-up

BZ: 26486

This patch adresses some formatting issues in vanilla TI FM driver.

- Remove magic numbers when possible
- Remove C99 style comments
- Rename poorly named defines

Change-Id: I22249c3b4f4e99521b486d7e6fdec644a85860fe
Signed-off-by: Fabien Peix <fabienx.peix@intel.com>
Reviewed-on: http://android.intel.com:8080/37728
Reviewed-by: Suet, Nicolas <nicolas.suet@intel.com>
Reviewed-by: De Cesco, Jonathan <jonathan.de.cesco@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 agoFM: linux drivers media wl128x TIFM radio
Fabien Peix [Thu, 16 Feb 2012 10:23:18 +0000 (11:23 +0100)]
FM: linux drivers media wl128x TIFM radio

BZ: 26051

FM radio driver from TI delivered on 2012/01/08.

Change-Id: I6a4ce26c4668fb2803319030c2d611507b022563
Signed-off-by: Fabien Peix <fabienx.peix@intel.com>
Reviewed-on: http://android.intel.com:8080/35585
Reviewed-by: Suet, Nicolas <nicolas.suet@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 agousb/penwell_otg: charging notification api changes for CLV
Wu, Hao [Thu, 16 Feb 2012 09:40:08 +0000 (17:40 +0800)]
usb/penwell_otg: charging notification api changes for CLV

BZ: 23221

As power_supply interface updated, so USB OTG driver can use unified
interfaces to notify battery charger events and charging current
limitation.

Change-Id: I752624094f16461a5bed909889c177f4c62078ea
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/34867
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Pandey, Raj <raj.pandey@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@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 agoEM/Charger: sysfs reflecting charger type as USB_DCP for wall charger
Pandey Raj [Mon, 5 Mar 2012 12:25:10 +0000 (17:55 +0530)]
EM/Charger: sysfs reflecting charger type as USB_DCP for wall charger

BZ: 25505

Added the code to reflect the charger type as USB_DCP when wall charger
is connected to differentiate between the different type of USB chargers.

Change-Id: Ic3f5bcf993500456b4b93143f795439a848f606a
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/37551
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Natarajan, SaravananX <saravananx.natarajan@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 agoGraphic: Critical Klocwork issues for ICS kernel
luliuhui [Thu, 8 Mar 2012 02:35:26 +0000 (10:35 +0800)]
Graphic: Critical Klocwork issues for ICS kernel

BZ: 23906

Revise NULL pointer dereferenced issues in kernel.
Revise buffer overflow issues in kernel.
For kw scan round #47.

Change-Id: I84323877ef00983e1cf5e43c580904945d8b9f2b
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/37895
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[PORT FROM R2]: porting two patches from R2.
Fei Yang [Fri, 17 Feb 2012 01:56:06 +0000 (17:56 -0800)]
[PORT FROM R2]: porting two patches from R2.

BZ: 23292

1. Decrease TS:cyttsp refresh inteval for lower power consumption.
   Author: Fengwei Yin <fengwei.yin@intel.com>
2. ipvs: use deferrable timers to avoid frequent wake-up.
   Author: Pierre Tardy <pierre.tardy@intel.com>

Change-Id: Ibced86bcc71bc7eb556b5f940b56b0a43c79df70
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/36623
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@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 agoCONFIG: CONFIG_HZ=100
Fei Yang [Tue, 28 Feb 2012 01:46:27 +0000 (17:46 -0800)]
CONFIG: CONFIG_HZ=100

BZ: 25011

Set CONFIG_HZ=100 and CONFIG_HZ_100=y

Change-Id: Ibc632e978a35c25979b4c237d70267661f60c6da
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/36808
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: Nallasellan, Singaravelan <singaravelan.nallasellan@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: Iyer, Sundar <sundar.iyer@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoCritical Klocwork issues for KERNEL domain
Cheon-Woei Ng [Sat, 3 Mar 2012 01:49:36 +0000 (17:49 -0800)]
Critical Klocwork issues for KERNEL domain

BZ: 23909

Fix critical Klocwork issues in codes assigned to the KERNEL domain.  Only Intel owned codes are fixed.

Change-Id: Icfab0c529294580d60f9a0e6fc87b4f2e1be9b17
Signed-off-by: Cheon-Woei Ng <cheon-woei.ng@intel.com>
Reviewed-on: http://android.intel.com:8080/37474
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: fix CTP PR1.0 brighness and suspend
Ke Ai [Fri, 24 Feb 2012 09:27:08 +0000 (17:27 +0800)]
GFX-Display: fix CTP PR1.0 brighness and suspend

BZ: 25004

1.After MIPI port enable and video mode timing working,
we are better use HS to send command.
in logic LP also should be ok in burst mode, however,
it is more difficlt to control. now chang to use HS.

2.for suspend case, also has the same problem
when video mode working, we need use HS to turn on/off panel,

3. we need enable GFX_RTPM if we want to suspend our display
controller, so we need open this flag for CTP

4. Don't reset the CMI MIPI panel when resuming.

Change-Id: Ia1252139e7cae16868ede534fe15b55d0a0dc769
Signed-off-by: Ke Ai <ke.ai@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/36523
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@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 agoCONFIG: Enable hyperthreading scheduler support
Fei Yang [Wed, 7 Mar 2012 17:31:30 +0000 (09:31 -0800)]
CONFIG: Enable hyperthreading scheduler support

BZ: 25012

Set CONFIG_SCHED_SMT=y

Change-Id: Ia71c70b73d26d98a7e048b6f06e501c747da322e
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/37870
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoHSI eDLP protcol delivery (20-24 February INTEG CAMP outcome)
Faouaz TENOUTIT [Mon, 27 Feb 2012 18:55:46 +0000 (19:55 +0100)]
HSI eDLP protcol delivery (20-24 February INTEG CAMP outcome)

BZ: 24995

- Fix the boot crash/freeze (lock/unlock inconsistancy)
- Improve the modem reset mngt (Wait for modem reset)
- Remove the debug capability to the HSI controller
- Put the HSI Power management under DLP switch

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

Change-Id: I24e4fc288ce81d28e9b95f48b076f3ea6ae77a89
Signed-off-by: Faouaz TENOUTIT <faouazx.tenoutit@intel.com>
Reviewed-on: http://android.intel.com:8080/36786
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Roulliere, Pierre <pierre.roulliere@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 agomfld-pmu: [REVERT ME] Ignoring UART0/1/2 on CVT platform to avoid BT Hang.
Youvedeep Singh [Thu, 8 Mar 2012 16:40:16 +0000 (22:10 +0530)]
mfld-pmu: [REVERT ME] Ignoring UART0/1/2 on CVT platform to avoid BT Hang.

BZ: 26604

This Patch is to Ignore  D0ix requests from UART0/UART1/UART2.
Currenlty Platform is getting Fabric error when Bluetooth is turned ON/OFF.
All UART0/1/2 are under lss41, So it ignores all devices under lss41.

Change-Id: I510c5054da97a1b1b1470733fbc8ad112b7cb259
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/37836
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Pathak, Asutosh <asutosh.pathak@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoChange display KSEL based on config option CTP_CRYSTAL_38M4.
Seema Pandit [Wed, 29 Feb 2012 19:26:15 +0000 (11:26 -0800)]
Change display KSEL based on config option CTP_CRYSTAL_38M4.

BZ: 25776

For cloverview+, 19.2 MHz crystal plan to be used. With cloverview A0
38.4 MHz crystal being used. Change display KSEL based on kernel config
option CTP_CRYSTAL_38M4. With 19.2 MHz. HDMI clock needs to be hardcoded
due to some regression, to be fixed later.

Change-Id: I537fae5ea52535e55998e8a86befa1e1a0599f8b
Signed-off-by: Seema Pandit <seema.pandit@intel.com>
Reviewed-on: http://android.intel.com:8080/37305
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Gao, Bin <bin.gao@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
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: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoapds990x: Romove pm_runtime related code
Leo Yan [Thu, 1 Mar 2012 02:43:43 +0000 (10:43 +0800)]
apds990x: Romove pm_runtime related code

BZ: 25809

Since we are using runtime early suspend/resume to do power management
now, pm_runtime functions are not necessary, remove them to simplify
the driver.

Change-Id: I9d88da9334238ceb951fdfd5a20f87d1007a4593
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/37167
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoboard-ctp.c: Add platform data of apds990x sensor
Leo Yan [Tue, 6 Mar 2012 02:48:06 +0000 (10:48 +0800)]
board-ctp.c: Add platform data of apds990x sensor

BZ: 26371

Since apds990x sensor driver is also for ctp platform, copy the
platform data from board-blackbay.c to board-ctp.c

Change-Id: Idc46833c7bc99974d5f9aa7bd443d0deafbffbc9
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/37634
Reviewed-by: Liu, Hong <hong.liu@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 agoAudio: Configure SSP3 for CTP in Audio driver
Vaibhav Agarwal [Tue, 6 Mar 2012 09:58:54 +0000 (15:28 +0530)]
Audio: Configure SSP3 for CTP in Audio driver

BZ: 25850

In Medfield, SSPx is configured by SCU FW. However, in CTP platform
it is not done.

The solution can be:-
CASE1:
If audio driver should not be involved in SSP3 ALT-FUNC config then
it has be to be done as follows:
- In IFWI UMIP header, configure the GPIO pins, so that IA FW sets the
corresponding FLIS registers.
- During Audio D0i3 entry/exit, SCU FW saves and restores these values.

CASE2:
- audio driver configures SSP3 ALT-FUNC in probe.
- During Audio D0i3 entry/exit, SCU FW saves and restores these values.

CASE3:
- audio driver configures SSP3 ALT_FUNC in probe and resume.

As a workaround solution for usecase integration, CASE3 is implemented.
If there is a power impact then we need to go for CASE1 or CASE2.

Change-Id: I13f92b9559f4efe27feb9bec926ddc88946e0e60
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@intel.com>
Reviewed-on: http://android.intel.com:8080/37685
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Kp, Jeeja <jeeja.kp@intel.com>
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>
12 years agomax11871: cleanup command sending code
Hong Liu [Tue, 6 Mar 2012 01:55:18 +0000 (09:55 +0800)]
max11871: cleanup command sending code

BZ: 26386

Define a new structure to organize the command sending code, this is
helpful to code comprehension and maintainability.

Change-Id: Ib6273917c3fed284cc13472a4619d27225ce1b1f
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/37635
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 agomax11871: replace private work queue with threaded irq
Hong Liu [Fri, 2 Mar 2012 08:55:14 +0000 (16:55 +0800)]
max11871: replace private work queue with threaded irq

BZ: 26369

Using threaded irq to handle touch report instead of work queue.

Change-Id: Id827f09182e7a41ea3e9893b54cae9e3c5baf1b9
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/37625
Reviewed-by: Li, Jian D <jian.d.li@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 agoGFX-Display: Avoid block in drm_wait_vblank().
Jason Hu [Thu, 1 Mar 2012 06:39:38 +0000 (14:39 +0800)]
GFX-Display: Avoid block in drm_wait_vblank().

BZ: 25652

When PipeB is power gated, we won't enable pipeb vblank interrupt
and wait vblank.

Change-Id: I02fbb83debc74e75fa7cac444acac3cb3d643809
Signed-off-by: Jason Hu <jason.hu@intel.com>
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Reviewed-on: http://android.intel.com:8080/37190
Reviewed-by: Zhu, Tianyang <tianyang.zhu@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 ago[PORT FROM R2]audio: sst: Fix sst_wait_timeout and replace sst_wait_interruptible_timeout
Jouni Hogander [Wed, 22 Feb 2012 16:13:17 +0000 (18:13 +0200)]
[PORT FROM R2]audio: sst: Fix sst_wait_timeout and replace sst_wait_interruptible_timeout

BZ: 24061 24813

sst_wait_timeout is improperly using wait_event_interruptible_timeout. Fix it to
use wait_event_timeout. Also, replace all usages of
sst_wait_interruptible_timeout with sst_wait_timeout since driver needs to wait
for reply from firmware in any case.

Change-Id: Ic67678ea020874f63c447d75695a9d5cd44060dc
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36791
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Noziska, PatrickX J <patrickx.j.noziska@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@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[PORT FROM R2]:HDMI-Audio: Avoiding infinite loop corner case during BUFFER_DONE...
Shreyas Neerebailoor [Thu, 1 Mar 2012 09:52:54 +0000 (15:22 +0530)]
[PORT FROM R2]:HDMI-Audio: Avoiding infinite loop corner case during BUFFER_DONE event

BZ: 24383

During the reprogramming of the registers during BUFFER_DONE event
the loop iteration variable used is modified inside the loop which
in some case lead to an infinite loop. This condition is avoided
by using a temporary variable to hold the calculated value.

Change-Id: Icce13cf019c04a70673fa774c274937dec7c48ff
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/37244
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_idle: Show correct S & C states in pytimechart
John Mathew [Mon, 20 Feb 2012 14:29:07 +0000 (16:29 +0200)]
intel_idle: Show correct S & C states in pytimechart

BZ: 5160

Move the trace_cpu_idle from cpuidle.c to intel_idle.c
where the demotion may happen. Remove trace_power_start
and trace_power_end apis and they are deprecated.

Change-Id: Ia755bbe9559b92b60b5d0deef8193bfa33d7fb3b
Signed-off-by: John Mathew <john.mathew@intel.com>
Reviewed-on: http://android.intel.com:8080/35296
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2]Battery: Added a WA to retry reading fault status register
santosh [Tue, 28 Feb 2012 12:23:16 +0000 (17:53 +0530)]
[PORT FROM R2]Battery: Added a WA to retry reading fault status register

BZ: 22687

Due to MSIC HW bug, the charger fault register bits are not getting
updated immediately when the charging is enabled.

This patch adds a WA to retry the reading of charger fault register
before it report charger fault.

Change-Id: I56a5a0b40339b0881a185988f8e0ae1826403e46
Orig-Change-Id: I2235ac3a27072375e04e770ef4efe62ff9fa3260
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: santosh <santoshx.gugwad@intel.com>
Reviewed-on: http://android.intel.com:8080/36852
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopwm: enable pwm driver on CTP
Li, Ning [Thu, 1 Mar 2012 03:32:09 +0000 (11:32 +0800)]
pwm: enable pwm driver on CTP

BZ: 25800

enable CONFIG_MID_PWM on CTP.

Change-Id: I75a90965e64969a8b6c20de3839d3d259e269837
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/37166
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 agopwm: enable pwm driver on MFLD
Li, Ning [Thu, 1 Mar 2012 03:27:31 +0000 (11:27 +0800)]
pwm: enable pwm driver on MFLD

BZ: 25800

enable CONFIG_MID_PWM on MFLD.

Change-Id: I02dde215b131ffeafc982c86d7c88912c0020b90
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/37165
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 agopwm: add PWM driver on CLV platform
Li, Ning [Wed, 29 Feb 2012 06:56:40 +0000 (14:56 +0800)]
pwm: add PWM driver on CLV platform

BZ: 25800

On Clovertrail platform, Pulse Width Modulator driver needs to be
supported to control the LED brightness and etc. This patch adds
this driver and changes the interface in LED driver.

Change-Id: I6f7595188e4b3f632e2d1551c9f85715aa1d4b04
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/37161
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 agomax11871: fix calibration for x and y coordinates
Prabu Renganathan [Fri, 2 Mar 2012 07:40:41 +0000 (15:40 +0800)]
max11871: fix calibration for x and y coordinates

BZ: 25967

x/y co-ordinates are marginally off

Change-Id: If4a9818088fd4186129e1060c0690408974299b3
Signed-off-by: Prabu Renganathan <prabu.renganathan@intel.com>
Reviewed-on: http://android.intel.com:8080/37307
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD_DV10: Update to kernel for new IFWI
Brian Wood [Tue, 28 Feb 2012 00:05:12 +0000 (16:05 -0800)]
MFLD_DV10: Update to kernel for new IFWI

BZ: 24127

This commit removes the SFI device initialization code
needed for the touchscreen. This is now handled inside
the MFLD_DV10 IFWI as is done in the PRx platform devices.

This commit also contains a temporary workaround for
the front camera GPIO (176) not being setup by the IFWI
and put into the SFI table. Once IFWI handles this like
in the PRx phone IFWI this can be removed. For now I'm
adding this along with the above BZ, but it might get its
own and I'll link dependencies of BZ's.

Change-Id: I851ad9940b56abb0e4090b820d7b484b213c5a29
Signed-off-by: Brian Wood <brian.j.wood@intel.com>
Reviewed-on: http://android.intel.com:8080/36802
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[REVERT ME] Add traces in ap core dump creation
Christophe Guerard [Fri, 2 Mar 2012 14:31:08 +0000 (15:31 +0100)]
[REVERT ME] Add traces in ap core dump creation

BZ: 25960

Change-Id: I6aa3c76218c169366222e1baf167db29dc4e0dc6
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/37440
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoModem reset and crash dump signals should be active during suspend
John Mathew [Thu, 23 Feb 2012 16:42:37 +0000 (18:42 +0200)]
Modem reset and crash dump signals should be active during suspend

BZ: 25010

In the file drivers/hsi/clients/hsl_ffl_tty.c the func enable_irq_wake
should be called for modem reset and crash dump interrupts as they are
gpios and need to be enabled during suspend.

Change-Id: I8fd666dc444b9d07bb2b8fed11b1fd9b169508f5
Signed-off-by: John Mathew <john.mathew@intel.com>
Reviewed-on: http://android.intel.com:8080/36436
Reviewed-by: Monroy, German <german.monroy@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 agomfld-pmu: [REVERT ME] Ignoring D0ix from SPI1 and USB on CVT.
Youvedeep Singh [Thu, 1 Mar 2012 19:10:19 +0000 (00:40 +0530)]
mfld-pmu: [REVERT ME] Ignoring D0ix from SPI1 and USB on CVT.

BZ: 24247

This patch is a part of PM Enabling on CVT.
This patch is a work around and will be removed later.
Prevents D0ix requests of SPI1 and USB to avoid platform hang at boot time.
USB - In case we do D0i1 we are getting hanged.
SPI - Hangs on FFRD device but does not hang on VV Board.
We are tracking these work arounds through BZ  24239 25894.

Change-Id: Icb99cb5439f85a209ab61ad9438905541106fd3c
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/37021
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomfld-pmu: [REVERT ME] Acquiring Wake_lock to prevent S3 on CVT
Youvedeep Singh [Thu, 1 Mar 2012 18:32:07 +0000 (00:02 +0530)]
mfld-pmu: [REVERT ME] Acquiring Wake_lock to prevent S3 on CVT

BZ: 24247

This patch is a part of PM Enabling on CVT. As S3 is not enabled
on CVT platform, This Patch Acquires a wake_lock on CVT Platform
and will prevent platform to enter S3.
This Work around we are tracking through  BZ 25898.

Change-Id: I47b713a85ef9e9f1bc3ba72b9f15559f343a6b69
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/37016
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomfld-pmu: [REVERT ME] Enbaling PM ON Cloverview
Youvedeep Singh [Thu, 1 Mar 2012 17:22:37 +0000 (22:52 +0530)]
mfld-pmu: [REVERT ME] Enbaling PM ON Cloverview

BZ: 24247

This patch is a part of PM Enabling on CVT. This patch is a work around.
Currenlty Some of drivers are not implimented/integrated in CVT which
is causing the platform to hang at boot time.
We are Tracking this Work around thrpugh 25901.

Change-Id: I493fb3580f1e0d64321d825f82794b6b3bb0c927
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/35773
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomfld-pmu: add pmu driver probe for Cloverview
Youvedeep Singh [Thu, 1 Mar 2012 17:01:24 +0000 (22:31 +0530)]
mfld-pmu: add pmu driver probe for Cloverview

BZ: 22963

add pmu driver support for  CTP

Signed-off-by: Asutosh Pathak <asutosh.pathak@intel.com>
Signed-off-by: Prabu Renganathan <prabu.renganathan@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Change-Id: Id9055f7d193ef0e45e84d0ef6568cf83bddfcec6
Reviewed-on: http://android.intel.com:8080/34611
Reviewed-by: Singh, Youvedeep <youvedeep.singh@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Pathak, Asutosh <asutosh.pathak@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoDrivers: Staging: Sep: Fix klocworks in sep_trace_events.h
Mark Allyn [Thu, 23 Feb 2012 00:06:18 +0000 (16:06 -0800)]
Drivers: Staging: Sep: Fix klocworks in sep_trace_events.h

BZ: 23917

The trace header is no longer needed; it has been removed

Change-Id: Ib8bc387c4d08453416a72d95b9a4101e347ab97b
Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Reviewed-on: http://android.intel.com:8080/36296
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_ipc: Support 19.2M Hz crystal for CLV+ boards
Bin Gao [Wed, 29 Feb 2012 18:45:25 +0000 (10:45 -0800)]
intel_scu_ipc: Support 19.2M Hz crystal for CLV+ boards

BZ: 25776

CLV A0 boards have 38.4M Hz crystal.
Moving forward all CLV+ based boards will use 19.2M Hz crystal, the
same frequency with MDFLD.
To enable old CLV A0 boards, just enable CONFIG_CTP_CRYSTAL_38M4.
For new CLV+ boards, simply disable CONFIG_CTP_CRYSTAL_38M4.
Display, audio and camera are impacted from the crystal frequency
change because they use oscillator output clocks from the Soc.

Change-Id: I755a81c700f09a505b0a554b49be3ac07c7eb4f2
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/37049
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Mai, Leonard <leonard.mai@intel.com>
Reviewed-by: Pandit, Seema <seema.pandit@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomax11871: switch to multi-touch protocol type B
Hong Liu [Thu, 1 Mar 2012 05:19:12 +0000 (13:19 +0800)]
max11871: switch to multi-touch protocol type B

BZ: 25701

Changing to type B simplifies touch reporting code, and also saves
kernel-userspace traffic.

Change-Id: I34f2c564e9eaf2431c8f92e8a200b4b7bfc26a0e
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/37178
Reviewed-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Monroy, German <german.monroy@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 agomax11871: remove key handling code
Hong Liu [Wed, 29 Feb 2012 09:13:24 +0000 (17:13 +0800)]
max11871: remove key handling code

BZ: 25701

Relying on virtual key handling in Android framework, driver doesn't
need to handle key event now.

Change-Id: If7fa9a4392bdc2d2517ce0ea7f2cc55294aaa8c7
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/36972
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Monroy, German <german.monroy@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 agomax11871: add virtual key definition file
Hong Liu [Mon, 27 Feb 2012 08:25:46 +0000 (16:25 +0800)]
max11871: add virtual key definition file

BZ: 25701

max11871 touch on GI uses virtual keys solution, add board property
file to define touch area for 4 function keys.

And disable touch event to key event translation inside driver.

Change-Id: I75f892674bea8e535c1840140796fccb98790f64
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/36971
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Monroy, German <german.monroy@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 agointel-mid: add an API to create board property file
Hong Liu [Mon, 27 Feb 2012 08:20:41 +0000 (16:20 +0800)]
intel-mid: add an API to create board property file

BZ: 25701

Add an API to let device driver create needed board property file.

Board property files in Android should be added to /sys/board_properties/,
f.e virtual keys are defined as virtualkeys.<input_name>, with this file
android framework can translate touch event located in areas defined in this
file to corresponding key events.

Change-Id: I4db8c3baf0208b48e851ad0cd60f89a7602e984c
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/36970
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Monroy, German <german.monroy@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 agoEnable "quota, tag, owner" match and stats support in netfilter requested
Christophe Guerard [Fri, 2 Mar 2012 11:41:18 +0000 (12:41 +0100)]
Enable "quota, tag, owner" match and stats support in netfilter requested

BZ: 26075

Change-Id: I8b68da2f07a8656c288e5c59d46075bed0063351
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/37416
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: prefixing functions by double underscore
Andy Shevchenko [Thu, 23 Feb 2012 15:28:23 +0000 (17:28 +0200)]
atomisp: prefixing functions by double underscore

BZ: 25527

Rename following functions:
atomisp_acc_get_fw() -> __acc_get_fw()
atomisp_acc_get_index() -> __acc_get_index()
atomisp_acc_fw_free_args() -> __acc_fw_free_args()
atomisp_acc_fw_free() -> __acc_fw_free()
to reflect that they require to have isp_lock mutex held. It also removes
"atomisp_" part from the names, because the functions are local to the module.

Change-Id: I6abf75911ddc6a7d6e977916122207bf6e17e912
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36868
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-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 ago[PORT FROM R2] nfc: split long i2c xfers into smaller chunks supported by i2c controller
Sebastian Niciarz [Fri, 24 Feb 2012 10:26:02 +0000 (11:26 +0100)]
[PORT FROM R2] nfc: split long i2c xfers into smaller chunks supported by i2c controller

BZ: 23876

Due to limitation of I2C silicon on Penwell I2C xfers longer than 31 bytes
are not guaranteed to be atomic. If TX fifo underrun occurs during such
a transfer I2C controller will automatically generate a STOP condition.

This patch splits all long I2C transfer requested by NFC stack into chunks
of up to 31 bytes and transmits them as separate I2C transfers.

Change-Id: I9801081ee275d57ce00e86d1dc310e391e73bd27
Orig-Change-Id: I2533a7e61110c34107e963d5fb2444b64dc70fb4
Signed-off-by: Sebastian Niciarz <sebastian.niciarz@intel.com>
Signed-off-by: Dejan REBRACA <dejanx.rebraca@intel.com>
Reviewed-on: http://android.intel.com:8080/36616
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Wahid, KenX <kenx.wahid@intel.com>
Reviewed-by: Yang, Bin <bin.yang@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 R2] Flag in a mfld_defconfig for limitation of Penwell I2C controller
Dejan REBRACA [Wed, 29 Feb 2012 09:12:23 +0000 (10:12 +0100)]
[PORT FROM R2] Flag in a mfld_defconfig for limitation of Penwell I2C controller

BZ: 23876

Due to limitation of I2C silicon on Penwell I2C xfers longer than 31 bytes
are not guaranteed to be atomic. If TX fifo underrun occurs during such
a transfer I2C controller will automatically generate a STOP condition.

This patch adds a kernel config flag that can be used by all affected
users of this I2C controller.

Change-Id: Ifc427638c5bc339091aaf4351464d977c9a68939
Signed-off-by: Dejan REBRACA <dejanx.rebraca@intel.com>
Reviewed-on: http://android.intel.com:8080/36965
Reviewed-by: Niciarz, Sebastian <sebastian.niciarz@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: Wahid, KenX <kenx.wahid@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] I2C: Kernel config flag for limitation of Penwell I2C controller
Sebastian Niciarz [Tue, 28 Feb 2012 14:45:02 +0000 (15:45 +0100)]
[PORT FROM R2] I2C: Kernel config flag for limitation of Penwell I2C controller

BZ: 23876

Due to limitation of I2C silicon on Penwell I2C xfers longer than 31 bytes
are not guaranteed to be atomic. If TX fifo underrun occurs during such
a transfer I2C controller will automatically generate a STOP condition.

This patch adds a kernel config flag that can be used by all affected
users of this I2C controller.

Change-Id: I4f98210022818bd4247d681e32fe7291204eb958
Orig-Change-Id: Ie1fad669fcdb4f8abcc56ab3e63ad301b3c5fdd4
Signed-off-by: Sebastian Niciarz <sebastian.niciarz@intel.com>
Signed-off-by: Dejan REBRACA <dejanx.rebraca@intel.com>
Reviewed-on: http://android.intel.com:8080/36892
Reviewed-by: Wahid, KenX <kenx.wahid@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel-mid: clean up board-blackbay.c
Bin Gao [Wed, 29 Feb 2012 09:33:04 +0000 (01:33 -0800)]
intel-mid: clean up board-blackbay.c

BZ: 24929

Clean up board-blackbay.c and remove clovertrail related codes.

Change-Id: I857d2451121f7384acf53d95764f3a1d5105dc84
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/36374
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Monroy, German <german.monroy@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-mid: Add Clovertrail board file
Bin Gao [Wed, 22 Feb 2012 22:53:01 +0000 (14:53 -0800)]
intel-mid: Add Clovertrail board file

BZ: 24828

As part of mrst.c restructuring, this patch is to add Clovertrail
related board files.
Since the Soc level difference between Penwell and Cloverview
is too small, we don't define new kernel configuration, instead,
use CONFIG_X86_MDFLD for Clovertrail, but isolate the platform
level deltas to a separate board file: board-ctp.c.

Change-Id: I022c0d7b7e778520c8bda4c09de20d53b02a3fe7
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/36294
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoearly_printk: fix hsu early printk base address
Bin Gao [Thu, 23 Feb 2012 09:32:51 +0000 (01:32 -0800)]
early_printk: fix hsu early printk base address

BZ: 24938

HSU port base address(0xffa28180) in early_printk_intel_mid.c is wrong. Fix it
and add clovertrail support.

Change-Id: Ibb3ed2faeb37fa3ffb6987274df51f6d2cb43878
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/36383
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio: To Enabale Jack detection on CTP.
KP, Jeeja [Thu, 23 Feb 2012 01:14:38 +0000 (06:44 +0530)]
audio: To Enabale Jack detection on CTP.

BZ: 21565

Enabled jack detection for CTP. Currenlty with this patch only Headset insertion/removal
will be detected. On PR0.1, the Mic_bias voltage is zero , so the differntation between
Headset and Headphone , button press cannot be detected.

Change-Id: Ia5b299b7e26cb8edb101b64043b7819d4a99fcfa
Signed-off-by: KP, Jeeja <jeeja.kp@intel.com>
Reviewed-on: http://android.intel.com:8080/36267
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: 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 agoRevert "CONFIG: Enable hyperthreading scheduler support"
Marie-Celine Dubut [Wed, 29 Feb 2012 14:16:22 +0000 (15:16 +0100)]
Revert "CONFIG: Enable hyperthreading scheduler support"

BZ: 25012

This reverts commit cfbeec49e1705aaeb01d0bfc8213b93cdb54ac42.
This reverts patch http://android.intel.com:8080/#change,36809

Change-Id: Ica08762a6fa056292edab6bace77ffc3af05e04b
Signed-off-by: Marie-Celine Dubut <marie.celinex.dubut@intel.com>
Reviewed-on: http://android.intel.com:8080/37025
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 agoTI shared transport: integration of wakelock/pm_runtime modifications
Fabien Peix [Fri, 24 Feb 2012 14:02:08 +0000 (15:02 +0100)]
TI shared transport: integration of wakelock/pm_runtime modifications

BZ: 21477

This patch introduces power management features specific to android
platform to TI shared transport.

The added code is similar to what was added on previous version of
shared transport.

Change-Id: I6b8d0b041e56c3786ebfd187c26db10cc512c0f9
Signed-off-by: Fabien Peix <fabienx.peix@intel.com>
Reviewed-on: http://android.intel.com:8080/36585
Reviewed-by: Suet, Nicolas <nicolas.suet@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 agoTI shared transport: constants naming update
Fabien Peix [Mon, 20 Feb 2012 18:47:48 +0000 (19:47 +0100)]
TI shared transport: constants naming update

BZ: 21477

This patch addresses some of the hard coded constants present in
TI code and gives them a proper name.

Change-Id: If12502dc91acd9d681173583178fe898fc2fc6f5
Signed-off-by: Fabien Peix <fabienx.peix@intel.com>
Reviewed-on: http://android.intel.com:8080/36091
Reviewed-by: Suet, Nicolas <nicolas.suet@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 agoTI shared transport: integration of 2012/01/18 delivery
Fabien Peix [Mon, 20 Feb 2012 16:07:21 +0000 (17:07 +0100)]
TI shared transport: integration of 2012/01/18 delivery

BZ: 21477

New shared transport delivery + GPS driver from TI delivered on
2012/01/18
This is the vanilla TI delivery excluding FM and UIM

FM driver is part of another delivery

This code is intended to be modified by intel subsequent patches
regarding code quality and PnP improvements.

Change-Id: I734a51d506eb4591f8eb03b643b336a086fdd940
Signed-off-by: Fabien Peix <fabienx.peix@intel.com>
Reviewed-on: http://android.intel.com:8080/33104
Reviewed-by: Suet, Nicolas <nicolas.suet@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 agoGFX-Display: Add support for HAD to be used as loadable module
Shreyas Neerebailoor [Mon, 13 Feb 2012 10:54:06 +0000 (16:24 +0530)]
GFX-Display: Add support for HAD to be used as loadable module

BZ: 23487

ospm_power_using_hw_begin/_end() APIs were not exported. Also, few
suspend/resume funcs only check for HAD as static module. Thus,
causing problems when HAD is used as a lodable module.

The solution is to add proper checks and export relevant APIs.

Change-Id: Ice8dd8a3da5b16ccef730b08ef85d0a7ce4c5bde
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/35122
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@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] atomisp: read default MACC table from parameter file
Antti Laakso [Wed, 22 Feb 2012 11:42:13 +0000 (13:42 +0200)]
[PORT FROM R2] atomisp: read default MACC table from parameter file

BZ: 25312

ORIG-BZ:24083

Default MACC table read from parameter file instead of using hardcoded values.

Change-Id: Icd383bb93e7d55e1dd5fe14f06d106fce25d7add
Orig-Change-Id: Ideeb64700cda7653bfebc82f683b41fff8279899
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/36227
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Finnila, Tapio <tapio.finnila@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/37013
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
12 years ago[PORT FROM R2] Mt9m114: reduce the maximum wait time for 3A finishing to 1050ms
ziyux.jiang [Tue, 21 Feb 2012 14:00:20 +0000 (22:00 +0800)]
[PORT FROM R2] Mt9m114: reduce the maximum wait time for 3A finishing to 1050ms

BZ: 25312

ORIG-BZ: 22866

to avoid ANR issue, and we also don't need to wait more than 1s
for 3A finishing, we reduce the maximum wait time for 3A finishing
to 1050ms.

Change-Id: I9c5782e5759f969eecfcedb2816c6d65ff17be1e
Orig-Change-Id: I981ae3878acc7d85a057e6d21355f4c84f9c4949
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/36011
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/37012
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] LM3554: Eliminate abnormal current at the end flash
Tao Jing [Tue, 31 Jan 2012 05:34:32 +0000 (13:34 +0800)]
[PORT FROM R2] LM3554: Eliminate abnormal current at the end flash

BZ: 25312

ORIG-BZ: 17824

A high battery current is observed during camera usage with flash.
It is found that the flash current is ramping up abnormally high
during strobe off to terminate flash while TX2 is active.

The abnormal flash current can be elminated that firstly set flash
current to a low level before strobe off.

Change-Id: Idd4800b2b55bda394c7c51322f8d1caf5d3b310b
Orig-Change-Id: I191be5d30bb451413fe2a3e7e240b29754622fc5
Signed-off-by: Tao Jing <jing.tao@intel.com>
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/33282
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Gendry, LaurentX <laurentx.gendry@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/37011
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: Touch focus for 6Mpix
Yoshio Wada [Mon, 6 Feb 2012 06:55:58 +0000 (07:55 +0100)]
[PORT FROM R2] atomisp: Touch focus for 6Mpix

BZ: 25312

ORIG-BZ: 13328

We need adjust the coordinate between display and isp.
Solution :
- atomisp
- libmfldadvci
- libcamera
- bionic

Change-Id: Ia3219c468ebaec7c8f19e57eb804a329598208a0
Orig-Change-Id: Id8a41f4ec07c4fc2ef368a0e24546a3df9e6be97
Signed-off-by: Yoshio Wada <yoshio.wada@intel.com>
Reviewed-on: http://android.intel.com:8080/34437
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/37009
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years agoatomisp: create device nodes for subdevices
Andy Shevchenko [Fri, 12 Aug 2011 12:16:55 +0000 (15:16 +0300)]
atomisp: create device nodes for subdevices

BZ: 25318

The subdevice nodes are needed to access directly to the subdevices from user
space. Some subdevices are really requires this to simplify access to them. On
the other hand the access could be provided via /dev/videoX node and generic
atomisp driver part.

Change-Id: I57972e84c2c0bc73ad78420754a86c98db927003
Acked-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36739
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@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>
12 years ago[PORT FROM R2] atomisp: Read pci config space instead of from message bus
Wen Wang [Fri, 26 Aug 2011 10:46:24 +0000 (18:46 +0800)]
[PORT FROM R2] atomisp: Read pci config space instead of from message bus

BZ: 9214

To align mfld/mrfld atomisp driver, read HW status from pci config space
instead of message bus.

Change-Id: I9745eb1b0539ad7e1e171ffd8ba64ee22d53079b
Signed-off-by: Wen Wang <wen.w.wang@intel.com>
Orig-Change-Id: I922e2d9538573b53215c0de002b90759a3e4a61e
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/36670
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Yang, Fei <fei.yang@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: use absolute path to graphics driver
Andy Shevchenko [Fri, 24 Feb 2012 07:34:50 +0000 (09:34 +0200)]
atomisp: use absolute path to graphics driver

BZ: 24615

$(srctree) allows us to use tidy path in the Makefile for the external
includes. It also fixes following warning in case of builb by "make W=1
O=/var/tmp":
cc1: warning: drivers/media/video/atomisp/../../../staging/mrst/bc_video: No such file or directory [enabled by default]
cc1: warning: drivers/media/video/atomisp/include: No such file or directory [enabled by default]
cc1: warning: drivers/media/video/atomisp/include/atomisp: No such file or directory [enabled by default]
cc1: warning: drivers/media/video/atomisp/css/hrt: No such file or directory [enabled by default]

Change-Id: I5854ffcfcbdf18e489fefb64f0c4b19742d07564
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36534
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Monroy, German <german.monroy@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 agoapds990x: kernel warning caused by mutex
Leo Yan [Wed, 29 Feb 2012 02:13:34 +0000 (10:13 +0800)]
apds990x: kernel warning caused by mutex

BZ: 25605

Change the mutex_unlock position to obviate the kernel warning.

Change-Id: I36b1f3b3a4284440ce0dfbcfa1cd3f939df627bd
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/36936
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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]mid_pmu: [Work Around]check for power transition after d0ix as a last...
Illyas Mansoor [Sun, 26 Feb 2012 16:21:05 +0000 (21:51 +0530)]
[PORT FROM R2]mid_pmu: [Work Around]check for power transition after d0ix as a last resort

BZ: 23488

If d0ix interrupt wait_for_completion timesout we check
if interrupt is executed but signal is missed, but this
didn't help, we still get kernel panic after time out.
This suggests that the interrupt didn't arrive in 5secs
time.

We are yet to root cause the reason for interrupt miss
from SCU at IA, as a workaround we check if d0ix command
has completed in SCU and for some reason we missed getting
the interrupt.

Until we reproduce this issue consistently and get a final solution,
we propose this solution to avoid nasty kernel panics.

This patch reduces the completion time_out to 2secs since
dpm_suspend timeout is 3secs and if pmu_pci_set_power_state
gets delayed more than 3secs in suspend path dpm_suspend will
trigger a BUG(), hence to avoid this we reduce the timeout to
2secs.

Also adding debug prints to display pmu driver state variables
to aid in further debug if the panic reoccures.

Change-Id: Ibd302c04adf775e5ae572de54c079845ea36ae32
Orig-Change-Id: I6e781ef17aefd4a014d6f9aa26189d347f1a3672
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/36644
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphic: Critical Klocwork issues for ICS kernel
luliuhui [Fri, 24 Feb 2012 05:55:38 +0000 (13:55 +0800)]
Graphic: Critical Klocwork issues for ICS kernel

BZ: 23906

Revise NULL pointer dereferenced issues in kernel.
Revise buffer overflow issues in kernel.

Change-Id: Ibe28cbb470e818338aafe9b33548f17760cead2e
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/36489
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 agommc: do not swap MAC/DATA/NONCE before/afters send write/read request
Chuanxiao Dong [Mon, 27 Feb 2012 09:34:03 +0000 (17:34 +0800)]
mmc: do not swap MAC/DATA/NONCE before/afters send write/read request

BZ: 25412

when prepare RPMB read/write frames, no need to swap MAC/DATA/NONCE, so
remove the swap operation

Change-Id: Id46917974b4ef3dcc6a504a0cdf5e6ec6de76585
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/36823
Reviewed-by: Monroy, German <german.monroy@intel.com>
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 agohwmon/lis3dh: prolong event report period with 6D interrupt
Zhifeng Wang [Mon, 27 Feb 2012 03:38:02 +0000 (11:38 +0800)]
hwmon/lis3dh: prolong event report period with 6D interrupt

BZ: 25076

Prolong event report period when 6D interrupt occurs. This is necessary
to ensure the android framework could detect orientation change when
device is rotated very slowly.

Change-Id: Ie1d29b3d24edd458f8849a07a1ffacb47b7e8081
Signed-off-by: Zhifeng Wang <zhifeng.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/36671
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Cai, Stanley W <stanley.w.cai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/keyboard: remove leds set/unset for usb keyboard in driver/kernel
feng wang [Tue, 21 Feb 2012 06:58:17 +0000 (14:58 +0800)]
usb/keyboard: remove leds set/unset for usb keyboard in driver/kernel

BZ: 19068

In ICS, framework will handle the leds for usb keyboard and handle
related function. In keyboard driver, leds are also set/unset but
the implementation conflicts with that of the framework.
The implementation of framework is same as google/samsung ICS phone.
So remove leds set/unset functon in keyboard driver.
Please note that the implementation of android is different from
other linux base platform like ubuntu.

Change-Id: I22b5289bdc26482b6881e421b742fec370aa3b2d
Signed-off-by: feng wang <feng.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/36013
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 agoModify the length field of USB Container Header when receive >=4G file.
Sun Hai [Thu, 23 Feb 2012 02:37:43 +0000 (10:37 +0800)]
Modify the length field of USB Container Header when receive >=4G file.

BZ: 21905

Modify the length field of USB Container Header. When the file is larger the 4G,
The ContainerLength feild should be 0xffffffff rather than the result of truncating
file length (64-bit)to 32-bit.

Change-Id: Ib11aea506ce2359eac748c562ab96c2448b649fa
Signed-off-by: Sun Hai <haix.sun@intel.com>
Reviewed-on: http://android.intel.com:8080/36309
Reviewed-by: Huang, Bo B <bo.b.huang@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Liu, DongxingX <dongxingx.liu@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@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 agoCONFIG: Enable hyperthreading scheduler support
Fei Yang [Tue, 28 Feb 2012 01:33:28 +0000 (17:33 -0800)]
CONFIG: Enable hyperthreading scheduler support

BZ: 25012

Set CONFIG_SCHED_SMT=y

Change-Id: I927dc6f45181f8079914d6a1683ce3396e9ed198
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/36809
Reviewed-by: Iyer, Sundar <sundar.iyer@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[KW] Fix critical KW issues in intel_fw_logging.c
Christophe Guerard [Tue, 28 Feb 2012 15:23:58 +0000 (16:23 +0100)]
[KW] Fix critical KW issues in intel_fw_logging.c

BZ: 23929

Change-Id: I459dd5f6ddb33bc7fa14c195187641af36164f3f
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/36874
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agohsi: use sysfs to perform a cold reset
cesar DE OLIVEIRA [Wed, 22 Feb 2012 13:47:57 +0000 (14:47 +0100)]
hsi: use sysfs to perform a cold reset

BZ: 20428

Currently, the cold reset is performed on the stmd side. It should be performed
on the HSI driver side. A new sysfs API interface must be added to manage the
action.

New /sys/module/hsi_ffl_tty/parameters/cold_reset_modem file added to control
cold reset modem.

Change-Id: Icede62288f719c42ac0591d602a81c2887e489d5
Signed-off-by: cesar DE OLIVEIRA <cesarx.de.oliveira@intel.com>
Reviewed-on: http://android.intel.com:8080/34927
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lucas, GuillaumeX <guillaumex.lucas@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] hsi: add a trace for toggle of GPIO ON1
Guillaume Lucas [Thu, 16 Feb 2012 13:55:24 +0000 (14:55 +0100)]
[PORT FROM R2] hsi: add a trace for toggle of GPIO ON1

BZ: 24084

For debug purpose, add a trace when the GPIO ON1 is toggled
by the HSI driver.
Signed-off-by: Guillaume Lucas <guillaumex.lucas@intel.com>
Change-Id: I54e78c45848e956d6dae564fd082f80ac8c27e77
Orig-Change-Id: Iea4ffce5b8af228e5f825d0ce0dab3cc7a6b1428
Reviewed-on: http://android.intel.com:8080/36706
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Lucas, GuillaumeX <guillaumex.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 agoRevert "[PORT FROM R2] nohz: delay going tickless under CPU load to favor deeper...
Teerth Reddy [Mon, 27 Feb 2012 09:45:23 +0000 (15:15 +0530)]
Revert "[PORT FROM R2] nohz: delay going tickless under CPU load to favor deeper C states"

BZ: 24528

This reverts commit 626a1d4cae9a91a07113f8d02d4ac2a7f3d95151.

This patch is causing 7mW of LPMP3 regression.
Hence need revert, proper root cause and fix need to be provided
later for an inclusion of this patch.

Change-Id: Ifdc3702fb7578a767232ffda5bc4d212174c7cdb
Signed-off-by: Teerth Reddy <teerth.reddy@intel.com>
Reviewed-on: http://android.intel.com:8080/36704
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Veera, Bharath K <bharath.k.veera@intel.com>
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio: sn95031: modify long press reporting for Android
Omair Mohammed Abdullah [Wed, 25 Jan 2012 10:07:02 +0000 (15:37 +0530)]
audio: sn95031: modify long press reporting for Android

BZ: 23044

Android expects separate key press/release events for long press instead of a
single long press event. Change the reporting from the driver to report BTN_0
press when key is pressed and report release when button is released.

Change-Id: I3ffe544a1e3ea586f2c4a168cdeebf12b3fdcf05
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@intel.com>
Reviewed-on: http://android.intel.com:8080/35427
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 agoaudio: Fix audio driver Klocwork issues
namarta [Wed, 22 Feb 2012 06:43:18 +0000 (12:13 +0530)]
audio: Fix audio driver Klocwork issues

BZ: 23975

klocwork issues for audio driver

Fixed all KW issues for audio driver

Change-Id: I25301048faed43640a701269127a35ea082d23cc
Signed-off-by: namarta <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/36171
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
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: Monroy, German <german.monroy@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 agoIPC: add ipc bus interface support
Shijie Zhang [Thu, 23 Feb 2012 21:45:22 +0000 (05:45 +0800)]
IPC: add ipc bus interface support

BZ: 24785

Kernel was using platform interface for IPC devices. Now we add IPC bus
interface to replace platform interface.
Because we will have PSH IPC support in the future, it needs to support
both SCU IPC and PSH IPC together.

Change-Id: I3356d142c510de3d28bcdd8a0abd44f28d8f3051
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/36530
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]Battery: ignore the LOWBATT INT in case of charger connected
santosh [Thu, 23 Feb 2012 10:13:15 +0000 (15:43 +0530)]
[PORT FROM R2]Battery: ignore the LOWBATT INT in case of charger connected

BZ: 21057

This patch adds the logic to check for charger connection upon
LOWBATT INT. If the charger is connected LOWBATT INT will be
ignored else driver will set the battery health to Dead.

Change-Id: Ice88315c9f591ca977a5f79bf8604cb8552e8b0e
Orig-Change-Id: Ie35f9e9b1b42e8bac50b2a5c89e3b4053d8fecd8
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: santosh <santoshx.gugwad@intel.com>
Reviewed-on: http://android.intel.com:8080/36394
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Thermal[REVERT ME]: DTS driver should provide SoC DTS value
Durgadoss R [Fri, 10 Feb 2012 22:08:55 +0000 (03:38 +0530)]
EM/Thermal[REVERT ME]: DTS driver should provide SoC DTS value

BZ: 23384

This patch enables the core DTS driver to show the
SoC DTS temperature, by reading the NC P Unit Thermal
Sensor Register 0xB1. The SoC DTS temperature can be
inferred from the 'soc_temp_input' sysfs interface of
this driver. This patch adds Medfield specific code to
the generic 'coretemp' driver, to show SoC DTS values.
This is needed for Data gathering. Once, it is done,
this patch can be reverted. If it gets proven that we
need to use SoC DTS for Thermal management, we will have
a new .c file doing it (instead of that code being here).

Change-Id: I8c500c0229e7d37c8d1834dc9858db900d813a94
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Reviewed-on: http://android.intel.com:8080/35007
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Mitra, DebalinaX <debalinax.mitra@intel.com>
Tested-by: Gugwad, SantoshX <santoshx.gugwad@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agormi_sensor: fix kernel panic during late_resume
Hong Liu [Fri, 24 Feb 2012 08:34:48 +0000 (16:34 +0800)]
rmi_sensor: fix kernel panic during late_resume

BZ: 25232

The custom_ops is not set in our driver, so need to test it before
dereference it.

Change-Id: I7ff57751ecd90d8f47b4dcb8dcaa4bc440aee6ea
Signed-off-by: Hong Liu <hong.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/36520
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Saripalli, Ramakrishna <ramakrishna.saripalli@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEnabling CONFIG_SLUB option
Sathyanarayanan Kuppuswamy [Tue, 21 Feb 2012 19:51:11 +0000 (11:51 -0800)]
Enabling CONFIG_SLUB option

BZ: 23932

Enabling CONFIG_SLUB for medfield platforms.

Change-Id: I99faced4a84fb532aa86a28731a9d9c6786e07f2
Signed-off-by: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-on: http://android.intel.com:8080/36123
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[LOG] Fix critical KW issue in PTI driver
Christophe Guerard [Thu, 23 Feb 2012 20:04:33 +0000 (21:04 +0100)]
[LOG] Fix critical KW issue in PTI driver

BZ: 23905

Change-Id: I35c4c9c6612a51746eac4f58fbab417e2dba7107
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/36449
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodw-i2c: add CLV i2c hcnt/lcnt setting support
Li, Ning [Thu, 16 Feb 2012 08:20:58 +0000 (16:20 +0800)]
dw-i2c: add CLV i2c hcnt/lcnt setting support

BZ: 22191

I2C HC/LC setting are different bettween PNW and CLV, to support
both platform, we add scl configuration function in controller
struct. With this patch, i2c hcnt/lcnt setting can be controlled
much easier.

Change-Id: Ic69b752ee28ee2f5498d1899016b947fa71154bc
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/35553
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@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 agov4l2/mt9m114: remove dead code and adjust comments
Jacob Pan [Fri, 20 Jan 2012 22:35:01 +0000 (14:35 -0800)]
v4l2/mt9m114: remove dead code and adjust comments

BZ: 24612

The mt9m114_poll_awhile() function is not used anywhere starting from at least
r2 branch. This patch removes it completely.

Comments related to mt9m114_write_reg_array() are moved closely to the
implementation.

Change-Id: Ie29dc1cc3187e00d705dbbd498f0c6d58faa9abc
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Acked-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36090
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agox86/mfld: make couple of symbols static
Andy Shevchenko [Thu, 26 Jan 2012 14:45:41 +0000 (16:45 +0200)]
x86/mfld: make couple of symbols static

BZ: 24615

It will make gcc a bit happier.

Change-Id: Id9ad91d4606afbd928a58cc67f8a12346c9bd5e7
Acked-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36103
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@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: mt9m114: remove useless braces and spaces
Andy Shevchenko [Tue, 21 Feb 2012 11:43:04 +0000 (13:43 +0200)]
atomisp: mt9m114: remove useless braces and spaces

BZ: 24615

There is no need to use braces in case of oneline conditions. Also this patch
fix indentation of some structures and condition lines.

No functional change.

Change-Id: I9802eb69374e807b9571296a281c4a4514235e16
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36102
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@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: use DIV_ROUND_UP instead of custom implementation
Andy Shevchenko [Tue, 21 Feb 2012 11:40:12 +0000 (13:40 +0200)]
atomisp: use DIV_ROUND_UP instead of custom implementation

BZ: 24615

The DIV_ROUND_UP(bytes, PAGE_SIZE) could be used to get number of required
pages.

Change-Id: Ib7393c32346434fe2af996263d0b28dc95e49efa
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36101
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@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: use min_t and max_t instead of direct casting
Andy Shevchenko [Tue, 21 Feb 2012 11:34:32 +0000 (13:34 +0200)]
atomisp: use min_t and max_t instead of direct casting

BZ: 24615

There are few places where max and min macros used as follows
min(a, (<T>)b)
It could be easily changed to
min_t(<T>, a, b)

Change-Id: I7717b16cc9cc79e1da005e10bc8853d78498efc3
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36100
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@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: don't make HDMI display in 1280x720 mode during CLV PR0 system booting.
Austin Hu [Tue, 21 Feb 2012 13:17:44 +0000 (21:17 +0800)]
GFX-Display: don't make HDMI display in 1280x720 mode during CLV PR0 system booting.

BZ: 24597

Only reset HDMI preferred mode if NULL EDID detected on PNW C1 or latter. On other
platforms such as CLV PR0, set HDMI with the default preferred mode in the display
driver loading process.

Change-Id: Iee27f2efbd3b71e502af0929f28a6b21e0d96493
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/36067
Reviewed-by: Ai, Ke <ke.ai@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 agov4l2/mt9m114: wait completion after each reg array write
Jacob Pan [Fri, 20 Jan 2012 22:35:00 +0000 (14:35 -0800)]
v4l2/mt9m114: wait completion after each reg array write

BZ: 24612

MT9M114 sensor shows stability issue after we sync-ed with UMG's R3
code. The reason is that some of the wait/polling code has been
removed perhaps due to the testing have done on phone platforms.
The delay or polling for completion might not be needed for the
phone. However, Aptina (vendor) FAE suggests:

"Polling or delay time is required for current system managerstate
variable (R0xDC01) or state change in host command register (R0x0080)"

This patch enforces polling for host command status after
each register array write that requires polling. This is based
on vendor's INI file. e.g.
for [Change-Config] polling required after writes
REG= 0xDC00, 0x28  // SYSMGR_NEXT_STATE
REG= 0x0080, 0x8002  // COMMAND_REGISTER
POLL_REG = 0x0080, 2, !=0, DELAY=1, TIMEOUT=100

Change-Id: I9f8e8de16c6ebbc90520ef9e2568b7e42d1258e0
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Acked-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36089
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agov4l2/mt9m114: avoid oops in query control
Jacob Pan [Wed, 12 Oct 2011 18:05:21 +0000 (11:05 -0700)]
v4l2/mt9m114: avoid oops in query control

BZ: 24612

Initialize control query function pointers such that NULL pointer
oops can be avoided when v4l2 query control API is called.

Change-Id: Ief0655d7c99aee8cce5bb3a3660ab790e2449dbd
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Acked-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36088
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAlarm: enable suspend log by default
Axel Haslam [Fri, 3 Feb 2012 10:26:11 +0000 (11:26 +0100)]
Alarm: enable suspend log by default

BZ: 23525

This enables a one line log trace only on the suspend
path of the alarm driver. This log shows
when the rtc is programmed to wake up the system:

Example:
rtc alarm set at 1328264643, now 1328264607, rtc delta 1.464516704

To disable the log dynamicaly we can use:
echo 0 > /sys/module/alarm/parameters/debug_mask

to enable again:
echo 16 > /sys/module/alarm/parameters/debug_mask

Change-Id: I27391420eaddf035325a195893fd6695ead8ae3f
Signed-off-by: Axel Haslam <axelx.haslam@intel.com>
Reviewed-on: http://android.intel.com:8080/34262
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agov4l2/mt9e013: don't use custom typedef for basic type
Andy Shevchenko [Tue, 21 Feb 2012 11:31:57 +0000 (13:31 +0200)]
v4l2/mt9e013: don't use custom typedef for basic type

BZ: 24614

There is no need to redefine the "unsigned int" to the custom type.

No functional change.

Change-Id: I1ea89c066c62c32517a1bb0e11a0b5131af23792
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36096
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agov4l2/mt9e013: misc clean up
Jacob Pan [Wed, 9 Nov 2011 00:03:13 +0000 (16:03 -0800)]
v4l2/mt9e013: misc clean up

BZ: 24614

Remove unused macros and variables.
Make few structures static.
Use proper address space for variables.

Change-Id: Ia81269969d60bf87566c09fb98cd67557ed8c55a
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36095
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@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: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agov4l/mt9e013: detect sensor model and rev id
Jacob Pan [Wed, 11 Jan 2012 07:12:23 +0000 (23:12 -0800)]
v4l/mt9e013: detect sensor model and rev id

BZ: 24614

Change-Id: I42aafd397a45be9da553e3adfaae4f3c0af2989d
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Acked-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36094
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agov4l/mt9e013: clean up reg read/write functions
Jacob Pan [Wed, 11 Jan 2012 07:12:22 +0000 (23:12 -0800)]
v4l/mt9e013: clean up reg read/write functions

BZ: 24614

Change-Id: I5a6f95b7600e9f8e0d3f57f49727cc793adbbe9f
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36093
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRead APIC regiters to track source wakeups
Axel Haslam [Fri, 17 Feb 2012 14:02:33 +0000 (15:02 +0100)]
Read APIC regiters to track source wakeups

BZ: 23525

Read Interrupt Request Register form apic to track
wakeups that are not from GPIO. This helps us log
wakeups from sources like power button, alarm, and
headset plug.

Change-Id: I4e9ea82541e2e56e39d5de1d761fa9b89656ea7b
Signed-off-by: Axel Haslam <axelx.haslam@intel.com>
Reviewed-on: http://android.intel.com:8080/36068
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Fiat, Christophe <christophe.fiat@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomid_pmu: add trace to print wakeup source from s3
Axel Haslam [Tue, 7 Feb 2012 15:00:15 +0000 (16:00 +0100)]
mid_pmu: add trace to print wakeup source from s3

BZ: 23525

Add a trace to know the wake source from s3.
If we detect the wakeup reason is GPIO, we set a
flag to print what gpio number caused the wakeup,
on the gpio isr.

Wakeups that are detected are: GPIO, USB, HSI.
Wakeup from other sources, specifically MSIC (pwr_btn, rtc)
are not yet detected this mechanism.

Change-Id: Id06bf387a00bd1abdc37dd229389fcbeb4c4afb7
Signed-off-by: Axel Haslam <axelx.haslam@intel.com>
Reviewed-on: http://android.intel.com:8080/34331
Reviewed-by: Zayet, AymenX <aymenx.zayet@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Fiat, Christophe <christophe.fiat@intel.com>
Tested-by: Cuesta, FernandX <fernandx.cuesta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>