kernel/kernel-mfld-blackbay.git
12 years agoRevert "intel-mid: remove WA for smb347 charger"
Kappel, LaurentX [Thu, 29 Mar 2012 15:53:15 +0000 (08:53 -0700)]
Revert "intel-mid: remove WA for smb347 charger"

BZ: 29047

This patch removes the WA for adding device entry
in intel-mid.c as the latest IFWI support device entry
for smb347 charger.

Old-Change-Id: Ic6ee390ae82c181dc51e1e6080a1a790bf1a4232
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This reverts commit b23a47438facee19378fb3db4c95a995e4f0b471

Change-Id: Ic3d8c963d3cfa11c3035fe8bd92adb6273b902af
Signed-off-by: Laurent Kappel <laurentx.kappel@intel.com>
Reviewed-on: http://android.intel.com:8080/41677
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 agoRevert "mfld-pmu: [REVERT ME] Acquiring Wake_lock to prevent S3 on CVT"
Youvedeep Singh [Sat, 24 Mar 2012 16:25:36 +0000 (21:55 +0530)]
Revert "mfld-pmu: [REVERT ME] Acquiring Wake_lock to prevent S3 on CVT"

BZ: 25898

This reverts commit db41b8e475625d7f7ffedee6cce1d0ea098ce980.
Removing the wakeLock, as we are going to enable S3.

Change-Id: Id0e0590a0c540189af654a1fd1666d67094529d8
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/40523
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 agomfld-pmu: Removing C6 offload specific code on CVT PLatform.
Youvedeep Singh [Sat, 24 Mar 2012 16:07:50 +0000 (21:37 +0530)]
mfld-pmu: Removing C6 offload specific code on CVT PLatform.

BZ: 25898

C6 offload is not done by PMU Driver on CVT Platform.
It is handled by PUNIT FW on CVT Platform.

Change-Id: I50f5c6a592b9325150d3f833945086e2205a3baf
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/40522
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 agomfld-pmu: [REVERT ME] Do not put SRAM in D0i3 during S0i3/S0i1/S3 on CVT Platform.
Youvedeep Singh [Sat, 24 Mar 2012 15:20:23 +0000 (20:50 +0530)]
mfld-pmu: [REVERT ME] Do not put SRAM in D0i3 during S0i3/S0i1/S3 on CVT Platform.

BZ: 25898

Putting SRAM (lss 12, lss 13) into D0ix caused SRAM Error (F504) on CVT Platform.
So keep it in D0 state untill issue is resolved.
This Work around we are tracking through  BZ 28764.

Change-Id: I029800fd8841cc9abd635c7405fa60dd3deec240
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/40521
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Gross, Mark <mark.gross@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 agoi386_mfld_defconfig: Adding Flag to indicate C6 Offload support in OS.
Youvedeep Singh [Tue, 3 Apr 2012 09:13:52 +0000 (14:43 +0530)]
i386_mfld_defconfig: Adding Flag to indicate C6 Offload support in OS.

BZ: 25898

This Flag indicates if C6 Offload is to be Done by OS.
In case of mfld C6 offload is done by OS.
In case of CVT platform it is handled by PUNIT.
This Flag will be used to port the mfld Code into CVT.

Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Change-Id: I317508c1679664d673f36d219b023c9cdfc66934
Reviewed-on: http://android.intel.com:8080/42056
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 agoRevert "mfld-pmu: [REVERT ME] Enbaling PM ON Cloverview"
Youvedeep Singh [Thu, 22 Mar 2012 15:13:49 +0000 (20:43 +0530)]
Revert "mfld-pmu: [REVERT ME] Enbaling PM ON Cloverview"

BZ: 25901

This reverts commit 7157dace4c5f3680d889b94befe16562f9752b38.
Currently Drivers are merged into CVT platform. Now we are not getting hanged at boot time.
This patch will put the devices into D0ix which do not have Drivers.
This is am importand patch for Power Optimisation.

Change-Id: If59ecb30fa13050603bfa0983b82691c7aa34593
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/39933
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 agoatomisp: add pci id for CLV+ ISP device
Bin Gao [Thu, 29 Mar 2012 06:47:19 +0000 (23:47 -0700)]
atomisp: add pci id for CLV+ ISP device

BZ: 29564

CLV+ pci shim has a new PCI ID for ISP, now enable it from driver.

Change-Id: Ia9d3923ce2956c064392165aabca024660070202
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/41587
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Renganathan, Prabu <prabu.renganathan@intel.com>
Reviewed-by: Chilakala, Mallikarjuna <mallikarjuna.chilakala@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Make battery prints use dev_dbg
Omair Mohammed Abdullah [Tue, 13 Mar 2012 06:14:15 +0000 (11:44 +0530)]
EM/Battery: Make battery prints use dev_dbg

BZ: 16334

Some battery prints come periodically in the dmesg logs and fill up the logs.

Using dev_dbg instead of dev_info will make the prints dynamically configurable
using sysfs, so that they are turned on only when required.

Change-Id: I9882570344ffbd1c9d08ea87484a87b712046035
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/38786
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@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 agoRevert "REVERT ME: Define CONFIG_BOARD_MRFLD_HVP"
Gao, Yunpeng [Sun, 1 Apr 2012 22:32:43 +0000 (15:32 -0700)]
Revert "REVERT ME: Define CONFIG_BOARD_MRFLD_HVP"

BZ: 30074

This reverts commit 79b249f83b76ddad1d37553b5ad15e56e98ba5b7

Change-Id: I5118b93a27645a0e2fb76a9811fe82588fb549f6
Reviewed-on: http://android.intel.com:8080/42069
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 agoAdd Merrifield HVP board type support
Yunpeng Gao [Sun, 1 Apr 2012 07:18:45 +0000 (15:18 +0800)]
Add Merrifield HVP board type support

BZ: 30074

Merrifield HVP board is different from Merrifield VP board in
quite a few components, such as storage, usb, audio and so on.
So it's necessary to add a new macro in kernel board type for
Merrifield HVP.

This patch add a new board type macro CONFIG_BOARD_MRFLD_HVP
for Merrifield HVP board and also creat a new board specific
file board-hvp.c for HVP board specific.

Change-Id: Iaac388518979dae4df7d24062572e926d3d54aed
Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/42033
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Brouat, Claude <claude.brouat@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2][REVERT ME]n_gsm: add dedicated traces in MUX for APIMR issues
Guillaume Lucas [Wed, 28 Mar 2012 14:02:20 +0000 (16:02 +0200)]
[PORT FROM R2][REVERT ME]n_gsm: add dedicated traces in MUX for APIMR issues

BZ: 25958

This patch is an update for the MUX driver in the goal to add
dedicated traces to have input for the APIMR issues.

Change-Id: I040ea3f27ad0816d724b16dc7ecb887051ce065d
Orig-Change-Id: I2c9a660e6c48153dcd680bd6b8db8d1683cc3f7a
Signed-off-by: Guillaume Lucas <guillaumex.lucas@intel.com>
Reviewed-on: http://android.intel.com:8080/41335
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: fix gdc table handling
Jozef Kruger [Thu, 29 Mar 2012 21:51:57 +0000 (14:51 -0700)]
atomisp: fix gdc table handling

BZ: 29626, 29628

This patch fixes the incorrect freeing of the morphing table when GDC_CAC
is enabled. When it gets enabled, we need to set the current morphing table
into the CSS again, not free it. Freeing the table that the CSS was still
using caused memory corruption which luckily only resulted in the table
being rejected but could have also lead to a corrupted table being used.

Change-Id: I67177757f32c6b4f35dd176999c59bd719586d9d
Signed-off-by: Jozef Kruger <jozef.kruger@intel.com>
Reviewed-on: http://android.intel.com:8080/41714
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 agoxHCI: Enable USB HID and storage class driver.
Yu Wang [Sat, 31 Mar 2012 03:25:54 +0000 (11:25 +0800)]
xHCI: Enable USB HID and storage class driver.

BZ: 29957

