firefly-linux-kernel-4.4.55.git
14 years agoupdata serial and console
林辉辉 [Mon, 17 May 2010 15:29:50 +0000 (15:29 +0000)]
updata serial and console

14 years ago(no commit message)
罗伟 [Mon, 17 May 2010 13:39:28 +0000 (13:39 +0000)]

14 years ago(no commit message)
罗伟 [Mon, 17 May 2010 13:37:34 +0000 (13:37 +0000)]

14 years agolcd iomux restitute
钟勇汪 [Mon, 17 May 2010 11:46:34 +0000 (11:46 +0000)]
lcd iomux restitute

14 years agomod i2c_transfer
柯飞雄 [Mon, 17 May 2010 11:40:08 +0000 (11:40 +0000)]
mod i2c_transfer

14 years ago(no commit message)
罗伟 [Mon, 17 May 2010 09:17:12 +0000 (09:17 +0000)]

14 years agomodify rk2818 adc
罗伟 [Mon, 17 May 2010 09:09:37 +0000 (09:09 +0000)]
modify rk2818 adc

14 years agochange i2c_transfer func
柯飞雄 [Mon, 17 May 2010 08:44:06 +0000 (08:44 +0000)]
change i2c_transfer func

14 years agoupdate for gpio PM
沈睿汀 [Mon, 17 May 2010 07:52:56 +0000 (07:52 +0000)]
update for gpio PM

14 years agoupdate i2c
林辉辉 [Mon, 17 May 2010 03:43:35 +0000 (03:43 +0000)]
update i2c

14 years agomodify for dm9000
刘益星 [Mon, 17 May 2010 02:35:58 +0000 (02:35 +0000)]
modify for dm9000

14 years agomodify adc driver and adc key driver
罗伟 [Sat, 15 May 2010 08:06:32 +0000 (08:06 +0000)]
modify adc driver and adc key driver

14 years ago(no commit message)
罗伟 [Sat, 15 May 2010 07:43:30 +0000 (07:43 +0000)]

14 years agoluowei add adc driver and adckey driver on 100515
罗伟 [Sat, 15 May 2010 07:42:12 +0000 (07:42 +0000)]
luowei add adc driver and adckey driver on 100515

14 years agork2818_sdmmc.x --> rk2818_sdmmcx
柯飞雄 [Fri, 14 May 2010 14:40:14 +0000 (14:40 +0000)]
rk2818_sdmmc.x --> rk2818_sdmmcx

14 years agoadd fb
钟勇汪 [Fri, 14 May 2010 13:12:52 +0000 (13:12 +0000)]
add fb

14 years agoadd screen
钟勇汪 [Fri, 14 May 2010 12:57:10 +0000 (12:57 +0000)]
add screen

14 years agoadd fb
钟勇汪 [Fri, 14 May 2010 12:44:56 +0000 (12:44 +0000)]
add fb

14 years agoupdate serial for poll read and write
林辉辉 [Fri, 14 May 2010 09:57:38 +0000 (09:57 +0000)]
update serial for poll read and write

14 years agoupdata enc28j60 net
林辉辉 [Fri, 14 May 2010 09:26:25 +0000 (09:26 +0000)]
updata enc28j60 net

14 years agomod i2c clkid
柯飞雄 [Fri, 14 May 2010 01:32:54 +0000 (01:32 +0000)]
mod i2c clkid

14 years agoadd rk2818_sdmmc.* and rk2818_i2c.*
黄涛 [Fri, 14 May 2010 01:31:26 +0000 (01:31 +0000)]
add rk2818_sdmmc.* and rk2818_i2c.*

14 years agomod i2c clkid
柯飞雄 [Fri, 14 May 2010 01:30:25 +0000 (01:30 +0000)]
mod i2c clkid

14 years agomod i2c clkid
柯飞雄 [Fri, 14 May 2010 01:29:42 +0000 (01:29 +0000)]
mod i2c clkid

14 years agomod i2c
柯飞雄 [Thu, 13 May 2010 15:09:38 +0000 (15:09 +0000)]
mod i2c

14 years agomod i2c
柯飞雄 [Thu, 13 May 2010 14:46:29 +0000 (14:46 +0000)]
mod i2c

14 years agomod i2c
柯飞雄 [Thu, 13 May 2010 14:09:48 +0000 (14:09 +0000)]
mod i2c

14 years ago(no commit message)
柯飞雄 [Thu, 13 May 2010 13:54:27 +0000 (13:54 +0000)]

14 years agoconfig add i2cx select
柯飞雄 [Thu, 13 May 2010 13:07:50 +0000 (13:07 +0000)]
config add i2cx select

