From patchwork Wed Nov 11 14:37:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 323474 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp444546ils; Wed, 11 Nov 2020 06:40:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzijKQlidM8zsgG1f3JH6ho5qylnahl7J65l6DktBaCGJySeARIdJoC1UsQoxryhe+NY20j X-Received: by 2002:a05:6402:216:: with SMTP id t22mr26402177edv.190.1605105633856; Wed, 11 Nov 2020 06:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605105633; cv=none; d=google.com; s=arc-20160816; b=Xcn5Me9arW3VGlurZyk98AXbme5gIzXhm73LuSy8HDhVa/4w8KP6vFR9AnV5kXaN/S +gcsF+ZhJ7mYDtugMQRO6oggPD7uJXMI8MEE9lmWHuOmBv9X8l0cK4RDlgfvipxIaiZt MRX4gCsdAb4qrAjn28aq6Ooa7vnrc9U6DMVtE3oZbzZA7rilcuKW8WBAiSfHkp5LB00l bVu54DH6JfMXKPoDVSCNX5O0RZofuK3RUeZZYLb5PY6v5ZrdSmayj0ZyD0GmO6Brq6A1 xALEtXvNuxu9xHQVk0wZ+8x0oONZ1SrXIy2lk2wsTy36id9Ou+qCpD4ZR4Prw+fpu/zq nQow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=0wZVM3xTH0rIlT8FcnVb9p0qtohia4y51yWQ3iwO6GE=; b=Fxty2B+1dzH2tTRpGNUyIcG69mpFwVOWwQGDJv8Nu0PZI/YgdnXBvIwHy2Efak58vy YEvJTK5yaX0dl0CTwmIgP/wXvwFSVlDNIGXZUL/a/5sV04kjvnD2/AvoZa2wqWXEGtS5 jc6CHHcdz7g9okVEccGKozKJ5cieJzIFd4POhj72zyKI5rBQmPFkjNtmRXZfw/8lHu6+ EJFqFyNxRkIIvoSVoOT/w+/VJGD/GzSS4Shl0CC1iwwNngyKthDpC2IUvqtLtvi1cPNN LTowHhAPAGss5/o9Q2o01R3pOPSwXk7Z1zhm2gth1uaqm+/OtsN4bQVp/iZ3xilr0uFb cYmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RlEFTHP8; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id p89si1633489edd.109.2020.11.11.06.40.33; Wed, 11 Nov 2020 06:40:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RlEFTHP8; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 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 S1727279AbgKKOkZ (ORCPT + 15 others); Wed, 11 Nov 2020 09:40:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727057AbgKKOi0 (ORCPT ); Wed, 11 Nov 2020 09:38:26 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B51C0617A7 for ; Wed, 11 Nov 2020 06:38:25 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id l1so2738437wrb.9 for ; Wed, 11 Nov 2020 06:38:25 -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=0wZVM3xTH0rIlT8FcnVb9p0qtohia4y51yWQ3iwO6GE=; b=RlEFTHP8vmaXYUOiuFwsUx3f5yXYa4g1nViurvjIWCCsjb5FcrTms+0V4N/40jOC3e E8h2ZGscS5N5sLWUzfPCDdbCgfKIZ9uGbS+JMjA/ekvNSYu/77CAUSx+VtEJUnMm7l7+ 9hbZdB27+ZpQID+qEcIAaue0h5c5dL4cMa7PRLI0PWZ5waoq5xLOWsJmCc8weFbpMUXQ qwE2AIUHP3MVGb2a6Y8OhIg7alUEkSE2IdoZWwHsSx1Qk5Wbxjbu6zrK2vKV+46N8uv4 5v5gC4o9/Csshq31Znz4/i+Til1zX9EanBktZOG47gD8sSv7d7KD0NylmfrEkzKQO/ej gD9A== 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=0wZVM3xTH0rIlT8FcnVb9p0qtohia4y51yWQ3iwO6GE=; b=rYlg0Y0QFoYb/ErPKNU2w6JzAr+L5wyudE4KhMV3GTC+gV6394WKk02GL/J6jgAptZ yKksPtBgzK9DAN5YQ1Wi7KLWGfKrKKtTu7SJwthk643KwD9lGRW3jvEi+Lsx7ffLvNPW bqd+Ix5JfaOg6cIn1cyMPs74QXzdtTI99UctNTy6F70nIemO7N5T6ek0YfYreJQQebHi 9te6guuBP1NqsipWOICcoTvVZv17jok9wGcbjQZDlzhv5pLUW9N6Gkk9GCcv5u7XOx4X AvheAy+hnrwFhk7oKud4Zeaf0bVqQYUn0SKLouSdh9UsVX1uAp8f9+B5w6Vqcqakj5He 7x/Q== X-Gm-Message-State: AOAM532gojRFXZ0zAgzb8jfgFJvhomaQyErfqsKX8pMWmxAZDvRNlNVW QVHd+LO/RTMz2Ynphn2J/yZtq7FsrdnLS20Q X-Received: by 2002:a5d:42c9:: with SMTP id t9mr16483576wrr.13.1605105504516; Wed, 11 Nov 2020 06:38:24 -0800 (PST) Received: from localhost.localdomain (hst-221-89.medicom.bg. [84.238.221.89]) by smtp.gmail.com with ESMTPSA id b8sm2991405wrv.57.2020.11.11.06.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 06:38:23 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vikash Garodia , Alexandre Courbot , Fritz Koenig , Stanimir Varbanov Subject: [PATCH v2 1/8] venus: hfi: Use correct state in unload resources Date: Wed, 11 Nov 2020 16:37:48 +0200 Message-Id: <20201111143755.24541-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201111143755.24541-1-stanimir.varbanov@linaro.org> References: <20201111143755.24541-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org INST_RELEASE_RESOURCES state is set but not used, correct this by enter into INIT state once the unload resources is done. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi.c | 2 +- drivers/media/platform/qcom/venus/hfi.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/hfi.c b/drivers/media/platform/qcom/venus/hfi.c index 638ed5cfe05e..4c87228e8e1d 100644 --- a/drivers/media/platform/qcom/venus/hfi.c +++ b/drivers/media/platform/qcom/venus/hfi.c @@ -388,7 +388,7 @@ int hfi_session_unload_res(struct venus_inst *inst) if (ret) return ret; - inst->state = INST_RELEASE_RESOURCES; + inst->state = INST_INIT; return 0; } diff --git a/drivers/media/platform/qcom/venus/hfi.h b/drivers/media/platform/qcom/venus/hfi.h index f25d412d6553..e9c944271cc1 100644 --- a/drivers/media/platform/qcom/venus/hfi.h +++ b/drivers/media/platform/qcom/venus/hfi.h @@ -87,7 +87,6 @@ struct hfi_event_data { #define INST_LOAD_RESOURCES 4 #define INST_START 5 #define INST_STOP 6 -#define INST_RELEASE_RESOURCES 7 struct venus_core; struct venus_inst;