Support USB3 stick, keyboard and mouse.

Change-Id: If0eddd38987581c03f1371f92d88a34858f1b25e
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/41939
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 agoEnable Merrifield USB3 device support
Jiebing Li [Fri, 30 Mar 2012 15:46:38 +0000 (23:46 +0800)]
Enable Merrifield USB3 device support

BZ: 29924

Add USB3 device controller driver and super speed
support in Mass Storage gadget driver to fully
enable USB3 Mass Storage function.

Change-Id: I98e37ba91b09345f7f1f083efe491c8c7f587a15
Signed-off-by: Jiebing Li <jiebing.li@intel.com>
Reviewed-on: http://android.intel.com:8080/41909
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 agoxHCI: Merrifield support xHCI driver.
Yu Wang [Fri, 30 Mar 2012 09:34:22 +0000 (17:34 +0800)]
xHCI: Merrifield support xHCI driver.

BZ: 28067

Add new files to support dwc xHCI driver. The xHCI registered as platform device
driver which match the platform device registered in dwc otg driver.

Follow PCI xHCI driver, the dwc xHCI driver register two HCD too. So the
dwc xHCI driver is very simliar to common xHCI driver.

Enable DWC OTG driver and xHCI driver in Merrifield default config file.

Change-Id: Ifee09e14faf420679f15da4e3e95d5d8174f8ac3
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Change-Id: I5bbda239407449a6cb4db2d190232ba1f7dd54ee
Reviewed-on: http://android.intel.com:8080/41870
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 agodwc_otg: Provide sysfs interface to user space to switch host mode and
Yu Wang [Fri, 30 Mar 2012 08:08:31 +0000 (16:08 +0800)]
dwc_otg: Provide sysfs interface to user space to switch host mode and
device mode.

BZ: 29834

Because currently there is no workable micro A usb3 cable on market. So
provide sysfs interface to support switch host mode and device mode from
user space.

Usage(commands):
switch to host: echo A > /sys/devices/pci0000:00/0000:00:11:0/otg_id
switch to device: echo A > /sys/devices/pci0000:00/0000:00:11:0/otg_id

Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Change-Id: I60a4cefa72508f6f3dc70abbea5bc8f954eb644b
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/41865
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 agodwc_otg: Support dwc otg driver.
Yu Wang [Mon, 19 Mar 2012 18:51:41 +0000 (02:51 +0800)]
dwc_otg: Support dwc otg driver.

BZ: 28055

Add new otg interfaces in struct gadget and hcd.
Add new files to support dwc otg controller.

Change-Id: Ib17fd180f7126a5f66e2eb47a44ead0257988309
Signed-off-by: Yu Wang <yu.y.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/39621
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: notify charger driver to drive VBUS in CLV
Wu, Hao [Fri, 16 Mar 2012 07:10:25 +0000 (15:10 +0800)]
usb/penwell_otg: notify charger driver to drive VBUS in CLV

BZ: 28638

USB driver will notify charger driver to provide 5v on VBUS line
of USB OTG port in CLV, this is needed for USB Host function.

Change-Id: I151c254e95c89c9a615655911a8de6e7283ba18b
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/40194
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Pandey, Raj <raj.pandey@intel.com>
Reviewed-by: Gross, Mark <mark.gross@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/Battery: Charger driver to support the HOST mode functionality
Pandey Raj [Fri, 30 Mar 2012 08:20:36 +0000 (13:50 +0530)]
EM/Battery: Charger driver to support the HOST mode functionality

BZ: 26199

Whenever an USB OTG device inserted/removed to the Clovertrail
platform bq24192 charger driver should turn the VBUS ON/OFF and
should be able to support the OTG device functionality. Setting
the GPIO direction to input during the VBUS OFF as not doing it
will break the HOST support on VV boards as GPIO 36 is muxed

Change-Id: I65359d9aa8e75acb5c4f49d4d84313931847e04d
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/40182
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@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 agodw-i2c: porting MRFL I2C driver to ICS
Li, Ning [Fri, 30 Mar 2012 08:47:42 +0000 (16:47 +0800)]
dw-i2c: porting MRFL I2C driver to ICS

BZ: 29848

This patch ports MRFL I2C driver to ICS mainline, including two main
changes: issue STOP after each transaction, controller bus index
mechanism change due to incompatible with MFLD & CTP.

Change-Id: I8e3d75eba8b09916fcd00e7611122428a46b3ae5
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/41866
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_mip: update intel mip driver
Shijie Zhang [Wed, 28 Mar 2012 22:39:51 +0000 (06:39 +0800)]
intel_scu_mip: update intel mip driver

BZ: 28902

Base on current IPC driver framework, it is not suitable to put MIP
access code inside IPC bus driver. So we move it to a dedicated mip
driver, to make it more clear in logic.

Change-Id: I2b2392f586d5c5ef17b3498cdfe6e58e396e7ebf
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/41379
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 agoapds990x: Check gpio status after handling IRQ
Leo Yan [Sat, 31 Mar 2012 03:57:16 +0000 (11:57 +0800)]
apds990x: Check gpio status after handling IRQ

BZ: 29351

Since apds990x's interrupt pin is level style and some GPIO controllers
don't support level trigger, we need to check gpio pin value to
see if there is another interupt occurs between the interrupt status
register read and interrupt ack. If that happens, we need to do the
IRQ handle again to avert interrupt missing.

Change-Id: I09dd0049a4a520a92e22ecd1476b688ab56e2864
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/41856
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 agohwmon/l3g4200d_poll.c: extends device enable delay
jli127 [Thu, 29 Mar 2012 08:28:57 +0000 (16:28 +0800)]
hwmon/l3g4200d_poll.c: extends device enable delay

BZ: 29384

The l3g4200d gyro sensor needs longer
delay after enable to generate stable data
in CTP_PR0 devices. This patch add a
longer delay after device enable.

Change-Id: I9bbf375ac301ae1072ba17afee440d69f1cbc78a
Signed-off-by: jli127 <jian.d.li@intel.com>
Reviewed-on: http://android.intel.com:8080/41608
Reviewed-by: Yan, Leo <leo.yan@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 agoEMMC4.5: Enable eMMC 4.5 Large Sector Size feature
Yunpeng Gao [Fri, 30 Mar 2012 02:55:41 +0000 (10:55 +0800)]
EMMC4.5: Enable eMMC 4.5 Large Sector Size feature

BZ: 29677

According to eMMC Spec 4.5, enable large sector size feature
(4KB Native sector) can improve performance for eMMC device
bigger than 256GB.

To enable this feature, it needs to disable the emulation mode of
eMMC device first. Since the emulation mode disable is one-time
operation, it should be done by vendor or FW.

This patch will not disable emulation mode. It will just check
whether the eMMC device emulation mode has been disabled. If true,
then the driver will report kernel block layer with 4KB hardware
sector while keep 512B size block on eMMC bus. This is just what
the eMMC 4.5 Spec requires.

Change-Id: If0306654b49e823bfffc4583f353bf696d07441f
Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/41776
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 agomask the HDMI IRQ after suspend
he bo [Wed, 28 Mar 2012 13:26:51 +0000 (21:26 +0800)]
mask the HDMI IRQ after suspend

BZ: 29566

when HDMI suspend, it should mask the HDMI IRQ, for it will generate
the HDMI plug out interrupt after shutdown the MSIC_VHDMICNT, and
the interrupt will wake up the system frequency if the HDMI cable
inserted.

Change-Id: Id8e9e368db9812ffe059ec1e4c969eeca959cbef
Signed-off-by: he, bo <bo.he@intel.com>
Signed-off-by: Rico, Tang <rico.tang@intel.com>
Reviewed-on: http://android.intel.com:8080/41583
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
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: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoHDMI/PM: Port two HDMI hotplug patches from R2
Geng Xiujun [Thu, 29 Mar 2012 05:52:51 +0000 (13:52 +0800)]
HDMI/PM: Port two HDMI hotplug patches from R2

BZ: 29595

