Re: GPIO triggers kernel reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 25/01/2014 08:02, Heiko Schocher a écrit :
Hello all,

is it possible to reboot current mainline kernel triggered from a
GPIO in kernel space?

If not, how can be done this, so that it has a chance to go into
mainline?

Your GPIO could (should) be bound to a gpio-keys driver which will deliver key presses event; which you can ultimately bind to the action of triggering a system reboot.

Granted, this makes you cross a lot of layers, and requires user-space to implemnt the reboot policy, but what you are asking for is both a mechanism and policy mix, which is usually not accepted.

You are probably working with HW which won't change, but wiring a reset button to a system reset output is usually much simpler ;)


Thanks for any suggestions

bye,
Heiko

--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Gstreamer Embedded]     [Linux MMC Devel]     [U-Boot V2]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux ARM Kernel]     [Linux OMAP]     [Linux SCSI]

  Powered by Linux