1. 15 2月, 2017 2 次提交
  2. 07 2月, 2017 1 次提交
  3. 05 2月, 2017 9 次提交
  4. 03 2月, 2017 1 次提交
    • G
      drm: Rely on mode_config data for fb_helper initialization · e4563f6b
      Gabriel Krisman Bertazi 提交于
      Instead of receiving the num_crts as a parameter, we can read it
      directly from the mode_config structure.  I audited the drivers that
      invoke this helper and I believe all of them initialize the mode_config
      struct accordingly, prior to calling the fb_helper.
      
      I used the following coccinelle hack to make this transformation, except
      for the function headers and comment updates.  The first and second
      rules are split because I couldn't find a way to remove the unused
      temporary variables at the same time I removed the parameter.
      
      // <smpl>
      @r@
      expression A,B,D,E;
      identifier C;
      @@
      (
      - drm_fb_helper_init(A,B,C,D)
      + drm_fb_helper_init(A,B,D)
      |
      - drm_fbdev_cma_init_with_funcs(A,B,C,D,E)
      + drm_fbdev_cma_init_with_funcs(A,B,D,E)
      |
      - drm_fbdev_cma_init(A,B,C,D)
      + drm_fbdev_cma_init(A,B,D)
      )
      
      @@
      expression A,B,C,D,E;
      @@
      (
      - drm_fb_helper_init(A,B,C,D)
      + drm_fb_helper_init(A,B,D)
      |
      - drm_fbdev_cma_init_with_funcs(A,B,C,D,E)
      + drm_fbdev_cma_init_with_funcs(A,B,D,E)
      |
      - drm_fbdev_cma_init(A,B,C,D)
      + drm_fbdev_cma_init(A,B,D)
      )
      
      @@
      identifier r.C;
      type T;
      expression V;
      @@
      - T C;
      <...
      when != C
      - C = V;
      ...>
      // </smpl>
      
      Changes since v1:
       - Rebased on top of the tip of drm-misc-next.
       - Remove mention to sti since a proper fix got merged.
      Suggested-by: NDaniel Vetter <daniel.vetter@intel.com>
      Signed-off-by: NGabriel Krisman Bertazi <krisman@collabora.co.uk>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20170202162640.27261-1-krisman@collabora.co.uk
      e4563f6b
  5. 18 1月, 2017 2 次提交
  6. 30 12月, 2016 1 次提交
  7. 15 12月, 2016 4 次提交
  8. 01 12月, 2016 1 次提交
  9. 14 11月, 2016 1 次提交
  10. 02 11月, 2016 1 次提交
  11. 25 10月, 2016 1 次提交
  12. 19 10月, 2016 1 次提交
    • S
      gpu: Remove depends on RESET_CONTROLLER when not a provider · fb80016a
      Stephen Boyd 提交于
      These GPU drivers only depend on the RESET_CONTROLLER config
      option to fix build issues that existed when there weren't stub
      reset APIs for reset controller consumers. Given that these
      drivers aren't providing any reset controllers themselves, they
      don't actually depend on the API to build (just to function) so
      they don't need to depend on it. Remove the dependency to fix
      recursive build errors like the following:
      
      drivers/usb/Kconfig:39:error: recursive dependency detected!
      drivers/usb/Kconfig:39: symbol USB is selected by MOUSE_APPLETOUCH
      drivers/input/mouse/Kconfig:187:        symbol MOUSE_APPLETOUCH depends on INPUT
      drivers/input/Kconfig:8:        symbol INPUT is selected by VT
      drivers/tty/Kconfig:12: symbol VT is selected by FB_STI
      drivers/video/fbdev/Kconfig:674:        symbol FB_STI depends on FB
      drivers/video/fbdev/Kconfig:5:  symbol FB is selected by DRM_KMS_FB_HELPER
      drivers/gpu/drm/Kconfig:42:     symbol DRM_KMS_FB_HELPER is selected by DRM_KMS_CMA_HELPER
      drivers/gpu/drm/Kconfig:98:     symbol DRM_KMS_CMA_HELPER is selected by DRM_IMX
      drivers/gpu/drm/imx/Kconfig:1:  symbol DRM_IMX depends on IMX_IPUV3_CORE
      drivers/gpu/ipu-v3/Kconfig:1:   symbol IMX_IPUV3_CORE depends on RESET_CONTROLLER
      drivers/reset/Kconfig:4:        symbol RESET_CONTROLLER is selected by USB_CHIPIDEA
      drivers/usb/chipidea/Kconfig:1: symbol USB_CHIPIDEA depends on USB_EHCI_HCD
      drivers/usb/host/Kconfig:84:    symbol USB_EHCI_HCD depends on USB
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: <dri-devel@lists.freedesktop.org>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Mark Yao <mark.yao@rock-chips.com>
      Acked-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Acked-by: robdclark@gmail.com
      Signed-off-by: NStephen Boyd <stephen.boyd@linaro.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/20161018205719.20575-1-stephen.boyd@linaro.org
      fb80016a
  13. 04 10月, 2016 3 次提交
  14. 22 9月, 2016 1 次提交
  15. 21 9月, 2016 11 次提交