Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1477167

Re: [PATCH v5 00/13] pxa_camera transition to v4l2 standalone device

From Robert Jarzmik <robert.jarzmik@free.fr>
Newsgroups linux.kernel
Subject Re: [PATCH v5 00/13] pxa_camera transition to v4l2 standalone device
Date 2016-09-06 10:50 +0200
Message-ID <sekeR-83f-13@gated-at.bofh.it> (permalink)
References <sbz0J-1RU-5@gated-at.bofh.it> <se1vA-3Ov-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hans Verkuil <hverkuil@xs4all.nl> writes:

> On 08/29/2016 07:55 PM, Robert Jarzmik wrote:
>> There is no change between v4 and v5, ie. the global diff is empty, only one
>> line was shifted to prevent breaking bisectablility.
>
> Against which tree do you develop? Unfortunately this patch series doesn't apply
> to the media_tree master branch anymore due to conflicts with a merged patch that
> converts s/g_crop to s/g_selection in all subdev drivers.
v4.8-rc1 is their base, so Linus's master.

> When you make the new patch series, please use the -M option with git send-email so
> patches that move files around are handled cleanly. That makes it much easier
> to review.
Ok.

> BTW, checkpatch reported issues in a switch statement in function
> pxa_camera_get_formats():
Yep, I noticed.

>         switch (code.code) {
>         case MEDIA_BUS_FMT_UYVY8_2X8:
>                 formats++;
>                 if (xlate) {
>                         xlate->host_fmt = &pxa_camera_formats[0];
>                         xlate->code     = code.code;
>                         xlate++;
>                         dev_dbg(dev, "Providing format %s using code %d\n",
>                                 pxa_camera_formats[0].name, code.code);
>                 }
>         case MEDIA_BUS_FMT_VYUY8_2X8:
>         case MEDIA_BUS_FMT_YUYV8_2X8:
>         case MEDIA_BUS_FMT_YVYU8_2X8:
>         case MEDIA_BUS_FMT_RGB565_2X8_LE:
>         case MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE:
>                 if (xlate)
>                         dev_dbg(dev, "Providing format %s packed\n",
>                                 fmt->name);
>                 break;
>         default:
>                 if (!pxa_camera_packing_supported(fmt))
>                         return 0;
>                 if (xlate)
>                         dev_dbg(dev,
>                                 "Providing format %s in pass-through mode\n",
>                                 fmt->name);
>         }
>
> Before 'case MEDIA_BUS_FMT_VYUY8_2X8' should there be a break? If not, then
> there should be a '/* fall through */' comment.
There should have been a '/* fall through */' in the original code, even if that
was not strictly "required" at the time of writing.
>
> At the end of the default case there should also be a break statement.
>
> This is already in the existing code, so just make a separate patch fixing
> this.
Ok, will do.

Cheers.

--
Robert

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v5 00/13] pxa_camera transition to v4l2 standalone device Robert Jarzmik <robert.jarzmik@free.fr> - 2016-08-29 20:00 +0200
  [PATCH v5 07/13] media: platform: pxa_camera: make printk consistent Robert Jarzmik <robert.jarzmik@free.fr> - 2016-08-29 20:00 +0200
  [PATCH v5 12/13] media: platform: pxa_camera: change stop_streaming semantics Robert Jarzmik <robert.jarzmik@free.fr> - 2016-08-29 20:10 +0200
  [PATCH v5 10/13] media: platform: pxa_camera: make a standalone v4l2 device Robert Jarzmik <robert.jarzmik@free.fr> - 2016-08-29 20:10 +0200
  [PATCH v5 05/13] media: platform: pxa_camera: trivial move of functions Robert Jarzmik <robert.jarzmik@free.fr> - 2016-08-29 20:10 +0200
  [PATCH v5 09/13] media: platform: pxa_camera: remove set_crop Robert Jarzmik <robert.jarzmik@free.fr> - 2016-08-29 20:10 +0200
  Re: [PATCH v5 00/13] pxa_camera transition to v4l2 standalone device Hans Verkuil <hverkuil@xs4all.nl> - 2016-09-05 14:50 +0200
    Re: [PATCH v5 00/13] pxa_camera transition to v4l2 standalone device Robert Jarzmik <robert.jarzmik@free.fr> - 2016-09-06 10:50 +0200

csiph-web