[PATCH] net: ethernet: davinci_cpdma: decrease the desc count when cleaning up the remaining packets

2012-10-01 Thread Tao Hou
chan->count is used by rx channel. If the desc count is not updated by the clean up loop in cpdma_chan_stop, the value written to the rxfree register in cpdma_chan_start will be incorrect. Signed-off-by: Tao Hou --- drivers/net/ethernet/ti/davinci_cpdma.c |1 + 1 file changed, 1 insert

[PATCH] ARM: fix the magic numbers used for checking the existence of saved caller registers

2013-03-09 Thread Tao Hou
When any backtraced function has saved the caller register r10 (e.g., show_mem), without the fix in c_backtrace all saved caller registers of the function will not been dumped. Signed-off-by: Tao Hou Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/lib

[PATCH] mtd: nand: fix the partial page write condition

2013-03-10 Thread Tao Hou
When writelen is mtd->writesize - 1, it is still a partial page write Signed-off-by: Tao Hou Cc: Thomas Gleixner Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/mtd/nand/nand_base.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv