Skip to content

Commit a6028af

Browse files
committed
drm/i915/dsi: Add some debug logging to mipi_exec_i2c (v2)
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 <[email protected]> Acked-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f6f4a08 commit a6028af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/i915/display/intel_dsi_vbt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,9 @@ static const u8 *mipi_exec_i2c(struct intel_dsi *intel_dsi, const u8 *data)
565565
u8 payload_size = *(data + 6);
566566
u8 *payload_data;
567567

568+
drm_dbg_kms(&i915->drm, "bus %d client-addr 0x%02x reg 0x%02x data %*ph\n",
569+
vbt_i2c_bus_num, slave_addr, reg_offset, payload_size, data + 7);
570+
568571
if (intel_dsi->i2c_bus_num < 0) {
569572
intel_dsi->i2c_bus_num = vbt_i2c_bus_num;
570573
i2c_acpi_find_adapter(intel_dsi, slave_addr);

0 commit comments

Comments
 (0)