1. 15 9月, 2016 1 次提交
    • G
      [media] rcar-fcp: Make sure rcar_fcp_enable() returns 0 on success · 7892a1f6
      Geert Uytterhoeven 提交于
      When resuming from suspend-to-RAM on r8a7795/salvator-x:
      
          dpm_run_callback(): pm_genpd_resume_noirq+0x0/0x90 returns 1
          PM: Device fe940000.fdp1 failed to resume noirq: error 1
          dpm_run_callback(): pm_genpd_resume_noirq+0x0/0x90 returns 1
          PM: Device fe944000.fdp1 failed to resume noirq: error 1
          dpm_run_callback(): pm_genpd_resume_noirq+0x0/0x90 returns 1
          PM: Device fe948000.fdp1 failed to resume noirq: error 1
      
      According to its documentation, rcar_fcp_enable() returns 0 on success
      or a negative error code if an error occurs.  Hence
      fdp1_pm_runtime_resume() and vsp1_pm_runtime_resume() forward its return
      value to their callers.
      
      However, rcar_fcp_enable() forwards the return value of
      pm_runtime_get_sync(), which can actually be 1 on success, leading to
      the resume failure above.
      
      To fix this, consider only negative values returned by
      pm_runtime_get_sync() to be failures.
      
      Fixes: 7b49235e ("[media] v4l: Add Renesas R-Car FCP driver")
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      7892a1f6
  2. 24 8月, 2016 7 次提交
  3. 23 8月, 2016 1 次提交
  4. 04 8月, 2016 2 次提交
  5. 29 7月, 2016 2 次提交
  6. 20 7月, 2016 1 次提交
  7. 16 7月, 2016 2 次提交
  8. 15 7月, 2016 1 次提交
    • A
      [media] mtk-vcodec: fix more type mismatches · 19e476c7
      Arnd Bergmann 提交于
      The newly added mtk-vcodec driver produces a number of warnings in an
      ARM allmodconfig build, mainly since it assumes that dma_addr_t is
      32-bit wide:
      
      mtk-vcodec/venc/venc_vp8_if.c: In function 'vp8_enc_alloc_work_buf':
      mtk-vcodec/venc/venc_vp8_if.c:212:191: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
      mtk-vcodec/venc/venc_h264_if.c: In function 'h264_enc_alloc_work_buf':
      mtk-vcodec/venc/venc_h264_if.c:297:190: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
      
      This rearranges the format strings and type casts to what they should
      have been in order to avoid the warnings. e0f80d8d ("[media]
      mtk-vcodec: fix two compiler warnings") fixed some of the problems that
      were introduced at the same time, but missed two others.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      19e476c7
  9. 14 7月, 2016 2 次提交
    • A
      [media] vsp1: clarify FCP dependency · 19994673
      Arnd Bergmann 提交于
      The newly added FCP support in the vsp1 driver causes a link error
      when CONFIG_RENESAS_FCP=m, since it's not reachable by built-in code:
      
      drivers/media/built-in.o: In function `vsp1_remove':
      :(.text+0xdeca0): undefined reference to `rcar_fcp_put'
      drivers/media/built-in.o: In function `vsp1_probe':
      :(.text+0xdef44): undefined reference to `rcar_fcp_get'
      
      We already have a conditional dependency on FCP that requires
      it for ARM64, so for all others we just have to prevent setting
      RENESAS_VSP1=y when RENESAS_FCP=m by extending the FCP dependency.
      
      Fixes: 94fcdf82 ("[media] v4l: vsp1: Add FCP support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      19994673
    • A
      [media] vsp1: use __maybe_unused for PM handlers · af2e14bb
      Arnd Bergmann 提交于
      Building without CONFIG_PM results in a harmless warning from
      slightly incorrect #ifdef guards:
      
      drivers/media/platform/vsp1/vsp1_drv.c:525:12: error: 'vsp1_pm_runtime_resume' defined but not used [-Werror=unused-function]
      drivers/media/platform/vsp1/vsp1_drv.c:516:12: error: 'vsp1_pm_runtime_suspend' defined but not used [-Werror=unused-function]
      
      This removes the existing #ifdef and instead marks all four
      PM functions as __maybe_unused.
      
      Fixes: 1e6af546 ("[media] v4l: vsp1: Implement runtime PM support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      af2e14bb
  10. 13 7月, 2016 8 次提交
  11. 12 7月, 2016 4 次提交
  12. 09 7月, 2016 9 次提交