kernel/kernel-mfld-blackbay.git
12 years agokernel-drm: avoid msvdx power-on to read IED register
Fei Jiang [Sun, 3 Jun 2012 15:45:50 +0000 (23:45 +0800)]
kernel-drm: avoid msvdx power-on to read IED register

BZ: 37972

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

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

BZ: 38174

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

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

BZ: 36751

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

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

BZ: 38755

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

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

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

BZ: 38025

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

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

BZ: 38815

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

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

BZ: 33530

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

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

BZ: 27947

This reverts commit 99db2b1afac52089c7f71c161094ebeeab1487c7.

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

BZ: 38031

Fix correct call to osnib
Also fix variable name

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

BZ: 37757

Add BUG_ON() to catch the error trace

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

BZ: 38231

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

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

BZ: 26623

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

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

BZ: 26623

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

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

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

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

BZ: 27947

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

BZ: 37067

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

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

BZ: 38574

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

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

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

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

BZ: 27564

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

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

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

BZ: 30594

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

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

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

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

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

BZ: 34094

Changes to make matrix driver dynamic kernel module.

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

BZ: 34094

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

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

BZ: 35248

for Enzo bug 969 / 1056 /568

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

2.re-enable DSR feature to save power.

3.BZ 1056 clear some unused variable.

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

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

BZ: 25136

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

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

Change-Id: I5cbcdec6c77b9e89440e3bdc38d9b9eb06f8f661
Signed-off-by: Mathieu Soulard <mathieu.soulard@intel.com>
Reviewed-on: http://android.intel.com:8080/49920
Reviewed-by: De Chivre, Renaud <renaud.de.chivre@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEnable FFL Post Boot handshake only if FFL packet size is 4KB
lebsir [Fri, 11 May 2012 13:22:28 +0000 (15:22 +0200)]
Enable FFL Post Boot handshake only if FFL packet size is 4KB

BZ: 34885

Change-Id: I91d2b149b21de57e729518315ac8889fbd629658
Signed-off-by: lebsir <samix.lebsir@intel.com>
Reviewed-on: http://android.intel.com:8080/48427
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: Remove some redundant printk to avoid ISP hang up.
hpyang [Tue, 22 May 2012 08:40:15 +0000 (16:40 +0800)]
atomisp: Remove some redundant printk to avoid ISP hang up.

BZ: 38404

Delete some printk lines at sh_css_hrt.c::sh_css_hrt_s2m_send_frame,
as it will yield too much printout and cause ISP hang up.

Change-Id: I604939a6a12d6420bd3f486328d6444e7dab3ac2
Signed-off-by: hpyang <haipingx.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/49673
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD/Battery: fixes the phone freezing issue when process of shutdown.
Gurumurthy Gowdar [Tue, 29 May 2012 11:19:06 +0000 (16:49 +0530)]
MFLD/Battery: fixes the phone freezing issue when process of shutdown.

BZ: 35620

The patch fixes the phone freezing issue when the process of shutdown.

Change-Id: Icce3280405a43e31497482b1788d906157864985
Signed-off-by: Gurumurthy Gowdar <gurumurthyx.gowdar@intel.com>
Reviewed-on: http://android.intel.com:8080/50515
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: [REVERTME] request minimum CPU wakeup latency
Tuukka Toivonen [Thu, 24 May 2012 15:28:15 +0000 (18:28 +0300)]
atomisp: [REVERTME] request minimum CPU wakeup latency

BZ: 34648

CLV+ drivers put idle system into a low-performance mode which
causes ISP interrupts to disappear. This leads to ISP timeout errors
under light load. Fix the issue by requesting lowest wakeup latency
from pm_qos subsystem.

This is a temporary solution; the root cause should be still
investigated.

Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Change-Id: I32f58c60ae2c65bc44c4e7e1c4b958fe9022f1b7
Reviewed-on: http://android.intel.com:8080/49249
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: request sufficiently low CPU wakeup latency with pm_qos
Tuukka Toivonen [Thu, 17 May 2012 11:36:36 +0000 (14:36 +0300)]
atomisp: request sufficiently low CPU wakeup latency with pm_qos

BZ: 34648

Request sufficiently low CPU wakeup time to ensure that ISP interrupts
are served in time and that no frames are dropped.

