drm: exynos: mixer: fix using usleep() in atomic context
authorTomasz Stanislawski <t.stanislaws@samsung.com>
Wed, 16 Apr 2014 15:12:56 +0000 (17:12 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:42 +0000 (11:59 +0900)
commit59d06503bfb866d67cc8b8e2f30f1f76ff01257b
tree503430d4dac9e8691d236bbb836bd7d99d436ab8
parent6ce1dc9b633b4852fc786db124c853b8346cdb35
drm: exynos: mixer: fix using usleep() in atomic context

This patch fixes calling usleep_range() after taking reg_slock
using spin_lock_irqsave(). The mdelay() is used instead.
Waiting in atomic context is not the best idea in general.
Hopefully, waiting occurs only when Video Processor fails
to reset correctly.

Change-Id: Ib2bf151cb4dcb45ab42e9d8f85bf27e1fab21757
Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c