kernel/kernel-mfld-blackbay.git
12 years ago[PORT FROM R2] Revert "atomisp: fix alloc pages block issue in driver."
Hu Gang [Thu, 8 Dec 2011 08:50:06 +0000 (16:50 +0800)]
[PORT FROM R2] Revert "atomisp: fix alloc pages block issue in driver."

BZ: 17272

Issues:
Phone reset in low memory condition when doing burst capture.

Solution:
Suspect the patch in memory allocation in atomisp driver.
So revert this patch first.

Change-Id: Id7a985e86481a1de01a4b7e3360a61dfc342f64c
Orig-Change-Id: I8d49403963a8c2c7e9c097b60f439f3458bf2756
Signed-off-by: Hu Gang <gang.a.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/26678
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>
Reviewed-on: http://android.intel.com:8080/28051
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] LM3554: limit lm3554 flash's current.
ziyux.jiang [Wed, 30 Nov 2011 14:30:53 +0000 (22:30 +0800)]
[PORT FROM R2] LM3554: limit lm3554 flash's current.

BZ: 17272

to prevent battery over-current, we set peak current limit
to be 1000mA.

Change-Id: I67032019b1f6ae8de030faba8ef4c351cb2cc8d8
Orig-Change-Id: I6292cd6d20558fd5589b8c11d2448c46d3e18b0e
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/25677
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28050
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: fix alloc pages block issue in driver.
ziyux.jiang [Tue, 29 Nov 2011 11:26:53 +0000 (19:26 +0800)]
[PORT FROM R2] atomisp: fix alloc pages block issue in driver.

BZ: 17272

when there are not enough memory in kernel, allocation pages maybe fails and
then sleep, so system will block in kernel and can not exit. to avoid this
case, we modify allocation pages flag to GFP_NOWAIT(not will sleep when
allocation). and modify allocation mechanism.

Change-Id: If5362583197a650bcb6d05b1a811d2a18967468c
Orig-Change-Id: I7e687b1a9107ebeedb71f6ce84a25b19169520af
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/25504
Reviewed-by: Zheng, ZixiangX <zixiangx.zheng@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28049
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: updated sensor settings (4)
Robert Jong-A-Lock [Tue, 6 Dec 2011 00:03:08 +0000 (01:03 +0100)]
[PORT FROM R2] atomisp: mt9e013: updated sensor settings (4)

BZ: 17272

removed maximised VBI for wide preview. caused timeout in css
for yet unexplained reason.

Change-Id: I9f2cbd235632b4a9d00a421d3876a7807569e440
Orig-Change-Id: Ia7a02855706f64657e701048d955fd660edf148b
Reviewed-on: http://android.intel.com:8080/26146
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Le Thenaff, Erwan <erwan.le.thenaff@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28048
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: remove unused types from atomisp.h
Jozef Kruger [Wed, 30 Nov 2011 20:23:47 +0000 (12:23 -0800)]
[PORT FROM R2] atomisp: remove unused types from atomisp.h

BZ: 17272

This patch removes types from atomisp.h that are not used in atomisp.h itself.
The use of the atomisp_frame structure is replaced by v4l2_framebuffer which was
introduced in v4l2 for exactly this use case. Also, since this is a v4l2 driver,
we should use v4l2 constructs for frames, not introduce our own.

This makes the atomisp interface smaller and easier to document.

Change-Id: I819ba895ec9042145252eb0e869bd7109b3b5ae8
Orig-Change-Id: I2ffd39c3566bf86148dbdaaafe372ae15df1f345
Signed-off-by: Jozef Kruger <jozef.kruger@intel.com>
Reviewed-on: http://android.intel.com:8080/25736
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28047
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: Gamma correction parameters (K1,K2)
Michie Yamauchi [Thu, 24 Nov 2011 19:11:08 +0000 (20:11 +0100)]
[PORT FROM R2] atomisp: Gamma correction parameters (K1,K2)

BZ: 17272

atomisp_cmd.c: The atomisp_gamma_correction function is added
               to update Gamma correction parameters(K1,K2).
sh_css_params.c: Gamma correction parameters(K1,K2) are passed to ISP.

Change-Id: I94649f83cdc795aa66f6201d02d9f1cb2c6e0be8
Orig-Change-Id: I2de4963a22be9ce6be9f42d65d869e1b62385c5c
Signed-off-by: Michie Yamauchi <michie.yamauchi@intel.com>
Reviewed-on: http://android.intel.com:8080/25245
Reviewed-by: Gupta, Lokesh <lokesh.gupta@intel.com>
Reviewed-by: Tuppurainen, Miikka <miikka.tuppurainen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28046
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: updated sensor settings (3)
Robert Jong-A-Lock [Wed, 30 Nov 2011 15:41:34 +0000 (16:41 +0100)]
[PORT FROM R2] atomisp: mt9e013: updated sensor settings (3)

BZ: 17272

Maximised VBI settings for VGA, QVGA and QCIF video modes

Change-Id: Ifa7bb3b0d5d109cf58a476afb81f9ec7898812ac
Orig-Change-Id: Id13f23945a97ce71ba04275a0674e60ba982c1df
Reviewed-on: http://android.intel.com:8080/25715
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28044
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: updated sensor settings (2)
Robert Jong-A-Lock [Wed, 30 Nov 2011 11:24:16 +0000 (12:24 +0100)]
[PORT FROM R2] atomisp: mt9e013: updated sensor settings (2)

BZ: 17272

fix FoV issue with QVGA and QCIF. QVGA now has a FoV of 78% and
QCIF 82% horizontally. VGA, QVGA and QCIF do not use skipping
anymore, only binning and sensor scaling.

Change-Id: I109e0cf7839734ce005ee17861ff498fbd9f2897
Orig-Change-Id: Iecf6b2610fc82d2bddb3c1995340343cfab14913
Reviewed-on: http://android.intel.com:8080/25697
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28043
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: updated sensor settings (1)
Robert Jong-A-Lock [Tue, 29 Nov 2011 22:43:31 +0000 (23:43 +0100)]
[PORT FROM R2] atomisp: mt9e013: updated sensor settings (1)

BZ: 17272

according to aptina, skipping shoudl not be used. it causes color
differences between modes that use it and modes that do not. This
patch should remove the color differenc ebetween 4:3 preview and
4:3 still modes.

8M resolution now supports 15fps.

Change-Id: I7dbc9874ac008e207d49184bdba0161dc73d7a65
Orig-Change-Id: I4c751838cbc0070537ea2dd2168ef28567efa7d4
Reviewed-on: http://android.intel.com:8080/25638
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28042
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] The slew rate of VC motor current rising time has changed.
Vitali Samurov [Mon, 31 Oct 2011 11:57:42 +0000 (13:57 +0200)]
[PORT FROM R2] The slew rate of VC motor current rising time has changed.

BZ: 17272

Currently VC motor has '0' in both configuration registers: 'slew_rate' and 'vcm_step_time'.
Therefore a current in the VC motor rises very fast (instantaneous) and it causes a big
mechanical impact to the lens unit, audible as a loud click.

This patch makes VC current rising slope slightly inclined and it makes a lens movement to be
more smooth. Patch should not affect to the speed of AF, because a duration of single Af step
remains the same.

Change-Id: Ibda9f7af5cdd74287bb25ddb83c53fa4dbaf1248
Orig-Change-Id: Ie35b30cafa9848a7175798a3832bd06be511aec8
Signed-off-by: Vitali Samurov <vitali.samurov@intel.com>
Reviewed-on: http://android.intel.com:8080/22776
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>
Reviewed-on: http://android.intel.com:8080/28041
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: CSS release Synergy BL 29nov2011
Lokesh Gupta [Wed, 30 Nov 2011 09:20:44 +0000 (10:20 +0100)]
[PORT FROM R2] atomisp: CSS release Synergy BL 29nov2011

BZ: 17272

This is the CSS release from Synergy baseline of 29nov2011.
It fixes the following issues:
- Standalone acceleration firmware has no support
  to get its completion interrupt translated
- ISP parameter for Gamma correction (K1,K2)
  should be tunable from ISP parameter file
- ISP BNR/CNR
- MACC table index order difference between ISP
  and USER
- MACC table segment selection problem

Change-Id: I2b29127df3f98865703bf0c35a054f565357143f
Orig-Change-Id: I2eb9ad577e6949ceb1eebbf0666d8450b4375a1c
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/25729
Reviewed-by: Yamauchi, Michie <michie.yamauchi@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28039
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] mt93013: remove compiler warnings
Jozef Kruger [Tue, 29 Nov 2011 18:40:57 +0000 (10:40 -0800)]
[PORT FROM R2] mt93013: remove compiler warnings

BZ: 17272

This patch removes a compiler warning from the mt93013 driver.

Change-Id: Icd21d170ff37d9d167c2dc078ae08507158c9740
Orig-Change-Id: I4fddefa3d2e759f9b204f0fc68805b58cc64b6de
Signed-off-by: Jozef Kruger <jozef.kruger@intel.com>
Reviewed-on: http://android.intel.com:8080/25630
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28037
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] mt9m114: remove compiler warnings
Jozef Kruger [Tue, 29 Nov 2011 18:46:35 +0000 (10:46 -0800)]
[PORT FROM R2] mt9m114: remove compiler warnings

