[PATCH] ARM: imx: replace imx6q_restart() with mxc_restart()
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Oct 30 13:54:26 EDT 2013
On Tue, Oct 29, 2013 at 08:13:02PM -0700, jiada wrote:
> Hi
>
> On 10/28/2013 12:45 AM, Shawn Guo wrote:
>> 1. Apply the following change
>>
>> https://git.linaro.org/gitweb?p=people/shawnguo/linux-2.6.git;a=commitdiff;h=6050d181a4fd4abb745506a6e565d55f1f9df964
>>
>> 2. Remove imx_src_prepare_restart() from imx6q_restart().
>>
>> I will send a patch against the latest kernel.
>>
> Thanks Shawn, I have verified with these two changes,
> system reboot by "echo b > /proc/sysrq-trigger" works
> for me.
The test you really want to do is a reboot via serial console: <break> b.
That's definitely the one which will get you if your restart handler has
anything in it which sleeps. This will definitely call the restart
handler from IRQ context.
More information about the linux-arm-kernel
mailing list