From patchwork Fri Jun 28 12:59:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 168082 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3670052ilk; Fri, 28 Jun 2019 06:00:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS8VH3Re2y4PCNMKMyW29MimgNMNuyqD+NQ6YNQp/QQrSuKf8Ba+EcA36FcXI1GHEwl0D2 X-Received: by 2002:a65:4b8b:: with SMTP id t11mr874324pgq.130.1561726833989; Fri, 28 Jun 2019 06:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561726833; cv=none; d=google.com; s=arc-20160816; b=EmfmQKJwnaqyMcLQ9bqtcGLWY+56osRA+tRekuCJzNSPUtutHkSNwdsGEIG/h+Hur1 SYXhieavunfn61y70J8S2MT9orCU34z8DIEIHWibwVQauSZM5E4bW/Ro+t3tjH3OEZk0 2whxugFVGoxpZl3oAp+qhpUG3pKt6u9/F1wp6MtApKT4pu4TjUOkOoPTvjNJ6BBKv5ES G5dxf4uhIXahFqc3z3g7CY5ppyBUTg9Bhy4MSrA+zQqchNyqh3F7DXJhYthTOC80yDnn MpfHwadqyyKrKvOZdAVHdrW6g3MKbyLoX0ppWa5CUiXxmoNCxgc5713/ag74jvFMKF4Z Sq3Q== 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=Pjpd4K5w40M9bgj2qf6kIU4rY0+8OHMdLQZZ7HAbvAY=; b=nTpyIjbgxP9H3Js7KSbTdbFWSEteY0kRMJS3Z23CauW9M+dh8M4aEFB3C1gnWXCCeQ AuuDgYZ5lpr58gacie+et0EalEsGNP97jc94Cdzzt9grl2DFhwjW1IEYojyJEOu67PMv 4Z3VLrAqUzIstmvGGXfO11mlhbF1d5zNc32L1ifARfmH8cnqOVJPn8pNy+jkfOW0Ulip lSq3WTaTIUl4RVHbHDWPYo4yHwXLuo+NQOOmT0Q3zn+b8cVHhbyxDG0TgPdc8TLgUpLZ EJ3mqnBJV4Vo3oZqj0Y4TsOg6sHYWT4awOFebeaCwH9YBlVms4Aser9L+ecZFYegLV1z LxOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K0RLeb0O; 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 i97si2227196plb.50.2019.06.28.06.00.33; Fri, 28 Jun 2019 06:00:33 -0700 (PDT) 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=K0RLeb0O; 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 S1727176AbfF1NAc (ORCPT + 15 others); Fri, 28 Jun 2019 09:00:32 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50458 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbfF1NAb (ORCPT ); Fri, 28 Jun 2019 09:00:31 -0400 Received: by mail-wm1-f65.google.com with SMTP id c66so9042694wmf.0 for ; Fri, 28 Jun 2019 06:00:30 -0700 (PDT) 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=Pjpd4K5w40M9bgj2qf6kIU4rY0+8OHMdLQZZ7HAbvAY=; b=K0RLeb0OmILRaH2CZ+NQFp02nyKniVlM0wUXuTGYUTj+zax4tEho2JvJW3/T01SUPx E5QrmXbqe84laPUyXe3tFGvHWR5jKQdSThO2E8iNKBWQj/6m13MzrmrPk7iITNXTwbOx EYyAkQMKHi35A4uQEFbKCTX+Itj2KxIzLXrIIn0x0q6qG1ogfhATMC6wlE1jDpeeyz33 C4jxqJsdTAfj5XrSgKL+5cLnL4oCp2PLxYW1G4MQ3AJ07kEVPW1HaEKJn3fass68vqi8 E7DWLucOE8629dR6yzWVjXUt4B2Edr74iH4SZVbZ0LWt7fyfSYz40G5NN9sx7gBMHE9J t8bw== 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=Pjpd4K5w40M9bgj2qf6kIU4rY0+8OHMdLQZZ7HAbvAY=; b=efVqEGMfmnFaCpnxnwEwiFWqWduLJV1lmJjIs0VGYiG0UDP64dfVyBVkUA8Bp3JVvU 1M7lN/x3kt47sPk+RrvmgGIrlUx5zPEUeFpR+bYMAr8Lv5ddCpWmtmiuTGYArTMQGBP+ JJcILfPEZmBiEIMy4Fvv1s+4ICzt9xG3s5nbOo+X3JStavvHA1BmYBsO/P2bXSqZRMsf svLGAhVKujNpoleZUNicwBNFUZmhhPvoh6Ljt8KNO3uBX1e0wLEGzt1MzI1XvDqTHhpj y5atIBAdzz3xR0P9SH1rYOaoNewAwPGYpxTVnE50UKTID3nwmAtUW8KBY75WHCVlRGps q3CQ== X-Gm-Message-State: APjAAAWLi2w0F1bU3t031v0mdIamvpuiPivnlcwlleHCg11gLCCPXNjr mNtICxGBhGzNy0wSytZx7xz0dg== X-Received: by 2002:a1c:dc07:: with SMTP id t7mr7577395wmg.164.1561726829402; Fri, 28 Jun 2019 06:00:29 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id w20sm3717174wra.96.2019.06.28.06.00.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 06:00:28 -0700 (PDT) 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 , Stanimir Varbanov Subject: [PATCH v2 03/11] venus: hfi: add type argument to hfi flush function Date: Fri, 28 Jun 2019 15:59:54 +0300 Message-Id: <20190628130002.24293-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190628130002.24293-1-stanimir.varbanov@linaro.org> References: <20190628130002.24293-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 6ad0c1772ea7..7c5bf5cb32de 100644 --- a/drivers/media/platform/qcom/venus/hfi.c +++ b/drivers/media/platform/qcom/venus/hfi.c @@ -375,14 +375,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 b121cb1427ac..855822c9f39b 100644 --- a/drivers/media/platform/qcom/venus/hfi.h +++ b/drivers/media/platform/qcom/venus/hfi.h @@ -161,7 +161,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,