kernel/kernel-mfld-blackbay.git
12 years agogcc4.6: TEMPORARY fix for enums compare issue
Pavel Chupin [Thu, 26 Apr 2012 13:30:49 +0000 (17:30 +0400)]
gcc4.6: TEMPORARY fix for enums compare issue

BZ: 33304

There is different types of enums comparison 'enum atomisp_acc_arg_type'
and 'enum sh_css_acc_arg_type' and gcc4.6 produce a warning which is
treated as error. This is TEMPORARY patch to remove the warning until
these enums fixed.

Change-Id: Ib18d29a596aae3c5a93b436ffa490f6a8a5b2c49
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Reviewed-on: http://android.intel.com:8080/45961
Reviewed-by: Lu, Hongjiu <hongjiu.lu@intel.com>
Reviewed-by: Yin, Fengwei <fengwei.yin@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 agousb/ehci-pci: remove 200mA current limitation for DV
Wu, Hao [Wed, 25 Apr 2012 14:00:53 +0000 (22:00 +0800)]
usb/ehci-pci: remove 200mA current limitation for DV

BZ: 33514

As in DV, we can support 500mA so the 200mA budget limitation
should be removed.

Change-Id: If70b2aa4a12736229ef66bd608eba0bfd3a0b48c
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/46054
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Port from R2]: flush hdmi port register
Geng Xiujun [Fri, 20 Apr 2012 03:06:30 +0000 (11:06 +0800)]
[Port from R2]: flush hdmi port register

BZ: 33780

flush hdmi port register after writing to make it take effect

Change-Id: I8555b024cc5f66698cae459d7267c44d06bae4ea
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Signed-off-by: Seema Pandit <seema.pandit@intel.com>
Reviewed-on: http://android.intel.com:8080/46460
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 agoFix issue with HDMI audio quality is poor.
Seema Pandit [Thu, 26 Apr 2012 15:42:16 +0000 (08:42 -0700)]
Fix issue with HDMI audio quality is poor.

BZ: 33536

Remove the hardcoded fp and dpll values for HDMI clock, to fix the
issue with HDMI audio quality, being choppy. These values are
calculated by the driver.

Change-Id: I1c13473f3a8e4874600f3087fb755020842f5e92
Signed-off-by: Seema Pandit <seema.pandit@intel.com>
Reviewed-on: http://android.intel.com:8080/46455
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: Dai, Yu <yu.dai@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 agoIMG code drop 840215 plus local changes (new kernel part)
Dale Stimson [Thu, 15 Mar 2012 23:39:17 +0000 (16:39 -0700)]
IMG code drop 840215 plus local changes (new kernel part)

BZ: 27656

Change-Id: I65467fcfd54e2ff51b58022cc1dbf3d6fb4c6994
Signed-off-by: Dale Stimson <dale.b.stimson@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/46344
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_ipc: remove PM command synchronization
Illyas Mansoor [Tue, 17 Apr 2012 09:05:41 +0000 (14:35 +0530)]
intel_scu_ipc: remove PM command synchronization

BZ: 32160

In R2 we had added serialization of IPC and PM (s0ix/lpmp3/d0ix) commands
since there were fabric errors, those issues were root caused and fixed in
SCU hence we no longer require this synchronization.

Also adding synchronization may adversly affect IPC communication, since
WatchDog keepalive is sent thru and IPC command and if s0ix is in progress the
watchdog keep alive timer may get blocked till the s0ix command gets completed
and this could take couple of seconds, by which time watch dog could get
triggerred.

Hence removing this synchronization.

Change-Id: I52b91d5c84ee8cc380d13f63cc46fa2017e4e4f2
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/43669
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 agomisc/apds990x: Reduce the IR factor when CH1/CH0 ratio is abnormal
Leo Yan [Thu, 26 Apr 2012 00:54:36 +0000 (08:54 +0800)]
misc/apds990x: Reduce the IR factor when CH1/CH0 ratio is abnormal

BZ: 31055 31056

The lux equation in the apds990x datasheet assume the light source
is far from the sensor and CH1/CH0 ratio is always below than 0.3.
If the ratio is out of range, it means an abnormal incandescent light
source is very close to the sensor. In this case, the lux equation
doesn't work and we need to reduce the IR factor to get the correct
lux value.

Change-Id: I59b967bf775fbb3a46591728952688811c6347eb
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/46184
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Tang, HaifengX <haifengx.tang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMt9e013: improve 720P video to 30fps and correct still capture to 3fps on lexington
shuguang gong [Tue, 24 Apr 2012 16:38:37 +0000 (12:38 -0400)]
Mt9e013: improve 720P video to 30fps and correct still capture to 3fps on lexington

BZ: 32164

When ISP works at 200MHz on Lexington, Current sensor setting cannot
achieve 30fps for 720p video recording and still capture is not fixed to 3fps.
This patch will make 720p video recording run at 30fps and still capture run at 3fps.

Depend on patch: 43702

Change-Id: If344fda0f13a0221286a49b1e1d9b2e25b5bd3a2
Signed-off-by: shuguang gong <shuguang.gong@intel.com>
Reviewed-on: http://android.intel.com:8080/45276
Reviewed-by: Jiang, ZiyuX <ziyux.jiang@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@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 agoMt9e013: correct fps for different resolutions of different settings.
Tao Jing [Tue, 17 Apr 2012 11:03:53 +0000 (19:03 +0800)]
Mt9e013: correct fps for different resolutions of different settings.

BZ: 31575

correct the fps for different resolutions of different settings.

Change-Id: I3dcc05b11be3cadee5d11b2fac8bacec132ecdb1
Signed-off-by: Tao Jing <jing.tao@intel.com>
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/43702
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Gong, Shuguang <shuguang.gong@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 agousb/penwell_otg: update DCD interval and timeout in charger detection flow
Wu, Hao [Tue, 24 Apr 2012 13:49:41 +0000 (21:49 +0800)]
usb/penwell_otg: update DCD interval and timeout in charger detection flow

BZ: 33161

Update DCD timeout and interval to meet Battery Charging 1.2 Spec
requirement.

Change-Id: I1386cf835eb72f7267f9019e55771478776fb907
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/45939
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: stop ulpi polling in device suspended mode
Wu, Hao [Tue, 24 Apr 2012 11:03:10 +0000 (19:03 +0800)]
usb/penwell_otg: stop ulpi polling in device suspended mode

BZ: 33241

The 11897 workaround patch introduced a problem that keeps
ulpi polling even if the device is in suspended mode, which
results in timeout and unexpected reset to SW/HW. This patch
is ported from OTC branch.

Change-Id: Ib42c1769926e02f7407c0ee5961998d68aa2a20d
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/45917
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Port from R2] usb/penwell_otg: fix ULPI polling error
Wu, Hao [Tue, 24 Apr 2012 10:38:55 +0000 (18:38 +0800)]
[Port from R2] usb/penwell_otg: fix ULPI polling error

BZ: 33238

Write 0x16 register after starting ULPI polling. This will
make sure even if 0x16 register was changed by unknown
reason before ULPI polling, it never causes reseting
controler all the time.

Change-Id: I47e2c613c1d7ea5754558d593bc37a0f9739f4de
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/45914
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:langwell_udc: fix pullup issue
jzhuan5 [Sun, 15 Apr 2012 17:09:37 +0000 (13:09 -0400)]
usb:langwell_udc: fix pullup issue

BZ: 32720

Pullup shouldn't be connected/disconnected if dev->stopped is set which indicates interrupt
is not enabled and the controller maybe in a low power state.