14 years agomod i2c
柯飞雄 [Thu, 13 May 2010 10:56:00 +0000 (10:56 +0000)]
mod i2c

14 years agoadd cpufreq support
黄涛 [Thu, 13 May 2010 09:03:23 +0000 (09:03 +0000)]
add cpufreq support

14 years agoadd cpufreq support
黄涛 [Thu, 13 May 2010 09:01:08 +0000 (09:01 +0000)]
add cpufreq support

14 years agoupdate some file
林辉辉 [Thu, 13 May 2010 07:03:11 +0000 (07:03 +0000)]
update some file

14 years agofix macro definition
黄涛 [Thu, 13 May 2010 06:42:13 +0000 (06:42 +0000)]
fix macro definition

14 years agoupdate .config
林辉辉 [Thu, 13 May 2010 02:05:40 +0000 (02:05 +0000)]
update .config

14 years agoadd hym8563 rtc
林辉辉 [Thu, 13 May 2010 01:47:43 +0000 (01:47 +0000)]
add hym8563 rtc

14 years agomod i2c
柯飞雄 [Thu, 13 May 2010 01:14:00 +0000 (01:14 +0000)]
mod i2c

14 years agomod i2c
柯飞雄 [Thu, 13 May 2010 01:11:20 +0000 (01:11 +0000)]
mod i2c

14 years agomod dm9000
刘益星 [Wed, 12 May 2010 15:34:37 +0000 (15:34 +0000)]
mod dm9000

14 years agomodify for dm9000
刘益星 [Wed, 12 May 2010 15:14:07 +0000 (15:14 +0000)]
modify for dm9000

14 years agomod i2c
柯飞雄 [Wed, 12 May 2010 10:06:12 +0000 (10:06 +0000)]
mod i2c

14 years agomod i2c
柯飞雄 [Wed, 12 May 2010 10:03:49 +0000 (10:03 +0000)]
mod i2c

14 years agomod i2c
柯飞雄 [Wed, 12 May 2010 09:59:41 +0000 (09:59 +0000)]
mod i2c

14 years agomod i2c
柯飞雄 [Wed, 12 May 2010 09:57:29 +0000 (09:57 +0000)]
mod i2c

14 years agodel i2c.h
柯飞雄 [Wed, 12 May 2010 09:51:53 +0000 (09:51 +0000)]
del i2c.h

14 years agoadd i2c
柯飞雄 [Wed, 12 May 2010 09:18:40 +0000 (09:18 +0000)]
add i2c

14 years agomod i2c
柯飞雄 [Wed, 12 May 2010 02:19:45 +0000 (02:19 +0000)]
mod i2c

14 years agoadd i2c
柯飞雄 [Tue, 11 May 2010 14:21:07 +0000 (14:21 +0000)]
add i2c

14 years agoadd i2c
柯飞雄 [Tue, 11 May 2010 14:19:49 +0000 (14:19 +0000)]
add i2c

14 years agoadd i2c
柯飞雄 [Tue, 11 May 2010 14:10:25 +0000 (14:10 +0000)]
add i2c

14 years agoadd i2c
柯飞雄 [Tue, 11 May 2010 14:07:00 +0000 (14:07 +0000)]
add i2c

14 years agoadd i2c
柯飞雄 [Tue, 11 May 2010 14:03:56 +0000 (14:03 +0000)]
add i2c

14 years agoadd i2c
柯飞雄 [Tue, 11 May 2010 14:03:38 +0000 (14:03 +0000)]
add i2c

14 years agoadd i2c
柯飞雄 [Tue, 11 May 2010 14:02:35 +0000 (14:02 +0000)]
add i2c

14 years agoadd spi driver
林辉辉 [Tue, 11 May 2010 07:34:46 +0000 (07:34 +0000)]
add spi driver

14 years agomap RK2818_SDRAMC_BASE
黄涛 [Tue, 11 May 2010 02:11:23 +0000 (02:11 +0000)]
map RK2818_SDRAMC_BASE

14 years agoadd scu.h
黄涛 [Tue, 11 May 2010 01:21:23 +0000 (01:21 +0000)]
add scu.h

14 years agomodify dwdma hardware connection
倪振宇 [Mon, 10 May 2010 13:52:39 +0000 (13:52 +0000)]
modify dwdma hardware connection

14 years agoenable TCM
黄涛 [Mon, 10 May 2010 08:46:32 +0000 (08:46 +0000)]
enable TCM

14 years agodisable dwdma testing switch
倪振宇 [Fri, 7 May 2010 11:58:00 +0000 (11:58 +0000)]
disable dwdma testing switch

