From: Tony Breeds Date: Thu, 20 Feb 2014 10:13:52 +0000 (+1100) Subject: powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly X-Git-Tag: v3.14-rc5~16^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41dd03a94c7d408d2ef32530545097f7d1befe5c;p=pandora-kernel.git powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly Currently we're storing a host endian RTAS token in rtas_stop_self_args.token. We then pass that directly to rtas. This is fine on big endian however on little endian the token is not what we expect. This will typically result in hitting: panic("Alas, I survived.\n"); To fix this we always use the stop-self token in host order and always convert it to be32 before passing this to rtas. Signed-off-by: Tony Breeds Cc: stable@vger.kernel.org Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed