misc: tizen-inform-reboot: Add support for download mode
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 5 Apr 2018 01:57:43 +0000 (10:57 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 2 Apr 2020 04:09:01 +0000 (13:09 +0900)
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 <dwoo08.lee@samsung.com>
drivers/misc/tizen-inform-reboot.c

index 08a0552..f724e7e 100644 (file)
@@ -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