diff mbox series

[2/2] soc: samsung: exynos-chipid: be more informative when soc is unknown

Message ID 20211031165645.1182368-2-henrik@grimler.se (mailing list archive)
State New, archived
Headers show
Series [1/2] soc: samsung: exynos-chipid: print entire PRO_ID reg when probing | expand

Commit Message

Henrik Grimler Oct. 31, 2021, 4:56 p.m. UTC
Print the obtained product id that is incompatible.

Signed-off-by: Henrik Grimler <henrik@grimler.se>
---
 drivers/soc/samsung/exynos-chipid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Krzysztof Kozlowski Oct. 31, 2021, 8:35 p.m. UTC | #1
On 31/10/2021 17:56, Henrik Grimler wrote:
> Print the obtained product id that is incompatible.
> 

Why? Please mention it in the commit msg.


Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c
index 7fe44f71920d..885d578fd005 100644
--- a/drivers/soc/samsung/exynos-chipid.c
+++ b/drivers/soc/samsung/exynos-chipid.c
@@ -132,7 +132,7 @@  static int exynos_chipid_probe(struct platform_device *pdev)
 						"%x", soc_info.revision);
 	soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id);
 	if (!soc_dev_attr->soc_id) {
-		pr_err("Unknown SoC\n");
+		pr_err("Exynos: Unknown SoC: 0x%x\n", soc_info.product_id);
 		return -ENODEV;
 	}