Change-Id: Ia3bf36c05111555cd06321e1e40f14d34a4db488
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/50074
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kontola, Kalervo <kalervo.kontola@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBluetooth: synchronization for name assignment to HCI devices
Raffaele Aquilone [Tue, 15 May 2012 12:09:00 +0000 (14:09 +0200)]
Bluetooth: synchronization for name assignment to HCI devices

BZ: 36212

Improves readability, changing name to a variable and a macro

Change-Id: I62b9bf349f18d3fa04bd51a9e40171fbe6575bac
Signed-off-by: Raffaele Aquilone <raffaelex.aquilone@intel.com>
Reviewed-on: http://android.intel.com:8080/48832
Reviewed-by: Beldie, OvidiuX <ovidiux.beldie@intel.com>
Reviewed-by: Bransiec, ChristopheX <christophex.bransiec@intel.com>
Reviewed-by: Gros, JulienX <julienx.gros@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kanigeri, Hari K <hari.k.kanigeri@intel.com>
Tested-by: Zurmely, PierreX <pierrex.zurmely@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agokernel: We hit a kernel OOPS and it is associated with rcu.
Kun Jiang [Wed, 23 May 2012 05:50:38 +0000 (13:50 +0800)]
kernel: We hit a kernel OOPS and it is associated with rcu.

BZ: 35535

<3>[23898.789643] BUG: sleeping function called from invalid context at
/data/buildbot/workdir/ics/hardware/intel/linux-2.6/arch/x86/mm/fault.c:1103
<3>[23898.862215] in_atomic(): 0, irqs_disabled(): 0, pid: 10526, name:
Thread-6683
<4>[23898.967805] HSU serial 0000:00:05.1: 0000:00:05.2:HSU serial prevented me
to suspend...
<4>[23899.258526] Pid: 10526, comm: Thread-6683 Tainted: G        W
3.0.8-137685-ge7742f9 #1
<4>[23899.357404] HSU serial 0000:00:05.1: 0000:00:05.2:HSU serial prevented me
to suspend...
<4>[23899.904225] Call Trace:
<4>[23899.989209]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.000416]  [<c1238c2a>] __might_sleep+0x10a/0x110
<4>[23900.007357]  [<c1228021>] do_page_fault+0xd1/0x3c0
<4>[23900.013764]  [<c18e9ba9>] ? restore_all+0xf/0xf
<4>[23900.024024]  [<c17c007b>] ? napi_complete+0x8b/0x690
<4>[23900.029297]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.123739]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.128955]  [<c18ea0c3>] error_code+0x5f/0x64
<4>[23900.133466]  [<c1227f50>] ? pgtable_bad+0x130/0x130
<4>[23900.138450]  [<c17f6298>] ? __ip_route_output_key+0x698/0x7c0
<4>[23900.144312]  [<c17f5f8d>] ? __ip_route_output_key+0x38d/0x7c0
<4>[23900.150730]  [<c17f63df>] ip_route_output_flow+0x1f/0x60
<4>[23900.156261]  [<c181de58>] ip4_datagram_connect+0x188/0x2b0
<4>[23900.161960]  [<c18e981f>] ? _raw_spin_unlock_bh+0x1f/0x30
<4>[23900.167834]  [<c18298d6>] inet_dgram_connect+0x36/0x80
<4>[23900.173224]  [<c14f9e88>] ? _copy_from_user+0x48/0x140
<4>[23900.178817]  [<c17ab9da>] sys_connect+0x9a/0xd0
<4>[23900.183538]  [<c132e93c>] ? alloc_file+0xdc/0x240
<4>[23900.189111]  [<c123925d>] ? sub_preempt_count+0x3d/0x50

Function free_fib_info resets nexthop_nh->nh_dev to NULL before releasing
fi. Other cpu might be accessing fi. Fixing it by delaying the resetting.

Change-Id: Ibc53378d4f0b6dd9f9fadbd690d7b6ab997c1dc2
Signed-off-by: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Signed-off-by: Kun Jiang <kunx.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/49812
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@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 agoIPC: add bus lock protect for ipc_device_list
Shijie Zhang [Tue, 22 May 2012 20:12:23 +0000 (04:12 +0800)]
IPC: add bus lock protect for ipc_device_list

BZ: 37748

In current IPC framework, ipc_device_list is not under protect by bus
lock, which may cause synchronization problem when they are accessed by
multi process at the same time. This patch puts it under protect of bus
lock to avoid this risk.