Pullup should be connected if and only if the condition
dev->driver && dev->softconnected && dev->vbus_active && !dev->stopped is true.
dev->driver && dev->softconnected indicates the gadget want to connect pullup and
dev->vbus_active && !dev->stopped indicates uB is plugged in, in which state
vbus is active and controller is powered in device mode.
One related issue is in intel_mid_start_peripheral, pullup can be connected even
dev->softconnected is 0.

Solution:
1. add langwell_udc_pullup() to manage pullup connection/disconnection.
2. Check dev->stopped in langwell_udc_pullup(). If it's set, do nothing.
3. Check condition "dev->driver && dev->softconnected && dev->vbus_active && !dev->stopped"
in langwell_udc_pullup() before connecting pullup.
4. Every time when dev->driver/dev->softconnected/dev->vbus_active/dev->stopped changes,
langwell_udc_pullup should be called to connect pullup whenever is possible or disconnect
if necessary.

Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Change-Id: Idf4ba0a6ab200c66484146c0047073dbb98896bd
Reviewed-on: http://android.intel.com:8080/43514
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 agointel_mid_hsi.c: improving hsi_pm_runtime_get_sync and start tx synchronicity
Olivier Stoltz Douchet [Tue, 27 Mar 2012 14:42:33 +0000 (16:42 +0200)]
intel_mid_hsi.c: improving hsi_pm_runtime_get_sync and start tx synchronicity

BZ: 30613

The purpose of this patch is two fold: making the hsi_pm_runtime_get_sync()
function call synchronous to the PM management as well as start TX callback
functions.

This patch is actually waiting for the hsi_pm_resume() callback event
completion in the hsi_pm_runtime_get_sync() and start_tx() functions to ensure
that the IP is actually resumed upon the completion of these functions. Relying
solely on the wake_lock and pm_runtime_get_sync is not sufficient for this
purpose because of some race conditions between the Linux PM runtime state
machine and Android's PM state machine.

The TX path of the FFL modem protocol driver has been updated to manage the
synchronous start TX call. Since the TTY write function can be called in non
sleepable contexts, the start TX is actually called in a separate work, outside
the ffl_tty_write() function. Using the single threaded TX worqueue to manage
the start TX and stop TX is also serialiasing this management and easing the
stop TX to start TX pulse delay implementation.

This patch is also the opportunity to switch to a 3-workqueue modem protocol
implementation instead of the exisiting 5 workqueues (without considering the
start TX and stop TX workqueue), which is making much more sense.

Change-Id: I414757e6312c6648f6007ad17ac160bde758441b
Signed-off-by: Olivier Stoltz Douchet <olivierx.stoltz-douchet@intel.com>
Reviewed-on: http://android.intel.com:8080/40948
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lucas, Guillaume <guillaume.lucas@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_ipcutil: re-arch IPC ioctl struct
Shijie Zhang [Wed, 25 Apr 2012 11:37:38 +0000 (19:37 +0800)]
intel_scu_ipcutil: re-arch IPC ioctl struct

BZ: 33355

Userspace IPC ioctl is using self defined command and struct, it will
cause inconsistent problem if ethier kernel or userspace side is making
some changes. Correct way should be exporting the kernel ioctl command
and struct to the userspace with kernel header file to keep them
consisent. This patch fixes this problem.

Change-Id: Icdc6e51f254279fba980935610e837bf6208f12b
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/46003
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Li, Ning <ning.li@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_ipc: move osc clock code from SCU IPC core driver
Shijie Zhang [Tue, 24 Apr 2012 17:09:23 +0000 (01:09 +0800)]
intel_scu_ipc: move osc clock code from SCU IPC core driver

BZ: 32907

Based on current drvier framework, it's not suitable to leave OSC CLK
related code inside the IPC core driver. Move it to intel_scu_ipcutil.

Change-Id: I02981dd1e8f9fea7b521f6d1d07feca0c6dd492e
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/45901
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdd user stack into /proc/xxx/stack.
xiaobing tu [Fri, 13 Apr 2012 02:37:00 +0000 (10:37 +0800)]
Add user stack into /proc/xxx/stack.

BZ 32868

We often need user space stack call-chain information when debugging hard issues.
Here is a prototype and it could work well on X86 architecture.
The idea is to output user space stack call-chain from /proc/xxx/stack, currently,
/proc/xxx/stack only output kernel stack call chain. We extend it to output user
space call chain With hex format.In user space, we implement a backtrace tool, it
read kernel space and user space stack call chain from /proc/xxx/stack, and converts
 the hex format into symbols., we tested it on i386/i686 and x86-64. It works well.

kernel patch for this tool
Signed-off-by: xiaobing tu <xiaobing.tu@intel.com>
Change-Id: I009c46282a7abc7fdf3f7cd34d4849095f79d50d
Reviewed-on: http://android.intel.com:8080/43335
Reviewed-by: Tu, Xiaobing <xiaobing.tu@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@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 agoatomisp: fix initialization when motor is not embedded to sensor
David Cohen [Sun, 22 Apr 2012 09:23:55 +0000 (12:23 +0300)]
atomisp: fix initialization when motor is not embedded to sensor

BZ: 27947

When motor has own I2C controler, atomisp driver needs 2 fix:
 - Atomisp needs to create a relationship between motor and its related sensor
 - Sensor name needs to contain motor to inform upper 3A library

Change-Id: I82eabfa127091169eed2c7441f1910e7629e0140
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/44340
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@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: add ioctl to retrieve motor internal memory data
David Cohen [Fri, 20 Apr 2012 14:47:45 +0000 (17:47 +0300)]
atomisp: add ioctl to retrieve motor internal memory data

BZ: 27947

If external lens/motor/actuator driver has data in internal memory to be
retrieved by userspace, this ioctl must be used.

Change-Id: Ib34f7ce62ef13ad427afe9c07f932bd04f6af15a
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/44150
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: enable atomisp driver in mrfl config file
Tao Jing [Mon, 26 Mar 2012 09:33:14 +0000 (17:33 +0800)]
atomisp: enable atomisp driver in mrfl config file

BZ: 16478

Change-Id: I46661bd3c78ebb42ca0e159486dd2eb09e163a98
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/40863
Reviewed-by: Yang, HaipingX <haipingx.yang@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: port css codebase to support mrfl vp
Tao Jing [Thu, 22 Mar 2012 07:12:11 +0000 (15:12 +0800)]
atomisp: port css codebase to support mrfl vp

BZ: 16478

Change-Id: I35b9bccc0de46f9d6daf09febdbe6894a6342d07
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/40862
Reviewed-by: Guo, Yuanqing <yuanqing.guo@intel.com>
Reviewed-by: Wezelenburg, Mark <mark.wezelenburg@intel.com>
Reviewed-by: Yang, HaipingX <haipingx.yang@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: porting to support mrfld vp
Tao Jing [Thu, 22 Mar 2012 02:52:29 +0000 (10:52 +0800)]
atomisp: porting to support mrfld vp

BZ: 16478

Change-Id: I0e2b1bdbd4b5f5e2a133fa14417452250c086080
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/40861
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 agokernel-drm: remove duplicated down_read to mmap_sem and add DRM_UNLOCKED flag for...
Fei Jiang [Thu, 19 Apr 2012 15:05:29 +0000 (23:05 +0800)]
kernel-drm: remove duplicated down_read to mmap_sem and add DRM_UNLOCKED flag for all video related ioctls.

BZ: 29375

DRM big mutex has big impact to the video performance and maybe trigger dead lock issue.

