Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp787554pxb; Wed, 6 Oct 2021 15:37:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmhSeO4LBOJXt/DWiobnNn1HDyzCRKM2rK9wk0B8mQ+cbQ5F1B28qIR7bihiuVjdWx7PRw X-Received: by 2002:a17:906:3adb:: with SMTP id z27mr1075339ejd.291.1633559872912; Wed, 06 Oct 2021 15:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633559872; cv=none; d=google.com; s=arc-20160816; b=xm/XLNpgK2tp/buDFYbJqBfAo7Gcd1BFKXFXBqL/wRsx3ap+yXB/LRqVCy3/GXYn/z 2DRqjUKCm6t12TFT5qcLLS8CmarvXte5c00ziLzeHaFebgb4g0SPjZV5fDa2d/jzi62h QakGQH5wQnL3Bk8CzBb7+Okrb6zzTt/o7pLpdmeq61zc6dpX2wi0Rv1v5jI5O9etE1bF aRZQ8BRg2LpdsHyE0qd7lKnoZi1EN8vRRHwgkd6lE1Z5Y4rv0gmR+KHURdUwmcyGEYN0 YG4skLs1iYuwCIqnmCho8xosmoRH7g1Jg+Vc9Rzmf+x6xfju5QbmwdlAah++nXUZsiB/ CDWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lBZYT0fhynhFvmY+AbwXQGydUT7ySSicpN9jOqgvImg=; b=aZT/b7sBsPQe2Xfo2ZzcLckBQ5YLb9apQ+VhLlDybBOHICwCqe5+leq7AVhKfV4dPq bfDVH8TX5p/c8MXY+Ywr7GS6OXs1JiLkMUnXpao2ClMCUqf50zTE450N7eqVArvNooCB kM3er/MCN0TWlUjQNLeMXpBo7af4NHZTtb7+DrUyT8tEVLvQ4b/+92bYQjSxjVBodBhb LPNO5JDKR8V4YbnCk/hvXa3QBs2DRElvJh5vq1jocWHHzoT7gHhyifSrbrJ7vuSnxBMa IdFhEJIeTJx52S5IeL178DpePMdMMNls8GLrN6WbbFq7uqNW5FsA3AXSn02N8hy2FHjm x2cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lstI2MGl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p28si15678730edi.290.2021.10.06.15.37.29; Wed, 06 Oct 2021 15:37:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lstI2MGl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239862AbhJFW2b (ORCPT + 99 others); Wed, 6 Oct 2021 18:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239817AbhJFW2X (ORCPT ); Wed, 6 Oct 2021 18:28:23 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 204DCC061746 for ; Wed, 6 Oct 2021 15:26:31 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id d8so15409437edx.9 for ; Wed, 06 Oct 2021 15:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lBZYT0fhynhFvmY+AbwXQGydUT7ySSicpN9jOqgvImg=; b=lstI2MGlJ7D7jpGC7HmVZpxW8fF077c6BdnmKqCr9IXUzy7typsKPC6zIj3Gx9TVsd A7SCcy38xQqzTlIya1rOLDEV6pZ3aR0JoPgI4FGvCx0xEVHL4e3t1XIb72XUAuB2ylsd cyjwBcn4JRVa55f9xjJf0O8tIYTzYYRrMEOrk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lBZYT0fhynhFvmY+AbwXQGydUT7ySSicpN9jOqgvImg=; b=pJfYDqUvjl2P5qb+dAVy1OH961nxNQyncq+OaOYj8GYavIP7qlX2QUbIQea9I50BlH 0nl7ma+wC/xA73/TAJJhXy+oArDNaHk9TzZKFSMi0I/ZahAIEDOgb1O9xTWL1FI9mjn3 i1ujgzuR7cOQwT0+ZAa9fHk6mbiHkBAlFKWDD9zpuyJEAInSD09i/nD3w+WJFnkus5et Uzchq4J5OFv1t78u7uz8crgmyfWmlDjSfdq1s/91bt7vlHvmtHhm8Pxz15IkrHk+zcmz Ik7gryNeSKx4sU8a1bS4FRYkS9etFf/WwB1i5I7fUXsa9q8ZOlE7koDIO9dYQ6in45H1 lX+A== X-Gm-Message-State: AOAM533crNqPJaLoWihV/mof4FpPjpmV9bW0YOOnXg8Jmmv9Rupj1bAr OGA6OsuQG60Ne5YJWDU1gRsaGw== X-Received: by 2002:a17:906:2a8f:: with SMTP id l15mr1170490eje.156.1633559189771; Wed, 06 Oct 2021 15:26:29 -0700 (PDT) Received: from alco.lan (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id h7sm10557906edt.37.2021.10.06.15.26.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:26:29 -0700 (PDT) From: Ricardo Ribalda To: Mauro Carvalho Chehab , Yong Zhi , Bingbu Cao , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Chiranjeevi Rapolu , Sakari Ailus Cc: Ricardo Ribalda Subject: [PATCH v4 4/8] media: ipu3-imgu: imgu_fmt: Handle properly try Date: Thu, 7 Oct 2021 00:26:21 +0200 Message-Id: <20211006222625.401122-5-ribalda@chromium.org> X-Mailer: git-send-email 2.33.0.800.g4c38ced690-goog In-Reply-To: <20211006222625.401122-1-ribalda@chromium.org> References: <20211006222625.401122-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For a try_fmt call, the node noes not need to be enabled. Fixes v4l2-compliance fail: v4l2-test-formats.cpp(717): Video Output Multiplanar is valid, but no TRY_FMT was implemented test VIDIOC_TRY_FMT: FAIL Signed-off-by: Ricardo Ribalda --- drivers/staging/media/ipu3/ipu3-v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c index d9f7a854d68c..69ef820619ab 100644 --- a/drivers/staging/media/ipu3/ipu3-v4l2.c +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c @@ -696,7 +696,7 @@ static int imgu_fmt(struct imgu_device *imgu, unsigned int pipe, int node, /* CSS expects some format on OUT queue */ if (i != IPU3_CSS_QUEUE_OUT && - !imgu_pipe->nodes[inode].enabled) { + !imgu_pipe->nodes[inode].enabled && !try) { fmts[i] = NULL; continue; } -- 2.33.0.800.g4c38ced690-goog