1. 08 Feb, 2023 2 commits
    • Arnd Bergmann's avatar
      media: platform: mtk-mdp3: fix Kconfig dependencies · e3f7feb6
      Arnd Bergmann authored
      The new mdp3 driver uses 'select' to force-enable a couple of drivers
      it depends on. This is error-prone and likely to cause dependency
      loops as well as warnings like:
      
      WARNING: unmet direct dependencies detected for VIDEO_MEDIATEK_VPU
        Depends on [n]: MEDIA_SUPPORT [=m] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && V4L_MEM2MEM_DRIVERS [=n] && VIDEO_DEV [=m] && (ARCH_MEDIATEK [=y] || COMPILE_TEST [=y])
        Selected by [m]:
        - VIDEO_MEDIATEK_MDP3 [=m] && MEDIA_SUPPORT [=m] && MEDIA_PLATFORM_SUPPORT [=y] && MEDIA_PLATFORM_DRIVERS [=y] && (MTK_IOMMU [=m] || COMPILE_TEST [=y]) && VIDEO_DEV [=m] && (ARCH_MEDIATEK [=y] || COMPILE_TEST [=y]) && HAS_DMA [=y] && REMOTEPROC [=y]
      
      This specific warning was already addressed in a previous patch,
      but there are similar unnecessary 'select' statements, so turn those
      into 'depends on'. This also means the dependency on ARCH_MEDIATEK
      is redundant and can be dropped.
      
      Fixes: 61890cca ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
      Fixes: 9195a860 ("media: platform: mtk-mdp3: remove unused VIDEO_MEDIATEK_VPU config")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      e3f7feb6
    • Arnd Bergmann's avatar
      media: camss: csiphy-3ph: avoid undefined behavior · 05fb9ace
      Arnd Bergmann authored
      Marking a case of the switch statement as unreachable means the
      compiler treats it as undefined behavior, which is then caught by
      an objtool warning:
      
      drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.o: warning: objtool: csiphy_lanes_enable() falls through to next function csiphy_lanes_disable()
      
      Instead of simply continuing execution at a random place of the
      driver, print a warning and return from to the caller, which
      makes it possible to understand what happens and avoids the
      warning.
      
      Fixes: 53655d2a ("media: camss: csiphy-3ph: add support for SM8250 CSI DPHY")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarRobert Foss <robert.foss@linaro.org>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      05fb9ace
  2. 06 Feb, 2023 38 commits