From patchwork Tue Feb 14 17:31:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 57162 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3115853wrn; Tue, 14 Feb 2023 09:52:00 -0800 (PST) X-Google-Smtp-Source: AK7set94Axb0Jdeq0zEfyAanEVlkr9mD9vBrjYRXBor68UYJmM1yrvBGJZlc2rKGdHlKiBF9HIHJ X-Received: by 2002:a05:6a20:12d5:b0:bc:471e:b902 with SMTP id v21-20020a056a2012d500b000bc471eb902mr3081464pzg.31.1676397120091; Tue, 14 Feb 2023 09:52:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676397120; cv=none; d=google.com; s=arc-20160816; b=b0lagcnHGmwPKvdWSUSZrzGeB6r95Fj5riRbanP6vGQdDWI4mS0v9+92NM+jLQr6ue mtg3a8oBBT8y5IY+Rld0lwuOZC0YblLmkNSw6alvWX+OUNYL+siOsEB26hZ/y6RO6ufl hpFH8Fz6e5FfFVZVcCENN+PL3kMGY8C7WQ5tCEHRj/OCzXjqxWRGO8kOzUtHbX+3pSKc LmRYwvtIthMyrlheaW8wNOEH8GcuIs0xm9yPP0dv1+vqpaXI9tZqONJbJqqi2WKF3QCJ F9SR2F0pKZKh9Rwhw4zh4wB1C0xikppYFpoJ1rADOfWwjCQ8e7VY6Lo4l3VnXC5qnUGw 9zaw== 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=5ZAfO7IxAr14EAlhNtiFp5Qcd0YjV1Wu3mwyrUUlhD8=; b=oOjQ6I5BpaD1LvHQbjtu2bLh5YEqYMePl+B72588Xi+aJYnOfF4Mdcf5j1CEVDPqaw wJeICnaoSykHY9FElWUj1FzX1qGZ0amNnAaSjEhel+JH8fNsQepi2CcxnbbJzQGPwhv7 2EA6AYzctzSsvwOJLsXZe/VYpo8K0QG2lDBSwiMJ+Barq2UYZ4aQVSgPlGsa5ghgyfqI +irwSofLRiZJWtyFkEd0mRKHnZHdqvglhKlgobbgzVdQc1cQtT7tCG1WJi60rgDK5wdP zKuDu11LZSQvrHLYje09KZjnj9pD9JPO5jYIwO99rXwv8cK/kP8cbKtylm9RgxlPK7Or fP3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ba+7sakt; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020aa79f03000000b005a8d684c05dsi3345545pfr.271.2023.02.14.09.51.46; Tue, 14 Feb 2023 09:52:00 -0800 (PST) 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=Ba+7sakt; 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 S232341AbjBNRcM (ORCPT + 99 others); Tue, 14 Feb 2023 12:32:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjBNRcK (ORCPT ); Tue, 14 Feb 2023 12:32:10 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25B9722A1D for ; Tue, 14 Feb 2023 09:32:07 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id c1so14697825edt.4 for ; Tue, 14 Feb 2023 09:32:07 -0800 (PST) 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 :message-id:reply-to; bh=5ZAfO7IxAr14EAlhNtiFp5Qcd0YjV1Wu3mwyrUUlhD8=; b=Ba+7saktvdPC7xS2+pEh70ok/9U8dm/iKWsOe1jNXabzVeuaHbP4sqVAYuuyXr4Gs1 U4NLdEa9JojM+btfYFRbqR5/iY0nOJkxZRjm65BPwZmxdu3VN20pvcu28/tVHHtfidvk urCoZDHjuyVJAF8eZS582h6ySnE9393qYS9it6ySu5EIA3/TtsGjtkrUdagOnM7e92uP mfdnRCIvTFOHUxfmGwWJGJYP7UWMioXin0uj+Bo8WGIll2ppI6XYiNZMPWQphCXsbQSN VM0FlBQEAU3w++T6cn7+sHvOY1jE8eFFOSLwpi9Gs4QKxb4sT54UeOG8MORM0jfqfUmI Ta2w== 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:message-id:reply-to; bh=5ZAfO7IxAr14EAlhNtiFp5Qcd0YjV1Wu3mwyrUUlhD8=; b=mtJ0HilRKZTtT+694YVdMgLgPAu7EYtZtekyaKLm0Eh9Y2LnxpeOgyXroqXshpu7LK V1nYeTRdaFsJUdoAgV17wswveWBLtjPrwyx7b+2xRYbo1+0N/ANTf+uRO8O3H3U4kZC9 PoNbJcuvecwJc0hwfEy+lRY2CxmftSMbzGCwGITBdRgBLL5qdwpQ5RbuvRVvUq+mAaVy d+ydJdA63MTiY5AAjNT5SqEGJ92nZWL9t8Hd8XgZOVXCRosUgHrpsy2NnG8jo+b9yJJ+ VcOz2wZAwkR4YoXSQsN3UlpK3tDUaEsw3pN4bBXT/A+UfEXsGHeewGzQKBe/2g6qXKQ0 kiaQ== X-Gm-Message-State: AO0yUKUvjXLFmcAseeCvy6+32h+D6BXrqNdJ7SHSvpjIvNKupFiWs0Uw 3EYfBJiPdmnM+zOyC7WFNBf0CQQ4DZfN81eV X-Received: by 2002:a50:d49d:0:b0:4ac:c84b:1ddd with SMTP id s29-20020a50d49d000000b004acc84b1dddmr3473276edi.32.1676395915399; Tue, 14 Feb 2023 09:31:55 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id w8-20020a50c448000000b0049668426aa6sm8325787edf.24.2023.02.14.09.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 09:31:55 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Akhil P Oommen , Geert Uytterhoeven , Douglas Anderson , Guenter Roeck , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/14] drm/msm/a6xx: De-staticize sptprac en/disable functions Date: Tue, 14 Feb 2023 18:31:32 +0100 Message-Id: <20230214173145.2482651-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214173145.2482651-1-konrad.dybcio@linaro.org> References: <20230214173145.2482651-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757829786646571305?= X-GMAIL-MSGID: =?utf-8?q?1757829786646571305?= These two will be reused by at least A619_holi in the non-gmu paths. De-staticize them to make it possible. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 4 ++-- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c index f3c9600221d4..90e636dcdd5b 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.c @@ -354,7 +354,7 @@ void a6xx_gmu_clear_oob(struct a6xx_gmu *gmu, enum a6xx_gmu_oob_state state) } /* Enable CPU control of SPTP power power collapse */ -static int a6xx_sptprac_enable(struct a6xx_gmu *gmu) +int a6xx_sptprac_enable(struct a6xx_gmu *gmu) { int ret; u32 val; @@ -376,7 +376,7 @@ static int a6xx_sptprac_enable(struct a6xx_gmu *gmu) } /* Disable CPU control of SPTP power power collapse */ -static void a6xx_sptprac_disable(struct a6xx_gmu *gmu) +void a6xx_sptprac_disable(struct a6xx_gmu *gmu) { u32 val; int ret; diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h index e034935b3986..ec28abdd327b 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gmu.h +++ b/drivers/gpu/drm/msm/adreno/a6xx_gmu.h @@ -186,5 +186,7 @@ int a6xx_hfi_set_freq(struct a6xx_gmu *gmu, int index); bool a6xx_gmu_gx_is_on(struct a6xx_gmu *gmu); bool a6xx_gmu_sptprac_is_on(struct a6xx_gmu *gmu); +void a6xx_sptprac_disable(struct a6xx_gmu *gmu); +int a6xx_sptprac_enable(struct a6xx_gmu *gmu); #endif