Change-Id: I7943f113009ae5d9a6206c4bf23728d06c2831af
Reviewed-on: http://android.intel.com:8080/44098
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
12 years ago[display]: correct dsi-lvds bridge register setting
Geng Xiujun [Wed, 25 Apr 2012 09:49:30 +0000 (17:49 +0800)]
[display]: correct dsi-lvds bridge register setting

BZ: 32733

correct bridge register setting per spec.

Change-Id: I41836c3e4ed4bdd3ac8734d0c0079ff5e089f7bd
Signed-off-by: Geng Xiujun <xiujun.geng@intel.com>
Reviewed-on: http://android.intel.com:8080/46027
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: Display Brightness settings ignored after bootup
Hitesh K. Patel [Mon, 16 Apr 2012 20:32:15 +0000 (13:32 -0700)]
GFX-Display: Display Brightness settings ignored after bootup

BZ: 33396

For Enzo Panel we need to make sure we set the display status
variable correctly.

Change-Id: Ie6104509f4d8cde5ad3f8b7aa8f3252597ccd2ed
Signed-off-by: Hitesh K. Patel <hitesh.k.patel@intel.com>
Reviewed-on: http://android.intel.com:8080/46007
Reviewed-by: Ai, Ke <ke.ai@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGFX-Display: Enable dynamic CABC for TMD
Anand Bodas [Tue, 17 Apr 2012 11:20:56 +0000 (16:50 +0530)]
GFX-Display: Enable dynamic CABC for TMD

BZ: 32194

This patch makes CABC dynamic depending on brightness levels.
For higher levels, higher savings are implemented for max
savings. For brightness below 50%, CABC is turned off.

Change-Id: I40283774a9e90a2dbd3822f14d8a09fe5c8521e2
Signed-off-by: Anand Bodas <anand.v.bodas@intel.com>
Signed-off-by: Tong, Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/43708
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Charger: Support for USB CDP type Charger Detection.
Vinay Hegde [Fri, 20 Apr 2012 18:53:42 +0000 (00:23 +0530)]
EM/Charger: Support for USB CDP type Charger Detection.

BZ: 29469

This patch adds support for USB CDP type detection in
the Charger driver.

Change-Id: Ie16abb4fea4e614ebd24d3066ddd5282561add20
Signed-off-by: Vinay Hegde <vinayx.hegde.kota@intel.com>
Reviewed-on: http://android.intel.com:8080/43069
Reviewed-by: Pandey, Raj <raj.pandey@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Charger: UI should display discharging when connected as USB HOST
Vinay Hegde [Fri, 20 Apr 2012 18:49:02 +0000 (00:19 +0530)]
EM/Charger: UI should display discharging when connected as USB HOST

BZ: 30089

This patch ensures that when the board is connected to the USB in
Host mode it doesn't charge the battery and updates the battery
status as discharging.

Change-Id: I28c107c60bf5a7eb5f58ee2ea83e435e3e6bb2a3
Signed-off-by: Vinay Hegde <vinayx.hegde.kota@intel.com>
Reviewed-on: http://android.intel.com:8080/44135
Reviewed-by: Gurusamy, MarichamyX <marichamyx.gurusamy@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 ago[Revert Me] Option to choose between HSI and Standby on CVT platform through cmdline.
Vishwesh M Rudramuni [Tue, 10 Apr 2012 05:18:00 +0000 (10:48 +0530)]
[Revert Me] Option to choose between HSI and Standby on CVT platform through cmdline.

BZ: 33285

Currently HSI Modem 7060(BZ# 28529) is having a issue on CVT Platform and
it will not go to Low Power Mode. Standby will not work if HSI is enabled.
So HSI and Standby can be mutually exclusive.
So This patch provides the option to choose between Standby/HSI based on enable_stadby 1/0.
HSI Bug is Trached seprately through 28529.

Change-Id: Iba08d8f27166a64d8924268a5faa35ee1bcf5a28
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Signed-off-by: Dyut K Sil <dyut.k.sil@intel.com>
Reviewed-on: http://android.intel.com:8080/45940
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PATCH 7] i386_ctp_defconfig: Enabling PM for CLV
Vishwesh M Rudramuni [Fri, 23 Mar 2012 10:38:22 +0000 (16:08 +0530)]
[PATCH 7] i386_ctp_defconfig: Enabling PM for CLV

BZ:26897

This patch provides the support for enabling PM for cloverview
Platform.

Change-Id: If8d52dfac147b10d33478ca34dd8a4a276823f1c
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Signed-off-by: Dyut K Sil <dyut.k.sil@intel.com>
Reviewed-on: http://android.intel.com:8080/40189
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 ago[PATCH 6] intel_soc_clv: Adding PM support for CLV
Vishwesh M Rudramuni [Fri, 23 Mar 2012 10:35:00 +0000 (16:05 +0530)]
[PATCH 6] intel_soc_clv: Adding PM support for CLV

BZ: 26897

This patch enables PM support for cloverview platform.

Change-Id: I1c42e8a00df1ea11e6410011902bfd371bf51098
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Signed-off-by: Dyut K Sil <dyut.k.sil@intel.com>
Reviewed-on: http://android.intel.com:8080/40188
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 ago[PATCH 5] i386_mfld_defconfig: Enabled MDLFD PM
Vishwesh M Rudramuni [Wed, 4 Apr 2012 20:38:56 +0000 (02:08 +0530)]
[PATCH 5] i386_mfld_defconfig: Enabled MDLFD PM

BZ:26897

This patch enables the Medfield PMU driver in the config.

Change-Id: I226187d577b1f551632ad1305606d00b6994f68c
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Signed-off-by: Dyut K Sil <dyut.k.sil@intel.com>
Reviewed-on: http://android.intel.com:8080/40187
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 ago[PATCH 4] intel_soc_mdfld: PM driver for Medfield
Vishwesh M Rudramuni [Fri, 23 Mar 2012 10:18:32 +0000 (15:48 +0530)]
[PATCH 4] intel_soc_mdfld: PM driver for Medfield

BZ:26897

intel_soc_mdfld.c has code which is Medfield specfic
This patch has callbacks for pmu_power_off and
minor fixes in coretemp.c and sdhci-pci.c

Change-Id: I54bfc49c58c65b5eaa19e0525744fc5d1aea09cf
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Signed-off-by: Dyut K Sil <dyut.k.sil@intel.com>
Reviewed-on: http://android.intel.com:8080/40185
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 ago[PATCH 3] intel_idle: Idle driver changes for PM
Vishwesh M Rudramuni [Tue, 27 Mar 2012 06:58:33 +0000 (12:28 +0530)]
[PATCH 3] intel_idle: Idle driver changes for PM

BZ:26897

This patch has PM specific changes to idle driver catering to all
Platforms.

Change-Id: I4c8499c127afd18fbf0e64154428ebd5a5cbe612
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/40186
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 ago[PATCH 2] intel_soc_pm: Refactored code for pm
Vishwesh M Rudramuni [Thu, 29 Mar 2012 07:30:35 +0000 (13:00 +0530)]
[PATCH 2] intel_soc_pm: Refactored code for pm

BZ:26897

Power Management driver after code refactoring the existing pmu/idle driver
to have a single driver supporting future platforms like CLV
& Tangier.

intel_soc_pmu.c has code mostly interfacing pmu's in North Complex &
South Complex. Mostly platform independant code.

intel_soc_pm_debug.c for mostly debug related code.