14 years agomodify performance of dwdam interrupt method
倪振宇 [Fri, 7 May 2010 11:56:48 +0000 (11:56 +0000)]
modify performance of dwdam interrupt method

14 years agomodify method that get irq status
倪振宇 [Thu, 6 May 2010 08:21:12 +0000 (08:21 +0000)]
modify method that get irq status

14 years agomodify interrupt type
倪振宇 [Wed, 5 May 2010 03:30:46 +0000 (03:30 +0000)]
modify interrupt type

14 years agoupdate for gpio
沈睿汀 [Fri, 30 Apr 2010 02:52:30 +0000 (02:52 +0000)]
update for gpio

14 years agosupport clk_set_parent
黄涛 [Thu, 29 Apr 2010 14:19:17 +0000 (14:19 +0000)]
support clk_set_parent

14 years agoadd for gpio
沈睿汀 [Thu, 29 Apr 2010 09:23:23 +0000 (09:23 +0000)]
add for gpio

14 years agoupdate for gpio
沈睿汀 [Thu, 29 Apr 2010 09:19:35 +0000 (09:19 +0000)]
update for gpio

14 years agoupdate for gpio
沈睿汀 [Thu, 29 Apr 2010 09:12:25 +0000 (09:12 +0000)]
update for gpio

14 years agoupdate for gpio
沈睿汀 [Thu, 29 Apr 2010 09:10:42 +0000 (09:10 +0000)]
update for gpio

14 years agoupdate for gpio
沈睿汀 [Thu, 29 Apr 2010 09:07:44 +0000 (09:07 +0000)]
update for gpio

14 years agoupdate for gpio
沈睿汀 [Thu, 29 Apr 2010 09:06:03 +0000 (09:06 +0000)]
update for gpio

14 years agodelete macro test dma
倪振宇 [Wed, 28 Apr 2010 14:30:51 +0000 (14:30 +0000)]
delete macro test dma

14 years agoadd dwdma driver
倪振宇 [Wed, 28 Apr 2010 13:54:42 +0000 (13:54 +0000)]
add dwdma driver

14 years agoset zreladdr to 0x60008000
黄涛 [Tue, 27 Apr 2010 13:17:52 +0000 (13:17 +0000)]
set zreladdr to 0x60008000

14 years agoupdate debug code
黄涛 [Tue, 27 Apr 2010 12:48:00 +0000 (12:48 +0000)]
update debug code

14 years agoupdate .config can run ramdisk
林辉辉 [Tue, 27 Apr 2010 12:28:53 +0000 (12:28 +0000)]
update .config can run ramdisk

14 years agomore clock
黄涛 [Mon, 26 Apr 2010 13:13:44 +0000 (13:13 +0000)]
more clock

14 years agoadd iomux driver
林辉辉 [Mon, 26 Apr 2010 07:43:24 +0000 (07:43 +0000)]
add iomux driver

14 years agoupdate rk2818_serial
林辉辉 [Sat, 24 Apr 2010 06:33:04 +0000 (06:33 +0000)]
update rk2818_serial

14 years agofix clock name from uart_clk to uart, uartclk get use clk_get_rate
黄涛 [Sat, 24 Apr 2010 03:50:20 +0000 (03:50 +0000)]
fix clock name from uart_clk to uart, uartclk get use clk_get_rate

14 years agoadd clock support
黄涛 [Sat, 24 Apr 2010 03:48:44 +0000 (03:48 +0000)]
add clock support

14 years agoenable common clkdev
黄涛 [Fri, 23 Apr 2010 09:53:52 +0000 (09:53 +0000)]
enable common clkdev

14 years agoadd rk2818 serial and up iomap
林辉辉 [Fri, 23 Apr 2010 03:25:06 +0000 (03:25 +0000)]
add rk2818 serial and up iomap

14 years agork2818 for linux2.6.32
林辉辉 [Thu, 22 Apr 2010 04:26:22 +0000 (04:26 +0000)]
rk2818 for linux2.6.32

14 years agoImplement read(2) in ashmem driver
Bjorn Bringert [Thu, 15 Apr 2010 09:04:01 +0000 (10:04 +0100)]
Implement read(2) in ashmem driver

Bug: 2595601
Change-Id: I47c0016f594f9354fb8658ccb26e3d395bcb137b
Signed-off-by: Bjorn Bringert <bringert@android.com>
14 years agostaging: android: lowmemorykiller: Remove bitrotted codepath
San Mehat [Thu, 6 May 2010 22:43:46 +0000 (15:43 -0700)]
staging: android: lowmemorykiller: Remove bitrotted codepath

