From patchwork Tue Nov 3 15:28:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1393140 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=L+rhBqZr; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4CQYdf319Kz9sVv for ; Wed, 4 Nov 2020 02:30:46 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728850AbgKCPam (ORCPT ); Tue, 3 Nov 2020 10:30:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728513AbgKCP32 (ORCPT ); Tue, 3 Nov 2020 10:29:28 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DB7CC0613D1 for ; Tue, 3 Nov 2020 07:29:28 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id n15so19051211wrq.2 for ; Tue, 03 Nov 2020 07:29:28 -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 :mime-version:content-transfer-encoding; bh=Qv94/ZM3OqIsQyfdq7kooGkcEz2R43AMJBBXVeVvpSo=; b=L+rhBqZrPHu1hMk1B22ZMBfbmQcnJ0oxUE5hzZb5mz8WPKFp8Irm6wLb/BoAYAGObo tSxaPFW95ouiwZYjUWz278/JMULIRP2VPYu8BVG3gMLhowzjU3m+XAlKZq0sdsuest3Z 4eyOZt+VL1msl/6VEYJHesJUH30lpWqThKN0ZpxXmW2u6ccKslvvqCohzNBoAs+ineXA 2BPZb7V9KaRO4cz2r5AI5o9RdGz9AhpUsPQEX6w0jTgQ8t/+3pIBbn6rUsyhqCmwiREp XBTgfOHpWv0TYR0TJP2Rqc9tcZG50ye8Mr/me6NBbNksf36o+Eh1YwiIly8uHrviOnHh 1uaw== 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:mime-version:content-transfer-encoding; bh=Qv94/ZM3OqIsQyfdq7kooGkcEz2R43AMJBBXVeVvpSo=; b=Y5pFR2V32u18w25o8eBJRGJIiMnKD8QofYJaNhtzM+OMT4d5eoALKxc7iM4PFIyWMN Z2Qc1d6YZli0u9jZoW7TxJlNb+BVtuUUbXcs8GAP12fBXStTjYnj49A/Gh1mq92sWMXF ycUmPvTL1oIOsyET/0EVVANlHozDC4rdTWfeARER0Bfolno1pzec1Uctmyhji0MZfnwd TLkFHgpxawIwRxKzgZ071g/AFNhCBRVnkiCbMuZXdfA1T/X1XWpJvQt2HXUVW3BADv8K LPXSFCBz1Sv5YKSs3yd+tWKqHjQsYmhpU/m+fJfEwKN7jC8d7kUotoNV1MouXoenXZHr A8GQ== X-Gm-Message-State: AOAM5336L2v+aImsp41cU/zGO27B7+0YrOoKmOMGbjdTUknM8cUmD32+ 579NSy1RZqakjlzPA0Y5z1UzUA== X-Google-Smtp-Source: ABdhPJyi9NazTE0zqEusEgvnUgW6JGZ1Lvjk0NIvtCyycOcgTQlu920h1Fnh8OqEBdUqfddyju0fqw== X-Received: by 2002:a5d:46cf:: with SMTP id g15mr28534047wrs.342.1604417367277; Tue, 03 Nov 2020 07:29:27 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id j127sm3491779wma.31.2020.11.03.07.29.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:29:26 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org Subject: [PATCH 13/25] soc: tegra: fuse: speedo-tegra124: Remove some set but unused variables Date: Tue, 3 Nov 2020 15:28:26 +0000 Message-Id: <20201103152838.1290217-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103152838.1290217-1-lee.jones@linaro.org> References: <20201103152838.1290217-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/soc/tegra/fuse/speedo-tegra124.c: In function ‘tegra124_init_speedo_data’: drivers/soc/tegra/fuse/speedo-tegra124.c:105:38: warning: variable ‘soc_iddq_value’ set but not used [-Wunused-but-set-variable] drivers/soc/tegra/fuse/speedo-tegra124.c:105:22: warning: variable ‘gpu_iddq_value’ set but not used [-Wunused-but-set-variable] drivers/soc/tegra/fuse/speedo-tegra124.c:105:6: warning: variable ‘cpu_iddq_value’ set but not used [-Wunused-but-set-variable] Cc: Thierry Reding Cc: Jonathan Hunter Cc: linux-tegra@vger.kernel.org Signed-off-by: Lee Jones --- drivers/soc/tegra/fuse/speedo-tegra124.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/soc/tegra/fuse/speedo-tegra124.c b/drivers/soc/tegra/fuse/speedo-tegra124.c index bdbf76bb184fa..33747a2e54f3b 100644 --- a/drivers/soc/tegra/fuse/speedo-tegra124.c +++ b/drivers/soc/tegra/fuse/speedo-tegra124.c @@ -102,7 +102,6 @@ static void __init rev_sku_to_speedo_ids(struct tegra_sku_info *sku_info, void __init tegra124_init_speedo_data(struct tegra_sku_info *sku_info) { int i, threshold, cpu_speedo_0_value, soc_speedo_0_value; - int cpu_iddq_value, gpu_iddq_value, soc_iddq_value; BUILD_BUG_ON(ARRAY_SIZE(cpu_process_speedos) != THRESHOLD_INDEX_COUNT); @@ -118,9 +117,9 @@ void __init tegra124_init_speedo_data(struct tegra_sku_info *sku_info) soc_speedo_0_value = tegra_fuse_read_early(FUSE_SOC_SPEEDO_0); - cpu_iddq_value = tegra_fuse_read_early(FUSE_CPU_IDDQ); - soc_iddq_value = tegra_fuse_read_early(FUSE_SOC_IDDQ); - gpu_iddq_value = tegra_fuse_read_early(FUSE_GPU_IDDQ); + tegra_fuse_read_early(FUSE_CPU_IDDQ); + tegra_fuse_read_early(FUSE_SOC_IDDQ); + tegra_fuse_read_early(FUSE_GPU_IDDQ); sku_info->cpu_speedo_value = cpu_speedo_0_value; From patchwork Tue Nov 3 15:28:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1393138 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Qkv/V/cs; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4CQYd81pyFz9s0b for ; Wed, 4 Nov 2020 02:30:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728659AbgKCP3o (ORCPT ); Tue, 3 Nov 2020 10:29:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728657AbgKCP3n (ORCPT ); Tue, 3 Nov 2020 10:29:43 -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 D26E2C0617A6 for ; Tue, 3 Nov 2020 07:29:42 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id g12so18980613wrp.10 for ; Tue, 03 Nov 2020 07:29:42 -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 :mime-version:content-transfer-encoding; bh=MFpjk4zX/2wadqqqsM0maoUWA+IXg/GlxrDq3yCnAFA=; b=Qkv/V/csOn9qV3pYb6lVPgWvEdd3Ta8GDAq86IVNAUc3c0jR6XNImUocikmt93rRg2 h1Gyw2dnX6+eku//9wJYPUfZDgdiZRw8yMNfhxwLvZyJR7/rgIpW8JHwUhGw+JQ+/01l JRpT/oiFbltYm10ijlqHJ5+3lKj2M+nEQSvVXJe+ieToN2rbOJSYzmNLewUITApjxA99 KI71SXemg3k+zgI3lASOaj//Tf42Pjyc2/Da0Hc3n6eyPIypsQtkyzSNoDFQ8TpgLJfW O2nf19pS/jbIlnE9RfqOtyWG3BpGwjS5NSWttgumNXbln287Z4zPVmVQChWlnaCc47Uy Wm+A== 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:mime-version:content-transfer-encoding; bh=MFpjk4zX/2wadqqqsM0maoUWA+IXg/GlxrDq3yCnAFA=; b=PS2VzxFrJs/04+2USDSKNtcUaIvPmF3Cz03tMzqwEj8Gas9hxKVJ/O7BXWx+JwFIDF EDdhkcyXjPQ1TrdDWZqdHradR7dAlMTn6X3aWX3MNTxA1qNoLDfCeK30bEhotvLzGB4A 5/610MWNEai8v2pTO1nHsLQHIU8o1YbHzDs05bpRriMhnpOUeBupZWAj+c2qjhNZTKlI WcvtVGjaZuX1l2HdYrJeXgwmSxQJw9ZGh/YImLVGg2xufXAfdxIo1WVr68tegCRLpN/x ihaEq45m4snfLe6tDLSe5arFdB6oMJDifF3sRavsbp6zwWae0Vtk8vnGJjmzVUTdpsPo 4oqA== X-Gm-Message-State: AOAM532I7SULlxvv1vbRAqx+GyE+ni5xgQMcFLMuv+9j+QxmZYZeiVij iq1YpxWBAshVMWkNSWIoxCTNyg== X-Google-Smtp-Source: ABdhPJyApWsuQrwG87jrLEV9umSx+qWrIi0rU75XA05LIQc9vRCphOrnl1PsoRjfi3qvIDo9fZrhSA== X-Received: by 2002:a5d:664b:: with SMTP id f11mr25450929wrw.195.1604417381575; Tue, 03 Nov 2020 07:29:41 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id j127sm3491779wma.31.2020.11.03.07.29.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:29:40 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org Subject: [PATCH 24/25] soc: tegra: fuse: speedo-tegra210: Remove a group of set but unused variables Date: Tue, 3 Nov 2020 15:28:37 +0000 Message-Id: <20201103152838.1290217-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103152838.1290217-1-lee.jones@linaro.org> References: <20201103152838.1290217-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/soc/tegra/fuse/speedo-tegra210.c: In function ‘tegra210_init_speedo_data’: drivers/soc/tegra/fuse/speedo-tegra210.c:105:56: warning: variable ‘soc_iddq’ set but not used [-Wunused-but-set-variable] drivers/soc/tegra/fuse/speedo-tegra210.c:105:46: warning: variable ‘gpu_iddq’ set but not used [-Wunused-but-set-variable] drivers/soc/tegra/fuse/speedo-tegra210.c:105:36: warning: variable ‘cpu_iddq’ set but not used [-Wunused-but-set-variable] Cc: Thierry Reding Cc: Jonathan Hunter Cc: linux-tegra@vger.kernel.org Signed-off-by: Lee Jones --- drivers/soc/tegra/fuse/speedo-tegra210.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/tegra/fuse/speedo-tegra210.c b/drivers/soc/tegra/fuse/speedo-tegra210.c index 70d3f6e1aa33d..7f2cc09a00bbf 100644 --- a/drivers/soc/tegra/fuse/speedo-tegra210.c +++ b/drivers/soc/tegra/fuse/speedo-tegra210.c @@ -102,7 +102,7 @@ static int get_process_id(int value, const u32 *speedos, unsigned int num) void __init tegra210_init_speedo_data(struct tegra_sku_info *sku_info) { - int cpu_speedo[3], soc_speedo[3], cpu_iddq, gpu_iddq, soc_iddq; + int cpu_speedo[3], soc_speedo[3]; unsigned int index; u8 speedo_revision; @@ -122,9 +122,9 @@ void __init tegra210_init_speedo_data(struct tegra_sku_info *sku_info) soc_speedo[1] = tegra_fuse_read_early(FUSE_SOC_SPEEDO_1); soc_speedo[2] = tegra_fuse_read_early(FUSE_SOC_SPEEDO_2); - cpu_iddq = tegra_fuse_read_early(FUSE_CPU_IDDQ) * 4; - soc_iddq = tegra_fuse_read_early(FUSE_SOC_IDDQ) * 4; - gpu_iddq = tegra_fuse_read_early(FUSE_GPU_IDDQ) * 5; + tegra_fuse_read_early(FUSE_CPU_IDDQ); + tegra_fuse_read_early(FUSE_SOC_IDDQ); + tegra_fuse_read_early(FUSE_GPU_IDDQ); /* * Determine CPU, GPU and SoC speedo values depending on speedo fusing