intel_soc_pci.c for pci related functions.

Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Signed-off-by: Dyut K Sil <dyut.k.sil@intel.com>
Change-Id: Id57714bbdf426dee451d0c7c062323cd91e2cdf7
Reviewed-on: http://android.intel.com:8080/40184
Reviewed-by: Rudramuni, Vishwesh M <vishwesh.m.rudramuni@intel.com>
Reviewed-by: Krishnakumar, Nivedha <nivedha.krishnakumar@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 ago[PATCH 1] mid_pmu: Removing the exisiting PMU Drv
Vishwesh M Rudramuni [Thu, 29 Mar 2012 06:58:53 +0000 (12:28 +0530)]
[PATCH 1] mid_pmu: Removing the exisiting PMU Drv

BZ:26897

This patch removes the exisitng MFLD pmu drivers.

Change-Id: I30247a734ea10bb3ff8c4e62168fb344633d2c8e
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Nivedha Krishnakumar <nivedha.krishnakumar@intel.com>
Signed-off-by: Ramachandra Sudarshan N <sudarshan.n.ramachandra@intel.com>
Signed-off-by: Youvedeep Singh <youvedeep.singh@intel.com>
Signed-off-by: Dyut K Sil <dyut.k.sil@intel.com>
Reviewed-on: http://android.intel.com:8080/35951
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Yang, Fei <fei.yang@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 agon_gsm.c: Enhancement of gsm_mux TX/RX buf allocate
xiaojin [Thu, 19 Apr 2012 00:49:38 +0000 (08:49 +0800)]
n_gsm.c: Enhancement of gsm_mux TX/RX buf allocate

BZ: 28510

In LEX platform, we found huge kmalloc fail if repeated gsmld open and close
that trigged by stmd(userspace) or modem reset.

LEX memory size is 512M, only the half of Medfield.

Enhancement:
1. gsm_mux buf/txframe allocation moved to gsmld_config, according to mtu/mru of cfg
2. if encoding ==0, txframe allocate one mtu; otherwise allocate double mtu
3. if allocation size less than PAGE, use kmalloc; otherwise use vmalloc

This patch is part of the solution to TX/RX buffer allocate fail.
We also need to change mtu/mru in STMD, it should matched to N1 of AT+CMUX.
N1(Maximum Frame Size) of modem is 1509 now.

Signed-off-by: xiaojin <jin.xiao@intel.com>
Change-Id: I928f9943bce17c065e070750ccf6648d577b17ff
Reviewed-on: http://android.intel.com:8080/43942
Reviewed-by: Stoltz-douchet, OlivierX <olivierx.stoltz-douchet@intel.com>
Reviewed-by: Pillet, VincentX <vincentx.pillet@intel.com>
Reviewed-by: Xiao, Jin <jin.xiao@intel.com>
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_mid_gpadc: increase the GPADC driver init priority
Shijie Zhang [Tue, 24 Apr 2012 12:34:08 +0000 (20:34 +0800)]
intel_mid_gpadc: increase the GPADC driver init priority

BZ: 33128

Charger driver on CTP needs to call gpadc intereface during init, so
GPADC driver has to be initilized before the Charger driver.

This patch increases the GPADC driver init priority to fix this problem.

Change-Id: Ia0ec6c6c4fa2afe1938bdd79a6eb474e5371c6a1
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/45275
Reviewed-by: Li, Ning <ning.li@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoDMA: Move dma_pool_destroy to free channel
Shreyas Neerebailoor [Fri, 20 Apr 2012 10:22:43 +0000 (15:52 +0530)]
DMA: Move dma_pool_destroy to free channel

BZ: 31979

The DMA pool for LLI is destroyed in atomic context.
This function might sleep and it should not be called in atomic
context.

Moved the destroying of the DMA pool to free channel resource
function.

Change-Id: I7624a69de3d8a3815fb0b3733cf441a246aea045
Signed-off-by: Shreyas Neerebailoor <shreyasx.neerebailoor@intel.com>
Reviewed-on: http://android.intel.com:8080/44152
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Bensaid, Selma <selma.bensaid@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: 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 agoCRYPTO: enable twofish for android_secure
Fei Yang [Thu, 19 Apr 2012 23:26:38 +0000 (16:26 -0700)]
CRYPTO: enable twofish for android_secure

BZ: 33312

VOLD creates android_secure on primary storage, which requires twofish
cipher algorithm support from kernel. This patch enables TWOFISH.

Change-Id: I7dddb5bb7ef26a329cb1694268d68e869f438c6f
Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-on: http://android.intel.com:8080/44087
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoMFLD/Battery: Fix charging status reporting issue incase of OverTemp
Ramakrishna Pallala [Tue, 24 Apr 2012 01:48:37 +0000 (07:18 +0530)]
MFLD/Battery: Fix charging status reporting issue incase of OverTemp

BZ: 32569

This patch fixes the battery status reporting issue for high and
low temperatures. This patch also cleans up the status monitoring
worker by removing the code related to battery status computation
logic which was not required in status monitioring worker.

Change-Id: I6c5f628896f66a08fb6096ee74883b3e7ea70863
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/45912
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 agoEM/Battery: Compute battery health from fuel gauge
Ramakrishna Pallala [Tue, 24 Apr 2012 09:45:37 +0000 (15:15 +0530)]
EM/Battery: Compute battery health from fuel gauge

BZ: 32795

This patch disables the power supply registration for
battery from smb347 charger driver and adds the capability
to compute battery health from max17042 fuel gauge driver.

Change-Id: I71150bbad8c914edfbae34d5ded0f7e744ce8568
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/44357
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 agoRevert "IMG code drop 840215 plus local changes"
Eric Vorbe [Wed, 25 Apr 2012 14:21:13 +0000 (16:21 +0200)]
Revert "IMG code drop 840215 plus local changes"

BZ: 27656

This reverts commit bcde9d363c2ef3938d39c4b14b09f75144cc6f85.

Change-Id: I30a9950adfc68558804d257d359a23ac0f7decc6
Signed-off-by: Eric Vorbe <ericx.vorbe@intel.com>
Reviewed-on: http://android.intel.com:8080/46057

12 years agostaging/Kconfig: Changes to make Matrix driver visible in /dev
Ashish K Singh [Mon, 16 Apr 2012 14:50:22 +0000 (20:20 +0530)]
staging/Kconfig: Changes to make Matrix driver visible in /dev

BZ: 22055

Change in Kconfig file to support Matrix driver.

Change-Id: Id547461b39cc9d003f7e24067640596672d918eb
Signed-off-by: Ashish K Singh <ashish.k.singh@intel.com>
Reviewed-on: http://android.intel.com:8080/43600
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Monroy, German <german.monroy@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agopanic_handle: make emmc_panic.c work without logger
Zhang Dongxing [Fri, 20 Apr 2012 05:29:33 +0000 (13:29 +0800)]
panic_handle: make emmc_panic.c work without logger

BZ: 32660

When logger is disabled, emmc_ipanic.c is compiled with failure messages because
emmc_ipanic.c depended on logger module. At the same time, logger_pti.c has same issue.

For emmc_iapnic.c, dumping logcat buffer function is enabled only when CONFIG_ANDROID_LOGGER
is set to y. In order to use less macro references, some functions are moved to another
location without any change.
For logger_pti.c, we make ANDROID_LOGGRT_PTI depends on ANDROID_LOGGER. Then logger_pti.c and logger.c
can be enabled/disabled at the same time.

Change-Id: Ib59e85b022b4a163f8a002f2f2c405550fe28d62
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/44106
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agodriver/max11871: add sysfs debug interface
jli127 [Tue, 24 Apr 2012 05:24:09 +0000 (13:24 +0800)]
driver/max11871: add sysfs debug interface

BZ: 32663