The issue is tracked by BZ 19079, HDMI cable plug/unplugged not detected when
device is in S0 with Screen OFF. Jouni's two patches are ported to R3.

0001-hdmi-Fixes-for-hdmi-hotplug-detection.patch

Remove random control of HDMI rails around gfx driver. Power on is now
done in psb_intel_hdmi.c:mdfld_hdmi_init during boot up.

Global variable hdmi_state is not updated properly when display is
blanked. Fix this by updating hdmi_state in hdmi_do_hotplug_wq.

Also msic_irq should be type IRQF_NO_SUSPEND to ensure hpd interrupts
are not lost.

0002-hdmi-Implement-hdmi-cable-detection.patch

According to MSIC HDMI Integration Guide both, VCC330 and VHDMI, must
be enabled hotplug detection to work. This would cause unacceptable
power leak in S3 state -> Take approach to have hotplug detection
working only when device is not in S3. HDMI cable Plug in/out during
S3 is detected when waking up from S3. This allows powering off VCC330
and VHDMI during S3.

To implement this following changes are done in this patch:

Create dedicated freezeable workqueue for hotplug detection to ensure
ongoing detection is stopped before powering off HDMI rails on
suspend and resumed only when rails are powered on again.

Add mechanism to detect cable plug out during S3 when waking up.

Change-Id: I161928534a3c6b197c0d2ac450e5587ff196a74b
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/41579
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Tong, BoX <box.tong@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: support CTP command mode DSR.
Ke Ai [Fri, 30 Mar 2012 00:06:51 +0000 (08:06 +0800)]
GFX-Display: support CTP command mode DSR.

BZ: 29754

1. update code of DSR mode enter condition
2. for 0x36 memory tranfer direction , it does not every time
need to send, so clear it.
3. fix command mode shift issue ,which lead by 0x70184 mistake
4. improve debug read interface, considering command mode

Change-Id: I49065908b72870d742870ed63c16961c785880b9
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/41720
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 ago[DEBUG] Enable debug features in kernel config
Christophe Guerard [Thu, 8 Mar 2012 13:48:09 +0000 (14:48 +0100)]
[DEBUG] Enable debug features in kernel config

BZ: 29652

Change-Id: Iaf38d9f3f190cb01de167cbeab46e5d5389b3361
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/37996
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Zhang, Dongxing <dongxing.zhang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomisc/apds990x: Fix proximity sensor couldn't wakeup screen issue
lizhuangzhi [Wed, 28 Mar 2012 14:16:04 +0000 (22:16 +0800)]
misc/apds990x: Fix proximity sensor couldn't wakeup screen issue

BZ: 28722

Remove IRQF_TRIGGER_LOW flag when request_threaded_irq, We only need
to use IRQF_TRIGGER_FALLING for interrupt triger, This will avoid
IRQ pending when wakeup system.If we use level trigger mode, after the
system wakeup by IRQ, need to check_irq_resend when resume noirq, the level
irq will be ignored, so irq handler won't run, the irq pending bit never cleared.

Change-Id: I1a646ed5b3a4caff2efd93a82248e034c4fc41a2
Signed-off-by: Zhuangzhi Li <zhuangzhi.li@intel.com>
Reviewed-on: http://android.intel.com:8080/41353
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Onkalo, Samu <samu.onkalo@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agommc: core: rework mmc_mmc_erase_timeout function
Chuanxiao Dong [Thu, 29 Mar 2012 03:47:03 +0000 (11:47 +0800)]
mmc: core: rework mmc_mmc_erase_timeout function

BZ: 29554

The calculation of erase/trim timeout is not excatly the same with
spec. Needs a rework. This patch can fix this.

Change-Id: Ieca799d2f1c181304f5dc57e896114868fe6ed99
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/41560
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 agoCTS failure: android.net.cts.TrafficStatsTest#testTrafficStatsForLocalhost
jli119X [Tue, 27 Mar 2012 00:52:17 +0000 (08:52 +0800)]
CTS failure: android.net.cts.TrafficStatsTest#testTrafficStatsForLocalhost

BZ: 22053

Root cause: We should turn on the ONFIG_UID_STAT switch in arch/x86/configs/i386_mfld_defconfig
to get the specified process's traffic state.

Change-Id: I87bf3e4edc062c2669418b5850ac7da7dcc328c4
Signed-off-by: jli119X <jianpingx.li@intel.com>
Reviewed-on: http://android.intel.com:8080/40768
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
Reviewed-by: Zhang, Hongyu <hongyu.zhang@intel.com>
Reviewed-by: Li, XiaojingX <xiaojingx.li@intel.com>
Tested-by: Li, XiaojingX <xiaojingx.li@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAudio: Add different handler for button_press GPIO
Vaibhav Agarwal [Tue, 20 Mar 2012 19:24:45 +0000 (00:54 +0530)]
Audio: Add different handler for button_press GPIO

BZ: 26377

Currently, only single handler is used for HP_DET,
BUTTON_PRESS interrupt line. However, it should be handled
differently. Thus, no interrupts are reported for button
press event(s).

The solution is to register seperate handlers for different
GPIO lines and handle each event appropriately.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@intel.com>
Change-Id: I8262487d423a10f49d93ca24be7a43cbac894738
Reviewed-on: http://android.intel.com:8080/39834
Reviewed-by: Kp, Jeeja <jeeja.kp@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 agoAudio: Check for jack status during boot time for HP_DET gpio pin only
Vaibhav Agarwal [Mon, 12 Mar 2012 09:51:44 +0000 (15:21 +0530)]
Audio: Check for jack status during boot time for HP_DET gpio pin only

BZ: 27809

During clv_soc_jack_add_gpio(), clv_soc_jack_gpio_detect() is
executed irrespective of GPIO pin. (Headset detection, button press)
This caused, erroneous jack status reported to above layer during
boot time.

The solution is to verify jack status during boot time for HP_DET
gpio pin only.

This patch also contains some changes in clv_machine, cs42l73 driver
to be used as a loadable module.

Change-Id: I943fc6efb40bf16a6ecf2763c7263cbaeec9556c
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@intel.com>
Reviewed-on: http://android.intel.com:8080/39830
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 agoaudio: Added mixer control to select Master/Slave mode for Voice port.
KP, Jeeja [Wed, 14 Mar 2012 23:26:47 +0000 (04:56 +0530)]
audio: Added mixer control to select Master/Slave mode for Voice port.

BZ: 25500

Added mixer control to select Master/Slave mode for Voice port.
For Voip call the Voice port need to be configured in I2S master mode and
for CSV call Voice port need to be configured in I2S Slave mode.
This patch add's mixer control to select Master and Slave Mode for Voice port

Change-Id: I6cd9370a5cd57b0a099906afcdcbe1b79ffbafdc
Signed-off-by: KP, Jeeja <jeeja.kp@intel.com>
Reviewed-on: http://android.intel.com:8080/39088
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@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 agoatomisp: silence false-positive critical KW issue
David Cohen [Wed, 28 Mar 2012 13:50:15 +0000 (16:50 +0300)]
atomisp: silence false-positive critical KW issue

BZ: 24562

KW cannot detect very well kernel code flow. For 3rd time we receive
same false-positive critical KW issue. This patch will trick KW.

Change-Id: Ibdf97d69284d70a62253f510c4e8af5b6212f446
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/41327
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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/atomisp: let pmu driver handle power island states
Jacob Pan [Wed, 11 Jan 2012 06:44:25 +0000 (22:44 -0800)]
v4l/atomisp: let pmu driver handle power island states

BZ: 25359

When atomisp is treated as real PCI device as it should be, ISP
often refuses to transition from D3hot to D0 state. This is likely
caused by an ordering problem where in resume PCI PM core restores
config space prior to calling pci_set_power_state and the driver's
rpm resume function. PMCSR in PCI PM cap is set to D0 from D3 but
refuses to transition possibly due to the fact that power islands
are still down for atomisp.

This patch moves power island control from driver rpm callbacks to
pmu driver such that the action is better coordinated.

