kernel/kernel-mfld-blackbay.git
11 years agosplit ->file_mmap() into ->mmap_addr()/->mmap_file()
Al Viro [Wed, 30 May 2012 17:30:51 +0000 (13:30 -0400)]
split ->file_mmap() into ->mmap_addr()/->mmap_file()

... i.e. file-dependent and address-dependent checks.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agosplit cap_mmap_addr() out of cap_file_mmap()
Al Viro [Wed, 30 May 2012 17:11:37 +0000 (13:11 -0400)]
split cap_mmap_addr() out of cap_file_mmap()

... switch callers.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
11 years agoSELinux: rename dentry_open to file_open
Eric Paris [Wed, 4 Apr 2012 17:45:40 +0000 (13:45 -0400)]
SELinux: rename dentry_open to file_open

dentry_open takes a file, rename it to file_open

Signed-off-by: Eric Paris <eparis@redhat.com>
Conflicts:

security/tomoyo/tomoyo.c

11 years agoSmack: allow for significantly longer Smack labels v4
Casey Schaufler [Sun, 6 May 2012 22:22:02 +0000 (15:22 -0700)]
Smack: allow for significantly longer Smack labels v4

V4 updated to current linux-security#next
Targeted for git://gitorious.org/smack-next/kernel.git

Modern application runtime environments like to use
naming schemes that are structured and generated without
human intervention. Even though the Smack limit of 23
characters for a label name is perfectly rational for
human use there have been complaints that the limit is
a problem in environments where names are composed from
a set or sources, including vendor, author, distribution
channel and application name. Names like

softwarehouse-pgwodehouse-coolappstore-mellowmuskrats

are becoming harder to avoid. This patch introduces long
label support in Smack. Labels are now limited to 255
characters instead of the old 23.

The primary reason for limiting the labels to 23 characters
was so they could be directly contained in CIPSO category sets.
This is still done were possible, but for labels that are too
large a mapping is required. This is perfectly safe for communication
that stays "on the box" and doesn't require much coordination
between boxes beyond what would have been required to keep label
names consistent.

The bulk of this patch is in smackfs, adding and updating
administrative interfaces. Because existing APIs can't be
changed new ones that do much the same things as old ones
have been introduced.

The Smack specific CIPSO data representation has been removed
and replaced with the data format used by netlabel. The CIPSO
header is now computed when a label is imported rather than
on use. This results in improved IP performance. The smack
label is now allocated separately from the containing structure,
allowing for larger strings.

Four new /smack interfaces have been introduced as four
of the old interfaces strictly required labels be specified
in fixed length arrays.

The access interface is supplemented with the check interface:
access  "Subject                 Object                  rwxat"
access2 "Subject Object rwaxt"

The load interface is supplemented with the rules interface:
load   "Subject                 Object                  rwxat"
load2  "Subject Object rwaxt"

The load-self interface is supplemented with the self-rules interface:
load-self   "Subject                 Object                  rwxat"
load-self2  "Subject Object rwaxt"

The cipso interface is supplemented with the wire interface:
cipso  "Subject                  lvl cnt  c1  c2 ..."
cipso2 "Subject lvl cnt  c1  c2 ..."

The old interfaces are maintained for compatibility.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
11 years agogfp flags for security_inode_alloc()?
Tetsuo Handa [Thu, 29 Mar 2012 07:19:05 +0000 (16:19 +0900)]
gfp flags for security_inode_alloc()?

Dave Chinner wrote:
> Yes, because you have no idea what the calling context is except
> for the fact that is from somewhere inside filesystem code and the
> filesystem could be holding locks. Therefore, GFP_NOFS is really the
> only really safe way to allocate memory here.

I see. Thank you.

I'm not sure, but can call trace happen where somewhere inside network
filesystem or stackable filesystem code with locks held invokes operations that
involves GFP_KENREL memory allocation outside that filesystem?
----------
[PATCH] SMACK: Fix incorrect GFP_KERNEL usage.

