Commit Graph

265960 Commits

Author SHA1 Message Date
黄涛
66e89a4006 rfkill-rk: use pm prepare/complete to fix lost wakeup irq 2012-06-07 12:23:34 +08:00
kfx
2ed219bb25 rk3066_board: rk3066_sdk_defconfig: CONFIG_CLK_SWITCH_TO_32K=y 2012-06-07 10:43:22 +08:00
黄涛
d1b5612f4a rga: rga_drv add power off support
lock use mutex instead of spinlock
use wakelock instead of suspend callback
use request_threaded_irq instead of request_irq
2012-06-07 10:28:07 +08:00
kfx
f07387891c rk3066_board: ldo10 do not switch mode 2012-06-07 10:06:46 +08:00
黄涛
3c9a1b5462 rk30: sdk: refactor rfkill code 2012-06-07 10:03:22 +08:00
kfx
7e795e6b02 rk3066_board: ldo3(vdd11_hdmi): 1.2v --> 1.1v 2012-06-07 09:58:05 +08:00
CMY
8d66546279 move BT driver (rfkill) to net/rfkill/rfkill-rk.c 2012-06-06 21:37:38 +08:00
kfx
3759a9dd51 rk30: i2c: fix warning about clk_disable 2012-06-06 18:59:15 +08:00
kfx
def581ab14 rk3066_board: adc key: modify adc value again 2012-06-06 17:54:43 +08:00
kfx
1bc9d0ef92 rk3066_board: adc key: modify adc value 2012-06-06 16:39:25 +08:00
kfx
85f52a9b79 add board config(rk3066_sdk_defconfig) for new rk3066_sdk_board 2012-06-06 15:42:17 +08:00
kfx
05965ceb8b rk30: i2c: clk_disable(i2c->clk) when i2c-x is in idle state 2012-06-06 15:39:58 +08:00
root
ca6a14f8ec camera rk30 : version update to 0xc. 2012-06-06 09:48:33 +08:00
zsq
aaa9449d3d fix prescale dst_w bug 2012-06-04 18:54:22 +08:00
yxj
2f53019fef fix bug in rk_fb_ioctl 2012-06-04 17:36:11 +08:00
yxj
ecaedee15f rkfb_sysfs: modify set_fb_state 2012-06-04 14:11:15 +08:00
Zheng Yang
4112ce1e87 rk30 hdmi: support hdcp. 2012-06-04 11:22:49 +08:00
zhanghao
1079596946 WIMO : Kconfig default n 2012-06-04 09:43:52 +08:00
宋秀杰
863facb1bb rk30 phone: modify headset detect request irq location 2012-06-03 16:38:27 +08:00
张晴
22e9b8cfde rk30:phone loquat:modify the battery capacity reported 2012-06-03 11:28:35 +08:00
CMY
5c7f38813e Merge branch 'develop-3.0' of ssh://10.10.10.29/rk/kernel into develop-3.0 2012-06-02 17:27:06 +08:00
CMY
c828864a4d fixed bug: build failed if disable BT_WAKE_HOST_SUPPORT 2012-06-02 17:25:20 +08:00
CMY
d08fe7abfe 3g dongle 2012-06-02 17:23:59 +08:00
zhanghao
d1afea4d43 WIMO : compile as default y 2012-06-02 16:59:21 +08:00
zhanghao
8d713e3c4f add WIMO supported 2012-06-02 16:52:19 +08:00
yangkai
b638988d9f fix hcd panic when xacterr happen 2012-06-02 16:16:38 +08:00
yangkai
82534e37d4 fix one of mtp cancel bug 2012-06-02 16:11:23 +08:00
lw
6574323b8c rk30_phone_loquat:enable 1.4GHZ frequency 2012-06-02 10:22:54 +08:00
zsq
2a346d5522 fix rga power off flag init error 2012-06-01 18:19:10 +08:00
Zheng Yang
0d857ed7bb rk30 hdmi: only unregister earlysuspend when shutdown. 2012-05-31 15:02:14 +08:00
Zheng Yang
1b1a8704f3 rk30 hdmi: fix hdmi shut down is called twice error. 2012-05-31 14:44:00 +08:00
黄涛
88538f55bb ts: rk29_i2c_goodix: unregister earlysuspend when shutdown 2012-05-31 09:43:27 +08:00
黄涛
517021c00d lightsensor: cm3217: unregister earlysuspend when shutdown 2012-05-31 09:43:27 +08:00
黄涛
646646a50d gsensor: mma8452: remove unused earlysuspend implementation 2012-05-31 09:43:26 +08:00
黄涛
709e7adf2c rk: backlight: unregister earlysuspend when shutdown
fix this warning:
WARNING: at drivers/gpio/gpiolib.c:101 gpio_ensure_requested+0x48/0x114()
autorequest GPIO-331
[<c043b170>] (unwind_backtrace+0x0/0xf0) from [<c0461800>] (warn_slowpath_common+0x4c/0x64)
[<c0461800>] (warn_slowpath_common+0x4c/0x64) from [<c0461898>] (warn_slowpath_fmt+0x2c/0x3c)
[<c0461898>] (warn_slowpath_fmt+0x2c/0x3c) from [<c05bb514>] (gpio_ensure_requested+0x48/0x114)
[<c05bb514>] (gpio_ensure_requested+0x48/0x114) from [<c05bbbb4>] (gpio_direction_output+0x7c/0xfc)
[<c05bbbb4>] (gpio_direction_output+0x7c/0xfc) from [<c044ccf8>] (rk29_backlight_pwm_suspend+0x54/0x74)
[<c044ccf8>] (rk29_backlight_pwm_suspend+0x54/0x74) from [<c05c3d0c>] (rk29_bl_suspend+0x78/0x90)
[<c05c3d0c>] (rk29_bl_suspend+0x78/0x90) from [<c0494374>] (early_suspend+0xc4/0x12c)
[<c0494374>] (early_suspend+0xc4/0x12c) from [<c04745c4>] (process_one_work+0x250/0x3ac)
[<c04745c4>] (process_one_work+0x250/0x3ac) from [<c0474b08>] (worker_thread+0x22c/0x3ec)
[<c0474b08>] (worker_thread+0x22c/0x3ec) from [<c047a484>] (kthread+0x80/0x88)
[<c047a484>] (kthread+0x80/0x88) from [<c04365f8>] (kernel_thread_exit+0x0/0x8)
2012-05-31 09:43:26 +08:00
黄涛
e631fd9aeb rk30: hdmi: unregister earlysuspend when shutdown 2012-05-31 09:43:26 +08:00
黄涛
edcb4494a6 rk: fb: fix earlysuspend bug
fix this bug:
rk30_pm_power_off start...
Unable to handle kernel NULL pointer dereference at virtual address 00000054
pgd = c0404000
[00000054] *pgd=00000000pre WM831X_POWER_STATE = 0x8800
wm831x_last_deinit