BZ: 17272

This patch removes compiler warnings from teh mt9m114 code.

Change-Id: Iba54e92b3441720749a70fd3f6f9d871bf509875
Orig-Change-Id: I3a735ea1b4001a32465fcd1cc13f6feb4493443e
Signed-off-by: Jozef Kruger <jozef.kruger@intel.com>
Reviewed-on: http://android.intel.com:8080/25631
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28036
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] mt9m114: add speedup ae/awb settings and change loading sequence
Huang Shenbo [Fri, 25 Nov 2011 06:26:17 +0000 (14:26 +0800)]
[PORT FROM R2] mt9m114: add speedup ae/awb settings and change loading sequence

BZ: 17272

1. Add speedup ae/awb settings to shorten the ae/awb
initialization time leading to less s2s time.
2. Change setting loaded sequence per vendor suggestion.
3. Add QCIF resolution settings.

Change-Id: I7c9009a5701e1d2f5149b0c584d5e2ff398ecba7
Orig-Change-Id: I4904679567f5acdf0ba4cb52b93094f63c875fac
Signed-off-by: Huang Shenbo <shenbo.huang@intel.com>
Reviewed-on: http://android.intel.com:8080/25283
Reviewed-by: Hu, Gang A <gang.a.hu@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>
Reviewed-on: http://android.intel.com:8080/28035
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: fix error put_page when get_user_pages failed
Tao Jing [Tue, 29 Nov 2011 07:13:33 +0000 (15:13 +0800)]
[PORT FROM R2] atomisp: fix error put_page when get_user_pages failed

BZ: 17272

when get_user_pages failed with -EFAULT(-14), put_page would be run
for bo->pages[i], which causes kernel hang.

This patch fix this issue.

Change-Id: I83c2d3c79168d4153733eae5cc83ba1ddfd60402
Orig-Change-Id: I1e2908929b9372e704f24cde99f4ebeba6820b22
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/25514
Reviewed-by: Jiang, ZiyuX <ziyux.jiang@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
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>
Reviewed-on: http://android.intel.com:8080/28034
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: clean up media entities at exit
Andy Shevchenko [Fri, 25 Nov 2011 09:11:25 +0000 (11:11 +0200)]
[PORT FROM R2] atomisp: clean up media entities at exit

BZ: 17272

There are two places where we have memory leaks (found by kmemleak). This
change eliminates both of them.

Change-Id: If61ca8f85caf7a77407417f747ce0c781253caea
Orig-Change-Id: I8eb84e5261b2790561aca774681f77dddd2e7697
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/25442
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28033
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: remove useless assignment in ->remove()
Andy Shevchenko [Fri, 25 Nov 2011 09:11:24 +0000 (11:11 +0200)]
[PORT FROM R2] atomisp: remove useless assignment in ->remove()

BZ: 17272

There is no need to do assignment in structure that will be freed anyway.

Change-Id: I92a5a4b2442995537790664732b1891339ed4ba9
Orig-Change-Id: I93430f6d8b8bfd7fdcf5fb47da74729d26733e67
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/25441
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28032
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: remove unnecessary assignment
Andy Shevchenko [Fri, 25 Nov 2011 09:11:23 +0000 (11:11 +0200)]
[PORT FROM R2] atomisp: remove unnecessary assignment

BZ: 17272

There is unnecessary to assign the vfl_type in the atomisp_video_init() because
the video_register_device() takes the type as mandatory argument.

Change-Id: Ib076eaedb0171b04b8a19928fd530a730c3693d1
Orig-Change-Id: Ieb1df952b1c4af028e3286d24d06179da98619bb
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/25440
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28031
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: fix release function
Andy Shevchenko [Fri, 25 Nov 2011 09:11:22 +0000 (11:11 +0200)]
[PORT FROM R2] atomisp: fix release function

BZ: 17272

'rmmod atomisp' will generate an oops on the current kernel.

The struct atomisp_video_pipe contains the struct video_device in-place. During
initialization of the pipes, each of them takes the video_device_release() as a
->release() callback. Due to this the video_unregister_device() will call the
kfree() on non-allocated memory.

In our case we should use the video_device_release_empty() instead of the
video_de3vice_release().

Change-Id: I9bd12d0b087267b3ee242ea60cd62c37a5639be4
Orig-Change-Id: Ib243c5c48b7c085d11c8ef44bb5c4a33bad1374f
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/25439
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28030
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: free file_input resources on exit
Andy Shevchenko [Fri, 25 Nov 2011 09:11:21 +0000 (11:11 +0200)]
[PORT FROM R2] atomisp: free file_input resources on exit

BZ: 17272

atomisp_unregister_entities() is dedicated to unregister entire set of
registered entities. However, there is file_dev entity which is not
unregistered by mentioned function. This patch adds absent line.

Change-Id: Iae86db4b0db87fea28f1df0ae54eac6da6ac5e2f
Orig-Change-Id: I81b906dabb5f46f4b36d78b68fdc4ddcbe36d8ad
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/25438
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28029
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years agoatomisp: porting driver R2 fix-patches
Teemu Tuominen [Wed, 14 Dec 2011 13:28:39 +0000 (15:28 +0200)]
atomisp: porting driver R2 fix-patches

BZ: 17272

Forward ported patch from r2-stable starts to threat warnings as errors
f271944ad8bcad5c4cbbd5b3a99f50f452da56b8 atomisp: remove compiler warnings

Cannot enable -Werror while tng disabled, see known issue:
27390f90d76fcce1cc59eb64b080e43237079163 atomisp: porting driver

Change-Id: I89c11f7c0b6918d356a367960b46094d96a6ad12
Signed-off-by: Teemu Tuominen <teemux.tuominen@intel.com>
Reviewed-on: http://android.intel.com:8080/28028
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] atomisp: remove compiler warnings
Jozef Kruger [Tue, 29 Nov 2011 18:34:10 +0000 (10:34 -0800)]
[PORT FROM R2] atomisp: remove compiler warnings

BZ: 17272

This patch removes compiler warnings from the atomisp code.

Change-Id: I1ffa0f17a824207082f3da8b530f2da53aea4cc5
Orig-Change-Id: Ie60b94261d21337fe9922d7b7d5ad30609dce6d8
Signed-off-by: Jozef Kruger <jozef.kruger@intel.com>
Reviewed-on: http://android.intel.com:8080/25628
Reviewed-by: Gupta, Lokesh <lokesh.gupta@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28027
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: fail OTP checksum if only 0's are found
David Cohen [Thu, 24 Nov 2011 14:48:51 +0000 (16:48 +0200)]
[PORT FROM R2] atomisp: mt9e013: fail OTP checksum if only 0's are found

BZ: 17272

If OTP data has only 0's checksum will pass, but data is invalid. This
patch makes it fail.

Change-Id: If461bb9b44736bfdcea96318c47bec185955e1db
Orig-Change-Id: I4a5cf7276ad44600fffbfce72e4cd50eb2d7c582
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/25232
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Gerasimow, Timo <timo.gerasimow@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>
Reviewed-on: http://android.intel.com:8080/28026
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: add OTP checksum fail message
David Cohen [Wed, 23 Nov 2011 06:32:16 +0000 (08:32 +0200)]
[PORT FROM R2] atomisp: mt9e013: add OTP checksum fail message

BZ: 17272

This patch adds OTP checksum fail message.

Change-Id: Icf21fa50859a391f2853c0abd5b6e9b9d6dc1b73
Orig-Change-Id: I3824d81b5fbf501f57b4380cd8281acd6e3d6cab
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/25231
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@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>
Reviewed-on: http://android.intel.com:8080/28025
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: CSS/FW release Synergy BL 20111120
Lokesh Gupta [Tue, 22 Nov 2011 13:11:14 +0000 (14:11 +0100)]
[PORT FROM R2] atomisp: CSS/FW release Synergy BL 20111120

BZ: 17272

This release fixes the following issues:
- Images captured with night mode are abnormal
- CNR part of BZ14470 is fixed (BZ still open for BNR bug)

Change-Id: I1c62642b1ac2a1cb5736f496e0a41871a5cf6d65
Orig-Change-Id: I48e96ce83a86110d184da1cb355857017e5be53c
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/24895
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28024
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: store OTP data in sensor's private data
David Cohen [Tue, 22 Nov 2011 18:20:17 +0000 (20:20 +0200)]
[PORT FROM R2] atomisp: mt9e013: store OTP data in sensor's private data

BZ: 17272

When sensor initialized, this patch reads OTP data and stores it in
sensor's private data. This way, when userspace requests OTP data driver
doesn't need to access sensor anymore.

Change-Id: I5071e5b893ff57b0073c3284ee447a4aa9f5c142
Orig-Change-Id: Ide7e328a3889c2719b45622ef612c8ddd6cb29cb
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/24938
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28023
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years agoatomisp: mt9e013: make sure that mutex is init before it is used
Kalle Lampila [Fri, 16 Dec 2011 12:52:15 +0000 (14:52 +0200)]
atomisp: mt9e013: make sure that mutex is init before it is used

