From patchwork Fri Mar 18 12:18:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dufresne via libcamera-devel X-Patchwork-Id: 15479 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D21CDBDE17 for ; Fri, 18 Mar 2022 12:18:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0BC7A604E8; Fri, 18 Mar 2022 13:18:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1647605931; bh=XP7aULoA2tQrmCCRBmDld8u5TjF7Spl85xESGlZNnZk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=u/CGYOFFwY8R+9KfidQ9gnlOAaqsZRodGsw2BUpTmhR6cnlh1/Nql25GHHvhU39ZO sUgPg5+KXlEzUYBODV0RMZwCZwRRRSVSEGlIQ4h/aQ6h6WV7XXCUFdevEUx8I8wCVO CnD9rRAfU6qkh657ZcuvL/iLoPdQADZOqQrS01C5XG2Z0BIyPmVdkZIKZbflm7zjy0 C50QccYmndSQpnOtYJ1RARHqpb/alF5InGtjACICYobt8VKEnZuKx6eBXQyi4i2Dn4 u/rB1+GmFe9hMJ2QU12vgthJUX3z2IF+EFV3XKrPZjYrmKY5iOnpXxNmAMQgITY5md UWDla4uYpRyLQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1DEB1601F5 for ; Fri, 18 Mar 2022 13:18:49 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bLIQiKDx"; dkim-atps=neutral Received: from perceval.ideasonboard.com (unknown [103.251.226.137]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 88AA3EE; Fri, 18 Mar 2022 13:18:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1647605928; bh=XP7aULoA2tQrmCCRBmDld8u5TjF7Spl85xESGlZNnZk=; h=From:To:Cc:Subject:Date:From; b=bLIQiKDxdltNKEoQGBLzjP5EQg43t1w7k8WqUKVGZpkiKn6opDztQbzELo03fdN1X Xa+uJeuzJxc0wv018Fe36aOUXSNoKttkGK23GT+hmOii9JesE+VMk7GT1q6pvj+x4n rQIsWh12ZYEN83lKHFJ8tCATqq9xwKTp5ErW3B38= To: linux-media@vger.kernel.org Date: Fri, 18 Mar 2022 17:48:24 +0530 Message-Id: <20220318121826.877187-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] media: ipu3: Sequence number fix and improvements X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Umang Jain via libcamera-devel From: Nicolas Dufresne via libcamera-devel Reply-To: Umang Jain Cc: bingbu.cao@intel.com, libcamera-devel@lists.libcamera.org, sakari.ailus@linux.intel.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The patch (1/2) fixes the issue where sequence number of buffers keep on incrementing during consecutive stream on/off cycles. The sequence number should be reset to 0, on every stream (re)start. Patch 2/2 is a just a drive-by patch while exploring ipu3-imgu driver codebase. Umang Jain (2): media: staging/intel-ipu3: Reset imgu_video_device sequence media: staging/intel-ipu3: Cleanup dummy buffers via helper drivers/staging/media/ipu3/ipu3-v4l2.c | 1 + drivers/staging/media/ipu3/ipu3.c | 25 +++++++++++-------------- 2 files changed, 12 insertions(+), 14 deletions(-)