Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2003863ybz; Sat, 2 May 2020 12:46:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKbXPQfbPonpRjVqzj9uMOI74d60veY+9QNfer6hcA/b6ee+7e3eIDRpjPIs/BFxHIzO9ZL X-Received: by 2002:a17:906:4810:: with SMTP id w16mr8370344ejq.226.1588448777910; Sat, 02 May 2020 12:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588448777; cv=none; d=google.com; s=arc-20160816; b=PtyhvfGFe462tKmzTQYnS/zNMwFmhOXiaf8jWG3efffV0orgx+GhEuo3Q1sGf7tNcn 1T4RujBVXmilWk4rJj5Pl6zOiKZsAtmRZ8RPmG7Y7bjPEG+B4zKrG6M2gRb4imz0yqGi 5PNNUdRC/c0/cF4JcN1iS3aYYLo1FXa8CsnOYY3q4wCdKIObSngI2oOxpFrN87HOb9CD cWJ9Lzo68/5c2z9NaXKIgDxh3CIypHSdb2MyWakYax0oDTxiU0GHM32g/dFUFzPGGBxe aCCGRt8oz/rhaJzt7QHRzgK51Dby7gOjugnnJAktGNomBoA4eq3iAfGUPGIimDtn0p7E xKoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=CzAS92/gIVDVCtU/nlrZcCoacFpXKrv+S/G4vPnPz9w=; b=b1DNdU6wLRfV/wySZjwTXS544Jxg5gs8GdY9pkTKO0Op78rzdW62VfZqMP8H/V826F zOVwn5HxVUJkjk0JLViJQGKUAfB4NzVI6Zm0CZ8zoSpOkmxLzkrXnT+nTdNHWEl+2IdA 1YOSxPqBqh3l+TT5ugG7BbROwcgIY3zx3P/3HY0NQPFw7QgEZiwJxhtIQNE+vWQCv1zL AfHd8GVgjfzPeyCQdpHKMb4F/aInvwi/k9IEXUp8WZx3b3PcZSVBOuuN2RuXh0MZXxG+ gFGYsqkLR0pO02+CxJ/toMQZPq5/l0fdkOdL7H5f1ZNI0G/3kL9AG8x2ivrEAaZ1DfHH kIkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=CfM1ArAe; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si3684455edx.291.2020.05.02.12.45.54; Sat, 02 May 2020 12:46:17 -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=fail header.i=@gmail.com header.s=20161025 header.b=CfM1ArAe; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728505AbgEBTll (ORCPT + 99 others); Sat, 2 May 2020 15:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728472AbgEBTlk (ORCPT ); Sat, 2 May 2020 15:41:40 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D8ABC061A0C; Sat, 2 May 2020 12:41:40 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id i68so10709950qtb.5; Sat, 02 May 2020 12:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CzAS92/gIVDVCtU/nlrZcCoacFpXKrv+S/G4vPnPz9w=; b=CfM1ArAe0XOdhzIArrqdoBorCjqX6EzLXt79Vqaeh5dKDaPsb91Z2WaTRHTiTmL+hc Swae4YXaminVHGTtXUxTOQXtRGw4sWaQHo/uUhHiY3dfbg1lUcoVTBKTqH0HlcXdXh4A 8kUUgmGmkKzZu5Faq+hh7TWGsWaD4rbyX+FdFuyUHTKlFcFyQhZtFCQKJxAqwGsuLaOa YGNHQ/1Xbez/YjfywqiP3vfYVPk7mxq9wQhLAj9o5GlA/IwsYfBZSCpF0coqu+EWOrsj o09t8YSGSu3rGo29z5AMC7Hmwmmsc07DRm1/+wtYFhPtTVaLVw0scV5jrGWD6qMwEI5H w9Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CzAS92/gIVDVCtU/nlrZcCoacFpXKrv+S/G4vPnPz9w=; b=YOtjSrd1OT+6JS1Ihqo4O6uUcEVhcSv0jM4dqafCySGOu6tCmPPHkS5n7O7S5eysrL Vhl85QqBSQj16aVjFW1XuJno8qiH8/MQ/jyOhkSJCa7dkvURsdYpbPwXqkN9Of9Hc4hk YXOkuAhSJ7mnO5uniIkrGea4X81tG2YuVQnd+rC3A/Y6YxkHekNYtbndHedUZ5Mw9EIo hisfjMuGnytvvBNcErSxOyRiI/6aaSsNY8ugKW+MVPCiHQ32iCFXt7CPoVlsD3sAqYK8 o1q0P3dzsNmkEkKiZ85OpY1L0/mfWi+L8/Yg/8649IWO5+ta8HSUlfhcNEN+vvRtE2C8 JALQ== X-Gm-Message-State: AGi0PubH0pSSPRdld2d4SF7xjDggA8DimDn1/Rr0hrIkaPD7l96mGESQ WcN7GYQx12x43Uh0+gwnF7w= X-Received: by 2002:aed:2142:: with SMTP id 60mr10038261qtc.177.1588448499648; Sat, 02 May 2020 12:41:39 -0700 (PDT) Received: from localhost.localdomain (c-71-232-27-28.hsd1.ma.comcast.net. [71.232.27.28]) by smtp.gmail.com with ESMTPSA id t6sm5696709qkf.27.2020.05.02.12.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 May 2020 12:41:39 -0700 (PDT) From: Andriy Gelman X-Google-Original-From: Andriy Gelman Cc: Andriy Gelman , Kyungmin Park , Kamil Debski , Jeongtae Park , Andrzej Hajda , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer Date: Sat, 2 May 2020 15:40:52 -0400 Message-Id: <20200502194052.485-1-andriy.gelman@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andriy Gelman As per V4L2 api, the final buffer should set V4L2_BUF_FLAG_LAST flag. Signed-off-by: Andriy Gelman --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 5c2a23b953a4..b3d9b3a523fe 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -614,6 +614,7 @@ static void s5p_mfc_handle_stream_complete(struct s5p_mfc_ctx *ctx) list_del(&mb_entry->list); ctx->dst_queue_cnt--; vb2_set_plane_payload(&mb_entry->b->vb2_buf, 0, 0); + mb_entry->b->flags |= V4L2_BUF_FLAG_LAST; vb2_buffer_done(&mb_entry->b->vb2_buf, VB2_BUF_STATE_DONE); } -- 2.25.1