new_inode_smack() which can be called from smack_inode_alloc_security() needs
to use GFP_NOFS like SELinux's inode_alloc_security() does, for
security_inode_alloc() is called from inode_init_always() and
inode_init_always() is called from xfs_inode_alloc() which is using GFP_NOFS.

smack_inode_init_security() needs to use GFP_NOFS like
selinux_inode_init_security() does, for initxattrs() callback function (e.g.
btrfs_initxattrs()) which is called from security_inode_init_security() is
using GFP_NOFS.

smack_audit_rule_match() needs to use GFP_ATOMIC, for
security_audit_rule_match() can be called from audit_filter_user_rules() and
audit_filter_user_rules() is called from audit_filter_user() with RCU read lock
held.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Casey Schaufler <cschaufler@cschaufler-intel.(none)>
11 years agoSmack: recursive tramsmute
Casey Schaufler [Wed, 14 Mar 2012 02:14:19 +0000 (19:14 -0700)]
Smack: recursive tramsmute

The transmuting directory feature of Smack requires that
the transmuting attribute be explicitly set in all cases.
It seems the users of this facility would expect that the
transmuting attribute be inherited by subdirectories that
are created in a transmuting directory. This does not seem
to add any additional complexity to the understanding of
how the system works.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
11 years agogfx: enable runtime power management
Li Peng [Mon, 15 Oct 2012 15:16:08 +0000 (23:16 +0800)]
gfx: enable runtime power management

In DPMS off, current implementation simply turn off the panel and call PMU
to cut power supply of gfx h/w, but app in userspace may still want to access
gfx h/w after screen off, that will cause system hang.

enable gfx runtime PM will make sure gfx device can be suspended or resumed
based on device access demand so that above hang case will not happen.

Change-Id: I492aaac7313908165377fd539467b479af44baa0

Signed-off-by: Li Peng <peng.li@intel.com>
11 years agoChange adb protocol to sdb protocol
Chengwei Yang [Wed, 17 Oct 2012 03:06:38 +0000 (11:06 +0800)]
Change adb protocol to sdb protocol

Currently, we have a forked sdbd for our kernel so there was no need to
patch our kernel.

However, the forked sdbd will be merged to upstream sdbd and to make it
compatible with adb in userspace cost a large effort.

So the better way is patch our kernel to adopt sdb protocol, on the
other hand, no patch needed to sdbd user space server and client.

Change-Id: I4b3f426d33b2c8fdb5042f9cd60a7b1226c92eb1
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
11 years agoMerge branch 'bb-2.0_beta' into bb-devel
Markus Lehtonen [Wed, 10 Oct 2012 08:10:28 +0000 (11:10 +0300)]
Merge branch 'bb-2.0_beta' into bb-devel

11 years agoremove mac802154 and openvswitch from net/Makefile
Li Peng [Thu, 27 Sep 2012 07:26:08 +0000 (15:26 +0800)]
remove mac802154 and openvswitch from net/Makefile

They don't exist in kernel tree and it fixes error in "make mrproper"

Signed-off-by: Li Peng <peng.li@intel.com>
11 years agoUpdate changelog
Markus Lehtonen [Thu, 27 Sep 2012 05:21:19 +0000 (08:21 +0300)]
Update changelog

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoExport usb connection status
Chengwei Yang [Wed, 26 Sep 2012 04:28:00 +0000 (12:28 +0800)]
Export usb connection status

There are several components depends on kernel export usb connection
status correctly. First, system-server check usb status by calling OEM
interface to launch usb-server; second, usb-server does the usb mode
setting work and launch syspopup. In addition, setting usb mode from UI
depends on usb-server too.

This also fix TZSP-3142.

Change-Id: I430e588069a807b195cb364846d1a6421cafff14
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
11 years agoMerge remote-tracking branch 'tzg/2.0_beta' into bb-devel
Markus Lehtonen [Wed, 26 Sep 2012 06:45:59 +0000 (09:45 +0300)]
Merge remote-tracking branch 'tzg/2.0_beta' into bb-devel

