Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp156722pxb; Tue, 23 Feb 2021 21:32:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzedvGWFnrPt0Js+iLfun5hsQlab9dGPNe3OOAMi60fd1QwF7w2otMT3vCIZvl5ghxMujb6 X-Received: by 2002:a05:6402:c7:: with SMTP id i7mr32128345edu.328.1614144738859; Tue, 23 Feb 2021 21:32:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614144738; cv=none; d=google.com; s=arc-20160816; b=M/vW1pm8BqmXXxjMdfyTCow1BUct3tU4j7AG66Cii6TKjabNaWBrRRqu4sROPC7iyI Wp1hwRe8CU6jVU0lHr9NoVGcqv5clCeo7PUBq9ACWH8RzDQDjHsEeQjfsNQ76BLa9JCA qlgyr/vPO4sIv8cCelkCmEcKtgR3NenCmW+99Ot9jItsJc19zoA/8PRe1H1vjjezOyVs gCP9cM54ZenjVTLrIWdXLxvKef00Cry+F+LEOJEzXvUmo6MRvB7uUbzJVw6lT6vCn9M5 xk9O8XhB/wc1866uHmmOfnDIVDvpkyN/qnvXukiHQ7Q7N7Jw8TJru+IF2gX11qnIHyDX fNKg== 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=eI1kKtC7UxMHnJr2s3EPvhdO8fxk/LLGwiTP5XOosV0=; b=vSuxoSPtWde6yZ3akoq8zqUaqUDGLl+ZE30B07w0QDlQq4HSmZ5XPf5txg4PElNrSa KD3jdSsumqGkJRLpfIBArinbj0mf5difKm51Kwib5J+Dpi5n653/hOLJPzhzehfYwDX1 X1wfZche7diF46ePHvjD27l2VR3zxzUtRGZT4oXHZgtHhb3ZEiSESwXgmiQ1hPGZo3f0 yzmuIhXl6/tT0N5Jt99Q/ykkEwJ/dgE5rHAaVsQp1/AehVl5Tmh7SAApDNJIc5M4w24l fuLvSFGJVyEGny1q5RUbBm9DxooamDYAKCs8KrkOSuFDBLDYNp3URtTxFGokuKBNw55q HgcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JYeh3wny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 dn4si749758ejc.635.2021.02.23.21.31.54; Tue, 23 Feb 2021 21:32:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=JYeh3wny; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S234392AbhBWXyK (ORCPT + 99 others); Tue, 23 Feb 2021 18:54:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232801AbhBWXhT (ORCPT ); Tue, 23 Feb 2021 18:37:19 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E30C06178C for ; Tue, 23 Feb 2021 15:35:19 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id w18so41966pfu.9 for ; Tue, 23 Feb 2021 15:35:19 -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=eI1kKtC7UxMHnJr2s3EPvhdO8fxk/LLGwiTP5XOosV0=; b=JYeh3wnybb4/m/UUR8LYuWcMywXegKKe2DxENoFrS8xZIgUWNzlNef/Jz6v/hiVsiP vQeR+YNRluWGmPtmVcduAElrCxHj/amtzcAQsk7k1opnA3cxk1NPbEEfW28RCmrCFU+i xinri+qaJjiwsZi+zvHwsgM6I4diKQaopxwU8k4vT4g4pPqHGollzxJtHQv+bfp2WUtv qcPJsmhxv+NsT4KYpMXyR77TxvcPjIZc2Zq2dF8STNuhPSr3n1dbBPBvmYz6z+LfOEEh uUNSv5lOQLVrFtQ81NC0TcOfgxgJloEjFPkP4RS2+8BeivYwe2Zr8/jqxEdYyVWy6qnP YnOA== 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=eI1kKtC7UxMHnJr2s3EPvhdO8fxk/LLGwiTP5XOosV0=; b=UWtfA3/QL6drm5F6aLXEDKv0ZlrSt2uThmLoJpzpkmBplnC7RqsTicZqo22XOnKsfb x4kkWnUfGOlxifQMf+iioorbVshmxGoVVoMEztQQxW1Oq8IiVh9zMa/pFIjVIAcmBROJ GT+9HFe4XOq515Ndg/dk+5mgzuifxAtHCiDdwxyMOHhG+EAEs369OtOonGQAQm6WK0Gt 6SOxPRXcvZIKpM0HTx3DkLudCtzSbAaADxyEG7ibixMcSxw2nFblNzo3rt+PmlhsMkV+ LNO83gCzs+ylPJ7+6Wah5isuOIb6OddGmlZhSfcg/y6jjjIAgY4L9PQ5zCYCUjZE231q JBPQ== X-Gm-Message-State: AOAM530k++vMhRCuNkODxFbrNX5A9zeuWZxKIIuC8pNPOvEXP7zvKA8A A3er0MNb4ONLKI1tIU/Qed9xQkIqHljN2w== X-Received: by 2002:a62:7c15:0:b029:1ed:9e29:5998 with SMTP id x21-20020a627c150000b02901ed9e295998mr12313479pfc.22.1614123319231; Tue, 23 Feb 2021 15:35:19 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id c24sm311999pfd.11.2021.02.23.15.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 15:35:18 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, arnaud.pouliquen@st.com Cc: mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 02/16] remoteproc: Rename function rproc_actuate() Date: Tue, 23 Feb 2021 16:35:01 -0700 Message-Id: <20210223233515.3468677-3-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210223233515.3468677-1-mathieu.poirier@linaro.org> References: <20210223233515.3468677-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index d2704501b653..7b66e1e96e4a 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); -- 2.25.1