Now that we're murder-synchronous, this code path will never be
called (and if it does, it doesn't tell us anything useful other
than we killed a task that was already being killed by somebody
else but hadn't gotten its' signal yet)

Signed-off-by: San Mehat <san@google.com>
14 years agostaging: android: lowmemorykiller: Fix task_struct leak
San Mehat [Thu, 6 May 2010 22:40:07 +0000 (15:40 -0700)]
staging: android: lowmemorykiller: Fix task_struct leak

As it turns out, the CONFIG_PROFILING interfaces leak a
task struct if the notifier chain returns NOTIFY_OK.. doh.

This patch reworks lowmemkiller to use the new generic task
free notifier chain.

Signed-off-by: San Mehat <san@google.com>
14 years agosched: Add a generic notifier when a task struct is about to be freed
San Mehat [Thu, 6 May 2010 22:37:55 +0000 (15:37 -0700)]
sched: Add a generic notifier when a task struct is about to be freed

This patch adds a notifier which can be used by subsystems that may
be interested in when a task has completely died and is about to
have it's last resource freed.

  The Android lowmemory killer uses this to determine when a task
it has killed has finally given up its goods.

Signed-off-by: San Mehat <san@google.com>
14 years agobinder: Fix memory corruption via page aliasing
Christopher Lais [Sat, 1 May 2010 20:51:48 +0000 (15:51 -0500)]
binder: Fix memory corruption via page aliasing

binder_deferred_release was not unmapping the page from the buffer
before freeing it, causing memory corruption.  This only happened
when page(s) had not been freed by binder_update_page_range, which
properly unmaps the pages.

This only happens on architectures with VIPT aliasing.

To reproduce, create a program which opens, mmaps, munmaps, then closes
the binder very quickly.  This should leave a page allocated when the
binder is released.  When binder_deferrred_release is called on the
close, the page will remain mapped to the address in the linear
proc->buffer.  Later, we may map the same physical page to a different
virtual address that has different coloring, and this may cause
aliasing to occur.

PAGE_POISONING will greatly increase your chances of noticing any
problems.

Change-Id: I6941bf212881b8bf846bdfda43d3609c7ae4892e

Signed-off-by: Christopher Lais <chris+android@zenthought.org>
14 years agostaging: android: lowmemkiller: Substantially reduce overhead during reclaim
San Mehat [Wed, 5 May 2010 18:38:42 +0000 (11:38 -0700)]
staging: android: lowmemkiller: Substantially reduce overhead during reclaim

This patch optimizes lowmemkiller to not do any work when it has an outstanding
kill-request. This greatly reduces the pressure on the task_list lock
(improving interactivity), as well as improving the vmscan performance
when under heavy memory pressure (by up to 20x in tests).

Note: For this enhancement to work, you need CONFIG_PROFILING

Signed-off-by: San Mehat <san@google.com>
14 years ago[ARM] Do not call flush_cache_user_range with mmap_sem held
Dima Zavin [Wed, 28 Apr 2010 03:57:04 +0000 (20:57 -0700)]
[ARM] Do not call flush_cache_user_range with mmap_sem held

We can't be holding the mmap_sem while calling flush_cache_user_range
because the flush can fault. If we fault on a user address, the
page fault handler will try to take mmap_sem again. Since both places
acquire the read lock, most of the time it succeeds. However, if another
thread tries to acquire the write lock on the mmap_sem (e.g. mmap) in
between the call to flush_cache_user_range and the fault, the down_read
in do_page_fault will deadlock.

Also, since we really can't be holding the mmap_sem while calling
flush_cache_user_range AND vma is actually unused by the flush itself,
get rid of vma as an argument.

Change-Id: If55409bde41ad1060fa4fe7cbd4ac530d4d9a106
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoUSB: android gadget: mass storage: Fix format issue for Vista Host
Velempati Chiranjeevi [Wed, 21 Oct 2009 04:23:10 +0000 (09:53 +0530)]
USB: android gadget: mass storage: Fix format issue for Vista Host

As part of formating the mass storage device, Host sends the INQUIRY
scsi command. As per the standard, the command length for this
command should be 6 bytes, whereas the Vista host sends 12 bytes.

When the command length of the command is not equal to the standard
length, the device sends a phase error as part of the status phase.
When the host receives a phase error, it re-enumerates, hence the
error.

If the command is INQUIRY, and the command length is 12 bytes,
treating this as a good command and not sending the phase error
to the host fixes this issue.