11 years agoUpdate changelog
Yong Wang [Wed, 19 Sep 2012 07:58:13 +0000 (15:58 +0800)]
Update changelog

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
11 years agohwmon/lis3dh: add screen on/off notifier callback
Yong Wang [Wed, 19 Sep 2012 07:55:01 +0000 (15:55 +0800)]
hwmon/lis3dh: add screen on/off notifier callback

Add screen on/off notifier callback so that accelerometer
sensor can be enabled/disabled upon screen on/off operations
as it behaves on Android.

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
11 years agoatmel_mxt_ts: remove redundant mutex
Yong Wang [Wed, 19 Sep 2012 07:54:02 +0000 (15:54 +0800)]
atmel_mxt_ts: remove redundant mutex

DRM core guarantees that gfx driver's dpms callback is
not reentrant. Therefore the screen on/off notifier is
guaranteed to be non-reentrant too. No need to use another
mutex to protect what has already been protected.

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
11 years agoMerge "Update changelog" into 2.0_beta
Zhu, Peter [Mon, 17 Sep 2012 15:33:58 +0000 (08:33 -0700)]
Merge "Update changelog" into 2.0_beta

11 years agoUpdate changelog
Markus Lehtonen [Mon, 17 Sep 2012 11:39:46 +0000 (14:39 +0300)]
Update changelog

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoMerge "Fix 1080p H264 failure with rotation (90/180/270), enlarge GTT video mapped...
Zhu, Peter [Mon, 17 Sep 2012 10:58:05 +0000 (03:58 -0700)]
Merge "Fix 1080p H264 failure with rotation (90/180/270), enlarge GTT video mapped memory from 128Mb to 136Mb" into 2.0_beta

11 years agoFix 1080p H264 failure with rotation (90/180/270), enlarge GTT video mapped memory...
Yan Zhang [Fri, 14 Sep 2012 10:03:42 +0000 (18:03 +0800)]
Fix 1080p H264 failure with rotation (90/180/270), enlarge GTT video mapped memory from 128Mb to 136Mb

11 years agoatomisp: fix a possible null pointer dereference
Markus Lehtonen [Fri, 7 Sep 2012 11:43:02 +0000 (14:43 +0300)]
atomisp: fix a possible null pointer dereference

Fix kernel oops in case isp->main_format is not initialized.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoMerge branch 'master' into 2.0_beta
Li Peng [Wed, 12 Sep 2012 06:30:00 +0000 (14:30 +0800)]
Merge branch 'master' into 2.0_beta

11 years agoatomisp: fix a possible null pointer dereference
Markus Lehtonen [Fri, 7 Sep 2012 11:43:02 +0000 (14:43 +0300)]
atomisp: fix a possible null pointer dereference

Fix kernel oops in case isp->main_format is not initialized.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoupdate changelog
Li Peng [Fri, 31 Aug 2012 08:06:54 +0000 (16:06 +0800)]
update changelog

Change-Id: Iaf38810c938e449359c49c9013cf02bf80847b8c

12 years agoMerge "Update changelog"
Li, Peng [Fri, 31 Aug 2012 07:55:24 +0000 (00:55 -0700)]
Merge "Update changelog"

12 years agoMerge branch 'devel'
Li Peng [Fri, 31 Aug 2012 07:58:22 +0000 (15:58 +0800)]
Merge branch 'devel'

12 years agoboot parameter: set consoleblank to zero
Li Peng [Tue, 28 Aug 2012 07:01:37 +0000 (15:01 +0800)]
boot parameter: set consoleblank to zero

add consoleblank=0 to kernel boot parameter, so console won't blank
if timeout

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agoconfig: disable HDMI config option
Li Peng [Mon, 27 Aug 2012 14:02:21 +0000 (22:02 +0800)]
config: disable HDMI config option

