Commit Graph

405830 Commits

Author SHA1 Message Date
Sugar Zhang
c2b8fe475f ASoC: rt3261: initial micbais.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2015-06-24 20:44:29 +08:00
hwg
16251953f2 rtl8188eu: update driver to v4.3.0.8_13968.20150417, modify some error 2015-06-24 20:41:39 +08:00
Xiao Feng
c600f132e3 pm_tests: rockchip: add pvtm test
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2015-06-24 19:41:53 +08:00
Jianhong Chen
83538be8a0 power: rk81x-battery: support otg device
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
2015-06-24 17:31:03 +08:00
lyz
5c80f83d0a usb: bc: fix compile error
Fix conflicting types for 'rk_bc_detect_notifier_register'
2015-06-24 11:15:37 +08:00
lyz
fb36c32ecb usb: bc: fix function name in hader file 2015-06-24 09:59:25 +08:00
Xiao Feng
ec6fcdf629 arm64: rockchip: rk3368-p9: dts: modify clocks init rate
reduce aclk_bus hclk_bus aclk_peri hclk_peri for power

Signed-off-by: Xiao Feng <xf@rock-chips.com>
2015-06-23 21:00:32 +08:00
Shengqin.Zhang
270cb1a175 add RGA param_x when scale down
Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
2015-06-23 20:03:55 +08:00
Xiao Feng
16e82ab2b6 arm64: rockchip: rk3368: dts: add leakage adjust volt support
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2015-06-23 19:31:16 +08:00
Huang, Tao
adfcb2ed1a arm64: rockchip: rockchip_defconfig disable SCHED_HMP_LITTLE_PACKING
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2015-06-23 17:05:17 +08:00
Zheng Yang
9a66b0a178 HDMI:rk3128/rk3036: fix compile error introduced by pre-commit.
hdcp_power_off_cb() was changed by commit
	90e99a4c35.

Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-06-23 16:52:17 +08:00
Zheng Yang
a869f9ba77 HDMI:rk3288/rk3368: support 2nd HDCP authentication.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-06-23 16:51:23 +08:00
Zheng Yang
90e99a4c35 HDMI: modify callback and events for HDCP 2nd auth.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-06-23 16:48:52 +08:00
Shawn Lin
151436a3c8 mmc: core: reduce erase event timeout
We set wrong discard timeout limitation for erase event
which exceed that block layer does. And jbd warning
can be observed like blow:

INFO: task update_binary:151 blocked for more than 10 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
update_binary   D ffffffc000085674     0   151    134 0x00400008
Call trace:
[<ffffffc000085674>] __switch_to+0x80/0x8c
[<ffffffc00082cb28>] __schedule+0x4e0/0x6f4
[<ffffffc00082cda0>] schedule+0x64/0x70
[<ffffffc00082aea0>] schedule_timeout+0x28/0x250
[<ffffffc00082d2ac>] io_schedule_timeout+0x6c/0xa8
[<ffffffc00082d37c>] wait_for_common_io.constprop.111+0x94/0x114
[<ffffffc00082d41c>] wait_for_completion_io+0xc/0x18
[<ffffffc0002ffb08>] blkdev_issue_discard+0x1e0/0x214
[<ffffffc000300630>] blkdev_ioctl+0x2d0/0x708
[<ffffffc00030d52c>] compat_blkdev_ioctl+0x464/0x5ec
[<ffffffc0001bdf0c>] compat_sys_ioctl+0x104/0x1e8

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-06-23 09:36:43 +08:00
Fabian Frederick
a4273cde86 mmc: queue: use swap() in mmc_queue_thread()
Use kernel.h macro definition.

Thanks to Julia Lawall for Coccinelle scripting support.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2015-06-23 09:36:43 +08:00
Shawn Lin
9749a34422 dts: rk312x-pinctrl: disable IO pull-down for SDIO
Rockchips' platform contain ridiculous and closely
w/o maintained macro in pcl to pave the bumpy way for
other drivers to distinguish VALUE_PULL_UPDOWN_DISABLE
from VALUE_PULL_DISABLE.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
Tested-by: Xiao Yao <xiaoyao@rock-chips.com>
Cc: Roger Hu <roger.hu@rock-chips.com>
2015-06-23 09:36:43 +08:00
Shawn Lin
951a22d3f2 mmc: core: avoid recovery flow for tuning failure
Communication scenario definitely should fail during
tuning procedure. Already does it reset controller, so
we don't need executing recovery for that case.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-06-23 09:36:43 +08:00
Ding Wang
115a967d5e mmc: card: Fixup request missing in mmc_blk_issue_rw_rq
The current handler of MMC_BLK_CMD_ERR in mmc_blk_issue_rw_rq function
may cause new coming request permanent missing when the ongoing
request (previoulsy started) complete end.