BZ: 17272

Moved mutex_init before v4l2_i2c_subdev_init() call.

Change-Id: I522100e1ce30a6ae890386e7ee41a97af54eed8c
Signed-off-by: Kalle Lampila <kallex.lampila@intel.com>
Reviewed-on: http://android.intel.com:8080/28022
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: add lock protection to sensor's ioctl
David Cohen [Tue, 22 Nov 2011 16:39:39 +0000 (18:39 +0200)]
[PORT FROM R2] atomisp: mt9e013: add lock protection to sensor's ioctl

BZ: 17272

Currently mt9e013 sensor lacks lock protection for concurrent ioctl
calls which may lead to racing condition.
This patch adds missing locks.

Change-Id: Ia0d3ca5156491a0cda169bedc7fe8731fffda5cc
Orig-Change-Id: I90f3cdca7c5b0cb7cf524244e8a4bf806d187223
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/24937
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28021
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: add missing timeout check when requesting OTP data
David Cohen [Tue, 22 Nov 2011 16:34:13 +0000 (18:34 +0200)]
[PORT FROM R2] atomisp: mt9e013: add missing timeout check when requesting OTP data

BZ: 17272

This patch adds missing timeout check when requesting OTP data. Without
this check, timeout may be confused with bad data.

Change-Id: Ic2971ba74cbcc69454302770966e15947b055ada
Orig-Change-Id: I1b562e8e799ff88fa17e614aceb7f6911d003d85
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/24936
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28020
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: Validate the acceleration fw pointer from user space
Vinod Govindapillai [Wed, 23 Nov 2011 18:00:32 +0000 (20:00 +0200)]
[PORT FROM R2] atomisp: Validate the acceleration fw pointer from user space

BZ: 17272

Adds a check in atomisp_acc_fw_alloc if the acceleration firmware
passed is not NULL and the size of the firmware is not zero. If
either the fw is NULL or the size is 0, it returns an error.

Change-Id: I008448bc532c2d4e092bc58076755fda9c00d8ef
Orig-Change-Id: I9faad107fae526f125aadeedcbfe19e3285d8097
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-on: http://android.intel.com:8080/25125
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28016
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: add CSS support for atomic ISP restart
Jozef Kruger [Tue, 15 Nov 2011 23:15:42 +0000 (15:15 -0800)]
[PORT FROM R2] atomisp: add CSS support for atomic ISP restart

BZ: 17272

This is a rework of patch 22895. The difference with that patch is that
I removed the moving of the css 3a statistics reading. This seems to cause
a strange kernel crash which seems only indirectly related to this patch.

This patch now includes:
1. Double buffering of 3A statistics inside CSS layer.
2. Functions to determine whether the next ISP binary can be
   started from an atomic context (the ISR).

Change-Id: Ic9a7a809c707d2e22ab07c4d373eea872c6132be
Orig-Change-Id: I6e633badc4f309cd8ea36548852b6fd8330daec3
Signed-off-by: Jozef Kruger <jozef.kruger@intel.com>
Reviewed-on: http://android.intel.com:8080/24166
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28015
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: Provide a debug trace infra for CSS using ftrace
Lokesh Gupta [Tue, 15 Nov 2011 14:24:37 +0000 (15:24 +0100)]
[PORT FROM R2] atomisp: Provide a debug trace infra for CSS using ftrace

BZ: 17272

ftrace is the preferred way to dump debug traces in the kernel
because it is much more efficient than kernel printk. This patch
allows the use of ftrace to dump debug information from CSS. A new
API has also been added to CSS to set the verbosity level of the
traces.

Change-Id: I1edf61ca38d9931430dcaca3e1dc9e9d09585fd4
Orig-Change-Id: I8698a4c277052e95dc52c488e2d1d0f56e0080c8
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/24621
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: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28014
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: Camera crash when switch resolution after color correction
Lokesh Gupta [Sat, 19 Nov 2011 13:27:13 +0000 (14:27 +0100)]
[PORT FROM R2] atomisp: Camera crash when switch resolution after color correction

BZ: 17272

When selecting color correction (sky | grass), and then taking
successive pictures at different resolutions caused the camera to
crash. This patch fixes the bug.

Change-Id: I3b2f738081049e3d1412b622d9caf1f9fd47c142
Orig-Change-Id: I49adf7c246ec328d0b5e8aa4cf517b8dae6e9e90
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/24617
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Gerasimow, Timo <timo.gerasimow@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28013
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: camera burst capture speed stability issue.
ziyux.jiang [Thu, 17 Nov 2011 13:59:57 +0000 (21:59 +0800)]
[PORT FROM R2] atomisp: camera burst capture speed stability issue.

BZ: 17272

previous yuv-ds algorithm is that the yuv-ds is enabled when
sensor.width > out.width*(1+10%) or sensor.height > out.height*(1+10%).
if that, 6M will be cropped first and then did yuv-ds.
so now we change yuv-ds algorithm to be that the yuv-ds is enabled
when sensor.width > out.width*(1+10%) and sensor.height > out.height*(1+10%).
if that, 6M only will be cropped and no yuv-ds is needed.

Change-Id: If0fbec87b03c8f600df1c6c58ac040af1d51cd10
Orig-Change-Id: I72026f545cf0feee958d357dc59ba4b38f760207
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/24347
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Tao, Jing <jing.tao@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28012
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: CSS tried to free memory that was already freed
Lokesh Gupta [Fri, 11 Nov 2011 10:30:35 +0000 (11:30 +0100)]
[PORT FROM R2] atomisp: CSS tried to free memory that was already freed

BZ: 17272

Some pointers within the CSS code were not being initialized
and reset correctly, due to which memory allocation/free-up
caused warnings. This patch fixes these cases. A new function
is added to properly uninitialize the sh_css_sp module.

Change-Id: I885a7aeb2b77197562bc468a673c2653cc30f3fc
Orig-Change-Id: I98370340392d3b7aca2f5c63403d3fbfe17164bd
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/23911
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Von Oerthel, Jurgen <jurgen.von.oerthel@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28011
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: Fix related failure check.
ziyux.jiang [Tue, 15 Nov 2011 17:47:08 +0000 (01:47 +0800)]
[PORT FROM R2] atomisp: Fix related failure check.

BZ: 17272

when frame allocation or others fail, we should return related error messages
instead of doing nothing.

Change-Id: I99ad6d5b721e5dcba7132cec3d68866c3e042717
Orig-Change-Id: I3199519ef7a0b6ca1ad01f6184671e43a30a06f6
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/24108
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28010
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: implement chroma enhancement
Daewoo Kim [Tue, 15 Nov 2011 02:24:23 +0000 (03:24 +0100)]
[PORT FROM R2] atomisp: implement chroma enhancement

BZ: 17272

Implement chroma enhancement

Change-Id: If76501d47d1faf1787f9d69c26438ec3d3afbfc0
Orig-Change-Id: I7aaf6a71e90f342d2d6de7eafe9e90260475364f
Signed-off-by: Daewoo Kim <daewoo.kim@intel.com>
Reviewed-on: http://android.intel.com:8080/24078
Reviewed-by: Gupta, Lokesh <lokesh.gupta@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@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>
Reviewed-on: http://android.intel.com:8080/28009
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: shading table interpolation is not correct when output is...
Yoshio Wada [Wed, 16 Nov 2011 09:43:11 +0000 (10:43 +0100)]
[PORT FROM R2] atomisp: shading table interpolation is not correct when output is larger than input

BZ: 17272

Change-Id: Icdac356e75c47e89103e6d364c4b5e731c100c0f
Orig-Change-Id: I5aee14fe00ca3784269e6c8ae70152e05a67cf2c
Signed-off-by: Yoshio Wada <yoshio.wada@intel.com>
Reviewed-on: http://android.intel.com:8080/24213
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Finnila, Tapio <tapio.finnila@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28008
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: improved format of debug info for CSS
Lokesh Gupta [Tue, 15 Nov 2011 14:24:37 +0000 (15:24 +0100)]
[PORT FROM R2] atomisp: improved format of debug info for CSS

BZ: 17272

When ISP timeout happens, it is possible to dump the debug
information from ISP. This patch improves the format of this
dump. Major improvements:
- FIFO states are now correct, bugs fixed in code
- FIFO states from ISP to GDC are also printed now
- Change in CSS API to pass context info for debug

Change-Id: I550f6951f1189a924cebe2b0267d6627352e13b0
Orig-Change-Id: I3cf80dcd2ba4ed4301285cac734b0a0d99126a13
Reviewed-on: http://android.intel.com:8080/24397
Reviewed-by: Gupta, Lokesh <lokesh.gupta@intel.com>
Reviewed-by: Von Oerthel, Jurgen <jurgen.von.oerthel@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28007
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: Fine tune color enhancement tables
Timo Gerasimow [Thu, 17 Nov 2011 08:48:38 +0000 (10:48 +0200)]
[PORT FROM R2] atomisp: Fine tune color enhancement tables

