Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715096 > unrolled thread

[PATCH 3.16 030/134] [media] s5p-mfc: Fix unbalanced call to clock management

Started byBen Hutchings <ben@decadent.org.uk>
First post2017-08-18 16:00 +0200
Last post2017-08-18 16:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.16 030/134] [media] s5p-mfc: Fix unbalanced call to  clock management Ben Hutchings <ben@decadent.org.uk> - 2017-08-18 16:00 +0200

#1715096 — [PATCH 3.16 030/134] [media] s5p-mfc: Fix unbalanced call to clock management

FromBen Hutchings <ben@decadent.org.uk>
Date2017-08-18 16:00 +0200
Subject[PATCH 3.16 030/134] [media] s5p-mfc: Fix unbalanced call to clock management
Message-ID<ufPYE-4vA-81@gated-at.bofh.it>
3.16.47-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Marek Szyprowski <m.szyprowski@samsung.com>

commit a5cb00eb4223458250b55daf03ac7ea5f424d601 upstream.

Clock should be turned off after calling s5p_mfc_init_hw() from the
watchdog worker, like it is already done in the s5p_mfc_open() which also
calls this function.

Fixes: af93574678108 ("[media] MFC: Add MFC 5.1 V4L2 driver")

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 +
 1 file changed, 1 insertion(+)

--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -169,6 +169,7 @@ static void s5p_mfc_watchdog_worker(stru
 		}
 		s5p_mfc_clock_on();
 		ret = s5p_mfc_init_hw(dev);
+		s5p_mfc_clock_off();
 		if (ret)
 			mfc_err("Failed to reinit FW\n");
 	}

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web