public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Subject: Re: [PATCH v2 2/4] media: rcar-vin: Remove unnecessary checks
Date: Tue, 29 Apr 2025 01:02:54 +0200	[thread overview]
Message-ID: <20250428230254.GC1969140@ragnatech.se> (raw)
In-Reply-To: <20250424-rcar-fix-raw-v2-2-f6afca378124@ideasonboard.com>

Hi Tomi,

Thanks for your patch.

On 2025-04-24 10:05:34 +0300, Tomi Valkeinen wrote:
> Remove unnecessary checks wrt. formats and interfaces in rvin_setup().
> The validity of the formats has already been checked earlier.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

> ---
>  drivers/media/platform/renesas/rcar-vin/rcar-dma.c | 23 ----------------------
>  1 file changed, 23 deletions(-)
> 
> diff --git a/drivers/media/platform/renesas/rcar-vin/rcar-dma.c b/drivers/media/platform/renesas/rcar-vin/rcar-dma.c
> index 972ae2cb3314..0b5077e2e989 100644
> --- a/drivers/media/platform/renesas/rcar-vin/rcar-dma.c
> +++ b/drivers/media/platform/renesas/rcar-vin/rcar-dma.c
> @@ -802,29 +802,6 @@ static int rvin_setup(struct rvin_dev *vin)
>  		break;
>  	}
>  
> -	/* Make sure input interface and input format is valid. */
> -	if (vin->info->model == RCAR_GEN3 || vin->info->model == RCAR_GEN4) {
> -		switch (vnmc & VNMC_INF_MASK) {
> -		case VNMC_INF_YUV8_BT656:
> -		case VNMC_INF_YUV10_BT656:
> -		case VNMC_INF_YUV16:
> -		case VNMC_INF_RGB666:
> -			if (vin->is_csi) {
> -				vin_err(vin, "Invalid setting in MIPI CSI2\n");
> -				return -EINVAL;
> -			}
> -			break;
> -		case VNMC_INF_RAW8:
> -			if (!vin->is_csi) {
> -				vin_err(vin, "Invalid setting in Digital Pins\n");
> -				return -EINVAL;
> -			}
> -			break;
> -		default:
> -			break;
> -		}
> -	}
> -
>  	/* Enable VSYNC Field Toggle mode after one VSYNC input */
>  	if (vin->info->model == RCAR_GEN3 || vin->info->model == RCAR_GEN4)
>  		dmr2 = VNDMR2_FTEV;
> 
> -- 
> 2.43.0
> 

-- 
Kind Regards,
Niklas Söderlund

  reply	other threads:[~2025-04-28 23:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-24  7:05 [PATCH v2 0/4] media: rcar: Fix RAW formats Tomi Valkeinen
2025-04-24  7:05 ` [PATCH v2 1/4] media: rcar-vin: Add RCAR_GEN4 model value Tomi Valkeinen
2025-04-24  7:05 ` [PATCH v2 2/4] media: rcar-vin: Remove unnecessary checks Tomi Valkeinen
2025-04-28 23:02   ` Niklas Söderlund [this message]
2025-04-24  7:05 ` [PATCH v2 3/4] media: rcar-vin: Fix RAW8 Tomi Valkeinen
2025-04-24  7:05 ` [PATCH v2 4/4] media: rcar-vin: Fix RAW10 Tomi Valkeinen
2025-04-28 23:03   ` Niklas Söderlund

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=20250428230254.GC1969140@ragnatech.se \
    --to=niklas.soderlund@ragnatech.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=mchehab+huawei@kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tomi.valkeinen+renesas@ideasonboard.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