The problem scenario is as follows:
(1) Request A is ongoing;
(2) Request B arrived, and finally mmc_blk_issue_rw_rq() is called;
(3) Request A encounters the MMC_BLK_CMD_ERR error;
(4) In the error handling of MMC_BLK_CMD_ERR, suppose mmc_blk_cmd_err()
    end request A completed and return zero. Continue the error handling,
    suppose mmc_blk_reset() reset device success;
(5) Continue the execution, while loop completed because variable ret
    is zero now;
(6) Finally, mmc_blk_issue_rw_rq() return without processing request B.

The process related to the missing request may wait that IO request
complete forever, possibly crashing the application or hanging the system.

Fix this issue by starting new request when reset success.

Signed-off-by: Ding Wang <justin.wang@spreadtrum.com>
Fixes: 67716327ee ("mmc: block: add eMMC hardware reset support")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2015-06-23 09:36:43 +08:00
Shawn Lin
8f7ac8a82f mmc: core: add timeout for context_info->is_done_rcv
After dequeue a rq from blk and a accidental rq missing makes
bq->queue fails to fetch blk_rq again since !rq w/o been done.
Whatsoever was that, MUST ensure a schedule mechanisam to break
the dead loop, and issue the missing one again. We observe this
problem, all processes calling aio page writeback or commiting
journal were confined in io_schedule waiting for previous blk rq
to be completed, and cause os stucked.

page:c1337420 count:3 mapcount:0 mapping:dc8fdc34 index:0x502
page flags: 0x4000286c(referenced|uptodate|lru|active|private|writeback)
sleep_on_page: inode: dc8fdb58, 119091
CPU: 3 PID: 199 Comm: abc Not tainted 3.10.0 #298
[<c0013e44>] (unwind_backtrace+0x0/0xe0) from [<c001175c>] (show_stack+0x10/0x14)
[<c001175c>] (show_stack+0x10/0x14) from [<c00cadb8>] (sleep_on_page+0x6c/0x8c)
[<c00cadb8>] (sleep_on_page+0x6c/0x8c) from [<c0769a80>] (__wait_on_bit+0x54/0xa0)
[<c0769a80>] (__wait_on_bit+0x54/0xa0) from [<c00ca88c>] (wait_on_page_bit+0x8c/0x9c)
[<c00ca88c>] (wait_on_page_bit+0x8c/0x9c) from [<c00ca954>] (filemap_fdatawait_range+0x6c/0x110)
[<c00ca954>] (filemap_fdatawait_range+0x6c/0x110) from [<c00cbd8c>] (filemap_write_and_wait_range+0x54/0x78)
[<c00cbd8c>] (filemap_write_and_wait_range+0x54/0x78) from [<c0182e14>] (ext4_sync_file+0xdc/0x308)
[<c0182e14>] (ext4_sync_file+0xdc/0x308) from [<c01305f8>] (vfs_fsync_range+0x34/0x44)
[<c01305f8>] (vfs_fsync_range+0x34/0x44) from [<c01306b0>] (generic_write_sync+0x80/0x88)
[<c01306b0>] (generic_write_sync+0x80/0x88) from [<c00cc3fc>] (generic_file_aio_write+0xa0/0xb0)
[<c00cc3fc>] (generic_file_aio_write+0xa0/0xb0) from [<c0109198>] (do_sync_write+0x74/0x98)
[<c0109198>] (do_sync_write+0x74/0x98) from [<c0109ab8>] (vfs_write+0xd4/0x16c)
[<c0109ab8>] (vfs_write+0xd4/0x16c) from [<c0109df8>] (SyS_write+0x3c/0x60)
[<c0109df8>] (SyS_write+0x3c/0x60) from [<c000da00>] (ret_fast_syscall+0x0/0x30)

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-by: Meiyou Chen <cmy@rock-chips.com>
2015-06-23 09:36:43 +08:00
Shawn Lin
5a2215a54f mmc: rk_sdmmc: remove edmac init in post tmo and data->stop
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-06-23 09:36:43 +08:00
Shawn Lin
d637489d06 mmc: rk_sdmmc: add new property for mmc_assume_removable
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-06-23 09:36:42 +08:00
Shawn Lin
fef082090f mmc: core: limit tuning block timeout
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-06-23 09:36:42 +08:00
Shawn Lin
eaa5cd4147 dts: rockchip: add tune_regsbase for mmc
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-06-23 09:36:42 +08:00
Shawn Lin
d942ab87ac mmc: host: Add facility to support re-tuning
This commit comes from community but not upstreram.
We cannot wait for picking up such a great movement without
upstream admit it. We just take a light way to merge it and
minimize the change.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
2015-06-23 09:36:42 +08:00
Shawn Lin
67681b0388 mmc: rk_sdmmc: new tuning policy
Totally new tuning policy for rockchip mhsc
merging from upstream and sustainable experiments
conducted by massive test using tier one customers's board.
This fine ajustment might be more durable and readable.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
Test-by: Xiao Yao <xiaoyao@rock-chips.com>
2015-06-23 09:36:42 +08:00
Shawn Lin
8b7fa397ae mmc: rk_sdmmc: local reversion and code regulation
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2015-06-23 09:36:42 +08:00
zxl
14dd34f378 RK3368 GPU version: Rogue L 0.18
If fix freq,then don't force to drop freq to the lowest.
2015-06-23 09:11:36 +08:00
Aiyoujun
e4397096d2 dts: rk3368-p9_818: modify DVFS table for gpu, if not so, reboot test would be failed sometimes.
Signed-off-by: Aiyoujun <ayj@rock-chips.com>
2015-06-23 08:47:55 +08:00
lyz
beba843dc2 usb: bc: add battery charger detect head file
Signed-off-by: lyz <lyz@rock-chips.com>
2015-06-19 19:27:47 +08:00
lyz
4d09515ead usb: dwc_otg: prevent re-submit urb when disconnect detected
Signed-off-by: lyz <lyz@rock-chips.com>
2015-06-19 19:09:05 +08:00
hjc
45bddfa6a5 vop: full: update win direct enable function
Signed-off-by: hjc <hjc@rock-chips.com>
2015-06-19 14:25:41 +08:00
hjc
a796f3d54a rk fb: when switch screen,should not close vop,this will lead to close clk
just need to close all win