BZ: 17272

Skin whitening, enhance grass and enhance sky MACC tables fine tuned in order to have better color reproduction.

Change-Id: I177bae3236c96e4adea4b842e1f8ac1ad60d09a3
Orig-Change-Id: I479c628fd98c698d2470470b4c6c496c6d34388f
Signed-off-by: Timo Gerasimow <timo.gerasimow@intel.com>
Reviewed-on: http://android.intel.com:8080/24355
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Wada, Yoshio <yoshio.wada@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Finnila, Tapio <tapio.finnila@intel.com>
Reviewed-on: http://android.intel.com:8080/28006
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] atomisp: Fix memory leak in pages allocation failure.
ziyux.jiang [Tue, 8 Nov 2011 17:53:07 +0000 (01:53 +0800)]
[PORT FROM R2] atomisp: Fix memory leak in pages allocation failure.

BZ: 17272

to atomisp driver memory allocation, when processing pages
allocation fail, we should do related free.

Change-Id: Ie4071da207f5c52a175209b4889425097f1b4ff2
Orig-Change-Id: I5c51b7e07c6bd3713c669c3bd47de16365ce9bea
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/23551
Reviewed-by: buildbot <buildbot@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@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: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/28005
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] atomisp: CSS/FW release from 20111115_0600 baseline
Lokesh Gupta [Tue, 15 Nov 2011 20:33:48 +0000 (21:33 +0100)]
[PORT FROM R2] atomisp: CSS/FW release from 20111115_0600 baseline

BZ: 17272

A white line on the right side of frame when double click the
screen to zoom 16x. This release fixes this issue.

Change-Id: I77b8ea0ac7e20c558ead3cfd3010e4377cd03c13
Orig-Change-Id: I5cdb439a14c0cc3b6f6cc8425019169453a2be60
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/24138
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>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28004
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: disable sensor's LSC
David Cohen [Thu, 3 Nov 2011 12:04:07 +0000 (14:04 +0200)]
[PORT FROM R2] atomisp: mt9e013: disable sensor's LSC

BZ: 17272

Atomisp driver is now using it's own shading table correction. Sensor's
table is no longer needed.

Change-Id: Ifa74f2fe2c05aa7bb4f9784c007789f13833a952
Orig-Change-Id: I3c60f8401defb9f547fceb90fc8c425f936f9631
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/23049
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28003
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: drop frame according firmware information
Tao Jing [Tue, 8 Nov 2011 02:46:13 +0000 (10:46 +0800)]
[PORT FROM R2] atomisp: drop frame according firmware information

BZ: 17272

Firmware will set irq info to SH_CSS_IRQ_INFO_INVALID_FIRST_FRAME if
the this frame is invalid. Atomisp will skip this frame.

Change-Id: Ice6fc26bb517ccb4214cdc6c171f8e4de2010a3a
Orig-Change-Id: Iaf8560a851384942f4f66dc9ffda1798886f04f2
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/23509
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@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>
Reviewed-on: http://android.intel.com:8080/28002
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: first frame of output video binary is bad
Lokesh Gupta [Fri, 4 Nov 2011 11:57:36 +0000 (12:57 +0100)]
[PORT FROM R2] atomisp: first frame of output video binary is bad

BZ: 17272

The first frame from video binary is always bad because video
binary has a two stage pipeline. With this patch, the CSS layer
informs the driver layer about an invalid frame using the
interrupt info

Change-Id: I1beb51fc9de8cf02522e9a84aa1badbc04e0ab95
Orig-Change-Id: Ic7d7e9119f04d9fa1555d812e954ed250905ef8b
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/23187
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Tao, Jing <jing.tao@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28001
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: set sensor's binning factor to ISP before streaming
David Cohen [Wed, 2 Nov 2011 19:35:36 +0000 (21:35 +0200)]
[PORT FROM R2] atomisp: set sensor's binning factor to ISP before streaming

BZ: 17272

When Atomisp changes sensor's format, it needs to ask for sensor's
binning factor which necessary for internal operations. This patch
implements such functionality.

Change-Id: I0a2f47f58da270c6f62b08c6f3d4534da17e0113
Orig-Change-Id: Id5754ad893b0e91628f6407b650f0532cb6fc52f
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/22979
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28000
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: mt9e013: add binning factor CID support
David Cohen [Wed, 2 Nov 2011 19:34:55 +0000 (21:34 +0200)]
[PORT FROM R2] atomisp: mt9e013: add binning factor CID support

BZ: 17272

Sensor mt9e013 needs to inform binning factor to ISP. This patch adds
proper CID to its interface.

Change-Id: I3630955cd022f9f599992c3be9aa8eb7970a7dd2
Orig-Change-Id: I6e24ad230d73acd5cd1fe3d2053537419c78274e
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/22978
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27999
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] Revert "atomisp: add CSS support for atomic ISP restart"
Tao Jing [Fri, 11 Nov 2011 08:35:06 +0000 (16:35 +0800)]
[PORT FROM R2] Revert "atomisp: add CSS support for atomic ISP restart"

BZ: 17272

This reverts commit 5b8f28334198de27e20e0001e927dffd8fcf57bb.

Change-Id: Ie10d52ee66a88957ea870a0f75edff11d554481e
Orig-Change-Id: I68fdd2a80b0cf7f58e6abd5f254d609ad7cd32e3
Signed-off-by: Tao Jing <jing.tao@intel.com>
Reviewed-on: http://android.intel.com:8080/23893
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27998
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: add load shading table interface
David Cohen [Wed, 26 Oct 2011 17:12:00 +0000 (20:12 +0300)]
[PORT FROM R2] atomisp: add load shading table interface

BZ: 17272

This patch adds to Atomisp driver interface to load shading table from
userspace.

Change-Id: Ie1b58b8215660c7b972c292f3f817e24ddd013fe
Orig-Change-Id: I6a1c34a899f1afc8e5ec1c384791e957992ff422
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Miikka Tuppurainen <miikka.tuppurainen@intel.com>
Reviewed-on: http://android.intel.com:8080/22559
Reviewed-by: Wada, Yoshio <yoshio.wada@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27997
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: shading table re-interpolation trigger
Lokesh Gupta [Thu, 3 Nov 2011 19:57:40 +0000 (20:57 +0100)]
[PORT FROM R2] atomisp: shading table re-interpolation trigger

BZ: 17272

When the shading table is changed or the binning factor is changed
the shading table should be reset for all modes (preview, capture
and video). This will enforce shading table re-interpolation when
these modes are started.

Change-Id: I72f2db2fff40cde7fdedd8a0d74aeab33d9656bd
Orig-Change-Id: If376c4734a7a159dd6b19b919844c18b24d60b31
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/23093
Reviewed-by: Kruger, Jozef <jozef.kruger@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>
Reviewed-on: http://android.intel.com:8080/27996
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: CSS/FW release 09-Nov-2011
Lokesh Gupta [Wed, 9 Nov 2011 15:52:05 +0000 (16:52 +0100)]
[PORT FROM R2] atomisp: CSS/FW release 09-Nov-2011

BZ: 17272

This CSS/FW release addresses the following issues:
- Capture at 8MP 15fps for formats up to yuv422

Change-Id: I77e900ad74b80ea09910cf8ef2d670b833fbe7ea
Orig-Change-Id: If48f98c9551149999b21b0fa7c9d9ebf8c933fc5
Signed-off-by: Lokesh Gupta <lokesh.gupta@intel.com>
Reviewed-on: http://android.intel.com:8080/23761
Reviewed-by: Le Thenaff, Erwan <erwan.le.thenaff@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Reviewed-by: Govindapillai, Vinod <vinod.govindapillai@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>
Reviewed-on: http://android.intel.com:8080/27995
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: ISR and workqueue are out of sync
David Cohen [Wed, 2 Nov 2011 09:38:28 +0000 (11:38 +0200)]
[PORT FROM R2] atomisp: ISR and workqueue are out of sync

BZ: 17272

Atomisp's ISR sets isp->irq_infos everytime an interrupt happens
overwritting previous value. If workqueue didn't have time to check
previous interrupt, the driver will ignore it. This patch fixes this
issue.

Change-Id: Ie905e5dbc924c187f9c47bdffc70ae6a3443080a
Orig-Change-Id: I1706ada8ef53ec4d447cd184c7a232a7cb96e3ab
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/23195
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: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27994
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: optimize atomisp_acc_get_fw/index() to satisfy klockwork
David Cohen [Mon, 7 Nov 2011 17:50:47 +0000 (19:50 +0200)]
[PORT FROM R2] atomisp: optimize atomisp_acc_get_fw/index() to satisfy klockwork

BZ: 17272

Due to a (not well optimized) logic Klockwork doesn't understand, it is
complaining about possible memory leak. This patch changes/optimizes
this logic to make Klockwork happier.