Change-Id: I83ac338aa391793a2da12371dd9b6787370cb21d
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/36782
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agohsu: optimize console idle time
Alek Du [Mon, 5 Dec 2011 02:39:19 +0000 (02:39 +0000)]
hsu: optimize console idle time

BZ: 27541

HSU console blocks runtime suspend for 2 seconds event it is not in using.
This patch optimize HSU driver to suspend quickly while HSU console is
inactive.

Change-Id: I610e1430dcbd69f91f407e3ddfa25adb0e100fdb
Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/26047
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-3D: WA: program SGXMP2 clock gating earlier
Yun(Mark) Tu [Thu, 29 Mar 2012 23:25:28 +0000 (16:25 -0700)]
GFX-3D: WA: program SGXMP2 clock gating earlier

BZ:26839

WA in PO: Program SGX544MP master clk gating earlie, or CPU stuck later
before loading SGX driver, root cause is still unkown
Signed-off-by: Yun(Mark) Tu <yun.tu@intel.com>
Change-Id: I921f5f85ca5f98efcaab2aa56225977ee3e9bd9b
Reviewed-on: http://android.intel.com:8080/41718
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Dai, Yu <yu.dai@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: correct the reg setting of MIPIA_PORT_CTRL in driver
Lei Zhang [Tue, 27 Mar 2012 08:19:44 +0000 (16:19 +0800)]
Gfx-Display: correct the reg setting of MIPIA_PORT_CTRL in driver

BZ: 29163

This patch corrects the reg setting of bit 23 in MIPIA_PORT_CTRL. This bit should
be always set to 0 for PNWB0 and forward. The bit defination changed from PNW A0
to B0, but the Spec is not updated to the date. Here in driver correct this bit setting
to 0 as required.

Change-Id: I7bef71ccdeedd349a35259b78c1aab1fca0f3371
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/40888
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: support multi bytes read from panel.
Zhang Dongsheng [Thu, 22 Mar 2012 10:38:34 +0000 (18:38 +0800)]
GFX-Display: support multi bytes read from panel.

BZ: 28604

For read multi bytes, driver need to set Max return size.

Change-Id: I7112f1bebf55ba108c867fff75f3faa667d732c8
Signed-off-by: Ke Ai <ke.ai@intel.com>
Signed-off-ny: Dongsheng zhang<dongsheng.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/40439
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: support send command align to byte.
Ke Ai [Thu, 22 Mar 2012 10:11:57 +0000 (18:11 +0800)]
GFX-Display: support send command align to byte.

BZ: 28302

1.before this patch, the DCS parameters max to 8
which not meet some DCS command necessary.

2.another, before this patch, command send align to
DWORD, which has potential overwrite panel intrel
register problem.

here ,update it more dynamic

Change-Id: I0d6544e7b8127f03d8a1be25dad41c0834ece77c
Signed-off-by: Ke Ai <ke.ai@intel.com>
Reviewed-on: http://android.intel.com:8080/40438
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: enabled Enzo MIPI panel type dynamic detection.
Austin Hu [Thu, 22 Mar 2012 09:02:16 +0000 (17:02 +0800)]
GFX-Display: enabled Enzo MIPI panel type dynamic detection.

BZ: 23437

The patch depends on patch #31959, #31960 and #34457.

Enabled MIPI panel dynamic detection according to firmware GCT data,
so that the unified display driver build could be used for PRx and
Enzo SC1 systems.

Change-Id: I12e05557ccca09a10b03c4381b70a1d266ae2f0e
Signed-off-by: Austin Hu <austin.hu@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: zhang dongming <dongmingx.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/40138
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:dynamic caculate DSI clock according mode
Ke Ai [Tue, 13 Mar 2012 07:41:43 +0000 (15:41 +0800)]
GFX-Display:dynamic caculate DSI clock according mode

BZ: 28373

Before this patch, the DSI lock is hard code. Here update it according format caculate.

Please use the mode->vrefresh to change the DSI lock, as you wanted.

The DPLL will be changed during restore.In restore function, DPLL changed to by pass mode.
by functon mdfld_dsi_controller_init. in fact, this function is not necessary here. Another
place  will take care this.

mdfld_auo_dsi_dbi_restore(struct drm_encoder *encoder)
-------> mdfld_auo_dsi_controller_init(dsi_config, dsi_config->pipe, true);

Change-Id: I90c3f231d8f568a2d7a5d0f35d6608d40536a108
Signed-off-by: Ke Ai <ke.ai@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/39871
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[REVERTME] intel_mid_hsi: workaround for HSI suspend in Redridge
Ramachandra Sudarshan N [Thu, 22 Mar 2012 06:25:00 +0000 (11:55 +0530)]
[REVERTME] intel_mid_hsi: workaround for HSI suspend in Redridge

BZ: 28547

In Redridge HSI is not going into runtime suspend state which
blocks S0ix. This patch provides a workaround till a real fix
is in place

Change-Id: I56797865c6e9128893fc7ef0544e01241ea26e05
Signed-off-by: Sudarshan Ramachandra <sudarshan.n.ramachandra@intel.com>
Reviewed-on: http://android.intel.com:8080/40107
Reviewed-by: Stoltz-douchet, OlivierX <olivierx.stoltz-douchet@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 agowakeup_log: adding the irq action name to output
liu chuansheng [Tue, 27 Mar 2012 09:13:22 +0000 (17:13 +0800)]
wakeup_log: adding the irq action name to output

BZ: 29086

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

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

Change-Id: Ieda5eea7e51d0e98fb1ff213467e86d91fa62d37
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/40767
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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-3D: Add related config to support SGX544 MP2
Yun(Mark) Tu [Wed, 28 Mar 2012 20:47:56 +0000 (13:47 -0700)]
GFX-3D: Add related config to support SGX544 MP2

BZ: 26839

Add DRM_CTP_PR1 into Kconfig, and SGX544MP2's register bar length is
0x10000

Change-Id: I355ca4c08b0cc79877fb1e538c9725f44bbf20ba
Signed-off-by: Yun(Mark) Tu <yun.tu@intel.com>
Reviewed-on: http://android.intel.com:8080/41511
Reviewed-by: Ponnusamy, Siva Prasath <siva.prasath.ponnusamy@intel.com>
Reviewed-by: Dai, Yu <yu.dai@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 agousb/penwell_otg: increase timeout to keep Vbus invalid in idle state.
Wu, Hao [Tue, 27 Mar 2012 14:43:12 +0000 (22:43 +0800)]
usb/penwell_otg: increase timeout to keep Vbus invalid in idle state.

BZ: 28539

This patch workaround resolved the issue VBUS will not stay off for
5s. Also increase A_WAIT_BCON timer for better user experience.

Change-Id: I3c9e24200187081a72425a52ee179019512dde10
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/40951
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Li, Wenji <wenji.li@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/langwell_udc: reset the maxpacket when disable ep
Wu, Hao [Tue, 27 Mar 2012 13:22:01 +0000 (21:22 +0800)]
usb/langwell_udc: reset the maxpacket when disable ep

BZ: 29129

This patch resets the maxpacket value, as everytime the
ep descriptor maxpacketsize will be from ep maxpacket.
If we don't reset the maxpacket, errors will happen when
reassign eps to new gadget functions.

Change-Id: Ice22e8d4b78ba6a967cee6ce5fbecbfc79b42759
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/40943
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Li, Wenji <wenji.li@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago Updating UI to show the battery percentage increase every 60s
Pandey Raj [Wed, 28 Mar 2012 07:39:37 +0000 (13:09 +0530)]
Updating UI to show the battery percentage increase every 60s

BZ: 24777

Whenever charger is connected/removed to the platform the UI should
update the battery percetange increasing/decreasing. So, the UI update
is done using the polling method rightnow. The interrupt based solution
  is WIP and needs to be verified on few platforms before going into
mainline.

