[PATCH v2 0/2] drm/panel-edp: take i2c adapter module reference

Johan Hovold posted 2 patches 1 week ago
drivers/gpu/drm/panel/panel-edp.c | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
[PATCH v2 0/2] drm/panel-edp: take i2c adapter module reference
Posted by Johan Hovold 1 week ago
The i2c subsystem currently blocks during adapter deregistration
whenever there are consumers holding a reference.
        
Switch to using of_get_i2c_adapter_by_node() which also takes a
reference to the adapter module so that an attempt to unload the module
while in use fails gracefully instead of blocking uninterruptibly.

Johan


Changes in v2:
 - fix a pre-existing leak in a corner case flagged by Sashiko that
   Doug thought was worth fixing
 - rebase module reference patch on top of that fix


Johan Hovold (2):
  drm/panel-edp: fix i2c adapter leak on probe failure
  drm/panel-edp: take i2c adapter module reference

 drivers/gpu/drm/panel/panel-edp.c | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

-- 
2.54.0