From patchwork Thu Oct 8 14:37:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 11823117 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F91D14D5 for ; Thu, 8 Oct 2020 14:40:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E01BC21789 for ; Thu, 8 Oct 2020 14:40:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RPfD6aui"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GidDfEuG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E01BC21789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=8tc3a9jgIIgnW4InVqpIOtV2WHWNVXvSdqkZuz2Muew=; b=RPfD6auivV3hBhJsG4t1jbqVt9 bUXqK9IL5ycHm1Rp/l+eys4TyWezNJuScqUiPQ3EqBGaDANCqb1ofQ3DAVro/nOiZN/cdebocmJP6 LB+GV+OFzVuQR9PrhzgFWpMHQWOpphgeCsdP3YYgtIL+/nzX3vk/vMQmmE5n81HW3YFo8nabux4Rq wuECtMHze+BEcLvv4DfF9279cOMDAEglwHzwA5MKpLZxWjQhuxduTiu4EMbIVz/i6xbSkWLf28BIb JDyvlLgYZCsNHK3iwLgclm13pdTIGD+nryRYG93Dk/1jOpcgj8xNCnJCoKbB58ZdSzeUO3IAnVSYT fJ5kJLuQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQX49-00006u-3F; Thu, 08 Oct 2020 14:38:45 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQX46-00005n-97 for linux-arm-kernel@lists.infradead.org; Thu, 08 Oct 2020 14:38:43 +0000 Received: by mail-wr1-x441.google.com with SMTP id e18so6873668wrw.9 for ; Thu, 08 Oct 2020 07:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=FB6oiqekxD6KQBOtL25AGTNlxj+owP0Z0d2XXT3CycU=; b=GidDfEuGMf0x3IVybYbsOdgEd2GBGFjOPiSoKOkDqPEEEswCD/uG4ZSPvdKOpsSRxh /I1cdDuDGudQhCVcqZO0KsXYDy4XELuJFg0702rdLRY+dtloRfVM0bZ9LikTfx4F7Eg0 KAM+7KANP9Jp19igWILZAuLdvMQiyPAjpuXuJeODcCBHhjn3oC88bHPdMTrOq6uALtCE 6EK0NyJedgiLZqVodlpMMb4h3ha+lncFJK0hav9SsYlBeD0QDW+w4+EIwHvZeH+digG+ I3NuWcd9hCf3doEjXkMLCHNiD9AUixRIfPum2DvtH2dnCOqUVwN4j0dSTK+hEStqPCm2 KuIg== 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; bh=FB6oiqekxD6KQBOtL25AGTNlxj+owP0Z0d2XXT3CycU=; b=gCF0HqJM8j9sO+/lgEaIke+5dFu20uMXZ/GJQjin0KMCJF4o/oVAVMRs4Vid/VVnmi 2ApXVU6PGlEJJE2Jr2cg7ioRcnST8M1D9hVqU5X1hQlAkBqQpN/IwqYoqYP09j5B2b/I U44amodJ/jmeg2Br7KPZFy20Uc7rANcjV9IMVNP4+5XxPxQf7qFjaVj+1oL/8Z20nDPx /js331FWok15sPbbwMSbgpibgz6uXqx/7sqBJNHAQwmob9OkUjM+TtkWtAJBn6wm8ilF hQVM81qG9HYrEdogQdvdL+LxogfN3YvZSocG41k/+be9uOpqse5Ihvg9Al06zdQTledj XNSQ== X-Gm-Message-State: AOAM533QTaVs92sauQ9kJd12waeJzFX6a/lvbl+HEEoMU0BooD6zET3z w/ar/WnMd3G7lYmdQtUya4o8ng== X-Google-Smtp-Source: ABdhPJwirUND1gx/xJWlOO2u3TXTwZvVIJX+XwyFjfELnyCZmUPsWbjhW2AU97TzEb6o9wp12Uv10A== X-Received: by 2002:a5d:424e:: with SMTP id s14mr10597990wrr.149.1602167920912; Thu, 08 Oct 2020 07:38:40 -0700 (PDT) Received: from lmecxl0524.lme.st.com ([2a04:cec0:11c8:908d:6533:9100:d943:8b22]) by smtp.gmail.com with ESMTPSA id y14sm6926942wma.48.2020.10.08.07.38.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 07:38:40 -0700 (PDT) From: Etienne Carriere To: linux-kernel@vger.kernel.org Subject: [PATCH 1/5] firmware: arm_scmi: always initialize protocols Date: Thu, 8 Oct 2020 16:37:18 +0200 Message-Id: <20201008143722.21888-1-etienne.carriere@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201008_103842_360378_253B5EF2 X-CRM114-Status: GOOD ( 12.66 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Souvik Chakravarty , linux-arm-kernel@lists.infradead.org, Sudeep Holla , Vincent Guittot , Etienne Carriere , Cristian Marussi MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Remove the IDR replacement that prevent initializing an SCMI protocol when it has already been initialized. This is needed when there are several SCMI agents that do implement a given SCMI protocol unless what only the related SCMI protocol communication is initialized only for first probed agent. Signed-off-by: Etienne Carriere --- drivers/firmware/arm_scmi/bus.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c index 1377ec76a45d..8ea04b069129 100644 --- a/drivers/firmware/arm_scmi/bus.c +++ b/drivers/firmware/arm_scmi/bus.c @@ -60,11 +60,6 @@ static int scmi_protocol_init(int protocol_id, struct scmi_handle *handle) return fn(handle); } -static int scmi_protocol_dummy_init(struct scmi_handle *handle) -{ - return 0; -} - static int scmi_dev_probe(struct device *dev) { struct scmi_driver *scmi_drv = to_scmi_driver(dev->driver); @@ -83,10 +78,6 @@ static int scmi_dev_probe(struct device *dev) if (ret) return ret; - /* Skip protocol initialisation for additional devices */ - idr_replace(&scmi_protocols, &scmi_protocol_dummy_init, - scmi_dev->protocol_id); - return scmi_drv->probe(scmi_dev); }