1. 09 5月, 2019 1 次提交
  2. 03 4月, 2019 1 次提交
  3. 20 3月, 2019 1 次提交
  4. 19 2月, 2019 1 次提交
  5. 18 2月, 2019 1 次提交
  6. 08 2月, 2019 1 次提交
  7. 31 1月, 2019 2 次提交
  8. 22 1月, 2019 3 次提交
  9. 17 1月, 2019 8 次提交
  10. 05 10月, 2018 3 次提交
  11. 24 9月, 2018 1 次提交
    • A
      media: imx: work around false-positive warning, again · 8d1a4817
      Arnd Bergmann 提交于
      A warning that I thought to be solved by a previous patch of mine
      has resurfaced with gcc-8:
      
      media/imx/imx-media-csi.c: In function 'csi_link_validate':
      media/imx/imx-media-csi.c:1025:20: error: 'upstream_ep' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      media/imx/imx-media-csi.c:1026:24: error: 'upstream_ep.bus_type' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      media/imx/imx-media-csi.c:127:19: error: 'upstream_ep.bus.parallel.bus_width' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      media/imx/imx-media-csi.c: In function 'csi_enum_mbus_code':
      media/imx/imx-media-csi.c:132:9: error: '*((void *)&upstream_ep+12)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      media/imx/imx-media-csi.c:132:48: error: 'upstream_ep.bus.parallel.bus_width' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      I spent some more time digging in this time, and think I have a better
      fix, bailing out of the function that either initializes or errors
      out here, which simplifies the code enough for gcc to figure out
      what is going on. The earlier partial workaround can be removed now,
      as the new workaround is better.
      
      Fixes: 890f2769 ("media: imx: work around false-positive warning")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      8d1a4817
  12. 08 8月, 2018 1 次提交
  13. 07 8月, 2018 1 次提交
    • M
      media: imx: shut up a false positive warning · 132f3c7b
      Mauro Carvalho Chehab 提交于
      With imx, gcc produces a false positive warning:
      
      	drivers/staging/media/imx/imx-media-csi.c: In function 'csi_idmac_setup_channel':
      	drivers/staging/media/imx/imx-media-csi.c:457:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
      	   if (passthrough) {
      	      ^
      	drivers/staging/media/imx/imx-media-csi.c:464:2: note: here
      	  default:
      	  ^~~~~~~
      
      That's because the regex it uses for fall trough is not
      good enough. So, rearrange the fall through comment in a way
      that gcc will recognize.
      Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      132f3c7b
  14. 04 7月, 2018 3 次提交
  15. 28 6月, 2018 1 次提交
  16. 10 5月, 2018 2 次提交
  17. 04 5月, 2018 1 次提交
  18. 04 4月, 2018 2 次提交
  19. 22 3月, 2018 1 次提交
  20. 26 2月, 2018 2 次提交
  21. 16 12月, 2017 2 次提交
    • S
      media: staging/imx: remove static subdev arrays · 9f6a0c59
      Steve Longerbeam 提交于
      For more complex OF graphs, there will be more async subdevices
      registered. Remove the static subdev[IMX_MEDIA_MAX_SUBDEVS] array,
      so that imx-media places no limits on the number of async subdevs
      that can be added and registered.
      
      There were two uses for 'struct imx_media_subdev'. First was to act
      as the async subdev list to be passed to v4l2_async_notifier_register().
      
      Second was to aid in inheriting subdev controls to the capture devices,
      and this is done by creating a list of capture devices that can be reached
      from a subdev's source pad. So 'struct imx_media_subdev' also contained
      a static array of 'struct imx_media_pad' for placing the capture device
      lists at each pad.
      
      'struct imx_media_subdev' has been completely removed. Instead, at async
      completion, allocate an array of 'struct imx_media_pad' and attach it to
      the subdev's host_priv pointer, in order to support subdev controls
      inheritance.
      
      Likewise, remove static async_ptrs[IMX_MEDIA_MAX_SUBDEVS] array.
      Instead, allocate a 'struct imx_media_async_subdev' when forming
      the async list, and add it to an asd_list list_head in
      imx_media_add_async_subdev(). At async completion, allocate the
      asd pointer list and pull the asd's off asd_list for
      v4l2_async_notifier_register().
      Signed-off-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      9f6a0c59
    • S
      media: staging/imx: get CSI bus type from nearest upstream entity · bf3cfaa7
      Steve Longerbeam 提交于
      The imx-media driver currently supports a device tree graph of
      limited complexity. This patch is a first step in allowing imx-media
      to work with more general OF graphs.
      
      The CSI subdevice assumes the originating upstream subdevice (the
      "sensor") is connected directly to either the CSI mux or the MIPI
      CSI-2 receiver. But for more complex graphs, the sensor can be distant,
      with possible bridge entities in between. Thus the sensor's bus type
      could be quite different from what is entering the CSI. For example
      a distant sensor could have a parallel interface, but the stream
      entering the i.MX is MIPI CSI-2.
      
      To remove this assumption, get the entering bus config from the entity
      that is directly upstream from either the CSI mux, or the CSI-2 receiver.
      If the CSI-2 receiver is not in the enabled pipeline, the bus type to the
      CSI is parallel, otherwise the CSI is receiving MIPI CSI-2.
      
      Note that we can't use the direct upstream source connected to CSI
      (which is either the CSI mux or the CSI-2 receiver) to determine
      bus type. The bus entering the CSI from the CSI-2 receiver is a 32-bit
      parallel bus containing the demultiplexed MIPI CSI-2 virtual channels.
      But the CSI and its IDMAC channels must be configured based on whether
      it is receiving data from the CSI-2 receiver or from the CSI mux's
      parallel interface pins.
      
      The function csi_get_upstream_endpoint() is used to find this
      endpoint. It makes use of a new utility function
      imx_media_find_upstream_pad(), that if given a grp_id of 0, will
      return the closest upstream pad from start_entity.
      
      With these changes, imx_media_find_sensor() is no longer used and
      is removed. As a result there is also no longer a need to identify
      any sensor or set the sensor subdev's group id as a method to search
      for it. So IMX_MEDIA_GRP_ID_SENSOR is removed. Also the video-mux group
      id IMX_MEDIA_GRP_ID_VIDMUX was never used so that is removed as well.
      The remaining IMX_MEDIA_GRP_ID_* definitions are entities internal
      to the i.MX.
      
      Another use of imx_media_find_sensor() in the CSI was to call the
      sensor's g_skip_frames op to determine if a delay was needed before
      enabling the CSI at stream on. If necessary this will have to be
      re-addressed at a later time.
      Signed-off-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      bf3cfaa7
  22. 12 12月, 2017 1 次提交