This patch add sysfs debug interface to
max11871 touchscreen driver.
The interfaces added includes command,
fw_ver, hreset, sreset, irq_count and
panel_params.

Signed-off-by: jli127 <jian.d.li@intel.com>
Change-Id: Ieabad396f23b2ee5868478c9f6f9b40360d4b9e0
Reviewed-on: http://android.intel.com:8080/45344
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agohsu: do not stop log when system not hang
Li, Ning [Mon, 23 Apr 2012 11:31:34 +0000 (19:31 +0800)]
hsu: do not stop log when system not hang

BZ: 30826

Console stops printing logs when oops_in_progress bit is set.
If if it's set and it's not a bug causing system hangs, we still
need to print logs after that. This patch is a fix under this situation.

Change-Id: I4f9fb1552d8ad1425b2bae3f9c9fc47e0a874bf7
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/44418
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: mt9e013: fix fuseid read operation
David Cohen [Mon, 16 Apr 2012 10:46:47 +0000 (13:46 +0300)]
atomisp: mt9e013: fix fuseid read operation

BZ: 33398

mt9e013 driver's function used to read an array of registers is used by
OTP and FUSEID read operations. But due to bug, that function was
ignoring addr argument and hardcoding OTP read registers.

This patch fixed such function to provide correct fuseid values.

Change-Id: I2a0e81da3a724dfb0a933633e294e450e9facc42
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/43567
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 "[PORT FROM R2]pti: Check if pti is enabled in mipi header"
Eric Vorbe [Wed, 25 Apr 2012 09:15:16 +0000 (11:15 +0200)]
Revert "[PORT FROM R2]pti: Check if pti is enabled in mipi header"

BZ: 28818

This reverts commit 29baf44f0bb8d14636e58b400d9dc9a51d23c1fa.

Change-Id: Iebd395a606b6b83dad3cc9d801cd954706b12337
Signed-off-by: Eric Vorbe <ericx.vorbe@intel.com>
Reviewed-on: http://android.intel.com:8080/46022

12 years agoatomisp: reserve ioctls to avoid ABI conflicts for customer
David Cohen [Fri, 20 Apr 2012 14:21:04 +0000 (17:21 +0300)]
atomisp: reserve ioctls to avoid ABI conflicts for customer

BZ: 27960

Customer asked us to implement 2 ioctls for debug purpose. As such
ioctls can't be merged to our tree for security purpose, we're marking
them as reserved ioctls to avoid create ABI conflicts.

Change-Id: I26a83903ce5d3a01f1640e090db553a37c80b7db
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/44148
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agolm3554: restructure i2c communications
Andy Shevchenko [Mon, 16 Apr 2012 10:57:23 +0000 (13:57 +0300)]
lm3554: restructure i2c communications

BZ: 32196

Currently the driver uses the lm3554 registers as a storage for the values. Due
to this it communicates too often in both ways with the chip. It's a bit
suboptimal (*) and even potentialy wrong in some cases (**).

* driver uses an additional mutex for serialization and the
  read-before-write technique

** when driver had used power on or off for the chip, the storage would have
   become to the inconsistent state.

Thus this patch addresses mentioned inconveniences. It moves storege from
hardware to the struct lm3554 fields and uses only sequential writes to set a
value.

Change-Id: I3ec755d43999ea07384c4f18e31013dd8e4c69f6
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/43707
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@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 agolm3554: simplify lm3554_s_flash_mode()
Andy Shevchenko [Wed, 11 Apr 2012 14:06:22 +0000 (17:06 +0300)]
lm3554: simplify lm3554_s_flash_mode()

BZ: 32196

Accordingly to the datasheet there is no difference between torch and flash
registers when we set up the operating mode.

Change-Id: I5cbb7bd3c3ed5e2c6cf8713830dfebb2480dbdbb
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/43706
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@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 agolm3554: use struct lm3554 as storage of actual values
Andy Shevchenko [Mon, 16 Apr 2012 13:18:48 +0000 (16:18 +0300)]
lm3554: use struct lm3554 as storage of actual values

BZ: 32196

There is no need to keep value in the hardware and sometimes it's even a bad
idea.

This patch partialy moves the storage from hardware to the struct lm3554 fields
and will be used later as well.

Change-Id: Ia80d465404bfb38bb24d02274ab95986d6a16870
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/43705
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@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 agolm3554: rename of few types
Andy Shevchenko [Wed, 11 Apr 2012 11:58:41 +0000 (14:58 +0300)]
lm3554: rename of few types

BZ: 32196

This patch renames few types as follows
struct lm3554_priv -> struct lm3554
p_lm3554_priv -> flash
to_lm3554_priv() -> to_lm3554()
platform_data -> pdata

There is no functional change.

Change-Id: I0dc8a133f1ef90fb666d9dbd2b970cf9f8009103
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/43704
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@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 agolm3554: small refactoring
Andy Shevchenko [Tue, 10 Apr 2012 10:11:14 +0000 (13:11 +0300)]
lm3554: small refactoring

BZ: 32196

- move platform data check upper in lm3554_probe()
- use struct lm3554_internal_ops
- remove dead and unused code
- append proper description
- add type of the subdevice

Change-Id: I6d752c26296db1c7f05dfe83e06f22866a6c53d1
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/43703
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@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 agoIMG code drop 840215 plus local changes
Dale Stimson [Thu, 15 Mar 2012 23:39:17 +0000 (16:39 -0700)]
IMG code drop 840215 plus local changes

BZ: 27656

Change-Id: I8a7b3ffdef00c8e5ec5a2b64c44a0239086f3357
Signed-off-by: Dale Stimson <dale.b.stimson@intel.com>
Reviewed-on: http://android.intel.com:8080/44346
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[EM/THERMAL]: Enabling DTS driver on CTP
Shravan [Tue, 24 Apr 2012 06:11:26 +0000 (11:41 +0530)]
[EM/THERMAL]: Enabling DTS driver on CTP

BZ: 32757

This patch contains code to enable DTS driver on CTP

Change-Id: Ic17e25b9ea67cb90be5f9ad5cd65985fe0f1d2df
Signed-off-by: Shravan <shravan.k.b.m@intel.com>
Reviewed-on: http://android.intel.com:8080/45345
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: R, Durgadoss <durgadoss.r@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGraphic: Critical Klocwork issues for GRAPHICS in round 103
luliuhui [Tue, 24 Apr 2012 00:40:05 +0000 (08:40 +0800)]
Graphic: Critical Klocwork issues for GRAPHICS in round 103

BZ: 33105

Revise NULL pointer dereferenced issues in kernel in round 103 scan.

Change-Id: I93488fdb96bc0fa8693e7fd1d9b36027ae4d98a5
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/44735
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 agoion: export functions to enable usage by kernel modules
Jianxu Zheng [Thu, 19 Apr 2012 11:45:51 +0000 (19:45 +0800)]
ion: export functions to enable usage by kernel modules

BZ:32709

EXPORT_SYMBOL/EXPORT_SYMBOL_GPL is missing for the exposed ION
API. This patch adds the EXPORT_SYMBOL to the public ION API.

Change-Id: I88ff618506efd136eb1d1b2648edfb4cea4ae53d
Signed-off-by: Jianxu Zheng <jian.xu.zheng@intel.com>
Reviewed-on: http://android.intel.com:8080/44095
Reviewed-by: Wang, Wen W <wen.w.wang@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 agonet/core: fix rollback handler in register_netdevice_notifier
Jonathan DE CESCO [Wed, 18 Apr 2012 15:41:52 +0000 (17:41 +0200)]
net/core: fix rollback handler in register_netdevice_notifier

BZ: 31995