Change-Id: Id42349b5ceb07b9e7144a1f2adfd8d9b2442d272
Signed-off-by: Pandey Raj <raj.pandey@intel.com>
Reviewed-on: http://android.intel.com:8080/40679
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 agoGFX: Support for Graphics Device ID change in CLV+
Venkat Jayaraman [Fri, 23 Mar 2012 00:11:18 +0000 (17:11 -0700)]
GFX: Support for Graphics Device ID change in CLV+

BZ: 28684

PCI Device ID for Graphics changed from 0x08C7 in CLV A0 to 0x08C8 in CLV+.
This patch adds support for that change

Change-Id: I8dcbcc3378ea488245a429ddde3399121f60aa31
Signed-off-by: Venkat Jayaraman <venkat.jayaraman@intel.com>
Reviewed-on: http://android.intel.com:8080/40279
Reviewed-by: Renganathan, Prabu <prabu.renganathan@intel.com>
Reviewed-by: Ponnusamy, Siva Prasath <siva.prasath.ponnusamy@intel.com>
Reviewed-by: Dai, Yu <yu.dai@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: Add supports for CMI 720p command mode MIPI display
faxing [Mon, 19 Mar 2012 22:16:47 +0000 (15:16 -0700)]
GFX-DISPLAY: Add supports for CMI 720p command mode MIPI display

BZ: 13525

This patch is for the implementation of CMI 720p command mode. It has been verified.
This is to fix the compiler's warning messages in some source codes under /drv folder. This patch had been verified with CMI video/command modes.
In order to make command mode build, 'CONFIG_SUPPORT_MIPI_H8C7_CMD_DISPLAY=y' needs to be added in /vendor/intel/ctp_pr0/ctp_pr0_diffconfig

Change-Id: Idf06a8761b204f1fe2416279ca87d414a645a353
Signed-off-by: faxing <faxingx.x.lu@intel.com>
Signed-off-by: Lei Zhang <lei.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/40123
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:gadget: fix some trival issues
jzhuan5 [Thu, 15 Mar 2012 18:43:07 +0000 (14:43 -0400)]
usb:gadget: fix some trival issues

BZ: 27844

1. clean up PM callbacks and function calls
2. remove redundant mtp code
3. fix the issue that some _ep or _req are used before being checked

Change-Id: Id39876d798a20edd3ceaa0ad9bf85ba1e2fdbe2c
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/39512
Reviewed-by: Wang, Feng A <feng.a.wang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@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: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: atomisp driver prints too much info
ziyux.jiang [Thu, 15 Mar 2012 09:16:44 +0000 (17:16 +0800)]
atomisp: atomisp driver prints too much info

BZ: 1973

this patch will disable the prints that don't
indicate errors.

Change-Id: If4a62afece6de979e8af36287b5420207f8a45b3
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/39231
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBuild-time specification of correct SGX Core for ctp_pr1 variant, KM.
Dale Stimson [Wed, 14 Mar 2012 21:49:29 +0000 (14:49 -0700)]
Build-time specification of correct SGX Core for ctp_pr1 variant, KM.

BZ: 26839

Change-Id: I081a96cce389fdc94588e6215917ae700498ac39
Signed-off-by: Dale Stimson <dalex.b.stimson@intel.com>
Reviewed-on: http://android.intel.com:8080/39163
Reviewed-by: Ponnusamy, Siva Prasath <siva.prasath.ponnusamy@intel.com>
Reviewed-by: Dai, Yu <yu.dai@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 agoREVERT ME: Define CONFIG_BOARD_MRFLD_HVP
Yunpeng Gao [Fri, 23 Mar 2012 02:52:41 +0000 (10:52 +0800)]
REVERT ME: Define CONFIG_BOARD_MRFLD_HVP

BZ: 27386

Merrifield HVP platform only implemented 1 storage
host controller - eMMC0. Other 3 storage host controllers
are not existed in FPGA at all.

So the storage driver needs to know the board type
and prevent initialization to the 3 non-existen
host controllers if on the HVP board.

Actually, the board type macro CONFIG_BOARD_MRFLD_HVP
should be defined in arch/x86/Kconfig and enabled in
Merrifeld board specific configuration file. But now
these changes are not introduced yet. So this patch
just set it in mmc driver to make sure the storage
driver working on HVP board.

Once the macro defined and enabled in board specific
configuration file, this patch should be reverted.

Change-Id: I40f1aef2bbb6c3336cb64aa7fe2fdc734eec5126
Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/40287
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 agoChange IRQ polarity to active high for Merrifield
Yunpeng Gao [Fri, 23 Mar 2012 02:45:29 +0000 (10:45 +0800)]
Change IRQ polarity to active high for Merrifield

BZ: 27386

Seems the default IRQ polarity setting on ICS mainline
(active low) does not work for Merrifield platform.
At least it prevent the Merrifield storage driver from
working.

This patch change it to active high specificly for
Merrfield platform.

Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Change-Id: I1107f84a707d4caade2308b83c4e2bde3eae4ac0
Reviewed-on: http://android.intel.com:8080/40286
Reviewed-by: Gao, Yunpeng <yunpeng.gao@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 agoEnable mmc driver in Merrfield configuration
Yunpeng Gao [Fri, 23 Mar 2012 02:42:58 +0000 (10:42 +0800)]
Enable mmc driver in Merrfield configuration

BZ: 27386

The current Merrifield default configuration file
disable mmc driver by default. This patch enable it.

Change-Id: Ic3ec76e2f103acc30815faf26b71367382396981
Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/40285
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 agoEnable Merrifield storage support on ICS mainline
Yunpeng Gao [Fri, 23 Mar 2012 02:29:59 +0000 (10:29 +0800)]
Enable Merrifield storage support on ICS mainline

BZ: 27386

Add PCI device ID for Merrifield mmc host controllers
so that they can be recognized by kernel and thus enable
the eMMC/SD/SDIO support for Merrifield platform.

Please note, on Merrifield, all the 4 eMMC/SD/SDIO
host controllers share single PCI device ID but have
different Function number. This is different from
Medfield and Moorestown.

Change-Id: I0da7f0ce7ec77bcf5c8bdbed1a58bccb192ce145
Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/40284
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 ago[PORT FROM R2] GFX-Display: Fix issu of HDMI cannot turn on after end call.
Shreyas Neerebailoor [Fri, 9 Mar 2012 13:19:26 +0000 (18:49 +0530)]
[PORT FROM R2] GFX-Display: Fix issu of HDMI cannot turn on after end call.

BZ: 24745

The issue is because we lost a HOTPLUG event sending to audio driver, this patch
sends HOTPLUG message according to HDMI port status.

Change-Id: Iac845d5bd34bd5bd722dd44cee9dfd09bf823cf0
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/38150
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@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[PORT FROM R2] GFX-Display:fix spurious HDMI plug/unplug messages to audio driver
Shreyas Neerebailoor [Fri, 9 Mar 2012 13:13:51 +0000 (18:43 +0530)]
[PORT FROM R2] GFX-Display:fix spurious HDMI plug/unplug messages to audio driver

BZ: 21584

currently, gfx driver will send HDMI PLUG/UNPLUG message at several
places, one is in hotplug workqueue, the other is in DPMS.

based on analyze, the messgae sended in DPMS is not needed , if
workqueue has make sure send once. so remove it.

Change-Id: Ibe08eca125745de64af992c438b3934c7ab086ec
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/38149
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_mid_pmic: update pmic driver
Shijie Zhang [Mon, 19 Mar 2012 13:18:38 +0000 (21:18 +0800)]
intel_mid_pmic: update pmic driver

BZ: 27883

This driver separates the interface for accessing PMIC device register
function into a independent PMIC driver, making it more clear in logic.

Change-Id: Ib19f6d14911f6f7e8dbcd79d1d8dcc44cadc223e
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/39500
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: remove WA for smb347 charger
Ramakrishna Pallala [Mon, 26 Mar 2012 08:27:53 +0000 (13:57 +0530)]
intel-mid: remove WA for smb347 charger

BZ: 29047

This patch removes the WA for adding device entry
in intel-mid.c as the latest IFWI support device entry
for smb347 charger.