Change-Id: Ic48f2eb291ef900b1f1c498a3b6e7efb3fff8737
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/49725
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>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Charger: Fix the VBUS disconnect after 30s issue on CLV
Pandey Raj [Mon, 21 May 2012 11:45:43 +0000 (17:15 +0530)]
EM/Charger: Fix the VBUS disconnect after 30s issue on CLV

BZ: 34940

This patch fixes the VBUS disconnect issue on CLV platform by disabling the
WD timer as soon as host mode cable is inserted to the platform. This issue
happens only if the user connects the host mode cable before the charger cable.

Change-Id: I26c97af48bf366a2132f80e6cebc8acb92c9a480
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/49524
Reviewed-by: Hegde Kota, VinayX <vinayx.hegde.kota@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Prasad, Lakshmi G <lakshmi.g.prasad@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@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 agoved: schedule a work_queue in release method to try to power down ved
Li Zeng [Mon, 28 May 2012 09:38:41 +0000 (17:38 +0800)]
ved: schedule a work_queue in release method to try to power down ved

BZ: 37164

This is to make sure that ved is power off when not in use. Remove IS_MRST() check because mrst is no longer supported.

Change-Id: I4ca1718d7454c13147a77c6d008de9d3f594647f
Signed-off-by: Li Zeng <li.zeng@intel.com>
Reviewed-on: http://android.intel.com:8080/50360
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: host: SD detection flow optimization
Chuanxiao Dong [Fri, 11 May 2012 09:43:52 +0000 (17:43 +0800)]
mmc: host: SD detection flow optimization

BZ: 38199

With continously insert/remove a SD card on Tablet, Fabric error
or kernel panic can happen, which would hang up the system.

As original design, when there happens error during sending command
to device, host controller needs to be reset to go back to a clean
state. This patch will change this. If there error is NOMEDIA, means
SD card is removed, host controller will not be reset until SD card
is plugged again. This makes sense.

This patch cannot workaround Fabric error, but seems can reduce the
kernel panic

Change-Id: I543b118305ee535fbdd9e03f15628b8622edcaa4
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/50108
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 agoaudio:sn95031:Updating Audio PLL Power up sequence
KuldeepX Vyas [Mon, 30 Apr 2012 06:14:11 +0000 (11:44 +0530)]
audio:sn95031:Updating Audio PLL Power up sequence

BZ: 33301

CLKSTRT bit is enabled prior to the PLLEN bit,
it violates TI recommandation.

Set the CLKSTRT bit at the end of the power-up sequence.

Change-Id: I08fea0a4512435c38bf10d8f5bdb9aeffd98b2c7
Signed-off-by: KuldeepX Vyas <kuldeepx.vyas@intel.com>
Reviewed-on: http://android.intel.com:8080/46688
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoadb reboot reboots in MOS
Guillaume Betous [Fri, 25 May 2012 08:48:11 +0000 (10:48 +0200)]
adb reboot reboots in MOS

BZ: 38390

Modification of logic for making "adb reboot" always go to MOS.

Now we have :
- adb reboot recovery => RECOVERY
- adb reboot bootloader => FASTBOOT
- adb reboot <any other parameter, or no parameter> => MOS

Change-Id: I9ac6f3ca504680a5fbaa9c062b781ccda8d1921c
Signed-off-by: Guillaume Betous <guillaumeX.betous@intel.com>
Reviewed-on: http://android.intel.com:8080/50157
Reviewed-by: Castelain, DavidX <davidx.castelain@intel.com>
Reviewed-by: Afantenos, Marie CecileX <marie.cecilex.afantenos@intel.com>
Reviewed-by: Sahukar, Surya P <surya.p.sahukar@intel.com>
Tested-by: Afantenos, Marie CecileX <marie.cecilex.afantenos@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoModem cold reset not working
sami lebsir [Fri, 25 May 2012 11:03:39 +0000 (13:03 +0200)]
Modem cold reset not working

BZ: 36562

Check the PMIC regs read/write return value then perform the modem reset

Change-Id: I44bb65b8c9ef4293e2964c619449c3f86c869fed
Signed-off-by: sami lebsir <samix.lebsir@intel.com>
Reviewed-on: http://android.intel.com:8080/50230
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:gadget: wait for a while before clean ep0 request
jzhuan5 [Thu, 24 May 2012 18:10:32 +0000 (14:10 -0400)]
usb:gadget: wait for a while before clean ep0 request