Disable CONFIG_MDFD_HDMI and CONFIG_MDFD_HDMI_REDRIDGE, as we are not ready
for HDMI support

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agoUpdate changelog
Markus Lehtonen [Wed, 29 Aug 2012 09:24:06 +0000 (12:24 +0300)]
Update changelog

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoEnable slp lowmem module and autofs
Chengwei Yang [Wed, 29 Aug 2012 05:19:37 +0000 (13:19 +0800)]
Enable slp lowmem module and autofs

Update tizen_bb_defconfig and tizen_rr_defconfig with
* Enable slp lowmem module
* Enbale autofs makes systemd happy, systemd use autofs to implement
  automount

Change-Id: Ia856023b74917e460a8f39d2623e7016f7d75bb6
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
12 years agoMerge "Fix incorrect calculation of number of task" into devel
Lehtonen, Markus [Tue, 28 Aug 2012 15:01:01 +0000 (08:01 -0700)]
Merge "Fix incorrect calculation of number of task" into devel

12 years agoMerge "Lowmem: port from slp kernel" into devel
Lehtonen, Markus [Tue, 28 Aug 2012 14:59:34 +0000 (07:59 -0700)]
Merge "Lowmem: port from slp kernel" into devel

12 years agoMerge "[HACK-MUST-REVERT]Added charger event only environment for user space usage...
Lehtonen, Markus [Mon, 27 Aug 2012 10:46:07 +0000 (03:46 -0700)]
Merge "[HACK-MUST-REVERT]Added charger event only environment for user space usage" into devel

12 years agoUpdate changelog
Li Peng [Mon, 27 Aug 2012 02:14:04 +0000 (10:14 +0800)]
Update changelog

12 years agoMerge branch 'devel'
Li Peng [Mon, 27 Aug 2012 02:10:03 +0000 (10:10 +0800)]
Merge branch 'devel'

12 years ago[HACK-MUST-REVERT]Added charger event only environment for user
Austin Zhang [Fri, 24 Aug 2012 08:36:48 +0000 (16:36 +0800)]
[HACK-MUST-REVERT]Added charger event only environment for user
space usage

Added charger event only enviroment so that udev rule can identify
charger-only event happened, so that sys_event will not send out
charger related notification up to heynoti under those case of only
voltage or other events happened.

After we have perfect solution in user space notification framework,
this HACK should be reverted.

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agoUpdate video driver to MCG's latest code: 1)Topza support 2)Error conceal 3)Context...
Yan Zhang [Wed, 15 Aug 2012 08:37:50 +0000 (16:37 +0800)]
Update video driver to MCG's latest code: 1)Topza support 2)Error conceal 3)Context update & HDMI API 4)Bug fix

Signed-off-by: Yan Zhang <yan.y.zhang@intel.com>
12 years agoRevert " Update video driver to MCG's latest code:"
Li Peng [Fri, 17 Aug 2012 06:44:16 +0000 (14:44 +0800)]
Revert "    Update video driver to MCG's latest code:"

This reverts commit 4f3cc0332f7ea9be864e4d49d652b80baf28249c.

should first go into devel branch

12 years ago Update video driver to MCG's latest code:
Yan Zhang [Wed, 15 Aug 2012 08:37:50 +0000 (16:37 +0800)]
Update video driver to MCG's latest code:
    1)Topza support
    2)Error conceal
    3)Context update & HDMI API
    4)Bug fix

12 years agoFix incorrect calculation of number of task
Chengwei Yang [Tue, 14 Aug 2012 03:19:55 +0000 (11:19 +0800)]
Fix incorrect calculation of number of task

Change-Id: Icea513818bffde0b901b99548604a2ecfaa88013
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
12 years agoLowmem: port from slp kernel
Chengwei Yang [Tue, 14 Aug 2012 00:20:06 +0000 (08:20 +0800)]
Lowmem: port from slp kernel

Port lsp lowmem code to PR3, only did a little changes. That is change
rss in task_rss_t to long and use atomic_long_read to get atomic_long_t
value.

