From patchwork Thu Feb 11 23:46:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 381062 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2495655jah; Thu, 11 Feb 2021 15:49:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLxBswLKAk/RQ2B1D0aQYfZLgT3c945lOnxtM0M02dsjY1ve0vUz4QoTdSuD/Vzzj49VRn X-Received: by 2002:a17:906:5d15:: with SMTP id g21mr145519ejt.373.1613087375337; Thu, 11 Feb 2021 15:49:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613087375; cv=none; d=google.com; s=arc-20160816; b=sxg5olC4a66WQy/DiMcAUKbIeW3mU6RwcaW4SFU38ICEKnx+tEbIitQZqcGZLxpgo3 u+CnIwBYFw18xlAj/6Ki8nkYwWJrxz6YuHH2S0MSeDbhpfSnvRKVEuLVzLnYg1lOJL7t nHWJg8LT3Y03fILT/I4sDvuIP/sCEO7BrBmRcRT6GMb9RmnBhtP3bak5pKQJKtjManMl 2FMVCvIhZsTZPSatTsdQrDLZAEg0wwSM6J2koEQtIANWEodoOTL936E28eo2cv+AIvKO i8tc500OeJ44+rjVH4SQDrdwWtV1OUpaECIPHLO9jb/O0RKQSwWo+eddpyp9UutxqP/W kKJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YVwpD5CH0CelKEAwKMStpJEFTfFplMOWTWmoESYAzz8=; b=ulhy5F+x5gSwWeJCH/jEmE/peoCOuMkyXlmQumz+bDKNSuhTnbST6JM/5B2FLqPTyi YVdTtm6YDUIYEwyXKK+YKpFRj4ZpctK7ggoyH9BGu5Pp1pfAZE3eMBo9IZdgyI1s+qj2 /7yOspiD20fewU7l9AIAWPGahqoCRTifZcsea4ePMI/7bIs/mUTJIN4fyQdc1xkFNxvZ A0zT9latXQmln3F1SgMdHMhM4TGXcDunK6m6/9r7NC/5dN4t9oQxXUQ0MQiIxHMe2siD a9CvkLMK3SbsLy7nFQz0EyJ5ZQqy7l+PaXPypj2I8nMWSFeynQMqZZvEVaVL33zK2TBm 4J/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DGff/4uu"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot7si4969638ejb.88.2021.02.11.15.49.35; Thu, 11 Feb 2021 15:49:35 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DGff/4uu"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbhBKXtA (ORCPT + 6 others); Thu, 11 Feb 2021 18:49:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbhBKXrw (ORCPT ); Thu, 11 Feb 2021 18:47:52 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5195EC0617A9 for ; Thu, 11 Feb 2021 15:46:33 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id z68so371735pgz.0 for ; Thu, 11 Feb 2021 15:46:33 -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=YVwpD5CH0CelKEAwKMStpJEFTfFplMOWTWmoESYAzz8=; b=DGff/4uueqBV64J8FXV9C0ktQMhytE8fE22awY+TatRLv7FtkrA9Kc4tsYtLKKxuGP o+R4IYpmLgqG8eKjOJNHvNKlvg+61tr7X7z8xJJm4J9NsxD4vK1cDtG/ZOQNnEUvUrea crEz+54bwN5hndjqALVOZNbtmdr8F3iltsshLoIn+XQoXgE6G7lQy54ZHGf8IdCfSurQ 8tXivkh3iagEJK2EatWZb9OH197Z36fRCzCk1UhXswAPCteM+Nja+5jdSmHsly0y/coo loDLJUJicOHvHdV14lDI/MB7ot7io9PYT/gcK5V9HBvaFSQ/Zkd7K6EMJGJKohCLr6QQ P2IA== 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=YVwpD5CH0CelKEAwKMStpJEFTfFplMOWTWmoESYAzz8=; b=N2Mj7GY16ZnnzTXbrOXpXLMNUqXkxHUGxKO+CktC3d6JKzaqkcWBK9ZNKThK3z/EEU oDBy6X1esv29caJ/Z7FdiuxQ4C4l21HTAIw+dzYb0wHVTPbd+vxCN93n6NW22zSp5wef W/dweio5/HQ9OwqSnFFGfEnMarrZvv4mvEKeWtGrQix+jtR4xquPzRwjamRRKvkY8TSL 6LNC7S+JBB9aKhlcUfvRAJhqvzaIs8qqIDLPQpwW4uSZM5b6u0okTvceF5hc3xMernh7 7O7ZY/glwsPVCttp35CKmcJYY2nB46BZBC1VLKQag8L2MP5oeDa2gf70vdq5V3kXB0z+ s9RQ== X-Gm-Message-State: AOAM530Hd+ZIeltePzuGLjQoenDWgztCVv5NmnJK730pYi2erb3GpYa8 MapYYfXIjOrA3Nx03/olOkJg6A== X-Received: by 2002:a65:4788:: with SMTP id e8mr542190pgs.72.1613087192761; Thu, 11 Feb 2021 15:46:32 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id iq6sm5932740pjb.6.2021.02.11.15.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 15:46:32 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, arnaud.pouliquen@st.com Cc: robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 04/19] remoteproc: Rename function rproc_actuate() Date: Thu, 11 Feb 2021 16:46:12 -0700 Message-Id: <20210211234627.2669674-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210211234627.2669674-1-mathieu.poirier@linaro.org> References: <20210211234627.2669674-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Rename function rproc_actuate() to rproc_attach(). That way it is easy to understand that it does the opposite of rproc_detach(). Signed-off-by: Mathieu Poirier Reviewed-by: Peng Fan Reviewed-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 86bd66955060..8afc7e1bd28a 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -1416,7 +1416,7 @@ static int rproc_start(struct rproc *rproc, const struct firmware *fw) return ret; } -static int rproc_attach(struct rproc *rproc) +static int __rproc_attach(struct rproc *rproc) { struct device *dev = &rproc->dev; int ret; @@ -1541,7 +1541,7 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw) * Attach to remote processor - similar to rproc_fw_boot() but without * the steps that deal with the firmware image. */ -static int rproc_actuate(struct rproc *rproc) +static int rproc_attach(struct rproc *rproc) { struct device *dev = &rproc->dev; int ret; @@ -1581,7 +1581,7 @@ static int rproc_actuate(struct rproc *rproc) goto clean_up_resources; } - ret = rproc_attach(rproc); + ret = __rproc_attach(rproc); if (ret) goto clean_up_resources; @@ -1802,7 +1802,7 @@ int rproc_boot(struct rproc *rproc) if (rproc->state == RPROC_DETACHED) { dev_info(dev, "attaching to %s\n", rproc->name); - ret = rproc_actuate(rproc); + ret = rproc_attach(rproc); } else { dev_info(dev, "powering up %s\n", rproc->name);