Coming from upstream commit 8f891489866ec62a87494eff3ed17c88152c32d4
"Within nested statements, the break statement terminates only the
do, for, switch, or while statement that immediately encloses it,
So replace the break with goto."

Change-Id: I5c11e8fb4424cd2418da3b14eab02a55cea8a719
Signed-off-by: RongQing.Li <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jonathan DE CESCO <jonathan.de.cesco@intel.com>
Reviewed-on: http://android.intel.com:8080/43912
Reviewed-by: Zayet, AymenX <aymenx.zayet@intel.com>
Reviewed-by: Jarzmik, Robert <robert.jarzmik@intel.com>
Reviewed-by: Regairaz, JulieX <juliex.regairaz@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Monroy, German <german.monroy@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 agoEM: Enable kernel config flags for EM drivers
Amar Shankar [Thu, 12 Apr 2012 06:08:37 +0000 (11:38 +0530)]
EM: Enable kernel config flags for EM drivers

BZ: 31157

Enable the kernel config flags for Charger, BCU, Thermal and
DTS driver for Merrifield phone platform

Change-Id: I83c617913b71c8bd1079af73b9a42a824be83739
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43230
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Charger helper: charger helper initial commit
Amar Shankar [Thu, 12 Apr 2012 06:04:49 +0000 (11:34 +0530)]
EM/Battery: Charger helper: charger helper initial commit

BZ: 21548

Abstract charger operations in charger helper layer
This will expose interfaces to charger driver so that
hardware specific functions can be interfaced

Change-Id: I4a3d408f0d09d16fe9eaf2630c3f757e78165512
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43229
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Read battery profile and config
Amar Shankar [Thu, 12 Apr 2012 06:00:51 +0000 (11:30 +0530)]
EM/Battery: Read battery profile and config

BZ: 15399

Read battery charge profile and battery config from
platfrom layer

Change-Id: I465f153c4335271fb282dc5b8d45959196d95d7d
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43228
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Implement APIs in Charger driver for FG
Amar Shankar [Thu, 12 Apr 2012 05:58:42 +0000 (11:28 +0530)]
EM/Battery: Implement APIs in Charger driver for FG

BZ: 19894

This patch contains 5 APIs added to the charger driver code
for the FG driver to access

Change-Id: I4f74a78b51cf5b0c3a677a9b0e9d85cc82b9e90c
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43227
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Implement ADC sensor reading for charger
Amar Shankar [Thu, 12 Apr 2012 05:55:27 +0000 (11:25 +0530)]
EM/Battery: Implement ADC sensor reading for charger

BZ: 15402

Implementation to fetch ADC sensor reading for obtaining adc channel
values in charger driver

Change-Id: If7800da1c6f145facaaf350cc39fac886c011f85
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43226
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Battery: Registering for otg callback and getting otg capability
Amar Shankar [Thu, 12 Apr 2012 04:37:56 +0000 (10:07 +0530)]
EM/Battery: Registering for otg callback and getting otg capability

BZ: 15398

This patch adds the code for registering the charger driver with
otg driver for callback and obtaining the otg capabilities.
Callback registration and querying otg capabilities functions are
implemented as stubs.

Change-Id: Ia3f9af5f77730c1706a357ba968eeca523c46494
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43225
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/Charger: Enable Basin Cove Charger Driver
Amar Shankar [Thu, 12 Apr 2012 04:28:27 +0000 (09:58 +0530)]
EM/Charger: Enable Basin Cove Charger Driver

BZ: 15397

Enable basin cove charger driver with initialization flows and
register with power supply subsystem

Change-Id: I241c0044e3f806285e76a8f6aa4a01e3055e5299
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43224
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/THERMAL: Enable platform thermal driver for Merrifield
Amar Shankar [Thu, 12 Apr 2012 04:11:27 +0000 (09:41 +0530)]
EM/THERMAL: Enable platform thermal driver for Merrifield

BZ: 15131

This patch enables the platform thermal driver for
Merrifield BasinCove PMIC. This patch contains the
driver's initialization flow and exposes sysfs interfaces
to manipulate the PMIC Thermal registers

Change-Id: I17ec9f523f0c32eb8c7960057fc2eff7e512b88c
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43213
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/BCU: Enable BCU Driver for Merrifield Platform
Amar Shankar [Thu, 12 Apr 2012 04:09:12 +0000 (09:39 +0530)]
EM/BCU: Enable BCU Driver for Merrifield Platform

BZ: 14348

This patch enables the basic functionality for the Burst
Control Unit inside the BasinCove PMIC on the Merrifield
platform.
This patch adds the sysfs interfaces that are used
to configure the voltage/current thresholds.

Change-Id: I014c6ddf7826022bc0033569079ff19ab06b810d
Signed-off-by: Amar Shankar <amarx.shankar@intel.com>
Reviewed-on: http://android.intel.com:8080/43212
Reviewed-by: P, Eshwar N <eshwar.n.p@intel.com>
Tested-by: P, Eshwar N <eshwar.n.p@intel.com>
Reviewed-by: Pujol, BenjaminX <benjaminx.pujol@intel.com>
Reviewed-by: Tc, Jenny <jenny.tc@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.

Change-Id: I587c12caa11619d49fe38e865e451821df502fa2
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/45916
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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 agosmb347_charger: power supply registration clean up
Ramakrishna Pallala [Mon, 23 Apr 2012 08:19:38 +0000 (13:49 +0530)]
smb347_charger: power supply registration clean up

BZ: 31946

This patch  checks if the usb or mains charging is enabled by the
platform before registering with the power supply class. Also removes
few battery power supply attributes which are incorrectly implemented.

Change-Id: Ifb7c862bfcc2ccbdf149151a87bcccdbe2b45ef9
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/44466
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: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomax17042: To fix chargefull error
yashodhan kurtadkar [Thu, 19 Apr 2012 09:37:57 +0000 (15:07 +0530)]
max17042: To fix chargefull error

BZ: 28919

This patch multiplies design_Cap and full_capnom
With the ModelMultiplication factor during initialization.

Change-Id: I3f682a41360f45f9c7a52112fa817a3ab9e036f3
Signed-off-by: yashodhan kurtadkar <yashodhan.kurtadkar@intel.com>
Reviewed-on: http://android.intel.com:8080/44005
Reviewed-by: Hari, NeelamX <neelamx.hari@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 agointel_scu_ipcutil: add OSC_CLK setting ioctl support
Shijie Zhang [Fri, 20 Apr 2012 16:55:01 +0000 (00:55 +0800)]
intel_scu_ipcutil: add OSC_CLK setting ioctl support

BZ: 32771

This patch adds an OSC_CLK ioctl command for OSC_CLK control, which
makes OSC_CLK control, test and debug more easier.

Change-Id: I7e48106cd04633c5840bbb3e2b57fd3479a9e972
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/44122
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 agoleds-intel-kpd-gpio.c: adjust the kpd led brightness
Shijie Zhang [Mon, 16 Apr 2012 15:46:32 +0000 (23:46 +0800)]
leds-intel-kpd-gpio.c: adjust the kpd led brightness

BZ: 31930

On Lexington, KPD LED brightness is set too high. This patch
lowers the KPD LED brightbess to save power, and changes the
KPD LED output current level setting method according to the
AHK3292 Datasheet.

Change-Id: I99649b48a29dbc2939b3421042dfb8371b623347
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/43534
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoipcutil: move oshob and osnib related in
Xiaokang Qin [Mon, 16 Apr 2012 03:18:40 +0000 (11:18 +0800)]
ipcutil: move oshob and osnib related in