Change-Id: Ic6ee390ae82c181dc51e1e6080a1a790bf1a4232
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/40758
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: Tardy, Pierre <pierre.tardy@intel.com>
Tested-by: Tardy, Pierre <pierre.tardy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "mfld-pmu: [REVERT ME] Ignoring UART0/1/2 on CVT platform to avoid BT Hang."
Philippe Skowronski [Mon, 19 Mar 2012 13:58:51 +0000 (14:58 +0100)]
Revert "mfld-pmu: [REVERT ME] Ignoring UART0/1/2 on CVT platform to avoid BT Hang."

BZ: 28022

Also remove 2 useless CVT defines (USB_DEVICE_ID, SPI1_DEVICE_ID).

This reverts commit 17c26d156ad40a2347c059b7ac74694df501b00e.

Change-Id: I5618142dc1d2a0813e2e93f22fd949e1bb05df23
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/39577
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoREVERT ME: Add D0i2 support in Security driver PCI configuration.
Philippe Skowronski [Mon, 19 Mar 2012 11:57:19 +0000 (12:57 +0100)]
REVERT ME: Add D0i2 support in Security driver PCI configuration.

BZ: 26771

Currently, sep don't have d2_supported flag set in pm capabilities
register, hence the D0i2 to D0i0 transition is prevented by
the pci framework.
PCI configuration for sep should be fixed in IA firmware through BZ24829.

I am re-submitting to make sure theat buildbot does not complain
before I ca approve this patch (M. Allyn 3/21/12)

Change-Id: Ib7349d734dec780afd51903208d62ec271794107
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/39571
Reviewed-by: Allyn, Mark A <mark.a.allyn@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdd Security driver (sep_sec_driver) to CLV.
Philippe Skowronski [Mon, 19 Mar 2012 11:53:11 +0000 (12:53 +0100)]
Add Security driver (sep_sec_driver) to CLV.

BZ: 26771

Re submit to make sure that buildbot okays patch

Change-Id: I072d67944ca75ff65cfb614509a6c3c09604efe8
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/39570
Reviewed-by: Allyn, Mark A <mark.a.allyn@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agolm3554: removing compiler warnings from lm3554
Antti Laakso [Wed, 21 Mar 2012 15:43:46 +0000 (17:43 +0200)]
lm3554: removing compiler warnings from lm3554

BZ:26628

Removing compiler warnings from lm3554

Change-Id: I49be41994e400f71cc4de91fc35749dee8a20047
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39997
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: use GFP_KERNEL on CTP when ISP allocates memory
Tuukka Toivonen [Mon, 26 Mar 2012 08:18:48 +0000 (11:18 +0300)]
atomisp: use GFP_KERNEL on CTP when ISP allocates memory

BZ: 27472

On CTP platform, ISP easily runs out of memory. Use GFP flags on
allocation on CTP which allow kernel to wait for other drivers to free
up memory before failing.

Change-Id: I4f12ccfd85f7318db92b199daffe115c8789621e
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/40731
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: add partial support for getting sensor mode data
Tuukka Toivonen [Thu, 22 Mar 2012 10:06:00 +0000 (12:06 +0200)]
ov8830: add partial support for getting sensor mode data

BZ: 27475

Set sensor mode data to camera mipi info. This data can be then
read using the ATOMISP_IOC_G_SENSOR_MODE_DATA private ioctl.
Currently sensor pixel clock, frame length and width (including
blanking times) are returned which allows 3A to calculate exposure
time.

Change-Id: I2d10cab209b231ccfec98d2a66334e930d8e9f3c
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/40164
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoov8830: add exposure and gain control
Tuukka Toivonen [Fri, 16 Mar 2012 16:06:19 +0000 (18:06 +0200)]
ov8830: add exposure and gain control

BZ: 27475

Add exposure and gain control. Only the private ioctl
ATOMISP_IOC_S_EXPOSURE is supported for now.

Change-Id: I1021db882ee0b3bc3c7c88df9e99a0ec4af7d61c
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/40163
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoRevert "ov8830: adjust manual white balance gains"
Tuukka Toivonen [Tue, 20 Mar 2012 15:52:27 +0000 (17:52 +0200)]
Revert "ov8830: adjust manual white balance gains"

BZ: 27474

This reverts commit fedcb9ef420c8a975fd3932d6280423bbc4f1ee6.

With tuning data, ISP is performing automatic white balance (AWB)
and sensor AWB should be disabled.

Change-Id: Ia27e7711f7ba2b106cfff5ba913a673335e3151f
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/39801
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: fix num_flash_frames logic
Andy Shevchenko [Tue, 13 Mar 2012 07:51:11 +0000 (09:51 +0200)]
atomisp: fix num_flash_frames logic

BZ: 27997

Currently the num_flash_frames is used like a boolean. Let's make it usable on
a sequence of the frames.

A userspace could behave in the same way of following example:
        if (do_use_flash)
video_request_flash(dev, num_flash_frames);
...
do {
do_dqbuf(dev, &buf, ...); /* dequeue buffer */
if (!do_use_flash ||
buf.reserved == ATOMISP_FRAME_STATUS_FLASH_FAILED ||
buf.reserved == ATOMISP_FRAME_STATUS_FLASH_EXPOSED)
break;
do_qbuf(dev, &buf, ...); /* requeue buffer */
} while (1);

This patch also allows to ask for zero flash frames in case when we would like
to abort stalled operation.

Change-Id: I8e693263b7977723fac70769d93d4d90e3ddaaca
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/39568
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 agoaudio:remove mutual exclusion check between codec PCM ports
Ramesh Babu K V [Mon, 19 Mar 2012 06:22:43 +0000 (11:52 +0530)]
audio:remove mutual exclusion check between codec PCM ports

BZ: 24619

Currently the platform driver make sure that either PCM1
or PCM2 is opened at a time. This condition was added to
to make sure that both ports are opened with same
base frequency.

Allow both PCM1 and PCM2 to operate at same time.  However
application has to open both ports with the same base frequency.
If app opens the ports with different base frequency, then
there will be undesirable results.

Driver needs to implement alsa way of handling the frequency constraint
between different dais.

Change-Id: Ic2cc292a0048afac14fea64164f06300eae57653
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/39528
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio:enable single channel speaker support
Ramesh Babu K V [Tue, 13 Mar 2012 06:29:36 +0000 (11:59 +0530)]
audio:enable single channel speaker support

BZ: 26689

Enable single channel speaker support for gilligan island
board. Application will play stereo data to sound card.
LPE firmware will downmix the stereo channels to single
channel and send it on left channel.

This patch sends message to LPE indicating that speaker has
only one channel.  LPE will use this message to construct the
speaker pipeline appropriately.

Change-Id: I9f603e96d33b7840d3163162274c3348b3240e2a
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/38785
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Neerebailoor, ShreyasX <shreyasx.neerebailoor@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Monroy, German <german.monroy@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 agousb:langwell_udc: dump endpoint info if dTD error happens
jzhuan5 [Thu, 15 Mar 2012 19:05:00 +0000 (15:05 -0400)]
usb:langwell_udc: dump endpoint info if dTD error happens

BZ: 27693

Dump endpoint info if dTD error happens to track dTD error issue.
The info will be useful to identify the cause of issue.

Change-Id: I32ec8142c22d3f69655d124948cd056f67b09fee
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/40102
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 agoSet DRM_UNLOCKED flag to TTM synccpu and waitidle ioctl.
Elaine Wang [Thu, 22 Mar 2012 05:42:16 +0000 (13:42 +0800)]
Set DRM_UNLOCKED flag to TTM synccpu and waitidle ioctl.

BZ: 26344

H.264 1080p encoding time is too long, it takes about 30ms to encode one frame.