Change-Id: Ife10eb9f0aec2a164b93f28d29ae0a72c62e7bc6
Orig-Change-Id: Ie303427f4d16486f268940745b73692fa5d781f8
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/23490
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
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>
Reviewed-on: http://android.intel.com:8080/27993
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] atomisp: Address Klocwork critical issue in drivers
zheng.zixiang [Wed, 2 Nov 2011 10:19:02 +0000 (18:19 +0800)]
[PORT FROM R2] atomisp: Address Klocwork critical issue in drivers

BZ: 17272

Fix Klocwork critical issue that index of 'sh_css_blob_info'
may be out of bounds.
Signed-off-by: zheng.zixiang <zixiangx.zheng@intel.com>
Change-Id: Ib80656441fd1f5d18cc93dc9560e95b6ef70bed2
Orig-Change-Id: I71c9e1becc8d82d2f058002c1fe65630848de73c
Signed-off-by: zheng.zixiang <zixiangx.zheng@intel.com>
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/22951
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Zhang, Xiaolin <xiaolin.zhang@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27992
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: make delay in focus_status function variable
Robert Jong-A-Lock [Tue, 1 Nov 2011 13:58:43 +0000 (14:58 +0100)]
[PORT FROM R2] atomisp: make delay in focus_status function variable

BZ: 17272

this change assumes that one step needs 1ms of delay.The ammount
of steps changed times 1ms, maximised to 40ms, is then used to
wait before the focus_status function returns
ATOMISP_FOCUS_HP_COMPLETE again. This way the delay is no longer
fixed to 60ms after each call to t_focus.

Change-Id: Ie8ce0ecffff8933d1b91341741f6ff7e934a2a1d
Orig-Change-Id: Ia0419de7d14418dc63da8b1ab61988e36edaffa2
Reviewed-on: http://android.intel.com:8080/22864
Reviewed-by: Jong-a-lock, Robert <robert.jong-a-lock@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Samurov, Vitali <vitali.samurov@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27991
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] atomisp: avoid concurrent access of hrt_isp_css_mm_set_user_ptr()
David Cohen [Wed, 19 Oct 2011 12:41:04 +0000 (15:41 +0300)]
[PORT FROM R2] atomisp: avoid concurrent access of hrt_isp_css_mm_set_user_ptr()

BZ: 17272

Function hrt_isp_css_mm_alloc() depends on global variables set by
hrt_isp_css_mm_set_user_ptr() which creates need to use both functions
in sequence by same user.
As accel API uses it concurrently with atomisp_qbuf(), it causes a
possible racing condition between both.

This patch creates a new way to call hrt_isp_css_mm_alloc() without needing
to set global variables. Accel API makes use of this new way avoiding the
possible racing condition.

Change-Id: If8f4c1bb60e647b1973856ebdd1ea3a7e31648b6
Orig-Change-Id: I16e59afb336c395392fa3fca899d58a690875eb2
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/23196
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Gupta, Lokesh <lokesh.gupta@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Le Thenaff, Erwan <erwan.le.thenaff@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27990
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
12 years ago[PORT FROM R2] lm3554: correct flash behavior when receive msic signal
Jianxu zheng [Tue, 1 Nov 2011 04:22:11 +0000 (12:22 +0800)]
[PORT FROM R2] lm3554: correct flash behavior when receive msic signal

BZ: 17272

This patch changed the behavior when receive msic signal.With this patch
lm3554 driver will not take TX1/TX2 signal as an error. Because MSIC will not turn off flash,
but turn to torch mode according to gsm modem signal by hardware.

Also correct an error which make the flash brightness opposite to the setting.

Change-Id: I40e8b90e2bf5d677989701b2f837a850394fc086
Orig-Change-Id: Iedf0358bb11bcb2939672f9e671ffc50a72311c7
Signed-off-by: Jianxu zheng <jian.xu.zheng@intel.com>
Reviewed-on: http://android.intel.com:8080/22829
Reviewed-by: Toivonen, Tuukka <tuukka.toivonen@intel.com>
Reviewed-by: Yang, Ji <ji.yang@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Viry, RenaudX <renaudx.viry@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/27989
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
12 years ago[PORT FROM R2] sound: Add wakelock to jack detection interrupts
Samu Onkalo [Fri, 18 Nov 2011 08:58:01 +0000 (10:58 +0200)]
[PORT FROM R2] sound: Add wakelock to jack detection interrupts

BZ: 17287

If the jack detection interrupt comes after the user processes are
freezed the interrupt is handled but the audio routings are not
done. Suspend operation must be aborted in that case.
Take wakelock for one second when the headset related interrupt comes.
Machine driver doesn't know when the operation is finished so it
can't unlock the wakelock. Timed wakelock is a simple way to
handle this although is not perfect one.

Change-Id: I762ebc083d64b8e0cd0ebf06ab48b768fd1faf9a
Old-Change-Id: I32cbdeee422e44a52c4fa7c5ccda973d00efd8c3
Signed-off-by: Samu Onkalo <samu.onkalo@intel.com>
Reviewed-on: http://android.intel.com:8080/27796
Reviewed-by: Barthes, FabienX <fabienx.barthes@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopmu: add kernel config for MDFLD
Prabu Renganathan [Mon, 12 Dec 2011 16:19:32 +0000 (08:19 -0800)]
pmu: add kernel config for MDFLD

BZ: 17326

Added config option to enable/disable PMU driver for easy debug
and -Werror to force fix warnings

Change-Id: I7fa241c670f9fc4deade451a3d92750b7fbc9105
Signed-off-by: Prabu Renganathan <prabu.renganathan@intel.com>
Reviewed-on: http://android.intel.com:8080/27242
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Mai, Leonard <leonard.mai@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/android_gadget: get serial string from emmc card cid
Liu, DongxingX [Tue, 13 Dec 2011 13:57:18 +0000 (21:57 +0800)]
usb/android_gadget: get serial string from emmc card cid

BZ: 16897

This patch gets serial string from emmc card cid instead of
default serial string.

Signed-off-by: Liu, DongxingX <dongxingx.liu@intel.com>
Change-Id: I7c7e74fd74372e4dc799627f2989b2962b225d67
Reviewed-on: http://android.intel.com:8080/27194
Reviewed-by: Liu, DongxingX <dongxingx.liu@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Wu, Hao <hao.wu@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell: change VBUS draw settings in i386_mfld_defconfig
jzhuan5 [Tue, 6 Dec 2011 20:57:01 +0000 (15:57 -0500)]
usb/penwell: change VBUS draw settings in i386_mfld_defconfig

BZ: 16022

ported from R2.
Set VBUS DRAW and SUPEND VBUS DRAW to 500.

Change-Id: I40506a4d3d941d9573f553a9b969ce4e951d5386
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/26928
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell: serveral host client transceiver patches to K30
jzhuan5 [Fri, 2 Dec 2011 16:18:17 +0000 (11:18 -0500)]
usb/penwell: serveral host client transceiver patches to K30

BZ: 16022

Patches below are ported, numbers below are bug numbers:
5644 OTG Clean up patch
3595 UDC CDP charging patch
13730 Mass Storage Gadget
7699 OTG: Host
11795 OTG: Penwell
11795 USB: Kconfig
12288 Host
12119 OTG: Host
12205 UDC
12284 OTG
11703 Mass Storage Gadget
2404 USB Host R1
9917 UDC
9109 UDC
822 RNDIS Performance
5645 fastboot
3150 Jiffies
976 fastboot dual config
833 Gadget
USB: Add USB otg test device support f16a5c42c2b7823e8278d5ca553754c500f0dec4
usb: enable fastboot (Jack Ren) 693a0ffc09439fce00d2baf39f88e14521ee7a5e

Change-Id: I41daf828960b4fc2c0ea8f635d3cb5f410d64945
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/26927
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoi386_mfld_defconfig: enable USB HID support
Wu, Hao [Mon, 28 Nov 2011 18:01:08 +0000 (02:01 +0800)]
i386_mfld_defconfig: enable USB HID support

BZ: 15520

This patch enabled HID support in default config file.

Change-Id: I1e2f25ce8a7b89d150d595e4a575d3bab5761228
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/26926
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb:makefile: adjust the otg item in makefile
jzhuan5 [Fri, 9 Dec 2011 03:08:52 +0000 (22:08 -0500)]
usb:makefile: adjust the otg item in makefile

BZ: 15492

The current position of otg item causes ehci driver being loaded
before otg driver, due to which, USB Host function is not available.
Thus, adjust it to the right place.

Change-Id: I0710b8c91525c7207a501476cc213b1b0a333e3a
Signed-off-by: jzhuan5 <jin.can.zhuang@intel.com>
Reviewed-on: http://android.intel.com:8080/26925
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell: enable USB Host function in config
Wu, Hao [Mon, 28 Nov 2011 18:06:13 +0000 (02:06 +0800)]
usb/penwell: enable USB Host function in config

BZ: 15492

Patch enabled USB Host function in config for R3, including EHCI support.

Change-Id: I641c5ff9b6bc151419d02843610a64207181e93f
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/26924
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell_otg: hold wake_lock for OTG A device states
Wu, Hao [Thu, 13 Oct 2011 19:04:25 +0000 (03:04 +0800)]
usb/penwell_otg: hold wake_lock for OTG A device states

