Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e527d00 authored by Olof Johansson's avatar Olof Johansson
Browse files

Merge tag 'msm-fix-3.10' of...

Merge tag 'msm-fix-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm into next/fixes-non-critical

From David Brown:
Some minor fixes for MSM for 3.10

  - Fix a timer problem that causes missed ticks and hangs.

  - Fix a problem with the decompressor UART dropping characters.

* tag 'msm-fix-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm

:
  ARM: msm: Fix uncompess.h tx underrun check
  ARM: msm: Stop counting before reprogramming clockevent

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parents af073c34 73a8c28f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ static void putc(int c)
	 * Wait for TX_READY to be set; but skip it if we have a
	 * TX underrun.
	 */
	if (UART_DM_SR & 0x08)
	if (!(UART_DM_SR & 0x08))
		while (!(UART_DM_ISR & 0x80))
			cpu_relax();

+4 −1
Original line number Diff line number Diff line
@@ -62,7 +62,10 @@ static int msm_timer_set_next_event(unsigned long cycles,
{
	u32 ctrl = readl_relaxed(event_base + TIMER_ENABLE);

	writel_relaxed(0, event_base + TIMER_CLEAR);
	ctrl &= ~TIMER_ENABLE_EN;
	writel_relaxed(ctrl, event_base + TIMER_ENABLE);

	writel_relaxed(ctrl, event_base + TIMER_CLEAR);
	writel_relaxed(cycles, event_base + TIMER_MATCH_VAL);
	writel_relaxed(ctrl | TIMER_ENABLE_EN, event_base + TIMER_ENABLE);
	return 0;