The graphic sync vblank drm ioctl and video waitidle ioctl might take much time
than others and prevent other drm ioctls from running, which cause encoder performance
drop a lot while decoding a clip and displaying it. This patch set DRM_UNLOCKED flag
to TTM synccpu, waitidle and cmdbuf ioctl and also add reserve buffer object
protection for psb_pl_synccpu_ioctl. The psb_cmdbuf_ioctl function already has
a mutex_lock itself.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
Change-Id: I58f7ecd69c7f828b90a49e23383584a59a351a89
Reviewed-on: http://android.intel.com:8080/40105
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Zeng, Li <li.zeng@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Hu, Jason <jason.hu@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 agoov8830: removing compiler warnings from ov8830
Antti Laakso [Wed, 21 Mar 2012 15:42:09 +0000 (17:42 +0200)]
ov8830: removing compiler warnings from ov8830

BZ:26628

Removing compiler warnings from ov8830

Change-Id: I8ab83595857cb8635d9b0acfb2b708d0843a7432
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39996
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9m114: removing compiler warnings from mt9m114
Antti Laakso [Wed, 21 Mar 2012 15:40:28 +0000 (17:40 +0200)]
mt9m114: removing compiler warnings from mt9m114

BZ:26628

Removing compiler warnings from mt9m114

Change-Id: Ib4fdcabc7b49fa096a07781aa8995f3db970d0af
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39995
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomt9e013: removing compiler warnings from mt9e013
Antti Laakso [Wed, 21 Mar 2012 15:38:25 +0000 (17:38 +0200)]
mt9e013: removing compiler warnings from mt9e013

BZ:26628

Removing compiler warnings from mt9e013

Change-Id: I3983069fe7babaa28ab352cb2b59cc0c32aba888
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39994
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: removing compiler warnings from atomisp
Antti Laakso [Tue, 20 Mar 2012 14:07:22 +0000 (16:07 +0200)]
atomisp: removing compiler warnings from atomisp

BZ:26628

Removing compiler warnings from atomisp

Change-Id: Ic4a6af00668fd4e307cde2b858bc43ad392cf1b3
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39784
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Gupta, Lokesh <lokesh.gupta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: make warnings as errors in atomisp and ov8830
Antti Laakso [Tue, 20 Mar 2012 14:00:42 +0000 (16:00 +0200)]
atomisp: make warnings as errors in atomisp and ov8830

BZ:26628

Enabling -Werror compiler flag to show compiler warnings as errors for atomisp and ov8830 drivers

Change-Id: I4e042cadb8e674eeaaf6013c5b6eec1a32847435
Signed-off-by: Antti Laakso <antti.laakso@intel.com>
Reviewed-on: http://android.intel.com:8080/39783
Reviewed-by: Rose, James <james.rose@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agolm3554: add platform data containing LED flash GPIO numbers
Tuukka Toivonen [Mon, 12 Mar 2012 14:24:01 +0000 (16:24 +0200)]
lm3554: add platform data containing LED flash GPIO numbers

BZ: 21928

lm3554 LED flash driver torch control pin is connected to
different GPIO pin in Black Bay and Red Hook Bay. Create
platform data for the lm3554 containing the correct GPIO pin numbers
and get the GPIO numbers from the SFI table.

Change-Id: I94d041c9c512af32943890b6d9b9e72b8b8c9fc4
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Reviewed-on: http://android.intel.com:8080/33751
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
Tested-by: Wood, Brian J <brian.j.wood@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Vanhala, JariX <jarix.vanhala@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agormi4: Enable upstream rmi touch driver for Clovertrail
Leo Yan [Tue, 20 Mar 2012 01:19:06 +0000 (09:19 +0800)]
rmi4: Enable upstream rmi touch driver for Clovertrail

BZ: 28085

Enable upstream rmi touch driver for Clovertrail

Change-Id: I8c4c7476e929ef2a653c05c9236aff17771cee1f
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/39682
Reviewed-by: Cai, Stanley W <stanley.w.cai@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agortc alarm: disable alarm by disabling IRQ
Frederic Lardeau [Mon, 19 Mar 2012 13:26:57 +0000 (14:26 +0100)]
rtc alarm: disable alarm by disabling IRQ

BZ: 27941