Change-Id: I21fb684a0b1e86d5ece3a5b294c9f64075d8079d
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
12 years agoRevert "Lowmem: port from slp kernel"
Yin, Kangkai [Tue, 14 Aug 2012 03:40:45 +0000 (20:40 -0700)]
Revert "Lowmem: port from slp kernel"

This reverts commit 923fb82117ba9baf50aef46d80f675dd12742e8c

12 years agoLowmem: port from slp kernel
Chengwei Yang [Tue, 14 Aug 2012 00:20:06 +0000 (08:20 +0800)]
Lowmem: port from slp kernel

Port lsp lowmem code to PR3, only did a little changes. That is change
rss in task_rss_t to long and use atomic_long_read to get atomic_long_t
value.

Change-Id: I32173900b3866f324ea81d7f47b8984f7ec17ba6
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
12 years agoupdate changelog
Li Peng [Mon, 13 Aug 2012 02:38:47 +0000 (10:38 +0800)]
update changelog

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agoMerge branch 'devel'
Li Peng [Mon, 13 Aug 2012 02:36:47 +0000 (10:36 +0800)]
Merge branch 'devel'

12 years agogfx: a better way to do gfx suspend/resume at DPMS on/off
Li Peng [Fri, 3 Aug 2012 06:44:52 +0000 (14:44 +0800)]
gfx: a better way to do gfx suspend/resume at DPMS on/off

A regression was introduced since we add gfx runtime pm support in DPMS
control interface and the "-sharevts" parameter for X launch on mfld, if
user run "xset dpms force off" and then "echo mem > /sys/power/state",
dsi dpi panel will fail to resume back.

Here is the problem analysis: at DPMS off, gfx driver will shutdown the
panel and enter runtime suspend, at this time if kernel doing system suspend,
PCI subsystem will call device's runtime resume interface if it find
device is in runtime suspend state. In this case it just resume gfx device
but doesn't handle dsi dpi panel, then it will cause panel fail to light on in
subsequent resume path.

The fix is directly calling  functions to control gfx device suspend/resume,
rather than the indirect way of pm_runtime_put() and pm_runtime_get().

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agoUpdate changelog
Li Peng [Fri, 27 Jul 2012 10:33:09 +0000 (18:33 +0800)]
Update changelog

12 years agoMerge branch 'devel'
Li Peng [Fri, 27 Jul 2012 10:28:21 +0000 (18:28 +0800)]
Merge branch 'devel'

12 years agoMerge changes I352cb3c2,I94b43501 into devel
Ortiz, Samuel [Fri, 27 Jul 2012 07:53:49 +0000 (00:53 -0700)]
Merge changes I352cb3c2,I94b43501 into devel

* changes:
  config-tizen: enable pn544 hci option
  fix compilation by remove duplicate definition

12 years agoMerge changes Ib85ed842,I74d3677b into devel
Ortiz, Samuel [Fri, 27 Jul 2012 07:52:38 +0000 (00:52 -0700)]
Merge changes Ib85ed842,I74d3677b into devel

* changes:
  compact nfc 3.0.8
  x86 pn544 blackbay

12 years agoMerge "netlink: advertise incomplete dumps" into devel
Ortiz, Samuel [Fri, 27 Jul 2012 07:48:58 +0000 (00:48 -0700)]
Merge "netlink: advertise incomplete dumps" into devel

12 years agogfx: enable runtime pm support at DPMS
Li Peng [Fri, 27 Jul 2012 03:00:26 +0000 (11:00 +0800)]
gfx: enable runtime pm support at DPMS

before we just turn off/on screen at DPMS off/on, now we do further
to let gfx h/w enter and exit D0i3 if userspace control screen off/on
through DPMS interface, it could save more power

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agoconfig-tizen: enable pn544 hci option
arron.wang [Thu, 26 Jul 2012 07:29:05 +0000 (15:29 +0800)]
config-tizen: enable pn544 hci option

12 years agofix compilation by remove duplicate definition
arron.wang [Thu, 26 Jul 2012 07:28:23 +0000 (15:28 +0800)]
fix compilation by remove duplicate definition

genl_dump_check_consistent is defined in include/net/genetlink.h
which is added in commit d083afe6ad8bb7f438f81ba801483f4b719e3223

12 years agocompact nfc 3.0.8
arron.wang [Thu, 26 Jul 2012 07:27:57 +0000 (15:27 +0800)]
compact nfc 3.0.8

12 years agox86 pn544 blackbay
arron.wang [Thu, 26 Jul 2012 07:26:58 +0000 (15:26 +0800)]
x86 pn544 blackbay

12 years agogfx: remove mutex protection in __dpi_panel_power_off
Li Peng [Thu, 26 Jul 2012 06:04:04 +0000 (14:04 +0800)]
gfx: remove mutex protection in __dpi_panel_power_off

we already called mutex lock at higher level function, so no need to
do it again at __dpi_panel_power_off, otherwise it will cause mutex
lock twice at suspend path

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agonetlink: advertise incomplete dumps
arron.wang [Thu, 26 Jul 2012 04:34:43 +0000 (12:34 +0800)]
netlink: advertise incomplete dumps

Consider the following situation:
 * a dump that would show 8 entries, four in the first
   round, and four in the second
 * between the first and second rounds, 6 entries are
   removed
 * now the second round will not show any entry, and
   even if there is a sequence/generation counter the
   application will not know

To solve this problem, add a new flag NLM_F_DUMP_INTR
to the netlink header that indicates the dump wasn't
consistent, this flag can also be set on the MSG_DONE
message that terminates the dump, and as such above
situation can be detected.

To achieve this, add a sequence counter to the netlink
callback struct. Of course, netlink code still needs
to use this new functionality. The correct way to do
that is to always set cb->seq when a dumpit callback
is invoked and call nl_dump_check_consistent() for
each new message. The core code will also call this
function for the final MSG_DONE message.

To make it usable with generic netlink, a new function
genlmsg_nlhdr() is needed to obtain the netlink header
from the genetlink user header.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
12 years agortc-mrst: init wakeup earlier than registering RTC device
Yong Wang [Tue, 24 Jul 2012 01:50:09 +0000 (09:50 +0800)]
rtc-mrst: init wakeup earlier than registering RTC device

Otherwise the RTC core won't know this is an wakeup capable RTC
device.

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
12 years agoUpdate changelog
Li Peng [Wed, 18 Jul 2012 11:50:40 +0000 (19:50 +0800)]
Update changelog

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agoMerge branch 'devel'
Li Peng [Wed, 18 Jul 2012 11:55:09 +0000 (19:55 +0800)]
Merge branch 'devel'

12 years agoSet and send ABS_X/Y for enabling specific multitouch input driver for mxt224 panel
Austin Zhang [Wed, 18 Jul 2012 04:01:43 +0000 (12:01 +0800)]
Set and send ABS_X/Y for enabling specific multitouch input driver for mxt224 panel

Set and send ABS_X/Y to make input driver evdevmultitouch happy, so
that we can use that input driver to implement multitouch support

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agoMerge "Added screen off notifier callback" into devel
Li, Peng [Mon, 16 Jul 2012 05:50:09 +0000 (22:50 -0700)]
Merge "Added screen off notifier callback" into devel

12 years agoMerge "Added screen-off notifier." into devel
Li, Peng [Mon, 16 Jul 2012 05:38:47 +0000 (22:38 -0700)]
Merge "Added screen-off notifier." into devel

12 years agoAdded screen off notifier callback
Austin Zhang [Mon, 9 Jul 2012 08:05:27 +0000 (16:05 +0800)]
Added screen off notifier callback

Added screen off notifier callback so that 'touch' will not light
on the LCD during one pending suspend process which is being blocked
by wakeup count from one wakeup event.

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agoAdded screen-off notifier.
Austin Zhang [Thu, 5 Jul 2012 12:33:05 +0000 (20:33 +0800)]
Added screen-off notifier.