BZ: 37568

after disconnecting pullup, any flying request should be completed or
any potential request should be added within 50ms. 50ms should be enough
considering the interrupt maximun interval. so sleeping for 50ms and
dequeuing ep0 should be able to cleanup the request in ep0.

Change-Id: I9e131cd1217ec748be7a013894ce7c63ef4214a3
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/50022
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: remove unnecessary sleep
Geng Xiujun [Wed, 23 May 2012 03:33:10 +0000 (11:33 +0800)]
Gfx-display: remove unnecessary sleep

BZ: 37477

5ms sleep is unnecessary in pr2 panel's IC initialization as panel reset can
make sure this wait time.

Change-Id: I735e9e00651b28885d59bbc24bf2d96f0441a908
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/49804
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: correct sleep time for pr2 panel reset
Geng Xiujun [Wed, 23 May 2012 03:12:13 +0000 (11:12 +0800)]
Gfx-display: correct sleep time for pr2 panel reset

BZ: 37475

This patch has following changes:
(1). change sleep time to 3ms between pulling panel reset pin low and high.
(2). change sleep time to 10ms after reset panel.
(3). using usleep_range rather than mdelay.

Change-Id: I2bd8960c10333d2e4e9b8fbcd46bc69d27587b4c
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/49803
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: OEM Reserved IOCTL Range
Hitesh K. Patel [Mon, 21 May 2012 22:25:39 +0000 (15:25 -0700)]
GFX-Display: OEM Reserved IOCTL Range

BZ: 36587

Enzo BZ: 1056

Reserve OEM IOCTL range for customization of
OEM specific features.

Change-Id: Ib54ae1fa9dddbc71fb8ada6a256dacc9714634f1
Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
Reviewed-on: http://android.intel.com:8080/49773
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Graphics]: console_trylock is wrong used in driver code
Shi Yang [Sun, 20 May 2012 21:43:06 +0000 (05:43 +0800)]
[Graphics]: console_trylock is wrong used in driver code

BZ: 37316

console_trylock is not always return true. and if it return false but then do console_unlock, this may
cause error in kernel.
So change all code to use console_lock.

Change-Id: I0faf10a6795d442560559d6655be1d919655b89c
Signed-off-by: Shi Yang <yang.a.shi@intel.com>
Reviewed-on: http://android.intel.com:8080/49482
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: He, Bo <bo.he@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: forbid runtime suspend for 2 seconds in HDMI hotplug workqueue
Lei Zhang [Mon, 21 May 2012 03:10:11 +0000 (11:10 +0800)]
Gfx-Display: forbid runtime suspend for 2 seconds in HDMI hotplug workqueue

BZ: 26745

This patch forbids runtime suspend in HDMI hotplug workqueue for 2 seconds.
This is used to prevent display driver goes to suspend status during hotplug
detect, and allow enough time for HDMI audio to be routed from IHF.

Change-Id: If67e3bb54c8d0d941f5d24a5abdaccaf01eb5682
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/49474
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: add new parameter to check FORCE turn on/off HDMI panel
Lei Zhang [Thu, 17 May 2012 10:36:25 +0000 (18:36 +0800)]
Gfx-display: add new parameter to check FORCE turn on/off HDMI panel

BZ: 37296

This patch adds new parameter to check whether to force to turn on/off
HDMI panel. It is used for incoming call UC to forcely turn on/off HDMI
even when rotation happens.

Change-Id: I082319411d08a97068690e6010d86f89011c162f
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/49468
Reviewed-by: Geng, Xiujun <xiujun.geng@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdded return of Ri - Ri' match
Steve Shortess [Thu, 17 May 2012 17:33:39 +0000 (10:33 -0700)]
Added return of Ri - Ri' match

BZ: 36338
Function was not properly return state after frame update while checking hdcp link status.

Change-Id: Ibfe627d8c9cc9987b78929d6963cc851426b1965
Signed-off-by: Steve Shortess <stevex.w.shortess@intel.com>
Reviewed-on: http://android.intel.com:8080/49254
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Zhang, Lei <lei.zhang@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9e013: cleanup settings and add requested resolutions
Robert Jong-A-Lock [Fri, 18 May 2012 13:13:36 +0000 (15:13 +0200)]
mt9e013:  cleanup settings and add requested resolutions