The alarm.c disabled the alarm by setting a disabled alarm in the
past. This is a bad, wrong and inappropriate solution with
the new 3.0 kernel. So, we replace it by a more usual
`rtc_alarm_irq_enable' call. This callback was missing in the RTC mrst
driver so we add it too.

Change-Id: I51a01ae4310479b6d928c7d102ea8c5ede392979
Signed-off-by: Frederic Lardeau <fredericx.lardeau@intel.com>
Reviewed-on: http://android.intel.com:8080/39574
Reviewed-by: Romieu, Benoit <benoit.romieu@intel.com>
Tested-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoUSB: gadget: ADB: Add online checking in adb_write function
Liu, DongxingX [Fri, 16 Mar 2012 09:52:55 +0000 (17:52 +0800)]
USB: gadget: ADB: Add online checking in adb_write function

BZ: 26739

If adb write after unbinding, it will be waiting all the time.
So add online checking to exit the blocking. Or else adb write
will return busy at the second time.

Change-Id: I0fd1bae127fc652e92d89121722f92289ca9e70d
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Signed-off-by: Liu, DongxingX <dongxingx.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/39479
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: retry when SD/MMC reading/writing failed
Chuanxiao Dong [Tue, 20 Mar 2012 04:19:44 +0000 (12:19 +0800)]
mmc: retry when SD/MMC reading/writing failed

BZ: 28559

When SD/MMC encounter error during reading/writing, MMC block
layer will reset SD/MMC card and then have a retry with the failed
command. This can improve the stability of the platform.

Change-Id: I4d9b44db75559dfdbc7627742d8c40c8c2ac2865
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/40110
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 ago[PORT FROM R2] [Display]: fix race between gfx_late_resume and psb_dsp_ioctl.[WORKAROUND]
shi yang [Thu, 1 Mar 2012 08:10:23 +0000 (16:10 +0800)]
[PORT FROM R2] [Display]: fix race between gfx_late_resume and psb_dsp_ioctl.[WORKAROUND]

BZ: 24916

Race condition found between gfx_late_resume and psb_dsp_ioctl. psb_dsp_ioctl will
power down display island B directly whild gfx_late_resume will visit these registers.
This fatal error cause Fabric error.
Add power mutex to protect this code to be safe.

Full code change will be made in R3. and then will make logic more stable.

Change-Id: I64c785875e85de8cd835ee545f5d48ebb3ce8ec1
Orig-Change-Id: Ibab806f1149dc2b0fdc6337049c5ecfccbaed9a8
signed-off-by: He Bo <bo.he@intel.com>
Signed-off-by: shi yang <yang.a.shi@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/40288
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphic: Critical Klocwork issues for GRAPHICS domain
luliuhui [Wed, 21 Mar 2012 06:29:56 +0000 (14:29 +0800)]
Graphic: Critical Klocwork issues for GRAPHICS domain

BZ: 23906

Revise kw issue in round 51 scan in kernel.

Change-Id: I8094b0054d0a91ae37eef89d2c95561eac84c2c7
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/39901
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 agoGraphic: fix mutex starvation issue when changing live wallpaper many times.
Pan Zhenjie [Tue, 20 Mar 2012 04:57:16 +0000 (12:57 +0800)]
Graphic: fix mutex starvation issue when changing live wallpaper many times.

BZ: 26394

PVRSRV_BridgeDispatchKM and PVRDRMUnprivCmd have mutex protection in themselves.
So should use DRM_UNLOCKED.
Wallpaper and surfaceflinger will call drm_ioctl.
If do not use DRM_UNLOCKED, PVRSRV_BridgeDispatchKM will be protected by another mutex.
And it will cause mutex starvation issue.

Change-Id: I060f78db4bfeede32cabe581cd86634ac208091f
Signed-off-by: Pan Zhenjie <zhenjie.pan@intel.com>
Reviewed-on: http://android.intel.com:8080/39710
Reviewed-by: Shi, Yang A <yang.a.shi@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 agomisc/apds990x: Abandon ps/als state once
jli127 [Thu, 22 Mar 2012 06:19:17 +0000 (14:19 +0800)]
misc/apds990x: Abandon ps/als state once

BZ: 27931

PS sensor driver only reports sensor
data if new state is different from
old state. After disable/enable PS sensor
the old state becomes invalid. This patch
abandon ps old state and make driver
reporting data at every interrupt.

Change-Id: If4e402e01e1fe69354175f1180ec4e6e11a50d03
Signed-off-by: jli127 <jian.d.li@intel.com>
Reviewed-on: http://android.intel.com:8080/40106
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Tested-by: 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: emergency pmu interrupt enable request
Illyas Mansoor [Thu, 15 Mar 2012 08:37:02 +0000 (14:07 +0530)]
[PORT FROM R2] mid_pmu: emergency pmu interrupt enable request

BZ: 24993

There is a deadlock condition arising because of D0ix completion
interrupt not being handled in OS, because it is currently in Watch
dog timer interrupt handler and the d0ix completion interrupt handler
is masked and cannot execute.

This causes the SCU PMU interrupt to be disabled until EOI interrupt
for d0ix completion is not reached.

Meanwhile OS has issued another PM command and times out because SCU
didn't handle it, and SCU is waiting for PM EOI interrupt to enable
PM interrupts.

We fix this by having a simple protocol between SCU and PMU driver
to write a special command into a specified location that is periodically
checked by SCU, if the command is set SCU will enalbe PM interrupts
thus resolving the deadlock.

Acknoweldgements:
Onkalo, Samu <samu.onkalo@intel.com>, for root causing this issue and proposing
a solution.

Change-Id: I5d39558be03affe8e3900ff7985bfb25a54f4f68
Orig-Change-Id: I28fa561fd9a87251b3a10fcba77739ccdf72829b
Reported-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Tested-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/39447
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] mid_pmu: remove sram save/restore from pmu
Illyas Mansoor [Fri, 17 Feb 2012 03:21:29 +0000 (08:51 +0530)]
[PORT FROM R2] mid_pmu: remove sram save/restore from pmu

BZ: 24157

Removing sram save/restore from PMU driver code, since
now it is taken care in SCU itself.

Change-Id: Ic98d68506bfaf39ed478de5d2511a4e1cbe30004
Orig-Change-Id: Ib144c060bf9a321e4329083cc85f9279357ea59c
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/39428
Reviewed-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_idle: Power traces should trace sleep state entry
John Mathew [Fri, 16 Mar 2012 13:31:23 +0000 (15:31 +0200)]
intel_idle: Power traces should trace sleep state entry

BZ: 27776

Currently the power traces use the value of dev->last_state
variable which is updated after the sleep state is exited.
Move the traces to before sleep entry, so that the total
time spent in a sleep state can be displayed correclty by
tools like pytimechart.

Change-Id: If518e63a6018fdb7aa552bcdfe5d8f61aa974164
Signed-off-by: John Mathew <john.mathew@intel.com>
Reviewed-on: http://android.intel.com:8080/39420
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoremove SPI1 runtime PM workaround
Bin Yang [Thu, 22 Mar 2012 07:49:41 +0000 (15:49 +0800)]
remove SPI1 runtime PM workaround

BZ: 25894

Runtime PM issues of SPI1 had been fixed already. Remove
this workaround.

Change-Id: Ib0dc7b47f39dddc98b9806e015df0514e31ea5a4
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/39367
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoKeep SPI power on during booting
Bin Yang [Thu, 22 Mar 2012 07:47:54 +0000 (15:47 +0800)]
Keep SPI power on during booting

BZ: 25894

if SPI UART is set as default console and earlyprintk is enabled,
it cannot shutdown SPI controller during booting.

Change-Id: If8d305cbc276ce26fe0f15ad5265e859b24388ad
Signed-off-by: Bin Yang <bin.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/40121
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 agomisc/apds990x: Add interrupt threshold to ALS sensor
jli127 [Fri, 16 Mar 2012 07:08:09 +0000 (15:08 +0800)]
misc/apds990x: Add interrupt threshold to ALS sensor

BZ: 27698

ALS sensor reports interrupt even no output
data change. This patch add interrupt threshold
to ALS sensor, so sensor only reports interrupt
when report data changes.

Change-Id: I3d3cbb11ff0a8b36e1ba2f759b4adcefae6dbb10
Signed-off-by: jli127 <jian.d.li@intel.com>
Reviewed-on: http://android.intel.com:8080/39361
Reviewed-by: Yan, Leo <leo.yan@intel.com>
Reviewed-by: Liu, Hong <hong.liu@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: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoBinder: Fix crashes when sharing a binder file between processes
Fei Yang [Tue, 20 Mar 2012 20:42:29 +0000 (13:42 -0700)]
Binder: Fix crashes when sharing a binder file between processes

BZ:28299

Opening the binder driver and sharing the file returned with
other processes (e.g. by calling fork) can crash the kernel.
Prevent these crashes with the following changes:
- Add a mutex to protect against two processes mmapping the
  same binder_proc.
- After locking mmap_sem, check that the vma we want to access
  (still) points to the same mm_struct.
- Use proc->tsk instead of current to get the files struct since
  this is where we get the rlimit from.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I53c779fb14e3fb257e12b672229037969f99d19d
Reviewed-on: http://android.intel.com:8080/39850
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 agoMMAP min address setting
sathyanarayanan kuppuswamy [Tue, 20 Mar 2012 20:36:05 +0000 (13:36 -0700)]
MMAP min address setting

BZ:27880

Some application that contains ARM executable like Skype will
require to map the address at 0x8000 which will be refused under
the config 65536.So changing it back to 4096.

Change-Id: Ie8c99e9b80b7d64b6f2b5204d77679b22b251eb9
Signed-off-by: sathyanarayanan kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-on: http://android.intel.com:8080/39835
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 agoboard-redridge.c: Enable compass
Laurent FERT [Wed, 21 Mar 2012 17:15:09 +0000 (18:15 +0100)]
board-redridge.c: Enable compass

BZ: 28474

Align board-redridge.c with board-blackbay.c to enable compass.

Change-Id: I9fe253ea7aface76e7990a1529a5b1c2d6bc9ef8
Signed-off-by: Laurent FERT <laurentx.fert@intel.com>
Reviewed-on: http://android.intel.com:8080/40007
Reviewed-by: Continente, Christophe <christophe.continente@intel.com>
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
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 agoGFX-Display: Enable CABC on TMD panel
Anand Bodas [Mon, 19 Mar 2012 05:22:19 +0000 (10:52 +0530)]
GFX-Display: Enable CABC on TMD panel

BZ: 13624

Enable CABC on TMD by setting appropriate panel registers.

Change-Id: I8a0ff0b72ee2363fbb2af2204ee819b4498b2b54
Signed-off-by: Anand Bodas <anand.v.bodas@intel.com>
Reviewed-on: http://android.intel.com:8080/39501
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Ouyang, Lily <lily.ouyang@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[PORT FROM R2]audio: sn95029: Fix headset detect issue in a calling
lizhuangzhi [Thu, 1 Mar 2012 06:43:34 +0000 (14:43 +0800)]
[PORT FROM R2]audio: sn95029: Fix headset detect issue in a calling

BZ: 16131

Case1: cancel_delayed_work in sn95031_jack_wq will casue some useful work
removed when insert headset,it will lose the last headset status update and
report to headsetObserver sometimes.

Case2: Clear the jack_wq->intr_id flag also will cause headset detect error,
when jack detect wq running,the last interrupt occur and schedule the work
queue, then jack_wq->intr_id was cleared by current wq,after 250ms passed,
the wq will first check the jack_wq->intr_id=0, then report headset remove
event to user space.

Fix Case1&Case2 issues.

Change-Id: Ibb719ff0074031cacd97cc4af527582c53f1063e
old-Change-Id: I7f90d877cf308f7accbb3f1c13bb975e56afb351
Signed-off-by: Zhuangzhi Li <zhuangzhi.li@intel.com>
Reviewed-on: http://android.intel.com:8080/39712
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Gross, Mark <mark.gross@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>