linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Umang Jain <umang.jain@ideasonboard.com>
To: linux-media@vger.kernel.org
Cc: Kieran Bingham <kieran.bingham@ideasonboard.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	willl will <will@willwhang.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	tomi.valkeinen@ideasonboard.com,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans Verkuil <hverkuil-cisco@xs4all.nl>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 0/2] media: i2c: Add imx283 camera sensor driver
Date: Tue, 19 Mar 2024 18:40:06 +0530	[thread overview]
Message-ID: <4bb01eb0-bf53-43f2-a488-7959aadacc3b@ideasonboard.com> (raw)
In-Reply-To: <20240313070705.91140-1-umang.jain@ideasonboard.com>

Hello,

Ping for review and also the streams API streams_mask issue mentioned 
below.

Is anyone interested in looking at this particular issue?

On 13/03/24 12:36 pm, Umang Jain wrote:
> Add a v4l2 subdevice driver for the Sony IMX283 image sensor.
>    
> The IMX283 is a 20MP Diagonal 15.86 mm (Type 1) CMOS Image Sensor with
> Square Pixel for Color Cameras.
>      
> The following features are supported:
> - Manual exposure an gain control support
> - vblank/hblank/link freq control support
> - Test pattern support control
> - Arbitrary horizontal and vertical cropping
> - Supported resolution:
>     - 5472x3648 @ 20fps (SRGGB12)
>     - 5472x3648 @ 25fps (SRGGB10)
>     - 2736x1824 @ 50fps (SRGGB12)
>
> The driver is tested on mainline branch v6.8-rc2 on IMX8MP Debix-SOM-A.
> Additional testing has been done on RPi5 with the downstream BSP.
>
> Changes in v3:
> - fix headers includes
> - Improve #define(s) readability
> - Drop __func__ from error logs
> - Use HZ_PER_MHZ instead of MEGA
> - mdsel* variables should be u8
> - Use container_of_const() instead of container_of()
> - Use clamp() used of clamp_t variant
> - Use streams API imx283_{enable|disable}_streams (**NOTE**)
> - Properly fix PM runtime handling
>    (pm_ptr(), DEFINE_RUNTIME_DEV_PM_OPS,
>     imx283_runtime_suspend, imx283_runtime_resume)
> - Fix format modifiers, signed-ness at various places
>
>
> **NOTE**
> There is streams mask issue, as no routes are defined with 1 pad:
> For testing, I have the following applied locally:
> ```
> diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c
> index 4c6198c48dd6..38545d779620 100644
> --- a/drivers/media/v4l2-core/v4l2-subdev.c
> +++ b/drivers/media/v4l2-core/v4l2-subdev.c
> @@ -2115,8 +2115,10 @@ int v4l2_subdev_enable_streams(struct v4l2_subdev *sd, u32 pad,
>          if (pad >= sd->entity.num_pads)
>                  return -EINVAL;
>   
> -       if (!streams_mask)
> -               return 0;
> +       if (!streams_mask) {
> +               dev_err(sd->dev, "no streams mask, returning ....\n");
> +               //return 0;
> +       }
>   
>          /* Fallback on .s_stream() if .enable_streams() isn't available. */
>          if (!sd->ops->pad || !sd->ops->pad->enable_streams)
> ```
>
> changes in v2 (summary):
> - Use u32 wherever possible
> - Use MEGA macro instead of self defined MHZ() macro
> - Properly refine regs using CCI
> - Drop tracking of current mode. Shifted to infer from active state directly.
>    (Laurent's review)
> - Cont. from above: Pass the struct imx283_mode to functions whereever required.
> - Remove unused comments
> - Remove custom mutex. Use control handler one instead.
> - Drop imx283_reset_colorspace() and inline
> - Set colorspace field properly (drop _DEFAULTS)
> - Use __maybe_unused for imx283_power_on() and imx283_power_off()
> - Store controls  v4l2_ctrl handles for those required, not all.
> - Drop imx283_free_controls(). Use v4l2_ctrl_handler_free
> - fix reset-gpios handling and add it to DT schema
> - fix data-lanes property in DT schema
> - fix IMX283 Kconfig
> - Remove unused macros
> - Alphabetical case consistency
>
> Kieran Bingham (1):
>    media: i2c: Add imx283 camera sensor driver
>
> Umang Jain (1):
>    media: dt-bindings: media: Add bindings for IMX283
>
>   .../bindings/media/i2c/sony,imx283.yaml       |  107 ++
>   MAINTAINERS                                   |    9 +
>   drivers/media/i2c/Kconfig                     |   10 +
>   drivers/media/i2c/Makefile                    |    1 +
>   drivers/media/i2c/imx283.c                    | 1596 +++++++++++++++++
>   5 files changed, 1723 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx283.yaml
>   create mode 100644 drivers/media/i2c/imx283.c
>


      parent reply	other threads:[~2024-03-19 13:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-13  7:06 [PATCH v3 0/2] media: i2c: Add imx283 camera sensor driver Umang Jain
2024-03-13  7:06 ` [PATCH v3 1/2] media: dt-bindings: media: Add bindings for IMX283 Umang Jain
2024-03-13 21:21   ` Laurent Pinchart
2024-03-13  7:06 ` [PATCH v3 2/2] media: i2c: Add imx283 camera sensor driver Umang Jain
2024-03-13  8:55   ` Andy Shevchenko
2024-03-13 11:12     ` Umang Jain
2024-03-13 14:52   ` Kieran Bingham
2024-03-14  6:25   ` kernel test robot
2024-03-14  6:57   ` kernel test robot
2024-03-14  9:57     ` Andy Shevchenko
2024-03-19 13:10 ` Umang Jain [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bb01eb0-bf53-43f2-a488-7959aadacc3b@ideasonboard.com \
    --to=umang.jain@ideasonboard.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=will@willwhang.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).