From: Pawel Osciak Date: Tue, 21 Oct 2014 11:07:01 +0000 (-0300) Subject: [media] s5p-mfc: Don't crash the kernel if the watchdog kicks in X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~340 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a7bc6b0c456bdc642269659fb13f29a8c13815b;p=pandora-kernel.git [media] s5p-mfc: Don't crash the kernel if the watchdog kicks in If the software watchdog kicks in, the watchdog worker is not synchronized with hardware interrupts and does not block other instances. It's possible for it to clear the hw_lock, making other instances trigger a BUG() on hw_lock checks. Since it's not fatal to clear the hw_lock to zero twice, just WARN in those cases for now. We should not explode, as firmware will return errors as needed for other instances after it's reloaded, or they will time out. A clean fix should involve killing other instances when watchdog kicks in, but requires a major redesign of locking in the driver. Signed-off-by: Pawel Osciak Signed-off-by: Kiran AVND Signed-off-by: Arun Kumar K Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed