Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59CB5CA0EED for ; Fri, 22 Aug 2025 13:31:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BDB8810E110; Fri, 22 Aug 2025 13:31:52 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.b="1kQ5fUa/"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="DGa7CaZy"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="J+5fFfdo"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="UI2tWi67"; dkim-atps=neutral Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id E553A10E110 for ; Fri, 22 Aug 2025 13:31:49 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id EC9751F445; Fri, 22 Aug 2025 13:31:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1755869497; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iRgtKYXpmQ7OLqMC0m6SXmxG/t7VRs4PErRcdQ1KLJY=; b=1kQ5fUa/2A9Wx3qu2eRScqrWMmcOeK2iQcVQLC0Ds/+w1BFZLmLGdxk0eeEvQHASgz43mZ Iw4Kk+apETnfwnwqKVnsSs6W1r1lcPIyr2UH89LcfZxH7PeuIMnY4B9QCAJzDIlQhU4mf7 n1zS739SKF4p0XAtThMhos5lOn1GhWk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1755869497; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iRgtKYXpmQ7OLqMC0m6SXmxG/t7VRs4PErRcdQ1KLJY=; b=DGa7CaZy/SOgl1GK1++bT8LhFdu1UFKxTtVwkh1Z1PGoPSkTW3Kf5l0GGYz58BQB7JwJb4 uPAlpMVNzJzwmuBg== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1755869496; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iRgtKYXpmQ7OLqMC0m6SXmxG/t7VRs4PErRcdQ1KLJY=; b=J+5fFfdoobFHMVvXsb3A3cnp8a3nQdAnFrTlcEGaMGmtJXwDnA95udqSJlagW/F91rc7ZF bhDUzMw+AydszMe/9i+Rz5SVEP4voZS3Q8Sfq81MpYnDk8MawgNYuk6GA03hH110uR3Cxy XQwEguWYAL0j8dK1KoqeFejUNipRWJA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1755869496; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iRgtKYXpmQ7OLqMC0m6SXmxG/t7VRs4PErRcdQ1KLJY=; b=UI2tWi67Q0EzHReBE1MrsDNWFEpTq9H8i/fRPFgPV3CzOw/4f5N+nRfDYQjO1UTMZWP4BW USwBddgSdAapnZDQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B37E613A73; Fri, 22 Aug 2025 13:31:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id YA9hKjhxqGgneAAAD6G6ig (envelope-from ); Fri, 22 Aug 2025 13:31:36 +0000 From: Thomas Zimmermann To: jfalempe@redhat.com, airlied@redhat.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@gmail.com, simona@ffwll.ch Cc: dri-devel@lists.freedesktop.org, Thomas Zimmermann Subject: [PATCH 4/6] drm/ast: Remove unused SCU-MPLL and SCU-STRAP values Date: Fri, 22 Aug 2025 14:52:11 +0200 Message-ID: <20250822132846.25376-5-tzimmermann@suse.de> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250822132846.25376-1-tzimmermann@suse.de> References: <20250822132846.25376-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[redhat.com,linux.intel.com,kernel.org,gmail.com,ffwll.ch]; RCVD_TLS_ALL(0.00)[]; TO_DN_SOME(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FREEMAIL_ENVRCPT(0.00)[gmail.com] X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The ast driver used SCU-MPLL and SCU-STRAP to compute the memory clock. Remove the now unused values. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_main.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index 492cc8461eb0..41ff880cfdec 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c @@ -214,7 +214,7 @@ static int ast_get_dram_info(struct ast_device *ast) { struct drm_device *dev = &ast->base; struct device_node *np = dev->dev->of_node; - uint32_t mcr_cfg, mcr_scu_mpll, mcr_scu_strap; + uint32_t mcr_cfg; switch (ast->config_mode) { case ast_use_dt: @@ -222,22 +222,13 @@ static int ast_get_dram_info(struct ast_device *ast) * If some properties are missing, use reasonable * defaults for GEN5 */ - if (of_property_read_u32(np, "aspeed,mcr-configuration", - &mcr_cfg)) + if (of_property_read_u32(np, "aspeed,mcr-configuration", &mcr_cfg)) mcr_cfg = 0x00000577; - if (of_property_read_u32(np, "aspeed,mcr-scu-mpll", - &mcr_scu_mpll)) - mcr_scu_mpll = 0x000050C0; - if (of_property_read_u32(np, "aspeed,mcr-scu-strap", - &mcr_scu_strap)) - mcr_scu_strap = 0; break; case ast_use_p2a: ast_write32(ast, 0xf004, 0x1e6e0000); ast_write32(ast, 0xf000, 0x1); mcr_cfg = ast_read32(ast, 0x10004); - mcr_scu_mpll = ast_read32(ast, 0x10120); - mcr_scu_strap = ast_read32(ast, 0x10170); break; case ast_use_defaults: default: -- 2.50.1