diff options
author | Sebastian Ene <sebastianene@google.com> | 2023-12-05 13:40:02 +0000 |
---|---|---|
committer | Juan Yescas <jyescas@google.com> | 2023-12-15 16:49:38 -0800 |
commit | ab40272b9af37f7b2ef6215cb2199f896d2d0058 (patch) | |
tree | b35a3c0897de358c54ec8d220745657dc9b4b697 | |
parent | 787d3566fd737538ca2d8865317284be16c95fe9 (diff) | |
download | gs-ab40272b9af37f7b2ef6215cb2199f896d2d0058.tar.gz |
google: gsa-log: Relax the log buffer size check
On the probing path check if the size provided from the device tree is a
multiple of the expected log buffer size to enable booting with 16Kb
aligned DT nodes.
Bug: 308663811
Bug: 307805059
Change-Id: I4329a3208cf3522211cd147b3c9382b13ddea2f5
Signed-off-by: Sebastian Ene <sebastianene@google.com>
Signed-off-by: Juan Yescas <jyescas@google.com>
-rw-r--r-- | drivers/soc/google/gsa/gsa_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/google/gsa/gsa_log.c b/drivers/soc/google/gsa/gsa_log.c index f83295625..f3b948bac 100644 --- a/drivers/soc/google/gsa/gsa_log.c +++ b/drivers/soc/google/gsa/gsa_log.c @@ -62,8 +62,8 @@ struct gsa_log *gsa_log_init(struct platform_device *pdev) return ERR_PTR(-ENODEV); } - if (rmem->size != (GSA_LOG_SIZE * 2)) { - dev_err(dev, "log size != expected size %d", (GSA_LOG_SIZE * 2)); + if (rmem->size % (GSA_LOG_SIZE * 2)) { + dev_err(dev, "log size not multiple of expected size %d", (GSA_LOG_SIZE * 2)); return ERR_PTR(-EINVAL); } |