stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] serial: samsung: fix DMA for small FIFO sizes
@ 2015-07-31  8:58 Robert Baldyga
  2015-07-31  8:58 ` [PATCH v2 1/2] serial: samsung: fix DMA mode enter condition " Robert Baldyga
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert Baldyga @ 2015-07-31  8:58 UTC (permalink / raw)
  To: gregkh
  Cc: akpm, jslaby, linux-serial, linux-kernel, m.szyprowski,
	k.kozlowski, kmpark, stable, Robert Baldyga

Hello,

This patch set fixes bug causing serial hang in DMA mode for FIFO sizes
smaller than cache alignment. The first patch fixes DMA mode entering
condition to avoid starting with buffer smaller than cache line size.
Second patch fixes the serial hang bug, which was caused by unproper
buffer aligning algorithm which assumed that there is always enough
free space in FIFO for excessive bytes of buffer that is being alligned.

Best regards,
Robert Baldyga

Changelog:

v2:
- Add CC to stable
- Add Reported-by: Krzysztof Kozlowski
- Change title of the first patch to more relevant

v1: http://permalink.gmane.org/gmane.linux.kernel/2008281

Marek Szyprowski (1):
  serial: samsung: fix DMA mode enter condition for small FIFO sizes

Robert Baldyga (1):
  serial: samsung: fix DMA for FIFO smaller than cache line size

 drivers/tty/serial/samsung.c | 47 +++++++++++++++++++++++++++++---------------
 drivers/tty/serial/samsung.h |  1 +
 2 files changed, 32 insertions(+), 16 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-03  0:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31  8:58 [PATCH v2 0/2] serial: samsung: fix DMA for small FIFO sizes Robert Baldyga
2015-07-31  8:58 ` [PATCH v2 1/2] serial: samsung: fix DMA mode enter condition " Robert Baldyga
2015-07-31  8:58 ` [PATCH v2 2/2] serial: samsung: fix DMA for FIFO smaller than cache line size Robert Baldyga
2015-08-03  0:37 ` [PATCH v2 0/2] serial: samsung: fix DMA for small FIFO sizes Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).