firefly-linux-kernel-4.4.55.git
11 years agork3168_86v: add defconfig for rk3168+codec
hjc [Thu, 28 Feb 2013 08:45:19 +0000 (16:45 +0800)]
rk3168_86v: add defconfig for rk3168+codec

11 years agopack-kernel.sh: exclude rk3168m
黄涛 [Thu, 28 Feb 2013 05:56:19 +0000 (13:56 +0800)]
pack-kernel.sh: exclude rk3168m

11 years agork3168: tb: update defconfig by savedefconfig
黄涛 [Thu, 28 Feb 2013 05:55:47 +0000 (13:55 +0800)]
rk3168: tb: update defconfig by savedefconfig

11 years agork3188: tb: update defconfig by savedefconfig
黄涛 [Thu, 28 Feb 2013 05:39:03 +0000 (13:39 +0800)]
rk3188: tb: update defconfig by savedefconfig

11 years agork: disable preempt_disable when power off
黄涛 [Thu, 28 Feb 2013 05:30:49 +0000 (13:30 +0800)]
rk: disable preempt_disable when power off

On power off, pmic driver use mutex, so can not disable preemption.
Else will see this bug:
  rk30_pm_power_off start...
  act8846_device_shutdown
  BUG: scheduling while atomic: Thread-102/1505/0x00000002
  [<c043e390>] (unwind_backtrace+0x0/0xf8) from [<c09019f0>] (__schedule+0x7ec/0x8a8)
  [<c09019f0>] (__schedule+0x7ec/0x8a8) from [<c0902ca8>] (__mutex_lock_slowpath+0x128/0x1bc)
  [<c0902ca8>] (__mutex_lock_slowpath+0x128/0x1bc) from [<c0902da8>] (mutex_lock+0x6c/0x70)
  [<c0902da8>] (mutex_lock+0x6c/0x70) from [<c06213d8>] (act8846_reg_read+0x28/0x4c)
  [<c06213d8>] (act8846_reg_read+0x28/0x4c) from [<c062159c>] (act8846_device_shutdown+0x24/0x80)
  [<c062159c>] (act8846_device_shutdown+0x24/0x80) from [<c044f060>] (rk30_pm_power_off+0x4c/0x78)
  [<c044f060>] (rk30_pm_power_off+0x4c/0x78) from [<c0439dbc>] (machine_power_off+0x1c/0x24)
  [<c0439dbc>] (machine_power_off+0x1c/0x24) from [<c0481488>] (sys_reboot+0x154/0x214)
  [<c0481488>] (sys_reboot+0x154/0x214) from [<c0438f80>] (ret_fast_syscall+0x0/0x30)

And smp_send_stop is doing nothing on rk platform when power off, so it is no need to disable preemption.

11 years agoRevert "rk: disable disable_nonboot_cpus when kernel restart"
黄涛 [Thu, 28 Feb 2013 05:29:56 +0000 (13:29 +0800)]
Revert "rk: disable disable_nonboot_cpus when kernel restart"

This reverts commit cbf319ea81fc0066a389c8ff7015871ee59bd152.

11 years agoit66121 hdmi:add macro for hdmi source lcdc select
yzq [Thu, 28 Feb 2013 05:27:21 +0000 (13:27 +0800)]
it66121 hdmi:add macro for hdmi source lcdc select

11 years agork3168_86v: close pwm regulator for 86v new board
hjc [Wed, 27 Feb 2013 03:20:50 +0000 (11:20 +0800)]
rk3168_86v: close pwm regulator for 86v new board

11 years agork3168:set defult voltage for new 86v hardware
张晴 [Wed, 27 Feb 2013 03:21:34 +0000 (11:21 +0800)]
rk3168:set defult voltage for new 86v hardware

11 years agoadd temperature and pressure sensor driver support
luowei [Wed, 27 Feb 2013 02:33:18 +0000 (10:33 +0800)]
add temperature and pressure sensor driver support

11 years agork3188 lcdc:add ioctl RK_FBIOPUT_COLOR_KEY_CFG for color key config
yxj [Tue, 26 Feb 2013 09:11:20 +0000 (17:11 +0800)]
rk3188 lcdc:add ioctl RK_FBIOPUT_COLOR_KEY_CFG for color key config

11 years agork fb:add ioctl RK_FBIOPUT_COLOR_KEY_CFG for color key config
yxj [Tue, 26 Feb 2013 09:09:29 +0000 (17:09 +0800)]
rk fb:add ioctl RK_FBIOPUT_COLOR_KEY_CFG for color key config

