Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp271973lql; Mon, 11 Mar 2024 02:05:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHxguA5oXCNA30V/U/8XpC6uHHMSKM2xPe3DMCJv/jEl4qRoPgEcDc0mqqG3Kct1ITM38jY8b0Lz+SHABjL2ICQyPfGUesL7X7ssGOUQ== X-Google-Smtp-Source: AGHT+IE2RoWClFFJLnNan0wo+tWEH8iolfM4++GvvbhFkf8bQETZ8J1WDV0KZ7eChP0PQnxO5awZ X-Received: by 2002:a17:906:16d7:b0:a45:5bc1:ac35 with SMTP id t23-20020a17090616d700b00a455bc1ac35mr3371834ejd.30.1710147948191; Mon, 11 Mar 2024 02:05:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710147948; cv=pass; d=google.com; s=arc-20160816; b=Wm3kJIe/guoON96bkqaSnNc4lePc6C3PKtg0sjdl4L+H2phipKHOui4iyE4EoolwfW ODmZUym0jY5DsAUm79WZttk3jKCY3AK+AcNmp2P9zW6tlZPAtR0z8TeTCDudFZAaq1CE bbFlmgh3+rSFlQCDfwcta9+GAQu4LNS1FAB9Ly9n5p/GHku0h5PNo0e3cO6uNv+fb/5E mgSRFb8CGJqSZAArU9HwTo45gJQtKWiN378M/6UYo7gLxGg1VFDlnlDD47n5gXhQMp+3 2mznqYE/I5IRiqzN1X3H5SQ9jhEUbeLYCg5/wIGcdZEOidDsX0yXW/5fC7ASrpmMakGK UOtA== ARC-Message-Signature: i=2; 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; bh=elDbWTkvyj8LtjiK07kwGN4CZifLNA8jXb/OI4pMJXQ=; fh=uiZwmHqn9DcJQOkhydnGXQnZf3rWqY/ycbEkowweOXY=; b=IQ73pM3oreDgMuGJNJcu9lES4IFV04tezCG+4yfA7zPPhXzB6YZ2wtm4ZqXCZlqBMt XawifdFVXj3sxVQ4gR1t3CEUzZFt5rg4QpTsvbxaa/gTu0uxKjCFA90yoFxi2+RL63MW e8OhjDDOh1rzLSCKnmb/phJmCFzAMdbi41sO0IIrKI2qhs0QRxZxTLdMtQy76DhvuNqk 5dyYPuneUg+2ZrzRU20jmB+TAEQqOFu6iZYxogCDTxgQb+JSXnyINhrFRL7kljWmPD9F 3XLIbDr4himTlDKmpy6oqSEqe1lvBwMMhnstxbUJBWwLw4efcB/b7l5scC86PzleKHfG Vqnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-98577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dt10-20020a170907728a00b00a45ceff2392si2327804ejc.707.2024.03.11.02.05.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 02:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-98577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E5C5B1F2111E for ; Mon, 11 Mar 2024 09:05:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 010F7171D8; Mon, 11 Mar 2024 09:05:36 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F8241642F for ; Mon, 11 Mar 2024 09:05:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710147935; cv=none; b=KgU/IAuhcW10dWO8csEw1nHPTZvAPtE+Iqyj8tanbGzVrXzmymXzPFUzZvlFBuBnew5R4A9eVXWaP/kGSAwV+26t8t2X5381eCFalYByWUjnUZpeFfl4pdCVZossv5XU9+aZtj+dkDZEDE1OsjLXZWCj5tWD4C2RLekvSBS6v54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710147935; c=relaxed/simple; bh=su16VxET9iVNmavI6//qHIJdZH7F9u4t3Pf80tLZtR4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Em9+SCIqW7o3Vg9GEmb8U4XEKRQbcxVxihAYVZ333croLpYrINtKvMDxhq1/+PUC2EbrDZ0TJXxdK/K1TnYeXVKqnZwxNpTADGHXpe88i+WCXn4ZYhAmg2c7StRltCWYP7w4GxGQTCm5qGV3Ga6HiW3dweGAux9BKlfcwnc4F2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D351AFEC; Mon, 11 Mar 2024 02:06:09 -0700 (PDT) Received: from e126645.nice.arm.com (e126645.nice.arm.com [10.34.100.133]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D6CD63F762; Mon, 11 Mar 2024 02:05:31 -0700 (PDT) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Pierre Gondois , kernel test robot , Dan Carpenter , Sudeep Holla , Cristian Marussi , linux-arm-kernel@lists.infradead.org Subject: [PATCH -next] firmware: arm_scmi: Fix wrong fastchannel initialization Date: Mon, 11 Mar 2024 10:04:12 +0100 Message-Id: <20240311090413.1710725-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.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 Fastchannels are initialized with a bad index in: commit 2441caa84aac ("firmware: arm_scmi: Populate fast channel rate_limit") Fix this and provide a correct index. Reported-by: kernel test robot Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202403100744.7Op3PI8L-lkp@intel.com/ Signed-off-by: Pierre Gondois --- drivers/firmware/arm_scmi/powercap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/powercap.c b/drivers/firmware/arm_scmi/powercap.c index ea9201e7044c..1fa79bba492e 100644 --- a/drivers/firmware/arm_scmi/powercap.c +++ b/drivers/firmware/arm_scmi/powercap.c @@ -736,7 +736,7 @@ static void scmi_powercap_domain_init_fc(const struct scmi_protocol_handle *ph, ph->hops->fastchannel_init(ph, POWERCAP_DESCRIBE_FASTCHANNEL, POWERCAP_PAI_GET, 4, domain, &fc[POWERCAP_FC_PAI].get_addr, NULL, - &fc[POWERCAP_PAI_GET].rate_limit); + &fc[POWERCAP_FC_PAI].rate_limit); *p_fc = fc; } -- 2.25.1