Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7062074rdb; Fri, 15 Dec 2023 17:17:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGu9iozSQlw8OCIT6QAZ8za2Kr07FsH30rXGZp6vObjySePuY/DTO2kVDVcicK51SV2QkS/ X-Received: by 2002:a9d:7589:0:b0:6da:4726:c803 with SMTP id s9-20020a9d7589000000b006da4726c803mr3612681otk.30.1702689440444; Fri, 15 Dec 2023 17:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702689440; cv=none; d=google.com; s=arc-20160816; b=rGYBJh3Y2Ze5OvYEabo+mw4cWZzShq1k/G1AtrjvrgPTROntrZYIXVltXZGDB2H8j4 EFrQkksEUPd7nj21RPWidZ1bFZq0F2vD2M1ziw805O1mrGS4ZH+7c9B3BgeX4/Hv0RDE +ru2HIPq0sqMH7jmamoV/M+zvZEwO+3IkoqG1t/Cpf3Ktqy2M6rMLzESoENri/iS6cMD JFk2TafnFnkLMHzxfF1qpd60W0kwJxak5ZxxtYq36wCZwE6rTG1RArkVjJTAcsi0stse 3oQshRgmF9qsnJx5myaHQNpak4a9rfocQApNR5rvxX+86iNkXHG+XMJS68tLbkskQZyl K2nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=yP0AbeXSfeUXZudkeila08rngpu2QYPT2JDGjWhUsik=; fh=oxRMXyy+mP0PgcGR2fL1jbEFGnlHS2LjPpSH0P/+rpo=; b=TMvfKYDb8WbakNM8zi0T/iEiZk/wRuSI5MqBO0Jt7UZBo3y0nu5jkygNlTAGQj68JG nFtF9ySUQBAWNb9PayEGXgTPakqFzBO1Jkwb9moyRxEcl7v1dMM8nx09MbLHc8bcRemr EElG8eb6A27w9o2ESE7YeR0sLclmMw4chhBfPArTWPuV7SEnYZ4W4C4SiE11XwjgbGnn ofzn/rfbZBanC4uHJFdCvhUEWoJnxCk1pH7j9c5c4NOzPfHTUPf3zehrs85vMvHHFHLM qwrHyOUv74D+Jv8wqstVlDdvm6N8waz1U2AAOUnvnAqrLnW/W1ugHM9aNiYB+ZdgXal/ MY3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IHSwmXTB; spf=pass (google.com: domain of linux-kernel+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z11-20020aa7888b000000b006ceb1a0fa60si13921957pfe.8.2023.12.15.17.17.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 17:17:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IHSwmXTB; spf=pass (google.com: domain of linux-kernel+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 57B17B23F25 for ; Sat, 16 Dec 2023 01:17:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74702110B; Sat, 16 Dec 2023 01:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IHSwmXTB" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 066411852; Sat, 16 Dec 2023 01:17:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702689427; x=1734225427; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mkZmks8ROVSmnV6+EMeQT+TwjHNSjsWx9+cU31FtD2k=; b=IHSwmXTBVCJsXa3DENN+jy3QTJN8fLZOHxQ/B+v5nEdraowSvaMYBPHT WWq73QnLnjnqcTQvI8G9KO8JO2/5llaegoMRY9IE7nqpW2aBNWhwQgCPk 6hUISqbAMR9dkdC4tq6zAS2twDEqJsLp3dxSvycgGNrJhf90RrOJodxvq un78zSi1zRlJEninVrt6Pub3Q6oHpc1OIM354sZIvH6k7OLIfKLII+87A b44BxeG8eVi/dHf8m+OUWBiV/kOR9Jqyr37wem4aX/bAz8jDTyY4E5OG1 yOaw73xqr64sReC2INuFmD2Z2OstJprZn4+twUTzpZA3qtqAyg8GvdjNG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="395086355" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="395086355" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 17:17:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="809164137" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="809164137" Received: from simmons1-mobl5.amr.corp.intel.com (HELO rjingar-desk5.intel.com) ([10.213.162.133]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 17:17:05 -0800 From: rjingar To: irenic.rajneesh@gmail.com, david.e.box@intel.com, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, markgross@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: rajvi.jingar@linux.intel.com Subject: [PATCH 2/2] platform/x86/intel/pmc: Fix in pmc_core_ssram_get_pmc() Date: Fri, 15 Dec 2023 17:17:02 -0800 Message-Id: <20231216011702.1976408-1-rajvi.jingar@linux.intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Rajvi Jingar Passing PMC_IDX_MAIN in pmc_core_pmc_add() adds only primary pmc to pmcdev. Use pmc_idx instead to add all available pmcs. Fixes: a01486dc4bb1 ("platform/x86/intel/pmc: Cleanup SSRAM discovery") Signed-off-by: Rajvi Jingar --- drivers/platform/x86/intel/pmc/core_ssram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel/pmc/core_ssram.c b/drivers/platform/x86/intel/pmc/core_ssram.c index 3501c7bd6b33..55e54207987c 100644 --- a/drivers/platform/x86/intel/pmc/core_ssram.c +++ b/drivers/platform/x86/intel/pmc/core_ssram.c @@ -287,7 +287,7 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset) if (!map) return -ENODEV; - return pmc_core_pmc_add(pmcdev, pwrm_base, map, PMC_IDX_MAIN); + return pmc_core_pmc_add(pmcdev, pwrm_base, map, pmc_idx); } int pmc_core_ssram_init(struct pmc_dev *pmcdev) -- 2.34.1