mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Gjorgji.Rosikopulos.gjorgji.rosikopulos@oss.qualcomm.com,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
	Loic Poulain <loic.poulain@oss.qualcomm.com>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Atanas Filipov <atanas.filipov@oss.qualcomm.com>,
	Jigarkumar Zala <jigarkumar.zala@oss.qualcomm.com>,
	linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Gjorgji Rosikopulos <gjorgji.rosikopulos@oss.qualcomm.com>
Subject: Re: [PATCH 1/8] media: qcom: camss: Add streams API support for CSIPHY
Date: Sun, 11 Oct 2026 23:39:53 +0100	[thread overview]
Message-ID: <5f238c7a-c17e-4127-afad-38eb2cea9c34@linaro.org> (raw)
In-Reply-To: <20260911062213.195007-2-gjorgji.rosikopulos@oss.qualcomm.com>

On 11/09/2026 07:22, 
Gjorgji.Rosikopulos.gjorgji.rosikopulos@oss.qualcomm.com wrote:
> From: Gjorgji Rosikopulos <gjorgji.rosikopulos@oss.qualcomm.com>
> 
> Add the V4L2 subdev streams API to the CSIPHY driver: a passthrough
> routing table (one VC per stream) and NO_STREAM_MIX routing validation.
> 
> enable/disable_streams pad ops track active streams per pad via a
> per-pad enabled_streams[] bitmask, so that multiple source-pad
> consumers can share a single propagated sink stream without redundant
> or colliding propagation to the sensor. The shared D-PHY lanes are
> enabled once, on the transition from no active streams to at least
> one, and disabled once all streams have gone idle.
> 
> This is opt-in per CSIPHY instance via the new streams_enable resource
> flag; no platform sets it yet, so CSIPHYs continue to use the legacy
> non-streams subdev ops unchanged.
> 
> Signed-off-by: Gjorgji Rosikopulos <gjorgji.rosikopulos@oss.qualcomm.com>
+ static const struct v4l2_subdev_core_ops csiphy_core_ops = {
+       .s_power = csiphy_set_power,
++>>>>>>> media: qcom: camss: Add streams API support for CSIPHY
   };

   static const struct v4l2_subdev_video_ops csiphy_video_ops = {
@@@ -932,17 -981,17 +1133,30 @@@ int msm_csiphy_register_entity(struct c
   {
         struct v4l2_subdev *sd = &csiphy->subdev;
         struct media_pad *pads = csiphy->pads;
++<<<<<<< HEAD
  +      struct camss *camss = csiphy->camss;
  +      struct device *dev = camss->dev;
  +      int ret;
  +
  +      if (camss->legacy_phy)
  +              v4l2_subdev_init(sd, &csiphy_v4l2_ops_legacy);
  +      else
  +              v4l2_subdev_init(sd, &csiphy_v4l2_ops);
  +
  +      sd->internal_ops = &csiphy_v4l2_internal_ops;
++=======
+       struct device *dev = csiphy->camss->dev;
+       bool streams_api = csiphy->res->streams_enable;
+       int ret;
+
+       v4l2_subdev_init(sd, streams_api ? &csiphy_streams_v4l2_ops
+                                             : &csiphy_v4l2_ops);
+       sd->internal_ops = streams_api ? &csiphy_streams_internal_ops
+                                       : &csiphy_v4l2_internal_ops;
++>>>>>>> media: qcom: camss: Add streams API support for CSIPHY
         sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
+       if (streams_api)
+               sd->flags |= V4L2_SUBDEV_FL_STREAMS;
         snprintf(sd->name, ARRAY_SIZE(sd->name), "%s%d",
                  MSM_CSIPHY_NAME, csiphy->id);
         sd->grp_id = CSIPHY_GRP_ID;
@@@ -968,22 -1025,16 +1190,35 @@@
         ret = v4l2_device_register_subdev(v4l2_dev, sd);
         if (ret < 0) {
                 dev_err(dev, "Failed to register subdev: %d\n", ret);
++<<<<<<< HEAD
  +              goto media_entity_err;
  +      }
  +
  +      if (!IS_ERR(csiphy->phy)) {
  +              ret = phy_init(csiphy->phy);
  +              if (ret) {
  +                      dev_err(dev, "%s init fail %d\n", csiphy->name, 
ret);
  +                      v4l2_device_unregister_subdev(sd);
  +                      goto media_entity_err;
  +              }
  +      }
  +
  +      return 0;
  +
  +media_entity_err:
  +      media_entity_cleanup(&sd->entity);
++=======
+               goto err_v4l2_subdev_cleanup;
+       }
+
+       return 0;
+
+ err_v4l2_subdev_cleanup:
+       v4l2_subdev_cleanup(sd);
+ err_media_entity_cleanup:
+       media_entity_cleanup(&sd->entity);
+
++>>>>>>> media: qcom: camss: Add streams API support for CSIPHY

  parent reply	other threads:[~2026-10-11 22:39 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11  6:22 [PATCH 0/8] media: qcom: camss: add V4L2 subdev streams API support Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11  6:22 ` [PATCH 1/8] media: qcom: camss: Add streams API support for CSIPHY Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11 10:37   ` Bryan O'Donoghue
2026-09-11 13:00     ` Gjorgji Rosikopulos (Consultant)
2026-10-11 22:39   ` Bryan O'Donoghue [this message]
2026-10-12  7:03     ` Gjorgji Rosikopulos (Consultant)
2026-10-12  9:23     ` Hitesh Patel
2026-09-11  6:22 ` [PATCH 2/8] media: qcom: camss: Add streams API hw_ops to CSID interface Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11 10:43   ` Bryan O'Donoghue
2026-09-11 14:05     ` Gjorgji Rosikopulos (Consultant)
2026-09-11  6:22 ` [PATCH 3/8] media: qcom: camss: Implement CSID streams API hw_ops for gen2 Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11 10:46   ` Bryan O'Donoghue
2026-09-11 14:08     ` Gjorgji Rosikopulos (Consultant)
2026-09-11 13:30   ` Loic Poulain
2026-09-11 14:17     ` Gjorgji Rosikopulos (Consultant)
2026-09-12  5:34       ` Gjorgji Rosikopulos (Consultant)
2026-09-11  6:22 ` [PATCH 4/8] media: qcom: camss: Add streams API support in CSID subdevice Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11 11:35   ` Bryan O'Donoghue
2026-09-11 14:33     ` Gjorgji Rosikopulos (Consultant)
2026-09-11  6:22 ` [PATCH 5/8] media: qcom: camss: Fix CSID-to-VFE all-to-all link crossbar on sm8250 Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11 11:37   ` Bryan O'Donoghue
2026-09-11 14:37     ` Gjorgji Rosikopulos (Consultant)
2026-09-11  6:22 ` [PATCH 6/8] media: qcom: camss: add streams API support for VFE Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11  6:22 ` [PATCH 7/8] media: qcom: camss: add streams API support in camss-video Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11  6:22 ` [PATCH 8/8] media: qcom: camss: enable streams API on SM8250 Gjorgji.Rosikopulos.gjorgji.rosikopulos
2026-09-11 10:19 ` [PATCH 0/8] media: qcom: camss: add V4L2 subdev streams API support Bryan O'Donoghue
2026-09-11 12:55   ` Gjorgji Rosikopulos (Consultant)
2026-09-15 12:15 ` Hitesh Patel
2026-10-12  7:25   ` Gjorgji Rosikopulos (Consultant)
2026-10-12 10:54     ` Hitesh Patel
2026-10-12 11:02       ` Gjorgji Rosikopulos (Consultant)
2026-10-12 11:10       ` Gjorgji Rosikopulos (Consultant)
2026-09-15 12:15 ` [PATCH 1/2] media: qcom: camss: Do not link CSID source pads the CSID does not have Hitesh Patel
2026-09-15 12:15   ` [PATCH 2/2] media: qcom: camss: Enable the streams API on SC7280 Hitesh Patel
2026-09-16  8:08     ` Bryan O'Donoghue
2026-09-16  8:31       ` Hitesh Patel
2026-10-12  7:02       ` Gjorgji Rosikopulos (Consultant)
2026-09-16  5:53   ` [PATCH v2 0/2] media: qcom: camss: SC7280 fixes for the streams API series Hitesh Patel
2026-09-16  5:53     ` [PATCH v2 1/2] media: qcom: camss: Do not link CSID source pads the CSID does not have Hitesh Patel
2026-09-16  5:53     ` [PATCH v2 2/2] media: qcom: camss: Enable the streams API on SC7280 Hitesh Patel
2026-09-16  6:54   ` [PATCH v3 0/2] media: qcom: camss: SC7280 fixes for the streams API series Hitesh Patel
2026-09-16  6:54     ` [PATCH v3 1/2] media: qcom: camss: Do not link CSID source pads the CSID does not have Hitesh Patel
2026-09-16  6:54     ` [PATCH v3 2/2] media: qcom: camss: Enable the streams API on SC7280 Hitesh Patel
2026-10-12  7:27       ` Gjorgji Rosikopulos (Consultant)
2026-10-12  9:23         ` Hitesh Patel
2026-10-12 11:00           ` Gjorgji Rosikopulos (Consultant)

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=5f238c7a-c17e-4127-afad-38eb2cea9c34@linaro.org \
    --to=bryan.odonoghue@linaro.org \
    --cc=Gjorgji.Rosikopulos.gjorgji.rosikopulos@oss.qualcomm.com \
    --cc=atanas.filipov@oss.qualcomm.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=gjorgji.rosikopulos@oss.qualcomm.com \
    --cc=jigarkumar.zala@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mchehab@kernel.org \
    --cc=vladimir.zapolskiy@linaro.org \
    /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

all inboxes | Powered by JetHome®