From: Pawel Moll Date: Thu, 24 Apr 2014 16:19:30 +0000 (+0100) Subject: power/reset: vexpress: Fix restart/power off operation X-Git-Tag: omap-for-v3.16/pm-signed~52^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d08b80373cbb76c9b485b60d49fd3ba82abdf77c;p=pandora-kernel.git power/reset: vexpress: Fix restart/power off operation The restart/power off implementation in the vexpress driver used to obtain the config function when necessary. This was wrong in two respects: 1. It required memory allocation with disabled interrupts (it worked, but lockdep - when enabled - reported warnings). 2. Used jiffies-based timeout, while jiffies are not running at this stage of system shutdown (therefore a config transaction error - if happened - would have never be reported). Fixed by pre-allocating the config function per device and using mdelay for timeout. Signed-off-by: Pawel Moll --- Reading git-diff-tree failed