Added notifier which indicating the screen is turned off, then we
should disable some devices from this stage, for example, we should
disable touch panel after screen off so that 'touch' will not light
on the LCD again when there is being pended suspend process due to
wakeup event, like insert USB cable.

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agoUpdate changelog
Markus Lehtonen [Thu, 12 Jul 2012 12:32:23 +0000 (15:32 +0300)]
Update changelog

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoaudio: fix locking bug in the audience es305 driver
Markus Lehtonen [Thu, 12 Jul 2012 17:17:44 +0000 (20:17 +0300)]
audio: fix locking bug in the audience es305 driver

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoUpdate changelog
Markus Lehtonen [Thu, 12 Jul 2012 12:32:23 +0000 (15:32 +0300)]
Update changelog

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoaudio: fix locking bug in the audience es305 driver
Markus Lehtonen [Thu, 12 Jul 2012 17:17:44 +0000 (20:17 +0300)]
audio: fix locking bug in the audience es305 driver

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoti-wlan: fix compilation when Android PM is disabled
Markus Lehtonen [Tue, 3 Jul 2012 15:20:03 +0000 (18:20 +0300)]
ti-wlan: fix compilation when Android PM is disabled

Fixes compilation of out-of-tree TI WLAN driver in Tizen.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agotizen packaging: use TI out-of-tree wifi driver from kernel source tree
Markus Lehtonen [Thu, 5 Jul 2012 11:20:14 +0000 (14:20 +0300)]
tizen packaging: use TI out-of-tree wifi driver from kernel source tree

Remove the ti-wlan source tarball from packaging. Update spec file to
use the driver imported to the kernel source tree instead of the
tarball.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agotizen packaging: update TI wifi driver build script
Markus Lehtonen [Thu, 5 Jul 2012 11:29:48 +0000 (14:29 +0300)]
tizen packaging: update TI wifi driver build script

Update the wl12xx driver build script to MCG WW26 release. Also, update
the related tizen patch.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoUpdate TI out-of-tree wifi driver
Markus Lehtonen [Tue, 3 Jul 2012 13:27:16 +0000 (16:27 +0300)]
Update TI out-of-tree wifi driver

WW26 release from MCG, git SHA1 0231038d90451da0e1fe1a09ff89e9ddb0fded20

Import the ti-wlan sources from MCG repo to our kernel source tree.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoUpdate changelog
Markus Lehtonen [Tue, 3 Jul 2012 15:42:56 +0000 (18:42 +0300)]
Update changelog

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agointel_mid_hsi: replace wakelock with wakeup event
Yong Wang [Mon, 2 Jul 2012 06:15:36 +0000 (14:15 +0800)]
intel_mid_hsi: replace wakelock with wakeup event

Replace Android's wakelock mechanism in modem driver
with wakeup event mechanism in order to block system
suspend operations when necessary.

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
12 years agoSound: import Jack Monitoring Interface from samsung
vivian, zhang [Mon, 25 Jun 2012 04:09:17 +0000 (12:09 +0800)]
Sound: import Jack Monitoring Interface from samsung

It is used to set jack status: earjack_online, earkey_online;
these status are required for earjack type detecting in avsystem project.

