You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
Diff
46 lines
1.2 KiB
Diff
From 747c6d5984cccf7c3e48c2cdb4dd1d626889096e Mon Sep 17 00:00:00 2001
|
|
From: vauban353 <vauban353@gmail.com>
|
|
Date: Sat, 12 Aug 2023 18:14:01 +0100
|
|
Subject: [PATCH 6/8] BeagleV-Fire: Add printk to IM219 driver for board tests.
|
|
|
|
---
|
|
drivers/media/i2c/imx219.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/drivers/media/i2c/imx219.c b/drivers/media/i2c/imx219.c
|
|
index 7a14688f8..effb399b1 100644
|
|
--- a/drivers/media/i2c/imx219.c
|
|
+++ b/drivers/media/i2c/imx219.c
|
|
@@ -1012,6 +1012,9 @@ static int imx219_identify_module(struct imx219 *imx219)
|
|
int ret;
|
|
u64 val;
|
|
|
|
+ printk(KERN_INFO "imx219_identify_module()\n");
|
|
+
|
|
+
|
|
ret = cci_read(imx219->regmap, IMX219_REG_CHIP_ID, &val, NULL);
|
|
if (ret) {
|
|
dev_err(&client->dev, "failed to read chip id %x\n",
|
|
@@ -1025,6 +1028,9 @@ static int imx219_identify_module(struct imx219 *imx219)
|
|
return -EIO;
|
|
}
|
|
|
|
+ printk(KERN_INFO "imx219_identify_module() - Success\n");
|
|
+
|
|
+
|
|
return 0;
|
|
}
|
|
|
|
@@ -1234,6 +1240,8 @@ static int imx219_probe(struct i2c_client *client)
|
|
struct imx219 *imx219;
|
|
int ret;
|
|
|
|
+ printk(KERN_INFO "imx219_probe()\n");
|
|
+
|
|
imx219 = devm_kzalloc(&client->dev, sizeof(*imx219), GFP_KERNEL);
|
|
if (!imx219)
|
|
return -ENOMEM;
|
|
--
|
|
2.39.2
|
|
|