1. 13 Jul, 2016 4 commits
    • Archit Taneja's avatar
      drm/bridge: adv7533: Initial support for ADV7533 · 2437e7cd
      Archit Taneja authored
      ADV7533 is a DSI to HDMI encoder chip. It is a derivative of ADV7511,
      with additional blocks to translate input DSI data to parallel RGB
      data. Besides the ADV7511 I2C register map, it has additional registers
      that require to be configured to activate the DSI Rx block.
      
      Create a new config that enables ADV7533 support. Use DT compatible
      strings to populate the ADV7533 type enum. Add minimal register
      configurations belonging to the DSI/CEC register map. Keep the ADV7533
      code in a separate file.
      
      Originally worked on by Lars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
      2437e7cd
    • Archit Taneja's avatar
      drm/bridge: adv7511: Fix mutex deadlock when interrupts are disabled · f0bfcc22
      Archit Taneja authored
      When the adv7511 i2c client doesn't have an interrupt line, we observe a
      deadlock on caused by trying to lock drm device's mode_config.mutex twice
      in the same context.
      
      Here is the sequence that causes it:
      
      ioctl DRM_IOCTL_MODE_GETCONNECTOR from userspace
        drm_mode_getconnector (acquires mode_config mutex)
          connector->fill_modes()
          drm_helper_probe_single_connector_modes
            connector_funcs->get_modes
      	adv7511_encoder_get_modes
      	  adv7511_get_edid_block
      	    adv7511_irq_process
      	      drm_helper_hpd_irq_event (acquires mode_config mutex again)
      
      In adv7511_irq_process, don't call drm_helper_hpd_irq_event when not
      called from the interrupt handler. It doesn't serve any purpose there
      anyway.
      Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
      f0bfcc22
    • Archit Taneja's avatar
      drm/i2c: adv7511: Move to bridge folder · c5827789
      Archit Taneja authored
      The driver has been converted to use drm_bridge instead of
      drm_i2c_slave_encoder. We can now move it to the bridge folder.
      
      Create a separate folder since we already have a couple of files and
      expect more when we support audio and ADV7533.
      
      Rename the driver to adv7511_drv.c. This will come in handy later
      when the driver module will need to be built from multiple object
      files.
      Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
      c5827789
    • Archit Taneja's avatar
      drm/i2c: adv7511: Convert to drm_bridge · e12c2f64
      Archit Taneja authored
      We don't want to use the old i2c slave encoder interface anymore.
      
      Remove that and make the i2c driver create a drm_bridge entity instead.
      Converting to bridges helps because the kms drivers don't need to
      exract encoder slave ops from this driver and use it within their
      own encoder/connector ops.
      
      The driver now creates its own connector when a kms driver attaches
      itself to the bridge. Therefore, kms drivers don't need to create
      their own connectors anymore.
      
      The old encoder slave ops are now used by the new bridge and connector
      entities.
      
      The of_node member in drm_bridge is accessible only when CONFIG_OF is
      enabled. The driver anyway only works only when OF is available. Make
      the driver depend on OF in its Kconfig.
      Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
      e12c2f64
  2. 30 Jun, 2016 1 commit
  3. 27 Jun, 2016 1 commit
  4. 24 Jun, 2016 20 commits
  5. 22 Jun, 2016 5 commits
  6. 21 Jun, 2016 9 commits