Internal error: Oops: 17 [#1] PREEMPT SMP
CPU: 0    Tainted: G         C   (3.0.8+ #2)
PC is at rkfb_early_suspend+0x18/0x70
LR is at early_suspend+0xc4/0x12c
2012-05-31 09:43:26 +08:00
黄涛
193a36f096 rk: earlysuspend: only works on system is running 2012-05-31 09:43:26 +08:00
Zheng Yang
58d057c40f rk30 hdmi: set phy register to ip vendor recommended value. 2012-05-30 18:27:54 +08:00
kfx
61e6526e5c sc8800: tmp_buf: Cross-border access 2012-05-30 15:31:23 +08:00
邱建斌
ff84dd87c3 fix compiler warnings and add calling adjust volume code 2012-05-30 10:54:23 +08:00
黄涛
da0cd824ad rk30: sdk: temporary increase voltage for SDK release 2012-05-29 19:49:20 +08:00
陈恒明
ad7eb306e3 Revert "vpu_service: replace spin_lock by mutex and use irq_thread to handle irq"
This reverts commit d21aa29342.
2012-05-29 16:27:51 +08:00
hecanyang
68e72ad5f4 rename some simple function's name 2012-05-29 14:59:17 +08:00
陈恒明
d21aa29342 vpu_service: replace spin_lock by mutex and use irq_thread to handle irq 2012-05-29 14:49:32 +08:00
hecanyang
3f322d5aab fix data training bug, add ODT disable frequency macro,
and reduce change frequency period
2012-05-29 14:21:52 +08:00
Russell King
c0dab5ce4f ARM: prevent VM_GROWSDOWN mmaps extending below FIRST_USER_ADDRESS
commit 9b61a4d1b2 upstream.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-05-29 10:18:10 +08:00
Tim Bird
74cfe8b84a ARM: 7410/1: Add extra clobber registers for assembly in kernel_execve
commit e787ec1376 upstream.

The inline assembly in kernel_execve() uses r8 and r9.  Since this
code sequence does not return, it usually doesn't matter if the
register clobber list is accurate.  However, I saw a case where a
particular version of gcc used r8 as an intermediate for the value
eventually passed to r9.  Because r8 is used in the inline
assembly, and not mentioned in the clobber list, r9 was set
to an incorrect value.

This resulted in a kernel panic on execution of the first user-space
program in the system.  r9 is used in ret_to_user as the thread_info
pointer, and if it's wrong, bad things happen.

Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-05-29 10:14:57 +08:00
Will Deacon
62ef46fdc5 ARM: 7403/1: tls: remove covert channel via TPIDRURW
commit 6a1c53124a upstream.

TPIDRURW is a user read/write register forming part of the group of
thread registers in more recent versions of the ARM architecture (~v6+).

Currently, the kernel does not touch this register, which allows tasks
to communicate covertly by reading and writing to the register without
context-switching affecting its contents.

This patch clears TPIDRURW when TPIDRURO is updated via the set_tls
macro, which is called directly from __switch_to. Since the current
behaviour makes the register useless to userspace as far as thread
pointers are concerned, simply clearing the register (rather than saving
and restoring it) will not cause any problems to userspace.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-05-29 10:14:36 +08:00
Jonathan Austin
053926b960 ARM: 7384/1: ThumbEE: Disable userspace TEEHBR access for !CONFIG_ARM_THUMBEE
commit 078c04545b upstream.

Currently when ThumbEE is not enabled (!CONFIG_ARM_THUMBEE) the ThumbEE
register states are not saved/restored at context switch. The default state
of the ThumbEE Ctrl register (TEECR) allows userspace accesses to the
ThumbEE Base Handler register (TEEHBR). This can cause unexpected behaviour
when people use ThumbEE on !CONFIG_ARM_THUMBEE kernels, as well as allowing
covert communication - eg between userspace tasks running inside chroot
jails.

This patch sets up TEECR in order to prevent user-space access to TEEHBR
when !CONFIG_ARM_THUMBEE. In this case, tasks are sent SIGILL if they try to
access TEEHBR.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jonathan Austin <jonathan.austin@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-05-29 10:12:11 +08:00