BZ: 37208 22615 24210

After the Kconfig change was made to the driver some settings
splilled into the new files. the blackbay and enzo headers have
been cleared of these settings.
3rd party apps need a 1024x576 mode in video which they use as
preview, this mode has been added.
WVGA now has better FoV.
Skipping settings were corrected in the blackbay and enzo headers.

Change-Id: I352c0c93b9f1be6c95dd702b7912008c065107ea
Reviewed-on: http://android.intel.com:8080/49411
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Tested-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "GFX-Display: resolved the flashing issue when booting up SC1."
Randy Xu [Thu, 24 May 2012 09:33:55 +0000 (17:33 +0800)]
Revert "GFX-Display: resolved the flashing issue when booting up SC1."

BZ: 38205

Patch 47708 may cause instability on PR1 flashing
This reverts commit 677278e8e7adc7bbcc49298cf83809cd5e2d6b64.

Change-Id: I88356102f94296c8abc0f97a253047ee3d9e566d
Signed-off-by: Randy Xu <randy.xu@intel.com>
Reviewed-on: http://android.intel.com:8080/50038
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD/Battery: Clean up battery status setting logic
Ramakrishna Pallala [Wed, 2 May 2012 23:05:30 +0000 (04:35 +0530)]
MFLD/Battery: Clean up battery status setting logic

BZ: 17854

The current code doesn't set the battery status to NOT Charging
even if the writes to MSIC register fails, it only logs the error.

This patch sets the battery status to NOT Charging if there is a
MSIC register write fail and also cleans up the battery status
setting logic.

Change-Id: Iea83c2ba2473d523d8d36c3242ca3e5307451c0f
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/47166
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD/Battery: fix battery full logic for transition b/w temperature zones
Ramakrishna Pallala [Tue, 22 May 2012 14:16:12 +0000 (19:46 +0530)]
MFLD/Battery: fix battery full logic for transition b/w temperature zones

BZ: 37894

This patch fixes the battery full detection logic in case of
temperature transition b/w battery charge profle.

Change-Id: Iff9651b3fa5f35b45a8cec53b0661e69ef3e102f
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49753
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosound core: add soc_delay
Vinod Koul [Mon, 14 May 2012 10:08:13 +0000 (15:38 +0530)]
sound core: add soc_delay

BZ: 35394

soc_delay is a new delay varible which should be added to overall sound delay
reporting. This is the delay encountered in queing of buffers inside soc, like
dsp buffers, usb usb queue delay etc

Change-Id: I8483ed9d7f345dcd2124d97e9c807e6e11fc34d7
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/49238
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatmel_mxt_ts: Change the touch calibration condition
Leo Yan [Fri, 18 May 2012 02:22:34 +0000 (10:22 +0800)]
atmel_mxt_ts: Change the touch calibration condition

BZ: 29396

When the screen is resumed, we won't do calibration if there is a
finger on the touch panel since that will cause the finger pressed
area has wrong calibration and couldn't detect the touch later.

Change-Id: I8c54f2629592e14bc30b3bea1e4f35bd0520a4cf
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/49296
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio Comms I2S Test Driver : add timeout + add abort command support
Renaud de Chivre [Thu, 3 May 2012 09:11:58 +0000 (11:11 +0200)]
Audio Comms I2S Test Driver : add timeout + add abort command support

BZ: 37691

Add timeout on read and write that will abort ssp operation if elapsed.
Add checks concerning dma channel allocation.

Change-Id: I62e6ebfde12defcc0165ee6e188d0a5eb3691c6d
Signed-off-by: Renaud de Chivre <renaud.de.chivre@intel.com>
Reviewed-on: http://android.intel.com:8080/47226
Reviewed-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoImprove logs at reboot time
Guillaume Betous [Fri, 11 May 2012 15:38:10 +0000 (17:38 +0200)]
Improve logs at reboot time

BZ: 30330

Add message for reset type.

Change-Id: I8283f8c851e5ea92709cc2a4f744f73633b47c45
Signed-off-by: Guillaume Betous <guillaumeX.betous@intel.com>
Reviewed-on: http://android.intel.com:8080/48465
Reviewed-by: Monnier, Olivier <olivier.monnier@intel.com>
Tested-by: Monnier, Olivier <olivier.monnier@intel.com>
12 years agohsu: workaround premature TX DMA irq
Alek Du [Tue, 22 May 2012 10:32:50 +0000 (10:32 +0000)]
hsu: workaround premature TX DMA irq