11 years agork3188: set l2c data latency 231
黄涛 [Tue, 26 Feb 2013 08:23:51 +0000 (16:23 +0800)]
rk3188: set l2c data latency 231

11 years agork3188: fix cpu up down bug
黄涛 [Tue, 26 Feb 2013 07:06:12 +0000 (15:06 +0800)]
rk3188: fix cpu up down bug

11 years agork3188 lr097 : fix ct36x bug on lr097
Cody Xie [Tue, 26 Feb 2013 06:47:36 +0000 (14:47 +0800)]
rk3188 lr097 : fix ct36x bug on lr097

11 years agoMerge ssh://10.10.10.29/rk/kernel into develop-3.0
hjc [Tue, 26 Feb 2013 06:40:15 +0000 (14:40 +0800)]
Merge ssh://10.10.10.29/rk/kernel into develop-3.0

11 years agork3168_86v: when ddr=300M,the logic voltage=1000mv,defconfig set CONFIG_RK30_I2C_INSRAM
hjc [Tue, 26 Feb 2013 06:36:50 +0000 (14:36 +0800)]
rk3168_86v: when ddr=300M,the logic voltage=1000mv,defconfig set CONFIG_RK30_I2C_INSRAM

11 years agork3188: NFS Most Wanted workaround only for rk3188
黄涛 [Tue, 26 Feb 2013 06:38:56 +0000 (14:38 +0800)]
rk3188: NFS Most Wanted workaround only for rk3188

11 years agork3168_86v: when ddr=300M,the logic voltage=1000mv,defconfig set CONFIG_RK30_I2C_INSRAM
hjc [Tue, 26 Feb 2013 06:36:50 +0000 (14:36 +0800)]
rk3168_86v: when ddr=300M,the logic voltage=1000mv,defconfig set CONFIG_RK30_I2C_INSRAM

11 years agomodify the query of cpu_present workaround for <NFS Most Wanted>
dkm [Tue, 26 Feb 2013 06:30:46 +0000 (14:30 +0800)]
modify the query of cpu_present workaround for <NFS Most Wanted>

11 years agoRevert "rk3188 lcdc:support color key config for win1"
yxj [Tue, 26 Feb 2013 04:46:39 +0000 (12:46 +0800)]
Revert "rk3188 lcdc:support color key config for win1"

This reverts commit 08a95bd55f6e7165d82ddd35e95605f80c4e09e0.

11 years agoforce rga output dst alpha channel
zsq [Tue, 26 Feb 2013 02:59:32 +0000 (10:59 +0800)]
force rga output dst alpha channel

11 years agofix touch ct363
wuhao [Tue, 26 Feb 2013 01:15:37 +0000 (09:15 +0800)]
fix touch ct363

11 years agork3168_86v: delete arm:1.4G and 1.6G; gpu:600M
hjc [Mon, 25 Feb 2013 08:51:33 +0000 (16:51 +0800)]
rk3168_86v: delete arm:1.4G and 1.6G; gpu:600M

11 years agork3168_86v: add rk3168_86v_old,the arm is connected to the DCDC
hjc [Mon, 25 Feb 2013 07:53:25 +0000 (15:53 +0800)]
rk3168_86v: add rk3168_86v_old,the arm is connected to the DCDC

11 years agork3188 lcdc:support color key config for win1
yxj [Mon, 25 Feb 2013 06:46:43 +0000 (14:46 +0800)]
rk3188 lcdc:support color key config for win1

11 years agork: disable disable_nonboot_cpus when kernel restart
黄涛 [Mon, 25 Feb 2013 06:44:51 +0000 (14:44 +0800)]
rk: disable disable_nonboot_cpus when kernel restart

work around rk3188 cpu down bug temporarily.

11 years agork3188 ds1006h: do not use logo from customer, the sdk uses default
Cody Xie [Mon, 25 Feb 2013 05:59:52 +0000 (13:59 +0800)]
rk3188 ds1006h: do not use logo from customer, the sdk uses default
please config logo on your project by yourself
Revert "rk3188 ds1006h: sync logo"

This reverts commit e591148c1cc1e074d0e112e632adfd016322c61a.

11 years agork3168_86v: deconfig set ddr 324M,support charge display
hjc [Mon, 25 Feb 2013 04:44:33 +0000 (12:44 +0800)]
rk3168_86v: deconfig set ddr 324M,support charge display

11 years agork3168_86v: update dvfs_gpu_table
hjc [Mon, 25 Feb 2013 04:43:46 +0000 (12:43 +0800)]
rk3168_86v: update dvfs_gpu_table

11 years agork3168m: use a useless gpio to instead of PMU_EN; set 4in1 voltage 2800->1800
hjc [Mon, 25 Feb 2013 04:24:52 +0000 (12:24 +0800)]
rk3168m: use a useless gpio to instead of PMU_EN; set 4in1 voltage 2800->1800

11 years agork3168m: To backup defconfig
hjc [Mon, 25 Feb 2013 01:49:19 +0000 (09:49 +0800)]
rk3168m: To backup defconfig

11 years agork3168m: add board-rk3168m-tb.c
hjc [Mon, 25 Feb 2013 01:27:30 +0000 (09:27 +0800)]
rk3168m: add board-rk3168m-tb.c

11 years agork3168_86v: add maxbrightness restriction
hjc [Mon, 25 Feb 2013 01:11:24 +0000 (09:11 +0800)]
rk3168_86v: add maxbrightness restriction

11 years agork3188 lcdc:move RK_FBIOSET_CONFIG_DONE to rk fb
yxj [Sat, 23 Feb 2013 09:00:05 +0000 (17:00 +0800)]
rk3188 lcdc:move  RK_FBIOSET_CONFIG_DONE to rk fb

11 years agork fb: move ioctl RK_FBIOSET_CONFIG_DONE to rk fb
yxj [Sat, 23 Feb 2013 08:59:41 +0000 (16:59 +0800)]
rk fb: move ioctl RK_FBIOSET_CONFIG_DONE to rk fb

11 years agork3188 lcdc:update lcdc register in config done
yxj [Sat, 23 Feb 2013 06:18:49 +0000 (14:18 +0800)]
rk3188 lcdc:update lcdc register in config done

11 years agork fb: add some key parameter for layer_par,wirite config done when show logo
yxj [Sat, 23 Feb 2013 06:17:42 +0000 (14:17 +0800)]
rk fb: add some key parameter for layer_par,wirite config done when show logo

11 years agork fb:add config done in rk_fb_switch_screen
yxj [Fri, 22 Feb 2013 07:15:06 +0000 (15:15 +0800)]
rk fb:add config done in rk_fb_switch_screen

11 years agoMerge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0
黄涛 [Sat, 23 Feb 2013 08:41:10 +0000 (16:41 +0800)]
Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0

Merge v3.0.66
Conflicts:
Makefile

11 years agork610 hdmi: fix compile err
yzq [Sat, 23 Feb 2013 08:04:02 +0000 (16:04 +0800)]
rk610 hdmi: fix compile err

11 years agork610 hdmi: set hdmi probe later than codec,
yzq [Sat, 23 Feb 2013 06:21:53 +0000 (14:21 +0800)]
rk610 hdmi: set hdmi probe later than codec,
        fix codec not close when system start with hdmi plug

11 years agork3066b: use rk3188 cpufreq driver
黄涛 [Sat, 23 Feb 2013 05:28:40 +0000 (13:28 +0800)]
rk3066b: use rk3188 cpufreq driver

11 years agork3188: cpufreq: version 2.0
黄涛 [Sat, 23 Feb 2013 05:23:22 +0000 (13:23 +0800)]
rk3188: cpufreq: version 2.0

thermal throttle by load
support sys_state
throttle cpu frequency when boot with low battery

11 years agodvfs gets volt chngeing time for regulator
xxx [Sat, 23 Feb 2013 03:11:42 +0000 (11:11 +0800)]
dvfs gets volt chngeing time for regulator

11 years agork: enable synchronization framework, for support android 4.2 with mali gpu
黄涛 [Fri, 22 Feb 2013 10:03:43 +0000 (18:03 +0800)]
rk: enable synchronization framework, for support android 4.2 with mali gpu

11 years agosync: fix timeout = 0 wait behavior
Jamie Gennis [Wed, 20 Feb 2013 02:49:20 +0000 (18:49 -0800)]
sync: fix timeout = 0 wait behavior