BZ: 31397

Clean the ipc driver and move oshob and osnib related part into ipctuil

Change-Id: I425bfb7e930ddb80d9b45d54dc90e1fa32a91bb8
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Reviewed-on: http://android.intel.com:8080/43571
Reviewed-by: Afantenos, Marie CecileX <marie.cecilex.afantenos@intel.com>
Tested-by: Afantenos, Marie CecileX <marie.cecilex.afantenos@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: make dvs envelop size match to atomisp size step
Kalle Lampila [Tue, 17 Apr 2012 13:11:50 +0000 (16:11 +0300)]
atomisp: make dvs envelop size match to atomisp size step

BZ: 31288

This patch fixes issues set 1920x1088 resolution when dvs is
enabled. Dvs envelop height did not match to atomisp height step so
this patch make width and height round down nearest width and height
that match to steps.

Change-Id: I3ec862476f86537627f6245601f23db0d10f3346
Signed-off-by: Kalle Lampila <kallex.lampila@intel.com>
Reviewed-on: http://android.intel.com:8080/43842
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@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 agoRevert "smb347_charger: power supply registration clean up"
Eric Vorbe [Mon, 23 Apr 2012 11:44:14 +0000 (13:44 +0200)]
Revert "smb347_charger: power supply registration clean up"

BZ: 31946

This reverts commit 5144c57dc5a3589e6cbb87070ff329af313ff274.

Change-Id: I593193113efcb9a4aedb96ca9d33e8df18ba5e59
Signed-off-by: Eric Vorbe <ericx.vorbe@intel.com>
Reviewed-on: http://android.intel.com:8080/44411

12 years agoEM/THERMAL: Adjust TjMax for Penwell CPU
Durgadoss R [Thu, 19 Apr 2012 21:28:39 +0000 (02:58 +0530)]
EM/THERMAL: Adjust TjMax for Penwell CPU

BZ: 32229

The coretemp driver assumes the TjMax for Penwell as 100 C.
This has to be adjusted to 90 C, by checking the cpu model
for Penwell (which is 0x27). This patch fixes this problem
by adding the cpu model in adjust_tjmax heuristics.

Change-Id: Iccee36db1f37f0ae81adc4ae1d257af70c03c2a5
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Reviewed-on: http://android.intel.com:8080/44116
Reviewed-by: Mitra, DebalinaX <debalinax.mitra@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 agoatomisp: use low order to allocate pages as our mobile memory is limited
xiaobing tu [Wed, 18 Apr 2012 07:04:45 +0000 (15:04 +0800)]
atomisp: use low order to allocate pages as our mobile memory is limited

BZ:31085 31905

REVERTME after changing the codes better.

With MTBF and Monkey testing, system often reset
vmstat shows memory is used up. kernel stack dump shows atomisp driver
is used to allocate many pages with order 3. It's quite too high, especially
when running on Lexington with 512M memory.
The patch changes it to use order 0 always.
Signed-off-by: xiaobing tu <xiaobing.tu@intel.com>
Change-Id: I2ceb3de6120a009c7cf3d649ee53f96a18143f44
Reviewed-on: http://android.intel.com:8080/43840
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Zhang, Yanmin <yanmin.zhang@intel.com>
Reviewed-by: Jarzmik, Robert <robert.jarzmik@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 agohwmon/mpu3050: Increase device power up delay
Leo Yan [Thu, 19 Apr 2012 05:11:06 +0000 (13:11 +0800)]
hwmon/mpu3050: Increase device power up delay

BZ: 32281

Increase the device power up delay to avert reporting incorrect data
before the data sampling is stable.

Change-Id: Ic2abe753f3857dfd8274545895b18b837d90b6de
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/43957
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Wang, Zhifeng <zhifeng.wang@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 agoatomisp: CSS/FW release from Synergy baseline of 11Apr2012
Michie Yamauchi [Mon, 16 Apr 2012 12:56:33 +0000 (14:56 +0200)]
atomisp: CSS/FW release from Synergy baseline of 11Apr2012

BZ: 27422 31660 31928

This release of CSS/FW addresses the following issues:
- Visible colorful blocks can be seen for QVGA video recording
- YUV upscaling
- 3A/DIS statistics verification error for YUV up-scaling in video

Change-Id: I274ea8495cd2e6d9aa2001758c0bed42cb518e12
Reviewed-on: http://android.intel.com:8080/43582
Reviewed-by: Yamauchi, Michie <michie.yamauchi@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoatomisp: access to FNUMBER IOCTL
Arnaud Mandy [Mon, 16 Apr 2012 10:50:41 +0000 (13:50 +0300)]
atomisp: access to FNUMBER IOCTL

BZ: 31987

allowing access to get FNUMBER from sensor driver from ioctl.

Change-Id: I968ca1f0cd779162caeebcb3b11f452eed285cac
Signed-off-by: Arnaud Mandy <arnaud.mandy@intel.com>
Reviewed-on: http://android.intel.com:8080/43572
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Laakso, Antti <antti.laakso@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[CTP_PR0][CWS-BT] : defconfig: Enable BT Human Interface Device Protocol
Christophe Bransiec [Wed, 18 Apr 2012 12:31:07 +0000 (14:31 +0200)]
[CTP_PR0][CWS-BT] : defconfig: Enable BT Human Interface Device Protocol

BZ: 31703

Can't use BT mouse and BT keyboard on the DUT even when devices are correctly paired
Bluetooth HIDP module is not activated in kernel configuration,
this patch enables it as a built-in module.

Change-Id: If7fc41e011d1bd338ff03e38a50f6e8404b978f3
Signed-off-by: Christophe Bransiec <christophex.bransiec@intel.com>
Reviewed-on: http://android.intel.com:8080/43885
Reviewed-by: Champciaux, Nicolas <nicolas.champciaux@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Gros, JulienX <julienx.gros@intel.com>
Reviewed-by: Aquilone, RaffaeleX <raffaelex.aquilone@intel.com>
Reviewed-by: Beldie, OvidiuX <ovidiux.beldie@intel.com>
Tested-by: Champciaux, Nicolas <nicolas.champciaux@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoaudio: platform: clean up platform driver to support future platforms
Omair Mohammed Abdullah [Fri, 20 Jan 2012 07:05:33 +0000 (12:35 +0530)]
audio: platform: clean up platform driver to support future platforms

BZ: 15815

Platform driver contains Medfield specific code which needs to be removed so
that other platforms can be supported with same platform driver.

This change makes the SST driver register to the platform driver instead of the
other way round. The intel_sst_set_pll() function is replaced by the
intel_scu_ipc_set_osc_clk0() function and a proper calling mechanism is set up
in the machine driver. The intel_sst.h file is replaced by sst_platform.h. Some
ASoC core changes are backported from the upstream tree.  Clock and PLL
enabling/disabling sequence is changed.

Change-Id: I40848eb0ebd671d988428daccccd9b8027752123
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/33673
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: 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: Move SST driver to soc/mid-86 directory
Omair Mohammed Abdullah [Sun, 5 Feb 2012 13:43:04 +0000 (19:13 +0530)]
audio: sst: Move SST driver to soc/mid-86 directory

BZ: 15815

Moving SST driver from sound/pci/sst to the sound/soc/mid-x86 directory since it
depends on the SST platform and codec drivers. Also fixed some formatting errors.

Change-Id: I7f38eb2beb7cc5719d488d71c5e7f7c6d6338e25
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/33991
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: 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 agoGFX-Display: enable deep sleep standby on Sony panels
Sundar Iyer [Thu, 19 Apr 2012 04:04:59 +0000 (12:04 +0800)]
GFX-Display: enable deep sleep standby on Sony panels