BZ: 15492

This patch is used to hold wake_lock to prevent S3 state which
USB will be in D3. Some OTG A device state needs to keep USB in
D0 state, so add this protection.

R2 BZ: 12119

Change-Id: I16267c4b360bfc819f38d3e5a1c509acf03878b3
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/26923
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agousb/penwell: Port USB Host patches to K30
Wu, Hao [Mon, 28 Nov 2011 18:16:31 +0000 (02:16 +0800)]
usb/penwell: Port USB Host patches to K30

BZ: 15492

Port USB Host related patches from R3 to R3(K30). It includes below
patches:

linux-2.6.35-ac-2010-08-24.patch
usb: ehci: add power budget limitation for penwell
linux-2.6.35-usb-ehci-langwell-pci-add-transceiver-driver-inter.patch
usb: ehci-pci: add SRAM initialization code for S0i3 exit
usb: ehci-hub: Clear PHCD before resuming
Bug fixing patches for 5382/5549/7166.

Change-Id: I3f57bcba7a2ef024b7b57d10405b339026fc1a58
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/26922
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] n_gsm.c: avoid race condition in network interface
Denis Robert [Tue, 13 Dec 2011 13:45:05 +0000 (14:45 +0100)]
[PORT FROM R2] n_gsm.c: avoid race condition in network interface

BZ: 15922

When the RIL ask (via iotcl) to delete the network interface, if a userland proc
ess is transfering, the xmit function can be called while the interface is delet
ed.
The interface is now stopped before deleting it.

Move from linux-2.6/drivers/char to linux-2.6/drivers/tty

Change-Id: If8e4ad645f6f048ec9b90eb225ef414acf009316
Orig-change-Id: I1e3c9881a7e9e50e30d9d2ac46cfdff4b758b532
Signed-off-by: Vincent Pillet <vincentx.pillet@intel.com>
Signed-off-by: Denis Robert <denis.robert@intel.com>
Reviewed-on: http://android.intel.com:8080/27176
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopanic_handle: dump logcat buffer when kernel panic happened
Zhang Dongxing [Tue, 23 Aug 2011 07:09:17 +0000 (15:09 +0800)]
panic_handle: dump logcat buffer when kernel panic happened

BZ: 17216

We also dump the existing logcat buffer data into emmc and just copy
the dumped data back to logcat buffer after system reboot. Then we
can use logcat command to retrieve the dumpped log data.

Change-Id: Id7afab9ded5e4d84e7791ea42b573560261701a4
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/26997
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopanic handle: Stream call trace into emmc
Zhang Dongxing [Tue, 26 Jul 2011 02:33:41 +0000 (10:33 +0800)]
panic handle: Stream call trace into emmc

BZ: 17214

Once kernel panic happened, we will save all call stack of all
threads into __log_buf and then we will write it to emmc panic
partition. With the increase of thread count, we need more
large__log_buf. It will waste more RAM buffer.

We stream the call trace from __log_buf into emmc panic
partition without allocating more RAM buffer. Once there is
some call trace logged in __log_buf, we will write all into emmc.

Change-Id: I7293c80fdadfee056694a9e1a548e2f17e955e61
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/26996
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopanic_handle: Add a debugfs entry to disable/enable emmc ipanic manually
Yanmin Zhang [Mon, 13 Jun 2011 03:32:07 +0000 (11:32 +0800)]
panic_handle: Add a debugfs entry to disable/enable emmc ipanic manually

BZ: 17477

emmc ipanic feature would dump the task kernel stacks of all processes.
That erases all the log_buf usually. Although emmc ipanic writes the info
to storage, but it's not good for living debugging using ITP or other
debug tools. We want to check sys log and other info such like
specific variables and memory, when the panic happens.

This patch adds disable_emmc_ipanic, a new debugfs entry. To disable
emmc ipanic manually:

The patch also adds a boot parameter disable_emmc_ipanic which can be used
when kernel panic at booting.

By default, disable_emmc_ipanic==0.

Change-Id: I2642d2a28a1e6838fb65bc4811b701fe87bdd6ae
Signed-off-by: Yanmin Zhang <yanmin.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/26995
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Tested-by: Zhang, Dongxing <dongxing.zhang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoPanic_handle: fix all warning messages.
Zhang Dongxing [Tue, 24 May 2011 00:36:11 +0000 (08:36 +0800)]
Panic_handle: fix all warning messages.

BZ: 17212

remove all of compiling warnings.

Change-Id: I8f9f5d1ae9314b510d0ab9695bc36d1d95a71c56
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/26994
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopanic_handle: Save kernel msg into EMMC when kernel panic FOR NEW OPTION
liu chuansheng [Tue, 17 May 2011 08:33:51 +0000 (16:33 +0800)]
panic_handle: Save kernel msg into EMMC when kernel panic FOR NEW OPTION

BZ: 17212

Adding a new option for enabling the emmc panic handler

Change-Id: I2838e2e7291ca46c4525f3d7b63ef9371a4c8d53
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/26993
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Tested-by: Zhang, Dongxing <dongxing.zhang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agopanic_handle: Save kernel msg into EMMC when kernel panic
liu chuansheng [Mon, 16 May 2011 13:28:55 +0000 (21:28 +0800)]
panic_handle: Save kernel msg into EMMC when kernel panic

BZ: 17212

Adding the new panic handler emmc_ipanic, when panic happened,
the emmc ipanic will save the log buffer and thread info into
emmc emergency partiton.

Change-Id: I59d58b303d7df6e26040bb9da883225b7c3d0713
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/26992
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Tested-by: Zhang, Dongxing <dongxing.zhang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Port from R2-stable] Intel Keypad LED driver patches
Shijie Zhang [Fri, 16 Dec 2011 00:23:17 +0000 (08:23 +0800)]
[Port from R2-stable] Intel Keypad LED driver patches

BZ: 17581

This BZ includes the following BZ:
10361, 13071, 13148, 13751, 14636, 14411, 15649

Change-Id: I801658043354cd0de3f680425e63790c6c5fd040
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/27709
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] IPC Driver Patches
Li, Ning [Thu, 15 Dec 2011 11:32:30 +0000 (19:32 +0800)]
[PORT FROM R2] IPC Driver Patches

BZ: 17485

This BZ includes the following BZs:
10321, 11749, 8773, 9027, 9446, 9459, 10685, 14922, 16961, 16789

Change-Id: I6b5463d15c4fc0e41efe47c4d64ec0d66613ff6b
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/27703
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAndroidKernel.mk: forward job server information kernel build script
Pierre Tardy [Wed, 14 Dec 2011 17:15:46 +0000 (18:15 +0100)]
AndroidKernel.mk: forward job server information kernel build script

BZ: 16664

when building the kernel there are two independant job server that runs at
the same time, that could lead to double the number of // jobs

Change-Id: I0d9be7a75dfe4fd2a22325b8e4d62cf27aa134a2
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Reviewed-on: http://android.intel.com:8080/27344
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] GPIO controller driver
Philippe Skowronski [Thu, 15 Dec 2011 13:24:07 +0000 (14:24 +0100)]
[PORT FROM R2] GPIO controller driver

BZ: 16830

This BZ includes BZ:
3216

Change-Id: Ie47d733938e185b8c714233fcade1c08ff37b3e8
Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Reviewed-on: http://android.intel.com:8080/27624
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 agoltr502als.c: Port patches from GB
Leo Yan [Tue, 13 Dec 2011 07:11:32 +0000 (15:11 +0800)]
ltr502als.c: Port patches from GB

BZ: 17031

This patch inclues fixing for the following bugs:
BZ 16176: Obviate incorrect PS interrupt
BZ 13626: Reduce intergation circles and enhance adc-lux conversion
BZ 10605: workaround for proximity sensor do not work on first boot issue
BZ 13733: Add GPL header in the code file

Change-Id: I81b73662115d421d7a002a79d096e8a87590ec4a
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/27132
Reviewed-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agotouchscreen: Port patches from GB
Leo Yan [Thu, 15 Dec 2011 00:57:45 +0000 (08:57 +0800)]
touchscreen: Port patches from GB

BZ: 17031

This patch inclues fixing for the following bugs:
BZ 12527:
0001-atmel_mxt224-config-data-change-to-improve-stability.patch
0002-atmel_mxt224-disable-auto-calibration-after-calibrat.patch
BZ 11001:
0003-atmel_mxt224-remove-reset-when-cycle-overflow.patch
BZ 13372:
0004-atmel_mxt224-lower-touch-threshold-to-improve-touch-.patch

Change-Id: I6e2c336fec71a9bbbc194ea1cdbcb502534411dc
Signed-off-by: Leo Yan <leo.yan@intel.com>
Reviewed-on: http://android.intel.com:8080/27427
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM GB] I2C patches
Li, Ning [Wed, 14 Dec 2011 07:32:02 +0000 (15:32 +0800)]
[PORT FROM GB] I2C patches

BZ: 17357

This BZ includes the following BZ:
15120, 13176