Signed-off-by: Vivian Zhang <vivian.zhang@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoprevent system from entering s3 in gadget connected by using wakeup event way
Austin, Zhang [Mon, 18 Jun 2012 07:52:33 +0000 (15:52 +0800)]
prevent system from entering s3 in gadget connected by using wakeup event way

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
12 years agoprevent system from entering s3 in otg work by using wakeup event way
Austin, Zhang [Mon, 18 Jun 2012 07:51:25 +0000 (15:51 +0800)]
prevent system from entering s3 in otg work by using wakeup event way

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoprevent system from entering s3 in RTC setting by using wakeup event way
Austin, Zhang [Mon, 18 Jun 2012 07:49:52 +0000 (15:49 +0800)]
prevent system from entering s3 in RTC setting by using wakeup event way

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
12 years agoprevent system from entering s3 in data operation by using wakeup event way
Austin, Zhang [Mon, 18 Jun 2012 07:47:22 +0000 (15:47 +0800)]
prevent system from entering s3 in data operation by using wakeup event way

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
12 years agoprevent system from entering s3 while charger is connected by using wakeup event way
Austin, Zhang [Mon, 18 Jun 2012 07:41:33 +0000 (15:41 +0800)]
prevent system from entering s3 while charger is connected by using wakeup event way

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
12 years agoDisable android earlysuspend and wakelock features
Austin Zhang [Fri, 29 Jun 2012 05:36:26 +0000 (13:36 +0800)]
Disable android earlysuspend and wakelock features

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agoadd back android pm entries so that we support different pm path according MACRO
Austin, Zhang [Mon, 28 May 2012 11:03:07 +0000 (19:03 +0800)]
add back android pm entries so that we support different pm path according MACRO

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agogfx: new suspend and resume interface
Li Peng [Fri, 18 May 2012 07:37:01 +0000 (15:37 +0800)]
gfx: new suspend and resume interface

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agomake ms5607 driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:57:53 +0000 (18:57 +0800)]
make ms5607 driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake mpu3050 driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:57:16 +0000 (18:57 +0800)]
make mpu3050 driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake ltr502als driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:56:48 +0000 (18:56 +0800)]
make ltr502als driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake lsm303-compass driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:56:13 +0000 (18:56 +0800)]
make lsm303-compass driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake lps331ap driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:55:36 +0000 (18:55 +0800)]
make lps331ap driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake lis3dh driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:55:10 +0000 (18:55 +0800)]
make lis3dh driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake leds-kpd driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:54:39 +0000 (18:54 +0800)]
make leds-kpd driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake l3g4200d driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:54:03 +0000 (18:54 +0800)]
make l3g4200d driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake hmc5883 driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:53:22 +0000 (18:53 +0800)]
make hmc5883 driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agomake atmel driver use tranditional pm path if no-android pm
Austin, Zhang [Mon, 28 May 2012 10:52:18 +0000 (18:52 +0800)]
make atmel driver use tranditional pm path if no-android pm

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
12 years agogfx: ignore dpms operation if driver in early suspend
Li Peng [Thu, 17 May 2012 07:22:31 +0000 (15:22 +0800)]
gfx: ignore dpms operation if driver in early suspend

in early suspend, driver already turn off panel, so if there's
more dpms request, just ignore it.

This is to fix below test sequence

1. xset dpms force off
2. echo mem > /sys/power/state
3. echo on > /sys/power/state

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agogfx: remove WARN_ON in psb_gtt_map_meminfo_ioctl
Li Peng [Tue, 8 May 2012 07:43:15 +0000 (15:43 +0800)]
gfx: remove WARN_ON in psb_gtt_map_meminfo_ioctl

otherwise there will be a kernel warning that may confuse people

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agogfx: fix early_suspend/late_resume for TMD_6X10_VID panel
Li Peng [Tue, 22 May 2012 06:11:05 +0000 (14:11 +0800)]
gfx: fix early_suspend/late_resume for TMD_6X10_VID panel

most code come from MCG, which use dsi_hw_context to save/restore
panel registers at early_suspend/late_resume.

Test method

early_suspend: echo mem > /sys/power/state
late_resume: echo on > /sys/power/state

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agogfx: fix backlight control failure on PR3
Li Peng [Mon, 14 May 2012 09:35:53 +0000 (17:35 +0800)]
gfx: fix backlight control failure on PR3

Signed-off-by: Li Peng <peng.li@intel.com>
12 years agogfx: get mdfld save/restore pipe registers back to work
Li Peng [Fri, 4 May 2012 08:45:25 +0000 (16:45 +0800)]
gfx: get mdfld save/restore pipe registers back to work

re-enable mdfld_save_pipe_registers and mdfld_restore_pipe_registers

Signed-off-by: Li Peng <peng.li@intel.com>