Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2248772imu; Thu, 17 Jan 2019 10:48:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Trd+1vyAkZz1O6YBqxZJ84m831ND8IdR6Txm+84Jd79JdOPln5TENKswyQ0cv1Xeh/WkK X-Received: by 2002:a62:e0d8:: with SMTP id d85mr15825049pfm.214.1547750923063; Thu, 17 Jan 2019 10:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547750923; cv=none; d=google.com; s=arc-20160816; b=iIWWdqQ3NkEInu3cXRYKsB3kvd0Ob85a0l1bmyblP3OdQ5Y+NUnDtZ2ImWcaJxJz9B nGkDtumijTrPqVSfJCJVb3zQ/2w+fsZA8+BXb7EEdZ2LwlN7w+6W3d7ZCroHcAlprUPW et2D99BWUt1dJHJuYvAxNTd8un5Iun9/z6GPV/JkrLtGMuHx2LIFbMPAGKl9XjouLu0w aF11q/+DM/E4q6B9lOlC1bifTHD84fhWNtaArh8PZQ8IZj9uR/Fr/8r8p+vFK9HxcnQP NnsVcXuYUzlQPCkQQvWTv7D/PzW7nTr/XKTgJAHwRNef39BM8rDRcsYZ4BkrOAHNI67A 0RuQ== 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=oAhIcaCtHOuBf++1u/NSYxhNFxYYwvb3WOeQJhJIBOlRtwmEMw6/xULL3fMO9JGctn xV5p15vEAhWQXYLiFDGBerJNtsppgBkvIFD9kTgANggk3XvkhdG4smk3O/nUR4/iDkel XEdUrvvfMkr/4rIkA0FE/6P78ns+r0e8NFk1kEG5cHripgpfDqDq6QGPNtmN+d/M1lyr 1mDgwuzplrfd8MTPUgbBUsO/Me3GFZDVlQj4nWqDs4ZJ9IRpaTBduN0uGhRVbci8g5u/ bYoydwm+q9oQ2q+ulMI7NlrAtNptrfUg8AZtLF0BZTvGA3tIc8DROAxPGN8a/mLptqHm eK3w== 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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 f21si2114432pgv.111.2019.01.17.10.48.25; Thu, 17 Jan 2019 10:48:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729327AbfAQQVx (ORCPT + 99 others); Thu, 17 Jan 2019 11:21:53 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33260 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729034AbfAQQVG (ORCPT ); Thu, 17 Jan 2019 11:21:06 -0500 Received: by mail-wr1-f65.google.com with SMTP id c14so11740753wrr.0 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=nQxaItckhQqEr9WMPbzvNRZaPKuECsa8r4geYiCWUmRBJehln3aAJ5yaqmeBz019Gd sWcfueRtPu7OXF4AilCTHAxIwnU24zqVcVCrpr7vbycx+AO331X1neru1+pgflvzkNhw 5nZ5v+i2QhP1TSet2g077WghgRG8CgmlBy1NluALA1dSaKPuy0TEcNEfUrico3pAn4CT 0WIwk443YewSmMWSEcBlWVxsI7AD/Ft2c0n8cDafM2HxPj6/MZ+bNBg0FExy/wV24tkq bOIoCFDX846AF+Df1lU0vVfDqeKGNGr6cdfFG4PLsXc+2/HKPk+GR05Tr/qYIkHDJ4t7 Kidg== X-Gm-Message-State: AJcUukemQ0AU7lbQVbRB7pX48BYjIdpUUEjHBJTSzRex9XMdX29Ev2C+ anQ4PxxZVkSl11FYbXYunJ9nqA== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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, -- 2.17.1