Skip to content

Commit

Permalink
[media] s5p-jpeg: exynos3250: fix erroneous reset procedure
Browse files Browse the repository at this point in the history
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: Jacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Jacek Anaszewski authored and Mauro Carvalho Chehab committed Mar 4, 2015
1 parent 3987c98 commit f7cbd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit f7cbd68

Please sign in to comment.