I want to do GPIO Shutdown in MX51. I did GPIO Interrupt driver and trying to send poweroff command to userspace using
call_usermodehelper() function. But I am facing issues in that, Unable to run ..... Tell the exact procedure to do shutdown using call_usermode.
I am trying one more method. Once if i press the button, inside interrupt function, i want to call power_off function from kernel space instead of using call_usemodehelper() from userspace. So anyone suggest me how to do shutdown.