BZ: 25843

When CTS assert, HSU TX DMA will stop and report TX DMA irq, which is a
violation against the HSU spec.

Workaround this by reading D0SAR and count the real chars sent -- don't
assume all TX chars are sent.

Change-Id: Ic43f40e1d2437d6e33f8d53b84d116168f921a45
Signed-off-by: Alek Du <alek.du@intel.com>
Reviewed-on: http://android.intel.com:8080/49696
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-DISPLAY: Fix screen messy display or flash issue when pressing pwr button to...
Li Zhuangzhi [Thu, 17 May 2012 07:23:06 +0000 (15:23 +0800)]
GFX-DISPLAY: Fix screen messy display or flash issue when pressing pwr button to resume system

BZ: 36939

Issue:
Board screen display flash while pressing power key to resume system on Lexington DUT.

Solution:
Case1:
When panel and interface are initializing, there maybe some noise showed on display,
We'd better turn on the backlight after the initialization operation, this can avoid some
noise issue. And it's not good turn on backlight with full brightness at the beginning,
it will cause a flash when screen on, the brightness level should be controlled by
lastbrightnesslevel parameter after initialization.
Case2:
__dpi_panel_power_on() will reset the panel and then enable DSI
PLL, config the DSI controller, then exit ULPS state, set low
power output hold, then call p_funcs->drv_ic_init(), at this
moment, the MIPI is in low power mode, so change the hs to lp in
init to improve the ic init stability.

Change-Id: If2b5d748c00a60680536435acb0a1908d163466b
Signed-off-by: Li Zhuangzhi <zhuangzhi.li@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/49302
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/BCU: Enabling BCU Configuration for all CTP platforms
Shravan [Wed, 23 May 2012 04:52:33 +0000 (10:22 +0530)]
EM/BCU: Enabling BCU Configuration for all CTP platforms

BZ: 35622

The patch enables configuration settings for BCU driver in
all of the CTP platforms

Change-Id: I89e6dff431ad318f83b345305d8986a161cd831f
Signed-off-by: Chaurasia, Avinash K <avinash.k.chaurasia@intel.com>
Reviewed-on: http://android.intel.com:8080/49807
Reviewed-by: Rapaka, Naveen <naveen.rapaka@intel.com>
Reviewed-by: R, Durgadoss <durgadoss.r@intel.com>
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosmb347_charger: fix battery status reporting logic for charger faults
Ramakrishna Pallala [Tue, 22 May 2012 04:56:41 +0000 (10:26 +0530)]
smb347_charger: fix battery status reporting logic for charger faults

BZ: 34671

This patch checks for charger status register for determining the
battery charging status and reports Discharing/Charging/Not Charging/Full
accordingly.

This patch also adds the interrupt support for Safety Timer Expiration.

Change-Id: Ib7a34e5ceb1655228163a979db2cd3cc746a8d36
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49618
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomfd: Avoid access the hsu reg in !active state
liu chuansheng [Tue, 22 May 2012 15:50:50 +0000 (23:50 +0800)]
mfd: Avoid access the hsu reg in !active state

BZ: 37758

There is a rare case in function serial_hsu_stop_tx(),
which will call pm_runtime_get() without sync, then access
the hsu reg, it will cause fabric error.

To fix it, like serial_hsu_stop_rx(), when in case of non-active
runtime state, queue the stop tx command in qwork worker to do it.

Change-Id: Id6aa540db20db532a2f4b56d770111b985b26756
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/49633
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoHSU DMA interrupt might happen during HSU suspending
Bin Yang [Tue, 22 May 2012 02:21:16 +0000 (10:21 +0800)]
HSU DMA interrupt might happen during HSU suspending

BZ: 37758

HSU DMA interrupt is shared for all ports. So it is always
enabled during HSU port suspending. If TX is pending on this
port, it might trigger TX after suspend.

Change-Id: I288023543e06b6cd9312327d94c99b95dad1664f
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/49585
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-display: correct sleep function usage for DVx
Geng Xiujun [Thu, 17 May 2012 02:44:34 +0000 (10:44 +0800)]
Gfx-display: correct sleep function usage for DVx

BZ: 36765

use usleep_range instead of mdelay and msleep for short time delay.

Change-Id: Ic9b1bb246e555d8817d87f4d25347bcf0a9f7049
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/49126
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBattery: New sysfs to selectively disable charge-safety-timer.
Pavan Kumar S [Tue, 8 May 2012 09:21:06 +0000 (14:51 +0530)]
Battery: New sysfs to selectively disable charge-safety-timer.

BZ: 34016

Adding a new sysfs to disable charge-safety-timer.
Safety-timer will be enabled by default.

Change-Id: I3fd758efee1fabab88d3f23b0383a8a2c53e43c8
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Reviewed-on: http://android.intel.com:8080/47802
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Gowdar, GurumurthyX <gurumurthyx.gowdar@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Singh, NavjotX <navjotx.singh@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio: Extend GPIO jack detection support for all medfield based devices
Namarta Kohli [Mon, 21 May 2012 09:38:44 +0000 (15:08 +0530)]
Audio: Extend GPIO jack detection support for all medfield based devices

BZ: 37120

Redridge device has a GPIO pin which can be used to detect high impedance
headsets.

With this GPIO support, whenever an insert interrupt is received and the
micbias value is out of range, it checks the GPIO pin and reports the jack as
a HEADSET if the GPIO pin says that there is a headset.

Change-Id: I6ea08050b1c965a23937ab9a5e6d36e9a66486d2
Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/49514
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomax170xx_battery: disable shutdown methods from user space
Ramakrishna Pallala [Fri, 18 May 2012 16:18:58 +0000 (21:48 +0530)]
max170xx_battery: disable shutdown methods from user space

BZ: 19950

This patch enables the user space to disable default shutdown
methods set by platform. By adding the disable_shutdown_methods
sysfs interface under its device directory so the user space write
into this file to disable the shutdown methods.

Usage:
To disable default fuel gauge based shutdown:
echo 1 > disable_shutdown_methods

To disable OCV based shutdown:
echo 2 > disable_shutdown_methods

To disable LOWBATT based shutdown:
echo 4 > disable_shutdown_methods

To disable all types of shutdown:
echo 7 > disable_shutdown_methods

Change-Id: Ic10034d3cf2a59fb05fa09f518d96cc843c3ea4b
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49426
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: Update MACC tables to prevent colors from clipping
repo sync [Thu, 3 May 2012 05:45:13 +0000 (08:45 +0300)]
atomisp: Update MACC tables to prevent colors from clipping

BZ: 27172

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

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

BZ: 37123

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

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

BZ: 37726

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

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

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

BZ: 37685

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

2. update it return value

Signed-off-by: Ke Ai <ke.ai@intel.com>
Change-Id: Ieb961bf0031608cc44168c985b230e6775fedc4f
Reviewed-on: http://android.intel.com:8080/49671
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/BCU: Enabling BCU for CTP Plus Platform
Shravan [Fri, 18 May 2012 10:35:01 +0000 (16:05 +0530)]
EM/BCU: Enabling BCU for CTP Plus Platform

BZ: 35622

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

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

BZ: 28818

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

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

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

BZ: 37424

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

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

BZ: 32042

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

This issue is from Enzo BZ #570.

Change-Id: Ie2896876690848ef1a77e67b3cd869a30db29535
Signed-off-by: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/47708
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopnwotg_test: send usb warning when test device is not supported
Wu, Hao [Thu, 17 May 2012 07:27:05 +0000 (15:27 +0800)]
pnwotg_test: send usb warning when test device is not supported

BZ: 30607

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

Change-Id: Idafbea1cb2d2668b929bc63ee5351a88bd95a6f0
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/49178
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/hub: send usb warning to user space when get descriptor failed.
Wu, Hao [Thu, 17 May 2012 07:25:17 +0000 (15:25 +0800)]
usb/hub: send usb warning to user space when get descriptor failed.

BZ: 30607

Notify usb warning when get descriptor failed.

Change-Id: I6f39a03c35abf10b88f2a138b2b9392882429839
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/49177
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/core: add uevent notification interface for usb warnings
Wu, Hao [Thu, 17 May 2012 07:23:19 +0000 (15:23 +0800)]
usb/core: add uevent notification interface for usb warnings

BZ: 30607

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