Change-Id: I9762daad766811cf87379aa2fa33ce8d418987c7
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/27295
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[PORT FROM R2] ADC driver patches
Li, Ning [Tue, 13 Dec 2011 05:46:49 +0000 (13:46 +0800)]
[PORT FROM R2] ADC driver patches

BZ: 17163

This BZ includes the following BZ:
11047, 10427, 12458, 13583, 15827

Change-Id: Ifb5bb6736820beec875157d67fd54f90bad85364
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/27160
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoAdding ctp_pr0 build variant.
Seema Pandit [Wed, 7 Dec 2011 16:50:41 +0000 (08:50 -0800)]
Adding ctp_pr0 build variant.

BZ: 16707

Change-Id: Ie668feee1fc50807f9a5ebc97d14fe213df0de46
Signed-off-by: Seema Pandit <seema.pandit@intel.com>
Reviewed-on: http://android.intel.com:8080/26875
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Tested-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[LOG] PTI not enabled on kernel 3.0
Christophe Guerard [Mon, 12 Dec 2011 16:28:44 +0000 (17:28 +0100)]
[LOG] PTI not enabled on kernel 3.0

BZ: 16865

Change-Id: Ie3e9f41cad62ab72c7051ea899f24668519748c1
Signed-off-by: Christophe Guerard <christophe.guerard@intel.com>
Reviewed-on: http://android.intel.com:8080/27068
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agointel_scu_ipc: add cloverview support
Leonard Mai [Wed, 30 Nov 2011 15:20:14 +0000 (07:20 -0800)]
intel_scu_ipc: add cloverview support

BZ: 16713

Cloverview SOC use different PCI Device ID for IPC hence existing IPC
driver won't be successfully probed on Cloverview SOC.

Clovertrail Phone is using Avondale Cove PMIC (TI PSNB5072A) which is
derivative of the TI MSIC chip used on Medfield with reduced capabilities.
All PMIC registers ofsets on Avondale Cove PMIC are compatible with TI MSIC.

This patch adds IPC probing and support for Cloverview SOC.

Change-Id: I1a5cd363aafd1da6eb8c6445c0fb60c584827fc4
Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
Reviewed-by: Pierre Tardy <pierre.tardy@intel.com>
Reviewed-by: Mark Gross <mark.gross@intel.com>
Reviewed-by: Fei Yang <fei.yang@intel.com>
Reviewed-by: Bin Yang <bin.yang@intel.com>
Tested-by: Siva Prasath Ponnusamy <siva.prasath.ponnusamy@intel.com>
Reviewed-on: http://android.intel.com:8080/26620
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Seibel, Eric <eric.seibel@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 agoi2c: add cloverview support
Leonard Mai [Wed, 30 Nov 2011 20:20:19 +0000 (12:20 -0800)]
i2c: add cloverview support

BZ: 16711

Cloverview SOC use different PCI Device IDs for I2C controllers hence
existing Medfield I2C driver won't be loaded on Cloverview SOC.

This patch adds I2C probing support for Cloverview SOC

Change-Id: I5f26899c141e09ddf420db160b678882234e6dfa
Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
Reviewed-by: Pierre Tardy <pierre.tardy@intel.com>
Reviewed-by: Mark Gross <mark.gross@intel.com>
Reviewed-by: Fei Yang <fei.yang@intel.com>
Reviewed-by: Bin Yang <bin.yang@intel.com>
Tested-by: Siva Prasath Ponnusamy <siva.prasath.ponnusamy@intel.com>
Reviewed-on: http://android.intel.com:8080/26622
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Ponnusamy, Siva Prasath <siva.prasath.ponnusamy@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: adding mmc and sdio support for cloverview
Leonard Mai [Sat, 19 Nov 2011 16:29:18 +0000 (08:29 -0800)]
mmc: adding mmc and sdio support for cloverview

BZ: 16722

Cloverview SOC use different PCI Device IDs for eMMC/SDIO controllers
hence existing eMMC/SDIO driver won't be initialized on Cloverview SOC.

This patch adds eMMC and SDIO probing support for Cloverview SOC. Also,
Cloverview does not support eMMC mutex as comparing to Penwell hence not
to expose the Dekker's mutex mechanism for Cloverview.

Change-Id: I47927feef3c6cc62acc0c5912e1e2e8d7c0c7f2c
Signed-off-by: Leonard D Mai <leonard.mai@intel.com>
Reviewed-by: Mark Gross <mark.gross@intel.com>
Reviewed-on: http://android.intel.com:8080/26618
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: Dong, Chuanxiao <chuanxiao.dong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agommc: sdhci: ignore CLV card detection support
chuanxiao.dong@intel.com [Fri, 9 Dec 2011 05:39:04 +0000 (13:39 +0800)]
mmc: sdhci: ignore CLV card detection support

BZ: 16895

CLV has different memery map with MFLD which can cause fabric error
if using the same rule with MFLD. And currently CLV didn't have runtime
pm, so we can disable SD gpio detection temporary for CLV

Change-Id: I10805f5338a232aa290e7f44ecaaed2a34ff44cb
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/26658
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Mai, Leonard <leonard.mai@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[Graphics/Display]: Port a bunch of patches from R2
Randy Xu [Sun, 11 Dec 2011 11:17:20 +0000 (19:17 +0800)]
[Graphics/Display]: Port a bunch of patches from R2

BZ: 17008

This patch includes below bug fixing

0002-Gfx-Display-Enhance-DDC-to-read-extention-block-in-E.patch:BZ: 13176
0003-GFX-PM-Support-of-MIPIA-Display-OFF-during-video-pla.patch:BZ: 14855
0004-Gfx-Display-Fix-issue-for-MIPI-ERROR-fifo-is-not-emp.patch:BZ: 15147
0005-GFX-PM-fix-the-return-value-when-encoder-fail-to-pow.patch:BZ: 16150
0006-Solve-one-PM-issue-may-lead-to-Fabric-error.patch:BZ: 15373

Change-Id: Ia7cf3dc456df204489368dca3ff4e3a1f615bbec
Signed-off-by: Randy Xu <randy.xu@intel.com>
Signed-off-by: Tong Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/27125
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoPort over CTP patches from hc ddk-1.7 to ics-ddk-1.8
Guoqiang Cao [Sun, 11 Dec 2011 20:05:51 +0000 (12:05 -0800)]
Port over CTP patches from hc ddk-1.7 to ics-ddk-1.8

BZ: 13288

Port over CTP patches from hc ddk-1.7 to ics-ddk-1.8 which includes
several patches

Change-Id: I31a1e1820af228509f4f664015e7fda82526bb88
Signed-off-by: Guoqiang Cao <guoqiang.cao@intel.com>
Signed-off-by: Tong Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/27124
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[PORT FROM GB] Add support for dynamically adjusting volume during the call in S3...
Shijie Zhang [Fri, 28 Oct 2011 00:54:50 +0000 (08:54 +0800)]
[PORT FROM GB] Add support for dynamically adjusting volume during the call in S3 state

BZ: 13269

This patch fix the problem that can not adjust the volume during the
call in S3 state with screen off because of the proximity sensor. By
adding sysfs interface "enabled_wakeup" and "disabled_wakeup" in
gpio-keys to dynamically enable or disable the gpiokeys.

Change-Id: I80c45daca2999821502302998f76e0e54c806a68
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/26773
Reviewed-by: Barthes, FabienX <fabienx.barthes@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomrst: process atmel_mxt224 from SFI table
Hari Kanigeri [Thu, 8 Dec 2011 15:52:47 +0000 (07:52 -0800)]
mrst: process atmel_mxt224 from SFI table

BZ:16879

At present the atmel_mxt224 value is hard coded in blackbay_pr2.c
file. This value is already part of SFI table, and should make use
of this instead of using hard coded values.

changed the name of Atmel_mxt224 to mxt224 to match with the
name used in SFI table.

Change-Id: Ic86dbfc306cf28ef534bd8f6dd1e28da486af885
Signed-off-by: Hari Kanigeri <hari.k.kanigeri@intel.com>
Signed-off-by: Prabu Renganathan <prabu.renganathan@intel.com>
Reviewed-on: http://android.intel.com:8080/26863
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 agoapply pvrdbg flag to kernel space IMG DDK
John Ye [Fri, 9 Dec 2011 10:00:52 +0000 (18:00 +0800)]
apply pvrdbg flag to kernel space IMG DDK

BZ: 16943

The userspace DDK can be compiled to debug mode with flag pvrdbg=1,
however this did not affect the kernel DDK code.
This commit fixes this issue.

Change-Id: I73877360183badd3958cbd264130b3d776070135
Signed-off-by: John Ye <john.ye@intel.com>
Reviewed-on: http://android.intel.com:8080/26916
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: fixed the issue that HDMI can't show video playback with HW Composer.
Austin Hu [Mon, 5 Dec 2011 10:04:13 +0000 (18:04 +0800)]
Gfx-Display: fixed the issue that HDMI can't show video playback with HW Composer.

BZ: 16345

When play video with HDMI by Gallery, overlay crashes because overlay plane size
(= HDMI sink device mode) exceeds DC source image size in aspect ratio mode.

