diff options
author | Vivek Kasireddy <[email protected]> | 2020-01-10 10:11:23 -0800 |
---|---|---|
committer | Matt Roper <[email protected]> | 2020-01-10 10:35:53 -0800 |
commit | 8cbf89db294166cc13d90a89422605e0c9f8bbc2 (patch) | |
tree | 071a9a221108baf4c1e919bae7eab66444d845df /tools/perf/util/trace-event-scripting.c | |
parent | 1a8585bd774c4058038ad827c9e93847ff509cf3 (diff) |
drm/i915/dsi: Parse the I2C element from the VBT MIPI sequence block (v3)
Parsing the i2c element is mainly done to transfer the payload from the
MIPI sequence block to the relevant slave device. In some cases, the
commands that are part of the payload can be used to turn on the backlight.
This patch is actually a refactored version of this old patch:
https://lists.freedesktop.org/archives/intel-gfx/2014-December/056897.html
In addition to the refactoring, the original patch is augmented by
looking up the i2c bus from ACPI NS instead of relying on the bus number
provided in the VBT.
This patch was tested on Aava Mobile's Inari 10 tablet. It enabled
turning on the backlight by transferring the payload to the device.
v2:
- Add DRM_DEV_ERROR for invalid adapter and failed transfer and also
drop the DRM_DEBUG that existed originally. (Hans)
- Add two gotos instead of one to clean things up properly.
v3:
- Identify the device on which this patch was tested in the commit
message (Ville)
Cc: Hans de Goede <[email protected]>
Cc: Nabendu Maiti <[email protected]>
Cc: Matt Roper <[email protected]>
Cc: Bob Paauwe <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Vivek Kasireddy <[email protected]>
Signed-off-by: Matt Roper <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions