407-v5.17-mtd-parsers-qcom-Don-t-print-error-message-on-EPROBE.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. From 26bccc9671ba5e01f7153addbe94e7dc3f677375 Mon Sep 17 00:00:00 2001
  2. From: Bryan O'Donoghue <[email protected]>
  3. Date: Mon, 3 Jan 2022 03:03:16 +0000
  4. Subject: [PATCH 13/14] mtd: parsers: qcom: Don't print error message on
  5. -EPROBE_DEFER
  6. Its possible for the main smem driver to not be loaded by the time we come
  7. along to parse the smem partition description but, this is a perfectly
  8. normal thing.
  9. No need to print out an error message in this case.
  10. Signed-off-by: Bryan O'Donoghue <[email protected]>
  11. Reviewed-by: Manivannan Sadhasivam <[email protected]>
  12. Signed-off-by: Miquel Raynal <[email protected]>
  13. Link: https://lore.kernel.org/linux-mtd/[email protected]
  14. ---
  15. drivers/mtd/parsers/qcomsmempart.c | 3 ++-
  16. 1 file changed, 2 insertions(+), 1 deletion(-)
  17. --- a/drivers/mtd/parsers/qcomsmempart.c
  18. +++ b/drivers/mtd/parsers/qcomsmempart.c
  19. @@ -75,7 +75,8 @@ static int parse_qcomsmem_part(struct mt
  20. pr_debug("Parsing partition table info from SMEM\n");
  21. ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len);
  22. if (IS_ERR(ptable)) {
  23. - pr_err("Error reading partition table header\n");
  24. + if (PTR_ERR(ptable) != -EPROBE_DEFER)
  25. + pr_err("Error reading partition table header\n");
  26. return PTR_ERR(ptable);
  27. }