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)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:43:00 +0000 (17:43 +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