From patchwork Thu Jan 17 16:20:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 155838 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2158696jaa; Thu, 17 Jan 2019 08:21:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN4dSjGUpDA430pkeCP751rJ2L6alonKlxpXJ8DH/O4GO5La8vUI/3mDCWFVA96mLuau77/9 X-Received: by 2002:a17:902:22f:: with SMTP id 44mr15450850plc.137.1547742069421; Thu, 17 Jan 2019 08:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547742069; cv=none; d=google.com; s=arc-20160816; b=nR1CL8PpnLymLHe82hDAy9e+JTOV7QYxa7q9GbxnP4Eec5+puXyrkNZqJe96ECSkci SbDkLYww3seQlXY1I4k2cvZktYGvN2Pzd5px394Hzz/ZcMCWdBBV0uTxl9yXLOLv/Pmx PclfPkHJp7BXIbaHzi4vCJ1zhMwl9v1YGaZ9/CXfx0Y7UOTg61hEUWzCwSxYNQOWgmjy EQ7BMY2uNHvqUfzxL+phdEI20VIvYNS1TaXcERgO8J0gw3szVcZjh6br4lUxIA1CwkZd hIgBxtJyhmWNGiJ/SBQjG5zwsABUdzOYkZ6Q791BF/3Ekhxx+D8nXmSrDlgUQbg9igOn Rtrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=aXeep5x7ETGFolIIRZohdiZMVYaJ9v3T7r4d/NZltdg=; b=hQHm6MoC9W70CWvOeQ8BOI6Eh6oB3pmH4p/GFjM7TZO1aMGtN4CRMbMQfgAoLrSWmz EU7KI8zb0LDsJL4KO89vqVXcSIRFXV8Sz6kjHcf8RWjzUahIK8JhiB9esql9ek4etnJ1 j0nNAkygh1GO3zv/QZM+kP8a8aAKsn3+TbvJ4ip9BKRsdhhp1fxznW7N3hSQFVrmpD/G iKRLoGMczDYjZmqrSCNaJwS1ztzAJXfz/mndCZMbaX1mFuXBTDl80XrgdAxoWzWR/eOY 1DcwXw5/fthU+qKpH19tNxPBmbojpskPdjSmHiSc+DJ+PUZAFe/T4fKGrHkJQ84LGkpa rAHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PRBmAB49; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c132si1916117pga.597.2019.01.17.08.21.09; Thu, 17 Jan 2019 08:21:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PRBmAB49; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729092AbfAQQVI (ORCPT + 15 others); Thu, 17 Jan 2019 11:21:08 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34116 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728675AbfAQQVG (ORCPT ); Thu, 17 Jan 2019 11:21:06 -0500 Received: by mail-wr1-f66.google.com with SMTP id j2so11749551wrw.1 for ; Thu, 17 Jan 2019 08:21:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aXeep5x7ETGFolIIRZohdiZMVYaJ9v3T7r4d/NZltdg=; b=PRBmAB49jSZAIg8mh24ykmR15+Iu/5sXiCDMYeUHOmk2GcLg8nlTpSwB1rA6YuJJxI epFkq42/j9nuo4wCqb5xVXToUmzoHuYqDdxWUAdnjYdcc6XVdS05wO8R/D0gGE/2ONoy y08UUdCde950E4kHPln95jtM7A5tntQFNA+BE= 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:in-reply-to :references; bh=aXeep5x7ETGFolIIRZohdiZMVYaJ9v3T7r4d/NZltdg=; b=reDb8s7H2xDqJQg3Dw9vVeoXdwzUvunSWmllhQoclao+Nd7l27YIe9KoSQH+8UZ3MZ wR92fWXfoY7D6zq3Gm6COf5RnUOXPSfY9THJe3vBnN1U6kOMCKCgvaAqhzf6uGK25Nff VHLxaChKkw//lALH/+Bj5zm0uIIO8vNuyifanZA6NWkT6fj4cDvMzn0aMUhR8QwZbO5z 2dLH/S1dBSou9VM6invvuacFBMtsJMAI3Pf421oXRx391qNfkuECNni06rjgjCL7UJbp YFhEND0Km0gZW3pZmD9r6afLmOEFPrSoM3NdG9bpTuGwrR7f4XaZtF0Q1V51/H47J3vC 4WTA== X-Gm-Message-State: AJcUukcA+gu6NnUagfFdDDqe7hpSv5PlxXaFIC1fyu4dbTgy8Manu7ev DuCRPNMwyx1a02KN3YsTCthNNQ== X-Received: by 2002:a5d:4d46:: with SMTP id a6mr12929529wru.28.1547742064717; Thu, 17 Jan 2019 08:21:04 -0800 (PST) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id v133sm31124734wmf.19.2019.01.17.08.21.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 08:21:04 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Tomasz Figa , Alexandre Courbot , Malathi Gottam , Stanimir Varbanov Subject: [PATCH 04/10] venus: hfi: add type argument to hfi flush function Date: Thu, 17 Jan 2019 18:20:02 +0200 Message-Id: <20190117162008.25217-5-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190117162008.25217-1-stanimir.varbanov@linaro.org> References: <20190117162008.25217-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Make hfi_flush function to receive an argument for the type of flush. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi.c | 4 ++-- drivers/media/platform/qcom/venus/hfi.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/hfi.c b/drivers/media/platform/qcom/venus/hfi.c index 24207829982f..0b3c4a2328e4 100644 --- a/drivers/media/platform/qcom/venus/hfi.c +++ b/drivers/media/platform/qcom/venus/hfi.c @@ -384,14 +384,14 @@ int hfi_session_unload_res(struct venus_inst *inst) return 0; } -int hfi_session_flush(struct venus_inst *inst) +int hfi_session_flush(struct venus_inst *inst, u32 type) { const struct hfi_ops *ops = inst->core->ops; int ret; reinit_completion(&inst->done); - ret = ops->session_flush(inst, HFI_FLUSH_ALL); + ret = ops->session_flush(inst, type); if (ret) return ret; diff --git a/drivers/media/platform/qcom/venus/hfi.h b/drivers/media/platform/qcom/venus/hfi.h index 6038d8e0ab22..a216914f88bf 100644 --- a/drivers/media/platform/qcom/venus/hfi.h +++ b/drivers/media/platform/qcom/venus/hfi.h @@ -170,7 +170,7 @@ int hfi_session_continue(struct venus_inst *inst); int hfi_session_abort(struct venus_inst *inst); int hfi_session_load_res(struct venus_inst *inst); int hfi_session_unload_res(struct venus_inst *inst); -int hfi_session_flush(struct venus_inst *inst); +int hfi_session_flush(struct venus_inst *inst, u32 type); int hfi_session_set_buffers(struct venus_inst *inst, struct hfi_buffer_desc *bd); int hfi_session_unset_buffers(struct venus_inst *inst,