system:linux 4.1.15
soc: imx6d
device_tree config:
&snvs_poweroff {
status = "okay";
};
1.tty shell cmd poweroff fail and tty shell can't input anything
root@HNS:~# poweroff
root@HNS:~# [ 80.477984] br-lan: port 1(eth0) entered disabled state
[ 80.498540] device eth0 left promiscuous mode
[ 80.502967] br-lan: port 1(eth0) entered disabled state
[ 80.526333] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 80.532227] device usb0 left promiscuous mode
[ 80.536739] br-lan: port 2(usb0) entered disabled state
[ 80.550448] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 85.057558] imx2-wdt 20bc000.wdog: Device shutdown: Expect reboot!
[ 85.063887] reboot: Power down
[ 86.067241] Unable to poweroff system
Hi huang
what bsp used in the case, one can try Demo Images from
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I track code and find the code from syscon-poweroff.c(driver/power/reset).
void syscon_poweroff(void)
{
/* Issue the poweroff */
regmap_write(map, offset, mask);
mdelay(1000);
pr_emerg("Unable to poweroff system\n");
}