mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-29 00:00:25 +02:00
When the whole phone is being powered off, a poweroff request needs to be sent to the external modem so that it can shutdown gracefully. This request needs to be triggered from userspace before kernel drivers start unloading so that other drivers needed to send the request are still available. The shutdown ioctl is provided for this purpose. The request is sent over system monitor. Since the mdm driver is common to platforms that support sysmon as well as those that don't, a platform specific flag named send_shdn is added for runtime detection. Crs-Fixed: 401598 Change-Id: I53231579ae4f7e794725165439183c29ca977d62 Signed-off-by: Joel King <joelking@codeaurora.org>