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

Thomas Zimmermann tzimmermann at suse.de
Mon Dec 6 09:11:22 UTC 2021


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



More information about the dri-devel mailing list