projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f4a08
)
drm/i915/dsi: Add some debug logging to mipi_exec_i2c (v2)
author
Hans de Goede
<hdegoede@redhat.com>
Wed, 20 Sep 2023 19:56:13 +0000
(21:56 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Thu, 12 Oct 2023 10:41:54 +0000
(12:41 +0200)
Add some debug logging to mipi_exec_i2c, to make debugging various
issues seen with it easier.
Changes in v2:
- Drop unnecessary __func__ drm_dbg_kms() argument
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230920195613.304091-5-hdegoede@redhat.com
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
index e56ec3f2d84aecc3a1a6fd76bb0c51bdd712de30..24b2cbcfc1effb272acbe55dae56499f54c18278 100644
(file)
--- a/
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
+++ b/
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
@@
-565,6
+565,9
@@
static const u8 *mipi_exec_i2c(struct intel_dsi *intel_dsi, const u8 *data)
u8 payload_size = *(data + 6);
u8 *payload_data;
+ drm_dbg_kms(&i915->drm, "bus %d client-addr 0x%02x reg 0x%02x data %*ph\n",
+ vbt_i2c_bus_num, slave_addr, reg_offset, payload_size, data + 7);
+
if (intel_dsi->i2c_bus_num < 0) {
intel_dsi->i2c_bus_num = vbt_i2c_bus_num;
i2c_acpi_find_adapter(intel_dsi, slave_addr);