diff mbox series

[4/6] media: cadence: csi2rx: Implement get_fwnode_pad op

Message ID 20250324-probe_fixes-v1-4-5cd5b9e1cfac@ideasonboard.com (mailing list archive)
State New
Headers show
Series media: ti, cdns: Multiple pixel support and misc fixes | expand

Commit Message

Jai Luthra March 24, 2025, 12:01 p.m. UTC
Use v4l2_subdev_get_fwnode_pad_1_to_1() as the get_fwnode_pad operation.
Cadence CSI2RX maps port numbers and pad indices 1:1.

Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
---
 drivers/media/platform/cadence/cdns-csi2rx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Devarsh Thakkar March 27, 2025, 10:24 a.m. UTC | #1
On 24/03/25 17:31, Jai Luthra wrote:
> Use v4l2_subdev_get_fwnode_pad_1_to_1() as the get_fwnode_pad operation.
> Cadence CSI2RX maps port numbers and pad indices 1:1.
> 
> Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>

Regards
Devarsh
> ---
>   drivers/media/platform/cadence/cdns-csi2rx.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c
> index 4d64df829e7585b6e305651f3ff9bdd008508ec5..b489967563cde96ac109c44a665b30e573125721 100644
> --- a/drivers/media/platform/cadence/cdns-csi2rx.c
> +++ b/drivers/media/platform/cadence/cdns-csi2rx.c
> @@ -477,6 +477,7 @@ static const struct v4l2_subdev_internal_ops csi2rx_internal_ops = {
>   
>   static const struct media_entity_operations csi2rx_media_ops = {
>   	.link_validate = v4l2_subdev_link_validate,
> +	.get_fwnode_pad = v4l2_subdev_get_fwnode_pad_1_to_1,
>   };
>   
>   static int csi2rx_async_bound(struct v4l2_async_notifier *notifier,
>
Changhuang Liang March 28, 2025, 2:39 a.m. UTC | #2
> Use v4l2_subdev_get_fwnode_pad_1_to_1() as the get_fwnode_pad
> operation.
> Cadence CSI2RX maps port numbers and pad indices 1:1.
> 
> Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>

Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>

> ---
>  drivers/media/platform/cadence/cdns-csi2rx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c
> b/drivers/media/platform/cadence/cdns-csi2rx.c
> index
> 4d64df829e7585b6e305651f3ff9bdd008508ec5..b489967563cde96ac109c44
> a665b30e573125721 100644
> --- a/drivers/media/platform/cadence/cdns-csi2rx.c
> +++ b/drivers/media/platform/cadence/cdns-csi2rx.c
> @@ -477,6 +477,7 @@ static const struct v4l2_subdev_internal_ops
> csi2rx_internal_ops = {
> 
>  static const struct media_entity_operations csi2rx_media_ops = {
>  	.link_validate = v4l2_subdev_link_validate,
> +	.get_fwnode_pad = v4l2_subdev_get_fwnode_pad_1_to_1,
>  };
> 
>  static int csi2rx_async_bound(struct v4l2_async_notifier *notifier,
> 
> --
> 2.48.1


Best Regards
Changhuang
diff mbox series

Patch

diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c
index 4d64df829e7585b6e305651f3ff9bdd008508ec5..b489967563cde96ac109c44a665b30e573125721 100644
--- a/drivers/media/platform/cadence/cdns-csi2rx.c
+++ b/drivers/media/platform/cadence/cdns-csi2rx.c
@@ -477,6 +477,7 @@  static const struct v4l2_subdev_internal_ops csi2rx_internal_ops = {
 
 static const struct media_entity_operations csi2rx_media_ops = {
 	.link_validate = v4l2_subdev_link_validate,
+	.get_fwnode_pad = v4l2_subdev_get_fwnode_pad_1_to_1,
 };
 
 static int csi2rx_async_bound(struct v4l2_async_notifier *notifier,