Fixed the issue by setting HDMI default scaling mode to center. And Resoure Manager
can decide to set HDMI scaling to center before playing video via HDMI, to avoid
such issue.

Change-Id: I8cf42740962377125ac9ed631cd1fa828b57555f
Signed-off-by: Austin Hu <austin.hu@intel.com>
Reviewed-on: http://android.intel.com:8080/26915
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[Graphics/Display]: Port a bunch of patches from R2
Randy Xu [Sun, 11 Dec 2011 11:17:20 +0000 (19:17 +0800)]
[Graphics/Display]: Port a bunch of patches from R2

BZ: 17008

This patch includes below bug fixing

0002-GFX-3D-2D-using-private-queue-instead-of-common-work.patch:BZ:4306
0003-GFX-Display-fix-V_1P22_VCCAON_DSI-rail-high.patch:BZ:  6670
0004-GFX-PM-Enable-GL3-attributes-including-auto-clock-g.patch:BZ: 6371, 8403, 8405, 8406, 8407 & 8408
0005-GFX-Display-Added-ULPS-support-to-DPI-driver.patch:BZ:  9284
0006-GFX-Display-replaced-busy-waits-20ms-with-mslee.patch:BZ:  9440
0007--PORT-FROM-R1-GFX-Display-update-pr2-cabc-control.patch:BZ:  8544
0008--PORT-FROM-R1-Graphics-Display-SGX-HW-recovery-ca.patch:BZ:  10106
0009--GFX-Display-Not-change-the-panel-devInfo-when-cre.patch:BZ: 11873
0010-Gfx-Display-Refined-scaling-setting-to-support-Cent.patch:BZ: 11093
0011-GFX-Improve-HDMI-rotation-mechanism-kernel.patch:BZ: 10804, 11517, 10736
0012-Gfx-Display-Fix-vblank-enable-disable-defect-in-HDM.patch:BZ: 11434
0013-psb_drm-obsolet-fields-can-be-deleted-in-psb_drm.h.patch:BZ: 9354
0014-Graphics-restore-the-BCD-reference-count-in-case-of.patch:BZ: 11670
0015-Gfx-Display-sending-HDMI-audio-suspended-resumed-ue.patch:BZ: 12415
0016-GFX-Display-add-code-to-support-HDMI-compliance.patch:BZ: 5876, 5879
0017-GFX-display-update-HDMI-AVI-info-support-kernel.patch:BZ: 5877
0018-Gfx-Display-Modify-DPMS-to-just-turn-off-HDMI-plane.patch:BZ: 12541
0019-GFX-display-Add-a-ioctl-interface-for-HDMIpipe-enabl.patch:BZ: 12881, 12949
0020-GFX-Display-fix-mimic-mode-will-be-changed-during-m.patch:BZ: 5876
0021-Graphic-Solve-klocwork-review-defects-for-pvr.patch:BZ: 13836
0022-Gfx-Display-fix-issue-of-HDMI-could-not-get-i2c-ada.patch:BZ: 14013
0023-GFX-Display-fix-refresh-info-not-right-of-MIPI-mode.patch:BZ: 13941
0024-Gfx-Display-fix-the-issue-of-HDMI-hotplug-could-not.patch:BZ: 13917
0025-GFX-HDCP-port-I2C-address-change-to-0x3A-without-re.patch:BZ: 14427
0026-GFX-display-add-code-to-support-HDMI-set-power-stat.patch:BZ: 13944
0027-Gfx-Display-Fix-issue-of-music-does-not-restart-on.patch:BZ: 13987
0028-GFX-Display-enhancement-HDMI-compliance-test-support.patch:BZ: 14104, 14617, 14627
0029-GFX-HDMI-HDCP-Fix-HDCP-cann-t-be-enabled-disabled.patch:BZ: 13724
0030-GFX-Display-Fix-call-issue-when-connect-HDMI.patch:BZ: 13468
0031-GFX-display-fix-HDMI-corrupted-after-resume-from-r.patch:BZ: 13067
0032-Gfx-Display-fix-issue-of-incoming-call-display-on-H.patch:BZ: 14113
0033-Gfx-Display-Ensure-HDMI-clock-is-enabled-before-HDM.patch:BZ: 14156
0034-GFX-display-update-hdmi_state-usage.patch:BZ: 14097
0035-GFX-display-flush-the-plane-changes-when-disable-e.patch:BZ: 15146
0036-GFX-display-fix-hdmi-dpms-fabric-error.-for-R2.patch:BZ: 14884, 14091, 12933
0037-GFX-Display-fix-OVADD-fabric-error-hdmi-resume-fail.patch:BZ: 15667
0038-GFX-Display-fix-lost-video-when-upplug-HDMI.patch:BZ: 15527

Change-Id: I35d6304f3cd84c6f45d3ef4c23637e4e41a68f83
Signed-off-by: Randy Xu <randy.xu@intel.com>
Reviewed-on: http://android.intel.com:8080/26914
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoGfx-Display: fixed the issue that HDMI can't display in ICS.
Sophia Gong [Thu, 1 Dec 2011 13:12:33 +0000 (21:12 +0800)]
Gfx-Display: fixed the issue that HDMI can't display in ICS.

BZ: 16029

HDMI encoder's detect callback doesn't go through the correct process
which checks HDMI connection status via MSIC and un-gates Display B
island, because the CONFIG_X86_MRST switch is turned off in ICS kernel
config.

Fixed the issue by using CONFIG_X86_MDFLD.

Note: as the HDMIObserver middleware hasn't been integrated into ICS,
we have to turn on HDMI by connecting it with PR2/3 during booting
system, or by using some libdrm based tools.

Change-Id: I031e3b6a108c36d0ba70ffcc8742fb5e31f1066a
Signed-off-by: Sophia Gong <sophia.gong@intel.com>
Reviewed-on: http://android.intel.com:8080/26682
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years ago[Graphics]: Integrating the IMG DDK1.8 into ICS mainline
Randy Xu [Sun, 11 Dec 2011 11:02:12 +0000 (19:02 +0800)]
[Graphics]: Integrating the IMG DDK1.8 into ICS mainline

BZ: 16598

Upgrade to PVR DDK 1.8. The 1st set (changes under hardware/intel/linux-2.6/) of 4.

Graphics: PVR DDK 1.8 drop (ED 1.8.778983)

Feature enabled:
1. Surface Texture: GLES1/2_EXTENSION_EGL_IMAGE_EXTERNAL.
2. Pixel format: XRGB888; XBGR8888 & ABGR8888 are rendered via Skia (SW) rather than GPU with GL.
3. EGL_ANDROID_recordable: supports rendering to matching buffer formats that are suitable for feeding to an OpenMAX video encoder.

Feature disabled:
1. HWC HAL of PVR: integrated, but turned OFF (SUPPORT_ANDROID_REFERENCE_COMPOSER_HAL).
2. ION memory manager: integrated, turn OFF support for OMAP (CONFIG_ION_OMAP).
3. Composition Bypass mode: SUPPORT_ANDROID_COMPOSITION_BYPASS.

Change-Id: I5b1ad973d4454324e5194d3f8c05458aa7a3a9b8
Signed-off-by: John Ye <john.ye@intel.com>
Signed-off-by: Randy Xu <randy.xu@intel.com>
Reviewed-on: http://android.intel.com:8080/26913
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoPanic: mmc: core: implement mmc panic ops
Chuanxiao Dong [Tue, 25 Oct 2011 12:20:33 +0000 (20:20 +0800)]
Panic: mmc: core: implement mmc panic ops

BZ: 16578

Port this patch from R2

Ops for panic driver to write kernel logs or user space logs into
eMMC card when panic happened.

Change-Id: I84b9e397bb12610a5a93454a0be63b90a99baccf
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/26320
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agoPanic: mmc: SDHCI: implement panic ops for MFLD SDHCI driver
Chuanxiao Dong [Tue, 25 Oct 2011 12:27:00 +0000 (20:27 +0800)]
Panic: mmc: SDHCI: implement panic ops for MFLD SDHCI driver

BZ: 16578

Port this patch from R2

This patch will implement the panic ops for MFLD sdhci host driver.
The original sdhci host driver was using interrupt mode which is not
preferred in panic mode. So implemented another ops which will use
polling mode instead

Change-Id: I4d808405eadd7565141f3bf8e1531148e6c0fc9a
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/26321
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 years agomid_pmu/intel_idle: porting from r2 build
Vishwesh M Rudramuni [Fri, 25 Aug 2006 23:45:48 +0000 (05:15 +0530)]
mid_pmu/intel_idle: porting from r2 build

BZ: 15910

This contains all the changes for the intel idle & pmu driver
from the r2 build. The significant changes done are in pmu
driver to remove most of the global variables & adding a structure.
in intel_idle driver adding mfld_cstates & adding the target
residency based on the formula. lpmp3 issues & in general pmu code
clean up.

Change-Id: Iad0f396f438cf5cd42ad42fcd185b7149db28d16
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Reviewed-on: http://android.intel.com:8080/25692
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>