Change-Id: I8b9254e92c26d9f44abbc0c77fb44624de947013
Signed-off-by: Jamie Gennis <jgennis@google.com>
11 years agobase: sync: Include seq_file.h in sync.h
Jonathan Hamilton [Fri, 8 Feb 2013 21:05:38 +0000 (13:05 -0800)]
base: sync: Include seq_file.h in sync.h

sync.h uses struct seq_file in some function table prototypes. This
causes compile failures when including the header in files that do not
otherwise include seq_file.h

Signed-off-by: Jonathan Hamilton <jonathan.hamilton@imgtec.com>
11 years agosync: don't log wait timeouts when timeout = 0
Erik Gilling [Mon, 4 Feb 2013 20:37:16 +0000 (12:37 -0800)]
sync: don't log wait timeouts when timeout = 0

Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: Fix race condition between merge and signal
Ørjan Eide [Wed, 5 Dec 2012 15:38:08 +0000 (16:38 +0100)]
sync: Fix race condition between merge and signal

The copied sync_pt was activated immediately. If the sync_pt was
signaled before the entire merge was completed, the new fence's pt_list
could be iterated over while it is still in the process of being
created.

Moving the the sync_pt_activate call for all new sync_pts to after both
the sync_fence_copy_pts and the sync_fence_merge_pts calls ensure that
the pt_list is complete and immutable before it can be reached from the
timeline's active list.

Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: add tracepoint support
Erik Gilling [Tue, 16 Oct 2012 23:14:48 +0000 (16:14 -0700)]
sync: add tracepoint support

Change-Id: I181326db4247009161557e45444c9b3548b83d25
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: refactor sync debug printing
Erik Gilling [Tue, 16 Oct 2012 22:16:55 +0000 (15:16 -0700)]
sync: refactor sync debug printing

Move driver callbacks to fill strings instead of using seq_files.  This
will allow those values to be used in a future tracepoint patch.

Change-Id: I9b706343e35b11124141fe520e520514a32003d2
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: use proper barriers when waiting indefinitely
Erik Gilling [Tue, 16 Oct 2012 00:58:46 +0000 (17:58 -0700)]
sync: use proper barriers when waiting indefinitely

The previous fix only addressed waiting with a timeout.

Change-Id: I8ad735d2d0dfdd53592904e8a54f5689cb5eaa5e
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: update new fence status with sync_fence_signal_pt
Erik Gilling [Tue, 16 Oct 2012 00:51:01 +0000 (17:51 -0700)]
sync: update new fence status with sync_fence_signal_pt

If a fence's pt is signaled before sync_fence_create is called, the fence
will never transition into the signaled state.  This also address a tiny
race if a merged fence's pt after sync_fence_get_status checks it's status
and before fence->status is updated.

Change-Id: Ic8e292a323db26c6f04cb4757d920278b3125ff6
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: protect unlocked access to fence status
Erik Gilling [Thu, 11 Oct 2012 19:35:22 +0000 (12:35 -0700)]
sync: protect unlocked access to fence status

Fence status is checked outside of locks in both sync_fence_wait and
sync_fence_poll.  This patch adds propper barrier protection in these
cases to avoid seeing stale status.

Change-Id: I9d8b6ce6accb415e797df58068a1ccd54e6be445
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: dump sync state of fence errors
Erik Gilling [Thu, 11 Oct 2012 01:08:11 +0000 (18:08 -0700)]
sync: dump sync state of fence errors

Change-Id: I297a43aadf83504993040ea875c7f22d988628f1
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: improve timeout dumps
Erik Gilling [Tue, 4 Sep 2012 22:29:09 +0000 (15:29 -0700)]
sync: improve timeout dumps

Change-Id: I3b378d63c324c7b5862dd214f380b5e91131cc2a
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: use correct signed type when handling SYNC_IOC_WAIT
Erik Gilling [Tue, 4 Sep 2012 22:28:52 +0000 (15:28 -0700)]
sync: use correct signed type when handling SYNC_IOC_WAIT

Change-Id: Ic7d5adf9b145765e52b23186b8c3c793ccf29be7
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: dump sync state to console on timeout
Erik Gilling [Fri, 24 Aug 2012 20:48:57 +0000 (13:48 -0700)]
sync: dump sync state to console on timeout

Change-Id: I74bca6b4a2afa7ed5b1f5233c5165d2edddf269a
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: clean up compiler warnings
Erik Gilling [Fri, 24 Aug 2012 20:48:34 +0000 (13:48 -0700)]
sync: clean up compiler warnings

