Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp781951pxb; Wed, 6 Oct 2021 15:28:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4F52KGzHKPq4BGB/xA2vLNGYL3m6XfDsh44BPTVnM91kMWCCGxkZ6uNyqpLwJ/onKmEc0 X-Received: by 2002:a50:be82:: with SMTP id b2mr1213778edk.56.1633559328516; Wed, 06 Oct 2021 15:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633559328; cv=none; d=google.com; s=arc-20160816; b=RyLk3IZfEj+YzqtJFLDP/7kmVBj7Ezj9D4tH0XuYDnsDhONv0WnHgvISj1u7PFv/Bv STl0rR8i+mqFiw3Pu9eqkIL+kb6pmeukhKXUIYqIEuV31ZN8SkhaFSqOAHcwaWfUZWx8 x6rQvUDdZm5EejdT0uqIk7u1kUr0RMwEV5OsjIgE15e8KvGNh0PPdqacrOp02OP3X2De eorUDdQw2t7bywBfTSQvRjREEarwjgGFADi9vZj8xmcPlefoB18JiUeOekgeXnIl8Tx2 cT0733aAzKSrjkRPGu+ngjlOPM4bVZp002n7jegBKmvprLCK8su/HP7JPcW4wTvugk7d Elpg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VD3lIaPhwxpiFPvSjShOBn9yYub+GzlLOsSfdgfH8kY=; b=fqBm0fd8CzlrJoXTPnmCi9zmxn7+58wxrD8wtRtPAHeR42YWDbu8CrmxBzN6yc9ZsS BBYKYAAAx+larWlJjd9hXPsingjF2Btb6VtQPf+82HFqaNm/nKygWykpKfi3GE4WNzn8 hnhZP2ZHK1nO3XOuJsEDg2UvffAS1gM2HS/Hkw6jw9pRc3cLXvtyeucK7nFx+ZWK1StJ AlMQllDTlZr0UdALfmdQjCKfgrFY4kMlJWDwzSkcQo/LaxA8xbDjPp10j2JHibNmjfYl BC5ZRdaQ4oCm6trcuq6b65wBL8UO+vq5ce0S/tVNcPfHJB7EbbTyjSn6EidpNbLMKNji GHnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FO8Wgx3b; 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 b6si6978279edu.115.2021.10.06.15.28.25; Wed, 06 Oct 2021 15:28:48 -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=FO8Wgx3b; 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 S239794AbhJFW2W (ORCPT + 99 others); Wed, 6 Oct 2021 18:28:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234332AbhJFW2V (ORCPT ); Wed, 6 Oct 2021 18:28:21 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0C77C061746 for ; Wed, 6 Oct 2021 15:26:28 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id z20so15335958edc.13 for ; Wed, 06 Oct 2021 15:26:28 -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:mime-version :content-transfer-encoding; bh=VD3lIaPhwxpiFPvSjShOBn9yYub+GzlLOsSfdgfH8kY=; b=FO8Wgx3bjUhN1ufnB4gjIBjG9DMc46H0yRjb0uzZa5kYPh1snwafQOFSmo2/I4w+3J BHh8w/7Dba1gzA+3en8E3Bwvwkvpp05qYJU7tYqY9i0Ub/DtviLxk13jAnk53v5iJvcU L9X+KvJKFjZHbihc9IfR7r7EJSqxOdwULYx8k= 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:mime-version :content-transfer-encoding; bh=VD3lIaPhwxpiFPvSjShOBn9yYub+GzlLOsSfdgfH8kY=; b=aRR6fRD9a5ijaN/RErTH/dUrreSp3U+PwyzAXsIkXhqhpnDm784C+Jq7LuUu15S5qZ we8M5tN16CP8h9+kH8UtKdZSJvexbOtipDMExeP/HSmyUt9dpsmV+zDp4b32b3JaKn6c cvV0G7J7LeyBtuuBcvssB5CE0rpx9QEvzQA9yORPi7dXTs+ojdZtCTtx7Lef3MCjWz24 BbegekFziymYf1onlpJyKhMeb2879ot1PEG8m+TOt0icBrQaBjwvwCwBa6Q7Ii16R92r p4YBa9VAAEYi+4srXa4ki4f/6ABhHi21ksEXfsTS2z9g7NtjyR7bZCGEv9Hr2xeu5OVo qXTQ== X-Gm-Message-State: AOAM532gwH7GsoYC9h680ozTtei+Rkw9iBZO0tLSK/wxLkJEEeGQpJV2 CMFwb3qkRtW55TUtSM5RUCOgiQ== X-Received: by 2002:a17:906:1856:: with SMTP id w22mr1031739eje.393.1633559187318; Wed, 06 Oct 2021 15:26:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:26:26 -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 0/8] media: ipu3 + i2c: Fix v4l2-compliance issues Date: Thu, 7 Oct 2021 00:26:17 +0200 Message-Id: <20211006222625.401122-1-ribalda@chromium.org> X-Mailer: git-send-email 2.33.0.800.g4c38ced690-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix some issues found with v4l2-compliance. Tested in Soraka which also has some subdevices that had some issues with v4l2-compliance. Changelog: v3->v4 - Rebase on top of Sakari's tree v1->v3 - Rename cio2 to imgu - Refactor bytesperline calculation Ricardo Ribalda (8): media: ipu3-cio2 Check num_planes and sizes in queue_setup media: ipu3-imgu: Refactor bytesperpixel calculation media: ipu3-imgu: Set valid initial format media: ipu3-imgu: imgu_fmt: Handle properly try media: ipu3-imgu: VIDIOC_QUERYCAP: Fix bus_info media: dw9714: Add implementation for events media: ov13858: Add implementation for events media: ov5670: Add implementation for events drivers/media/i2c/dw9714.c | 14 ++++++++++++-- drivers/media/i2c/ov13858.c | 11 ++++++++++- drivers/media/i2c/ov5670.c | 11 ++++++++++- drivers/media/pci/intel/ipu3/ipu3-cio2-main.c | 8 ++++++-- drivers/staging/media/ipu3/ipu3-css.c | 19 +++---------------- drivers/staging/media/ipu3/ipu3-css.h | 1 - drivers/staging/media/ipu3/ipu3-v4l2.c | 11 +++++++---- drivers/staging/media/ipu3/ipu3.h | 12 ++++++++++++ 8 files changed, 60 insertions(+), 27 deletions(-) -- 2.33.0.800.g4c38ced690-goog