Skip to content

ast: Fix I2C corner cases wrt init/cleanup

Thomas Zimmermann dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* init edid to NULL to avoid uninitialized read
* drop test for drm_connector_init() for now
* move I2C code into separate source file

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/ast: Handle failed I2C initialization gracefullydrivers/gpu/drm/ast/ast_mode.c+10 -70 replies
2/3drm/ast: Convert I2C code to managed cleanupdrivers/gpu/drm/ast/ast_mode.c+16 -200 replies
3/3drm/ast: Move I2C code into separate source filedrivers/gpu/drm/ast/Makefile drivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_i2c.c +1 more+156 -1291 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] ast: Fix I2C corner cases wrt init/cleanup

The VGA connector in ast is supposed to work without I2C. Currently, this isn't implemented correctly in several places. Fix this. Also add managed cleanup of the I2C code and move it into separate source file.

Tested on AST2100 hardware.

v2:
* init edid to NULL to avoid uninitialized read
* drop test for drm_connector_init() for now
* move I2C code into separate source file

Thomas Zimmermann (3):
drm/ast: Handle failed I2C initialization gracefully drm/ast: Convert I2C code to managed cleanup drm/ast: Move I2C code into separate source file

 drivers/gpu/drm/ast/Makefile   |   2 +-
 drivers/gpu/drm/ast/ast_drv.h  |   3 +
 drivers/gpu/drm/ast/ast_i2c.c  | 152 +++++++++++++++++++++++++++++++++
 drivers/gpu/drm/ast/ast_mode.c | 151 +++-----------------------------
 4 files changed, 167 insertions(+), 141 deletions(-)
 create mode 100644 drivers/gpu/drm/ast/ast_i2c.c

base-commit: 909bf926eaf382123d9b215871143d9e3cf44aa3 --
2.34.1