Signed-off-by: Velempati Chiranjeevi <c_cvelem@qualcomm.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agolowmemorykiller: Don't try to kill the same pid over and over
San Mehat [Mon, 26 Apr 2010 22:11:04 +0000 (15:11 -0700)]
lowmemorykiller: Don't try to kill the same pid over and over

  Under certain circumstances, a process can take awhile to
handle a sig-kill (especially if it's in a scheduler group with
a very low share ratio). When this occurs, lowmemkiller returns
to vmscan indicating the process memory has been freed - even
though the process is still waiting to die. Since the memory
hasn't actually freed, lowmemkiller is called again shortly after,
and picks the same process to die; regardless of the fact that
it has already been 'scheduled' to die and the memory has already
been reported to vmscan as having been freed.

  Solution is to check fatal_signal_pending() on the selected
task, and if it's already pending destruction return; indicating
to vmscan that no resources were freed on this pass.

Signed-off-by: San Mehat <san@google.com>
14 years agoStaging: android: binder: Create dedicated workqueue for binder deferred work
Arve Hjønnevåg [Thu, 22 Apr 2010 22:53:23 +0000 (15:53 -0700)]
Staging: android: binder: Create dedicated workqueue for binder deferred work

Some drivers flush the global workqueue when closed. This would deadlock if
the last reference to the file was released from the binder.

Change-Id: Ifdabc0b383fecb20836d1bbb9786c632402a14e1
Signed-off-by: Arve Hjønnevåg <arve@android.com>
14 years agoproc: pagemap: Hold mmap_sem during page walk
KAMEZAWA Hiroyuki [Fri, 2 Apr 2010 00:11:29 +0000 (09:11 +0900)]
proc: pagemap: Hold mmap_sem during page walk

In initial design, walk_page_range() was designed just for walking page
table and it didn't require mmap_sem.  Now, find_vma() etc..  are used
in walk_page_range() and we need mmap_sem around it.

This patch adds mmap_sem around walk_page_range().

Because /proc/<pid>/pagemap's callback routine use put_user(), we have
to get rid of it to do sane fix.

Changelog: 2010/Apr/2
 - fixed start_vaddr and end overflow
Changelog: 2010/Apr/1
 - fixed start_vaddr calculation
 - removed unnecessary cast.
 - removed unnecessary change in smaps.
 - use GFP_TEMPORARY instead of GFP_KERNEL

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Brian Swetland <swetland@google.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: San Mehat <san@google.com>
[ Fixed kmalloc failure return code as per Matt ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 years agoRevert "proc: pagemap: Hold mmap_sem during page walk"
San Mehat [Mon, 19 Apr 2010 14:45:33 +0000 (07:45 -0700)]
Revert "proc: pagemap: Hold mmap_sem during page walk"

This reverts commit 0bf551684025a5f0f3c9aac694cd5cf73706cb70.

Reverting for proper up-stream fix

Signed-off-by: San Mehat <san@google.com>
14 years agoStaging: android: timed_gpio: Properly discard invalid timeout values.
Mike Lockwood [Sat, 17 Apr 2010 16:01:35 +0000 (12:01 -0400)]
Staging: android: timed_gpio: Properly discard invalid timeout values.

The timed output device never previously checked the return value of sscanf,
resulting in an uninitialized int being passed to enable() if input value
was invalid.

Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoUSB: gadget: f_mass_storage: Defer handling interface changes until it is safe.
Mike Lockwood [Thu, 15 Apr 2010 19:04:07 +0000 (15:04 -0400)]
USB: gadget: f_mass_storage: Defer handling interface changes until it is safe.

Pulling in some code from file_storage.c, we now handle interface changes
in do_set_config(), which is now not called until any pending requests have
been successfully completed or cancelled.

This fixes a race condition that resulted in usb_ep_free_request() being called
while the request is still busy.

Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agofs: partitions: Fix warnings in fs/partitions/check.c
Colin Cross [Wed, 7 Apr 2010 19:08:27 +0000 (12:08 -0700)]
fs: partitions: Fix warnings in fs/partitions/check.c

Change-Id: I4398ace0c55d4833b1fcbb7a4e71ab8f0b1b044a
Signed-off-by: Colin Cross <ccross@android.com>
14 years agoBluetooth: Hack: Don't dereference null pointer.
Nick Pelly [Thu, 8 Apr 2010 23:23:32 +0000 (16:23 -0700)]
Bluetooth: Hack: Don't dereference null pointer.

This avoids the S305 panic during incoming connection.

S305 sends PSM 25 L2CAP connection request before the L2CAP info response.
When we receive that info response we crash on null pointer here.

Bug: 2127637
Change-Id: Ib637516251f46fa9a9c87ac015dc2f27df5a27fd
Signed-off-by: Nick Pelly <npelly@google.com>