Change-Id: I8a2ec5db652c61fd04571402067b37273b91e78f
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: fix erase-o in sync_fence_wait
Erik Gilling [Wed, 22 Aug 2012 01:43:21 +0000 (18:43 -0700)]
sync: fix erase-o in sync_fence_wait

Change-Id: I189707cf658a9f1f2943515c891b43961994e774
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: change wait timeout to mirror poll semantics
Erik Gilling [Wed, 22 Aug 2012 00:57:19 +0000 (17:57 -0700)]
sync: change wait timeout to mirror poll semantics

Change-Id: Ib38e6d339d41885a33027752690d65a52b6897f6
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: Fix error paths
Rebecca Schultz Zavin [Wed, 8 Aug 2012 20:46:22 +0000 (13:46 -0700)]
sync: Fix error paths

Check the return value of get_unused_fd to make sure a valid
file descriptor is returned.

Make sure to call put_unused_fd even if an error occurs before
the fd can be used.

Change-Id: I0fe8f78d9e30ecfc4d271c5d875424543dae2d0f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
11 years agosync: add reference counting to timelines
Erik Gilling [Fri, 3 Aug 2012 00:26:45 +0000 (17:26 -0700)]
sync: add reference counting to timelines

If a timeline is destroyed while fences still hold pts on it, the reworked
fence release handler can cause the timeline to be freed before all it's points
are freed.

Change-Id: I1cd8ddb638eded7db9db446ff6b37f3dd165d6c4
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: add internal refcounting to fences
Erik Gilling [Mon, 23 Jul 2012 23:43:05 +0000 (16:43 -0700)]
sync: add internal refcounting to fences

If a fence is released while a timeline that one of it's pts is on is being
signaled, it is possible for that fence to be deleted before it is signaled.
This patch adds a refcount for internal references such as signaled pt
processing.

Change-Id: Ie8605e6fd2ac026c207220a03d84e1c1078ec719
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: optimize fence merges
Erik Gilling [Thu, 12 Jul 2012 00:13:50 +0000 (17:13 -0700)]
sync: optimize fence merges

If the two fences being merged contain sync_pts from the same timeline,
those two pts will be collapsed into a single pt representing the latter
of the two.

Change-Id: Iced7ebb7e5a17a0c8b1a2969ba3388a4edb9ecaf
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: reorder sync_fence_release
Erik Gilling [Thu, 12 Jul 2012 00:07:39 +0000 (17:07 -0700)]
sync: reorder sync_fence_release

Previously fence's pts were freed before the were the fence was removed from the
global fence list.  This led to a race with the debugfs support where it would
iterate over sync_pts that had been freed.

Change-Id: Ia3ddbf77de42ca593fc2dc353b5d04e42ddf3946
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: export sync API symbols
Erik Gilling [Wed, 16 May 2012 20:09:22 +0000 (13:09 -0700)]
sync: export sync API symbols

This is needed to allow modules to link against the sync subsystem

Change-Id: I15c1818de329f24e4113ef1d0923413b22fd0eff
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agosync: allow async waits to be canceled
Erik Gilling [Tue, 15 May 2012 23:23:26 +0000 (16:23 -0700)]
sync: allow async waits to be canceled

In order to allow drivers to cleanly handled teardown we need to allow them
to cancel pending async waits.  To do this cleanly, we move allocation of
sync_fence_waiter to the driver calling sync_async_wait().

Change-Id: Ifcd95648be6ec07026d67f810070a4310f099989
Signed-off-by: Erik Gilling <konkers@android.com>
11 years agomodule.h: split out the EXPORT_SYMBOL into export.h
Paul Gortmaker [Mon, 23 May 2011 18:11:39 +0000 (14:11 -0400)]
module.h: split out the EXPORT_SYMBOL into export.h

A lot of files pull in module.h when all they are really
looking for is the basic EXPORT_SYMBOL functionality. The
recent data from Ingo[1] shows that this is one of several
instances that has a significant impact on compile times,
and it should be targeted for factoring out (as done here).

