提交 f7cbd688 编写于 作者: J Jacek Anaszewski 提交者: Mauro Carvalho Chehab

[media] s5p-jpeg: exynos3250: fix erroneous reset procedure

The first while loop in the function exynos3250_jpeg_reset had no chance
to be executed because the reg variable was initialized to 0.
Initialize reg variable to 1 to fix the issue.
Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 3987c984
......@@ -20,7 +20,7 @@
void exynos3250_jpeg_reset(void __iomem *regs)
{
u32 reg = 0;
u32 reg = 1;
int count = 1000;
writel(1, regs + EXYNOS3250_SW_RESET);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册