1. 23 Nov, 2023 1 commit
    • Arnd Bergmann's avatar
      drm/rockchip: rk3066_hdmi: include drm/drm_atomic.h · f4814c20
      Arnd Bergmann authored
      Without this header, the newly added code fails to build:
      
      drivers/gpu/drm/rockchip/rk3066_hdmi.c: In function 'rk3066_hdmi_encoder_enable':
      drivers/gpu/drm/rockchip/rk3066_hdmi.c:397:22: error: implicit declaration of function 'drm_atomic_get_new_connector_state'; did you mean 'drm_atomic_helper_connector_reset'? [-Werror=implicit-function-declaration]
        397 |         conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector);
            |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            |                      drm_atomic_helper_connector_reset
      drivers/gpu/drm/rockchip/rk3066_hdmi.c:397:20: error: assignment to 'struct drm_connector_state *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
        397 |         conn_state = drm_atomic_get_new_connector_state(state, &hdmi->connector);
            |                    ^
      drivers/gpu/drm/rockchip/rk3066_hdmi.c:401:22: error: implicit declaration of function 'drm_atomic_get_new_crtc_state'; did you mean 'drm_atomic_helper_swap_state'? [-Werror=implicit-function-declaration]
        401 |         crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc);
            |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            |                      drm_atomic_helper_swap_state
      drivers/gpu/drm/rockchip/rk3066_hdmi.c:401:20: error: assignment to 'struct drm_crtc_state *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
        401 |         crtc_state = drm_atomic_get_new_crtc_state(state, conn_state->crtc);
            |                    ^
      
      Fixes: ae3436a5 ("drm/rockchip: rk3066_hdmi: Switch encoder hooks to atomic")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231122221838.3164349-1-arnd@kernel.org
      f4814c20
  2. 22 Nov, 2023 2 commits
  3. 21 Nov, 2023 17 commits
  4. 20 Nov, 2023 13 commits
  5. 17 Nov, 2023 1 commit
  6. 16 Nov, 2023 5 commits
  7. 15 Nov, 2023 1 commit
    • Thomas Zimmermann's avatar
      drm/client: Do not acquire module reference · 312292a4
      Thomas Zimmermann authored
      Do not acquire a reference on the module that provides a client's
      callback functions in drm_client_init(). The additional reference
      prevents the user from unloading the callback functions' module and
      thus creating dangling pointers.
      
      This is only necessary if there is no direct dependency between the
      caller of drm_client_init() and the provider of the callbacks in
      struct drm_client_funcs. If this case ever existed, it has been
      removed from the DRM code. Callers of drm_client_init() also provide
      the callback implementation. The lifetime of the clients is tied to
      the dependency chain's outer-most module, which is the hardware's
      DRM driver. Before client helpers could be unloaded, the driver module
      would have to be unloaded, which also unregisters all clients.
      
      Driver modules that set up DRM clients can now be unloaded.
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Acked-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231102131056.7256-2-tzimmermann@suse.de
      312292a4