Note that several commonly used header files in include/*
directly include <linux/module.h> themselves (some 34 of them!)
The most commonly used ones of these will have to be made
independent of module.h before the full benefit of this change
can be realized.

We also transition THIS_MODULE from module.h to export.h,
since there are lots of files with subsystem structs that
in turn will have a struct module *owner and only be doing:

.owner = THIS_MODULE;

and absolutely nothing else modular. So, we also want to have
the THIS_MODULE definition present in the lightweight header.

[1] https://lkml.org/lkml/2011/5/23/76

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
11 years agork3168_86v: xbw:delete SDCARD_DET_FROM_GPIO
hjc [Fri, 22 Feb 2013 08:19:32 +0000 (16:19 +0800)]
rk3168_86v: xbw:delete SDCARD_DET_FROM_GPIO

11 years agork3168_86v: xbw SDMMC IO voltage
hjc [Fri, 22 Feb 2013 08:11:06 +0000 (16:11 +0800)]
rk3168_86v: xbw SDMMC IO voltage

11 years agork3188 ds1006h: sync logo
wuhao [Fri, 22 Feb 2013 08:04:56 +0000 (16:04 +0800)]
rk3188 ds1006h: sync logo

11 years agork: Kconfig add RK3168M support, add SOC_RK3168M config, add RK3168M TB config
黄涛 [Fri, 22 Feb 2013 07:49:03 +0000 (15:49 +0800)]
rk: Kconfig add RK3168M support, add SOC_RK3168M config, add RK3168M TB config

11 years agork: power_supply: add rk_get_system_battery_capacity and rk_get_system_battery_status api
黄涛 [Fri, 22 Feb 2013 07:10:24 +0000 (15:10 +0800)]
rk: power_supply: add rk_get_system_battery_capacity and rk_get_system_battery_status api

11 years agork3168_86v: increase the arm and logic voltage
hjc [Fri, 22 Feb 2013 06:27:21 +0000 (14:27 +0800)]
rk3168_86v: increase the arm and logic voltage

11 years agork3168: dvfs support voltage diff = 0
chenxing [Fri, 22 Feb 2013 03:46:58 +0000 (11:46 +0800)]
rk3168: dvfs support voltage diff = 0

11 years agork3188 ds1006h : sync board-rk3188-ds1006h-sdmmc-config.c
wuhao [Fri, 22 Feb 2013 02:58:08 +0000 (10:58 +0800)]
rk3188 ds1006h : sync board-rk3188-ds1006h-sdmmc-config.c

11 years agoMT6620 wifi: add the support for MT6620 wifi in RK31XX porject.
xbw [Fri, 22 Feb 2013 01:26:15 +0000 (09:26 +0800)]
MT6620 wifi:  add the support for MT6620 wifi in RK31XX porject.

11 years agoMT6620 wifi: mt6620 use 2.8v power.
xbw [Fri, 22 Feb 2013 01:20:58 +0000 (09:20 +0800)]
MT6620 wifi: mt6620 use 2.8v power.

11 years agoSDMMC IO voltage:
xbw [Fri, 22 Feb 2013 01:11:07 +0000 (09:11 +0800)]
SDMMC IO voltage:
  Modify a numerical definition of small flaws.Not suitable for the use of the original property is double.
  Please modify your own board-xxx-sdmmc-config.c youself, Reference to this example.

11 years ago3.0.66
Greg Kroah-Hartman [Thu, 21 Feb 2013 18:03:01 +0000 (10:03 -0800)]
3.0.66

11 years agoprintk: fix buffer overflow when calling log_prefix function from call_console_drivers
Alexandre SIMON [Fri, 1 Feb 2013 14:31:54 +0000 (15:31 +0100)]
printk: fix buffer overflow when calling log_prefix function from call_console_drivers

This patch corrects a buffer overflow in kernels from 3.0 to 3.4 when calling
log_prefix() function from call_console_drivers().

This bug existed in previous releases but has been revealed with commit
162a7e7500f9664636e649ba59defe541b7c2c60 (2.6.39 => 3.0) that made changes
about how to allocate memory for early printk buffer (use of memblock_alloc).
It disappears with commit 7ff9554bb578ba02166071d2d487b7fc7d860d62 (3.4 => 3.5)
that does a refactoring of printk buffer management.

In log_prefix(), the access to "p[0]", "p[1]", "p[2]" or
"simple_strtoul(&p[1], &endp, 10)" may cause a buffer overflow as this
function is called from call_console_drivers by passing "&LOG_BUF(cur_index)"
where the index must be masked to do not exceed the buffer's boundary.

The trick is to prepare in call_console_drivers() a buffer with the necessary
data (PRI field of syslog message) to be safely evaluated in log_prefix().

This patch can be applied to stable kernel branches 3.0.y, 3.2.y and 3.4.y.

Without this patch, one can freeze a server running this loop from shell :
  $ export DUMMY=`cat /dev/urandom | tr -dc '12345AZERTYUIOPQSDFGHJKLMWXCVBNazertyuiopqsdfghjklmwxcvbn' | head -c255`
  $ while true do ; echo $DUMMY > /dev/kmsg ; done

The "server freeze" depends on where memblock_alloc does allocate printk buffer :
if the buffer overflow is inside another kernel allocation the problem may not
be revealed, else the server may hangs up.

Signed-off-by: Alexandre SIMON <Alexandre.Simon@univ-lorraine.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
11 years agoSDMMC-RK31XX:
xbw [Thu, 21 Feb 2013 11:09:29 +0000 (19:09 +0800)]
SDMMC-RK31XX:
   Eliminate the problem of card as unidentified during the open-device or insert-removal in suspend-resume.

11 years agoSDMMC:
xbw [Thu, 21 Feb 2013 11:01:55 +0000 (19:01 +0800)]
SDMMC:
   For example, how to modify the voltage of sdmmc0-gpio group in RK CPU.
Please modify your board-xxx-sdmmc-config.c youself , if you want to use 1.8V for SDMMC0-PIN.

11 years agoSDMMC:
xbw [Thu, 21 Feb 2013 10:58:19 +0000 (18:58 +0800)]
SDMMC:
add the control for the voltage of sdmmc0-pin in RK-host gpio group.

11 years agork: rm video_state.c which replace by ddr_freq.c
黄涛 [Thu, 21 Feb 2013 10:30:03 +0000 (18:30 +0800)]
rk: rm video_state.c which replace by ddr_freq.c

11 years agohdmi: set hdmi probe later than codec,
yzq [Thu, 21 Feb 2013 09:27:06 +0000 (17:27 +0800)]
hdmi: set hdmi probe later than codec,
fix codec not close when system start with hdmi plug

11 years agoremove printk in last updateing
xxx [Thu, 21 Feb 2013 09:25:46 +0000 (17:25 +0800)]
remove printk in last updateing

11 years agodvfs support list regulator volt
xxx [Thu, 21 Feb 2013 09:17:49 +0000 (17:17 +0800)]
dvfs support list regulator volt

11 years agork3168_86v: deconfig add SDCARD_DET_FROM_GPIO and watchdog
hjc [Thu, 21 Feb 2013 09:00:55 +0000 (17:00 +0800)]
rk3168_86v: deconfig add SDCARD_DET_FROM_GPIO and watchdog

11 years agoadd rgb2mipi display drivers for tc358768 and ssd2828
hhb [Thu, 21 Feb 2013 07:45:14 +0000 (15:45 +0800)]
add rgb2mipi display drivers for tc358768 and ssd2828

11 years agoEHCI&HSIC support
yangkai [Thu, 21 Feb 2013 07:01:21 +0000 (15:01 +0800)]
EHCI&HSIC support

11 years agork3066b lcdc:support 1.8V io
yxj [Thu, 21 Feb 2013 06:46:04 +0000 (14:46 +0800)]
rk3066b lcdc:support 1.8V io

11 years agork3066b lcdc:enable color key for win1,this will be used in pcba for camera test
yxj [Thu, 21 Feb 2013 06:08:29 +0000 (14:08 +0800)]
rk3066b lcdc:enable color key for win1,this will be used in pcba for camera test

11 years agork fb:fix bug for one lcdc dual display
yxj [Wed, 20 Feb 2013 12:45:44 +0000 (20:45 +0800)]
rk fb:fix bug for one lcdc dual display

11 years agork3188 lcdc:modify DBG
yxj [Tue, 19 Feb 2013 08:34:21 +0000 (16:34 +0800)]
rk3188 lcdc:modify DBG

11 years agoiomux: default mode: uart2&uart3: add ctsn&rtsn
kfx [Thu, 21 Feb 2013 01:12:01 +0000 (09:12 +0800)]
iomux: default mode: uart2&uart3: add ctsn&rtsn

11 years agork_gps: fix bug when disable gps aclk
hhb [Wed, 20 Feb 2013 07:13:14 +0000 (15:13 +0800)]
rk_gps: fix bug when disable gps aclk

11 years agoit66121 hdmi: remove debug message
yzq [Wed, 20 Feb 2013 01:16:09 +0000 (09:16 +0800)]
it66121 hdmi: remove debug message