Change-Id: I8cac8481d087a59eb069971207e75bb97ab7f3b5
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/49176
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoctp_charger: fix the temperature look up logic.
Pankaj Mistry [Thu, 17 May 2012 09:42:47 +0000 (15:12 +0530)]
ctp_charger: fix the temperature look up logic.

BZ: 36483

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

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

BZ:30950

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

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

BZ: 32221

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

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

Change-Id: I1612fb3206a186b0877f0c8dc94bf0ee40c9dfe5
Signed-off-by: Samu Onkalo <samu.onkalo@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/49229
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:sst: Change work queues to singlethread work queues
Samu Onkalo [Thu, 17 May 2012 10:13:01 +0000 (13:13 +0300)]
audio:sst: Change work queues to singlethread work queues

BZ: 32221

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

Change-Id: If8e96fea61d15ac761984293fac4e10812173c53
Signed-off-by: Samu Onkalo <samu.onkalo@intel.com>
Reviewed-on: http://android.intel.com:8080/49228
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio: Synchronous message posting for ALSA trigger commands
Namarta Kohli [Wed, 9 May 2012 09:45:32 +0000 (15:15 +0530)]
Audio: Synchronous message posting for ALSA trigger commands

BZ: 34971

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

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

Change-Id: Ibb638e355bc06fac1923141b868be947238196b2
Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/47948
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomid_pmu: remove forever loop while shutdown in progress
Illyas Mansoor [Tue, 8 May 2012 03:46:08 +0000 (09:16 +0530)]
mid_pmu: remove forever loop while shutdown in progress

BZ: 31284

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

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

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

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

BZ: 32306

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

Change-Id: I13e913b9fd1d4d9f7db1077b35fce35ddc814325
Signed-off-by: gwang23 <gang.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/49157
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphics: Fix a NULL issue in PVRSRVInsertCommandKM
gwang23 [Thu, 17 May 2012 02:58:48 +0000 (10:58 +0800)]
Graphics: Fix a NULL issue in PVRSRVInsertCommandKM

BZ: 35113

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

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

Change-Id: Ieba6c3659c77f3341f8ddf8003a0f10a13b772fd
Signed-off-by: gwang23 <gang.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/49132
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: fix CABC control interface not work
Ke Ai [Thu, 17 May 2012 02:14:36 +0000 (10:14 +0800)]
GFX-Display: fix CABC control interface not work

BZ: 35376

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

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

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

BZ: 24684

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

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

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

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

BZ: 36600

Enzo BZ: 984

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

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

BZ: 34312

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

Change-Id: I0e757ed1d9788fca2b10958e9814cd2ed72f9d21
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/47713
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "[REVERT ME] hsi: increase TX timeout to 2.5 sec"
Nicolas LOUIS [Fri, 18 May 2012 12:33:41 +0000 (14:33 +0200)]
Revert "[REVERT ME] hsi: increase TX timeout to 2.5 sec"

BZ: 31385

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

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

BZ: 31620

Enzo Bugs: 665, 602, 762

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

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

BZ: 34596

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

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

BZ: 30374

SSP driver update for Merrifield platform support.

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

BZ: 34579

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

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

BZ: 8512

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

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

BZ: 24596

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

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

BZ: 34240

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

Change-Id: Icb9fd26e0ac7e497679bc4090b68d4e8b7dcf35c
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/47366
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosmb347_charger: enable debugs logs in charger driver
Ramakrishna Pallala [Wed, 16 May 2012 13:28:25 +0000 (18:58 +0530)]
smb347_charger: enable debugs logs in charger driver

BZ: 36806

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

Change-Id: Ib36bcec218f6001fe30997da014e46de88ef7efa
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/49021
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Gowdar, GurumurthyX <gurumurthyx.gowdar@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomax170xx_batteey: disable 71 model scaling for Redridge tablet
Ramakrishna Pallala [Wed, 16 May 2012 06:10:06 +0000 (11:40 +0530)]
max170xx_batteey: disable 71 model scaling for Redridge tablet

BZ: 36109

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

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

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

BZ: 35199

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

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

BZ: 35160

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

BZ: 31236

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

BZ: 27557

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

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

BZ: 32464

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

Change-Id: I9da4dfa88af241fb0729695b4e9e8266e8583bb0
Reviewed-on: http://android.intel.com:8080/48098
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Sun, Mingruo <mingruo.sun@intel.com>
Reviewed-by: Qiu, Junhai <junhai.qiu@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>