BZ: 32027

Enable the deep sleep standby sequence on the Sony panels on the Lexington
FF device. This change reduces the leakage on the panel during standby by
aboud 6mW. This change should also bring down the power in all display off
use cases like display off, audio playback.

Change-Id: Id0f3302006fff08dc7ae5da5fe521be69dcd5746
Signed-off-by: ljia5 <lin.a.jia@intel.com>
Signed-off-by: Sundar Iyer <sundar.iyer@intel.com>
Reviewed-on: http://android.intel.com:8080/43952
Reviewed-by: Mansoor, Illyas <illyas.mansoor@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 agoInstrument HDCP authentication process
Zhongjun Chen [Tue, 17 Apr 2012 08:05:28 +0000 (16:05 +0800)]
Instrument HDCP authentication process

BZ: 31612

There are 3 minor Changes in the patch:

1) Print log when error happens during HDCP authentication process.
2) Cleanup coding style messes.
3) Assign IOCTL command id DRM_PSB_SET_CSC to 0x2a as 0x29 is used by DRM_PSB_CSC_GAMMA_SETTING.

Change-Id: I1f67cb291a33068b05bcfc74ca01698998843463
Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
Signed-off-by: Zhongjun Chen <zhongjunx.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/43320
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 agosmb347: need smb347 to control USB OTG VBUS.
Wu, Hao [Tue, 17 Apr 2012 08:07:49 +0000 (16:07 +0800)]
smb347: need smb347 to control USB OTG VBUS.

BZ: 32122

Need smb347 to control USB OTG VBUS for DV20.

Change-Id: I1807c97dce0ee45c7a864d0132360f0ecac76abf
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43675
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: clean up rpm callbacks
Wu, Hao [Tue, 17 Apr 2012 09:14:53 +0000 (17:14 +0800)]
usb/penwell_otg: clean up rpm callbacks

BZ: 32151

Remove dead code and return call stauts. This patch
is ported from OTC branch.

Change-Id: Ieba5c1f934fd77a7d3e805c7f690e7b89c9ef982
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43673
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb: penwell_otg: wake up PHY clock during RPM resume
Wu, Hao [Tue, 17 Apr 2012 08:46:19 +0000 (16:46 +0800)]
usb: penwell_otg: wake up PHY clock during RPM resume

BZ: 32151

Enable PHY clock to avoid potential hangups that happen if
usb_gadget_disconnect() is called while the cable is
unplugged. This patch is ported from OTC branch.

Change-Id: Ia62bb9c9e38070e705c131b63d9a0f3430165079
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43672
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agootg: notify VBUS event when set_vbus called
Wu, Hao [Tue, 17 Apr 2012 08:36:34 +0000 (16:36 +0800)]
otg: notify VBUS event when set_vbus called

BZ: 32151

On some platforms, driving vbus is done with an external
chip. This notification is send from otg_set_vbus() wrapper
every time it's called. This patch is ported from OTC branch.

Change-Id: Ieff49567d2b5c0297a7d4494199d2c3a120cd7bf
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43671
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb: penwell_otg: use otg_set_vbus
Wu, Hao [Tue, 17 Apr 2012 08:33:54 +0000 (16:33 +0800)]
usb: penwell_otg: use otg_set_vbus

BZ: 32151

We need to call otg_set_vbus wrapper instead of calling directly the
driver's function, to get the related event notification sent for any
listener. This patch is ported from OTC branch.

Change-Id: I9da9ef58b9761dbbed2a0829a30f2b96785fabf8
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/43670
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agosmb347_charger: power supply registration clean up
Ramakrishna Pallala [Tue, 17 Apr 2012 22:36:03 +0000 (04:06 +0530)]
smb347_charger: power supply registration clean up

BZ: 31946

This patch  checks if the usb or mains charging is enabled by the
platform before registering with the power supply class. Also removes
few battery power supply attributes which are incorrectly implemented.

Change-Id: If4ca2d4932e5816bf115757131243ff546d00302
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/43836
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 agomisc/apds990x: Clear the AEN control bit when ALS is disabled
Leo Yan [Tue, 17 Apr 2012 05:20:58 +0000 (13:20 +0800)]
misc/apds990x: Clear the AEN control bit when ALS is disabled

BZ: 31933

1. Clear the AEN bit of the enable register when ALS sensor is disabled
to avert the abnormal interrupt when ALS sensor is enabled.
2. Check the value of enable register before update to avert the
unnecessary write operation.

Change-Id: I446c794968fc99fede160ab163dd3caf6a085079
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/43640
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Liu, Hong <hong.liu@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:port one android gadget patch
jzhuan5 [Tue, 17 Apr 2012 19:25:44 +0000 (15:25 -0400)]
usb:port one android gadget patch

BZ: 32120

usb: gadget: android: Don't allow changing the functions list if enabled

Change-Id: I8cb2f5b0f510eaf96b30047c9a8590486b958458
Signed-off-by: Benoit Goby <benoit@android.com>
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/43649
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:port two langwell_udc patches
jzhuan5 [Tue, 17 Apr 2012 07:34:02 +0000 (15:34 +0800)]
usb:port two langwell_udc patches

BZ: 32120

usb: langwell_udc: remove useless flags
usb: langwell_udc: use existing roundup macro

Change-Id: I30138aa271470614c81ae18f1a64b67531f492ec
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/43648
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 agowidi: Audio Loopback driver for CLover Trail platform WiDi.
Suneel Kandru [Thu, 12 Apr 2012 00:04:17 +0000 (17:04 -0700)]
widi: Audio Loopback driver for CLover Trail platform WiDi.

BZ: 31441

This patch enables build script to build AUdio loopback driver
Loop back driver is required to direct audio from device to Widi.

Change-Id: Id404db7ae0960a70baa4b30f8da62a986ffbe8aa
Signed-off-by: Suneel Kandru <suneelx.kandru@intel.com>
Reviewed-on: http://android.intel.com:8080/43191
Reviewed-by: Balguri, Mamatha <mamatha.balguri@intel.com>
Reviewed-by: Veeramani, Karthik <karthik.veeramani@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Sun, Hang L <hang.l.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_pmic & intel_scu_mip: change the driver init priority
Shijie Zhang [Mon, 16 Apr 2012 13:45:23 +0000 (21:45 +0800)]
intel_scu_pmic & intel_scu_mip: change the driver init priority

BZ: 31879

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

Change-Id: I03071922c3b5e53ee98dd3c83111c4467c27906c
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/43521
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Kumar S, Pavan <pavan.kumar.s@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Reviewed-by: Kuppuswamy, Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_pmic: fix potiential buffer overflow problem
Shijie Zhang [Thu, 12 Apr 2012 16:37:58 +0000 (00:37 +0800)]
intel_scu_pmic: fix potiential buffer overflow problem

BZ: 31509

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

This patch fixes this two potiential issues.

Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Change-Id: I27d3b79b43258056a8318efa0dae10677e53fd03
Reviewed-on: http://android.intel.com:8080/43249
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoEM/THERMAL: Fix for filename error to load the thermal driver
debalina [Thu, 19 Apr 2012 17:35:43 +0000 (23:05 +0530)]
EM/THERMAL: Fix for filename error to load the thermal driver

BZ: 32210

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

Change-Id: I0867a1d04f8d0f5fa157b3b855ca7918259f5987
Signed-off-by: debalina mitra <debalinax.mitra@intel.com>
Reviewed-on: http://android.intel.com:8080/43960
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Hari, NeelamX <neelamx.hari@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>