Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1591484rwb; Wed, 5 Oct 2022 01:44:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7VF/TwuCXNiBbvkKC3ep5n8XbW78MlL+RysRZTzSF9UxOlLjz4axDHwDiTpe3FR28s05RI X-Received: by 2002:a17:90a:d914:b0:20a:a3e7:616f with SMTP id c20-20020a17090ad91400b0020aa3e7616fmr4010141pjv.108.1664959475906; Wed, 05 Oct 2022 01:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664959475; cv=none; d=google.com; s=arc-20160816; b=ug9EmDjJzzigLDg4g/kQFIbz7d24VrXrdNTcVh/0ci7HXVXMaECHb7J0WMQnX8aYY5 kTNip0G5RDjpxv96AmgrtG3T9BWPgWoJ/Q6HyIvYGhT1HjrtadV25I2PxD9+Fuhm7o02 DV9Iuh3JG30pdEFb9lsq6zhiwOYBiy5L4kL/CgKH1tjbMWw6oofuffu6washjGMaJRGO jHEA5+tA5rukBanrg9J0Nb2lsr4R031MpQCh+VV1ZtpXVDZuAW2JyfMFVMWopjecsmLe csnYuO7FRIq/yvErfaPv4E18C7zzsNY28xLSEbHEUju7aESOPHCA+nDGo+zmx7pCVSIC tILQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=q9iQElDOirbdVJ/B2wLi7+yO3Wyao1noVf51AiDgJFo=; b=oObti7j2FkyP69igeeCMnpvSPM0bOg//jsrt58XlA5jDw3fgV6np7YrXIcelPHeNxf ibUULhBqwsFy1/v918hFcLIZh8vYMvDvPpJbXLra7KVH9yLVY42U2FoEf9WwOs23LWhS FU1thp+HSLCawoM7qWfeP4M481CNkF8aX++G+yvb3d9r2cEbpt8fL7VKZOYoD48WqsI7 mVLbnP47FIy8JFeU+N2sjOzJwda8oAN/XX5VBSJasAS4SVxTwGZ0KLpzLxTNJN/pJyJ4 Btv2YnROg2pMA8Yz6gSGXEzi9W/dX2eVoOuDnQFAIUDrkDyszjBGIKTem7K/rl8HE8js maMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OlZtr53A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170902d4d000b00172ccaf0c26si17581202plg.134.2022.10.05.01.44.21; Wed, 05 Oct 2022 01:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OlZtr53A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230003AbiJEIiC (ORCPT + 99 others); Wed, 5 Oct 2022 04:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiJEIh7 (ORCPT ); Wed, 5 Oct 2022 04:37:59 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E99A72FDC for ; Wed, 5 Oct 2022 01:37:58 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id r13so3343253wrj.11 for ; Wed, 05 Oct 2022 01:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=q9iQElDOirbdVJ/B2wLi7+yO3Wyao1noVf51AiDgJFo=; b=OlZtr53AiAqaCEsScp6R2DjaV8/Fb58pybt1lgbnH1EgriiP6LztWPIzooExFSAD76 Z8j6s0Ka7MEt0NlNVNhmVGUxKgK386YUGGF8uTLnV4/TU6kklTCpZakSoMJ6xZGc7Jvl DiDAsgfgSZcKMovt4bsYV/+0fIPNy0UJjhFZ1kJFz+IhxB8mGC0iI97bCC7qZZ+Vodx8 3+TCboQO0Cty3kxXJA4GkLspQVRi8+fw/Gw1xWf42w/W92nYWuTVvvJ50BPwKl/0dxXD BIr6W8R2U1z0BXDEllV+CUVSoBPXzBBcxb1VJfV1Zr9r9OYjEm9InX5qKdpNZId3ncRo GP6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=q9iQElDOirbdVJ/B2wLi7+yO3Wyao1noVf51AiDgJFo=; b=Q/ka0RPklWzBMrUhKJZS4NJW8z+1fBrMXbY+kWgsBaL2PJzzfoa31ogMPIbyRfBOHE mdGneP5tZVSQjZ2R33xuOq8LdWL6X1ly+GvUStqpOXZaIP3I19z1vvHJJ62iw7WJBRKT 6R1Kk9uUu/cQzZzlaaa8pbfpqHXbCUT0EyUaKtcnaTrCvcZKI/thKgpCOiVbTAPPTxBi KYMjxzNAvzoPPFDlKoGeZluN6v9ZeR34xxSjgmH7nTo0XAsppidANEF9jBEE6y3Bdrvf mHs+IpJM5eqcPChfZhbsSqu5lOqA54q9qqoozsqH3Nf+GwMWsSfNrPEL/KIouUqtv0yd GUFQ== X-Gm-Message-State: ACrzQf348LibccAoRc6XcZgadzLyV5NjSmEXpLT8+/UkW37JNFrFvJZ8 P3G7zxGM+N6t+2hL7YHqMegadw== X-Received: by 2002:a05:6000:1acf:b0:22b:36ad:28e with SMTP id i15-20020a0560001acf00b0022b36ad028emr18582345wry.314.1664959077080; Wed, 05 Oct 2022 01:37:57 -0700 (PDT) Received: from localhost.localdomain (hst-221-6.medicom.bg. [84.238.221.6]) by smtp.gmail.com with ESMTPSA id g6-20020a05600c310600b003b47e75b401sm1318171wmo.37.2022.10.05.01.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 01:37:56 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Stanimir Varbanov Subject: [PATCH 1/3] venus: firmware: Correct reset bit Date: Wed, 5 Oct 2022 11:37:28 +0300 Message-Id: <20221005083730.963322-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221005083730.963322-1-stanimir.varbanov@linaro.org> References: <20221005083730.963322-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The reset bit for A9SS reset register is BIT(4) and for XTSS_SW_RESET it is BIT(0). Use the defines for those reset bits. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/firmware.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/firmware.c b/drivers/media/platform/qcom/venus/firmware.c index 14b6f1d05991..3851cedc3329 100644 --- a/drivers/media/platform/qcom/venus/firmware.c +++ b/drivers/media/platform/qcom/venus/firmware.c @@ -68,9 +68,11 @@ int venus_set_hw_state(struct venus_core *core, bool resume) venus_reset_cpu(core); } else { if (IS_V6(core)) - writel(1, core->wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET); + writel(WRAPPER_XTSS_SW_RESET_BIT, + core->wrapper_tz_base + WRAPPER_TZ_XTSS_SW_RESET); else - writel(1, core->wrapper_base + WRAPPER_A9SS_SW_RESET); + writel(WRAPPER_A9SS_SW_RESET_BIT, + core->wrapper_base + WRAPPER_A9SS_SW_RESET); } return 0; -- 2.25.1