Blackfin Serial Driver: fix error while transferring large files
authorSonic Zhang <sonic.zhang@analog.com>
Thu, 11 Jun 2009 12:38:16 +0000 (13:38 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:51:04 +0000 (08:51 -0700)
commit8516c568f25666a012ec4c859e640a76fc9b6ec0
treef2d72c684c5f8c726f752643bdd88268df836b5b
parent4328e3e5ef1ae3427a4f6863aa65916a68ec2dd9
Blackfin Serial Driver: fix error while transferring large files

Ignore receiving data if new position is in the same line of current
buffer tail and is small.  This should decrease overruns.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/bfin_5xx.c