From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/media/i2c/maxim4c/maxim4c_link.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/media/i2c/maxim4c/maxim4c_link.c b/kernel/drivers/media/i2c/maxim4c/maxim4c_link.c
index 688dfe8..26f986e 100644
--- a/kernel/drivers/media/i2c/maxim4c/maxim4c_link.c
+++ b/kernel/drivers/media/i2c/maxim4c/maxim4c_link.c
@@ -463,7 +463,17 @@
0x0006, MAXIM4C_I2C_REG_ADDR_16BITS,
link_enable, link_enable);
- ret |= maxim4c_link_wait_linklock(maxim4c, link_mask);
+ if (ret) {
+ dev_err(dev, "%s: link oneshot reset or enable error, link mask = 0x%x\n",
+ __func__, link_mask);
+ return ret;
+ }
+
+ maxim4c_link_wait_linklock(maxim4c, link_mask);
+ dev_info(dev, "link_mask = 0x%02x, link_lock = 0x%02x\n",
+ link_mask, maxim4c->link_lock_state);
+
+ return 0;
}
return ret;
--
Gitblit v1.6.2