mirror of
https://github.com/armbian/build.git
synced 2025-08-14 07:06:58 +02:00
* Recycling of megous v5.16.4 patches The patches were sorted as far as possible. Some patches are renamed according to their place of application. The length of the patch name has been changed to improve readability using the `git format-patch --filename-max-length=75` method. The folder containing the patches will have the name `patches.name` and the corresponding file `series.name` for the convenience of processing and moving them upstream. But the control file remains `series.conf`. Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * Add a series of armbian patches for 5.16 Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * Remove patches whose fixes are already in the kernel Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
From 03c35e5c54b382f87f59c40d844259baedc13e3d Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megous@megous.com>
|
|
Date: Thu, 17 Sep 2020 00:01:12 +0200
|
|
Subject: [PATCH 115/446] misc: modem-power: Check for modem firmware version
|
|
and warn if it's outdated
|
|
|
|
Signed-off-by: Ondrej Jirman <megous@megous.com>
|
|
---
|
|
drivers/misc/modem-power.c | 13 ++++++++++++-
|
|
1 file changed, 12 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/misc/modem-power.c b/drivers/misc/modem-power.c
|
|
index 62c986b0a..1c758517c 100644
|
|
--- a/drivers/misc/modem-power.c
|
|
+++ b/drivers/misc/modem-power.c
|
|
@@ -287,6 +287,8 @@ struct mpwr_eg25_qcfg {
|
|
bool (*is_ok)(const char* val);
|
|
};
|
|
|
|
+#define EG25G_LATEST_KNOWN_FIRMWARE "EG25GGBR07A08M2G_01.002.07"
|
|
+
|
|
static const struct mpwr_eg25_qcfg mpwr_eg25_qcfgs[] = {
|
|
//{ "risignaltype", "\"respective\"", },
|
|
{ "risignaltype", "\"physical\"", },
|
|
@@ -488,10 +490,19 @@ static int mpwr_eg25_power_up(struct mpwr_dev* mpwr)
|
|
/* print firmware version */
|
|
ret = mpwr_serdev_at_cmd_with_retry(mpwr, "AT+QVERSION;+QSUBSYSVER", 1000, 15);
|
|
if (ret == 0 && mpwr->msg_len > 0) {
|
|
+ bool outdated = false;
|
|
+
|
|
dev_info(mpwr->dev, "===================================================\n");
|
|
- for (off = 0; off < mpwr->msg_len; off += strlen(mpwr->msg + off) + 1)
|
|
+ for (off = 0; off < mpwr->msg_len; off += strlen(mpwr->msg + off) + 1) {
|
|
+ if (strstr(mpwr->msg + off, "Project Rev") && !strstr(mpwr->msg + off, EG25G_LATEST_KNOWN_FIRMWARE))
|
|
+ outdated = true;
|
|
+
|
|
dev_info(mpwr->dev, "%s\n", mpwr->msg + off);
|
|
+ }
|
|
dev_info(mpwr->dev, "===================================================\n");
|
|
+
|
|
+ if (outdated)
|
|
+ dev_warn(mpwr->dev, "Your modem has an outdated firmware. Latest know version is %s. Consider updating.\n", EG25G_LATEST_KNOWN_FIRMWARE);
|
|
}
|
|
|
|
/* print ADB key to dmesg */
|
|
--
|
|
2.31.1
|
|
|