Signed-off-by: hjc <hjc@rock-chips.com>
2015-06-19 14:25:40 +08:00
hwg
7e7d72bb18 rtl8188eu: update driver to v4.3.0.8_13968.20150417 2015-06-18 18:29:24 +08:00
huang zhibao
0c14701776 defconfig: add dcdc eta3555 2015-06-18 18:06:40 +08:00
huang zhibao
113ed73715 regulator: add eta3555 support 2015-06-18 17:55:55 +08:00
ShenZhengyi
f29270bbfe tve:rk1000:modify suspend and resume condition
Signed-off-by: ShenZhengyi <szy@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-06-18 17:36:40 +08:00
ShenZhengyi
955e0696de tve:rk1000: Fix code style
Signed-off-by: ShenZhengyi <szy@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2015-06-18 17:36:31 +08:00
hwg
60a93a12d8 bcmdhd wifi: add auto recognize different chips 2015-06-18 17:30:53 +08:00
xubilv
794be81939 rk3368: TP: Forget to remove source drivers/input/touchscreen/gt9xx/Kconfig.
Signed-off-by: xubilv <xbl@rock-chips.com>
2015-06-18 17:11:53 +08:00
hcy
e3e402066c dts: add rk3368-tb_mipi.dts to support new SDK top board
Signed-off-by: hecanyang <hcy@rock-chips.com>
2015-06-18 16:08:26 +08:00
Xiao Feng
d2c7fdf68a dvfs: rockchip: if can not get regulator, set regulator=NULL
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2015-06-18 15:42:21 +08:00
Huang, Tao
1831cf8089 clocksource: rockchip_timer: set clockevent irq flags include IRQF_PERCPU
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2015-06-18 15:22:21 +08:00
xubilv
9c46bb6969 RK3368: TP: use dts to control the difference between GT9XX.
Signed-off-by: xubilv <xbl@rock-chips.com>
2015-06-18 11:38:19 +08:00
Jianhong Chen
4b1628fc24 rk3368-tb_8846: dts: modify battery node
1) add dc det pinctrl
	2) disable usb adapter
	3) set input charge current 3000mA

Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2015-06-17 14:57:51 +08:00
Jianhong Chen
67fcb6b630 power: rk81x-battery: fix dwc_otg_check_dpdm declare error
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2015-06-17 14:57:50 +08:00
Andy Yan
2546580dcb power: rk81x battery: fix charger online init
if the system boot with charger online, use it
as init state for power_supply_register

Signed-off-by: Andy Yan <yxj@rock-chips.com>
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2015-06-17 14:57:50 +08:00
Andy Yan
70b21d62d2 power: rk81x battery: fix charge/discharge check in reboot mode
judge charge/discharge mode by current direction

Signed-off-by: Andy Yan <yxj@rock-chips.com>
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2015-06-17 14:57:50 +08:00
Andy Yan
a42a087a7e power: rk81x battery: skip invalid voltage
rk81x battery may get invalid value when resume from suspend,
if the voltage get from adc is lower than INVALID_VOL_THRESD,
we consider it as invalid and filter it

Signed-off-by: Andy Yan <yxj@rock-chips.com>
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2015-06-17 14:57:49 +08:00
Jianhong Chen
d4f8267697 power: rk81x-battery: disable charge over time funtion
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2015-06-17 14:57:49 +08:00
Jianhong Chen
868ead9f12 power: rk81x-battery: count all avaraible rsoc into calc
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2015-06-17 14:57:49 +08:00