From 5a9eda366be5e594bf87c5c7dfe8c99eda0a2bc5 Mon Sep 17 00:00:00 2001 From: Dongwoo Lee Date: Thu, 5 Apr 2018 10:57:43 +0900 Subject: [PATCH] misc: tizen-inform-reboot: Add support for download mode To pass download mode information to bootloader, this patch adds the new parameter 'download' to reboot command. Change-Id: I4673a0badf42429987f91edd960b871410bfb794 Signed-off-by: Dongwoo Lee --- drivers/misc/tizen-inform-reboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/tizen-inform-reboot.c b/drivers/misc/tizen-inform-reboot.c index 08a0552..f724e7e 100644 --- a/drivers/misc/tizen-inform-reboot.c +++ b/drivers/misc/tizen-inform-reboot.c @@ -40,6 +40,8 @@ static int inform_reboot_notifier(struct notifier_block *nb, cmd = "upgr"; else if (!strncmp(cmd, "recovery", 8)) cmd = "rcvr"; + else if (!strncmp(cmd, "download", 8)) + cmd = "dwnl"; else cmd = "ndef"; } else -- 2.7.4