From patchwork Fri Dec 18 17:32:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 345469 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2335525jai; Fri, 18 Dec 2020 09:35:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+/DqpgDVUy/3MD/nyhoUt2mBioYHPVluQkBKIi5JSElq5zQgYCS0T2Q+mwMMj3tYQtYLP X-Received: by 2002:a50:cd9c:: with SMTP id p28mr5376891edi.83.1608312906717; Fri, 18 Dec 2020 09:35:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608312906; cv=none; d=google.com; s=arc-20160816; b=tWGjwBCwgdYZIq1dRL7fjJ6cSOtcMRJHUJEgiF40mnMkcxg71RbZaQ2cmjsxkSeBH9 m8L1560lP6LldfPBEqXx2q7GPvm3+bKIEz7sLl/BsF/m5r70M91riJZLVbjXBCKrx8oT P6dZ7XwtkwT+lTelxE6hy7MOSCHKqCqT46TWgyF5uWnEGFUcpkJ8RX859OrPGrBPbtSv /JFF6lxwtNj0i+/fYrLm9GmsMSFgTo6H6Mht4eBqMxEWe9jEm4pqqUKYh1AS5ZCuyTbw M0XBgrZgCPjxcJsbN9weE7zm4TClnXPmuhY9pcJR00QuThVECST5ezSRm/AD2KpzK4hX wdyQ== 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=txg4LgzTONgLC7bOinTZzbCI37JS2siLcSWFwbF15Qk=; b=F+SDMSb1gb0FUHDnHkYd45SfTUiw9cKo6ueh2k42tNOOZveSaOB2YHHu7YvSyPkpy1 /cuRDxCsQssFYPVudle+LWkZdfwSMT2LN9neYfKxyf/qQNdxXQRFoqSmacc8tsYftGed lZ7f96axapML3BucSyecDzRuHFHxT7AnzRDTujuWADXf8VqF9aZKgeR5x9ge3Io9hlRQ mMOe/homwyvRqCI6RWKcodmIvDTbONS2Q94GkOkLgdDvb3+EXst6CVXxZYbRM4O9KiA0 Hy7uy55y/VItP+1MezVJkXllVfB3gkM9SLkjb0PBKu5ypC3vPROGsLPA9+nopHgHXv4d 7ElA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FT1wjtnm; 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 t20si4902939ejd.719.2020.12.18.09.35.06; Fri, 18 Dec 2020 09:35:06 -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=FT1wjtnm; 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 S1732580AbgLRRdx (ORCPT + 7 others); Fri, 18 Dec 2020 12:33:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732480AbgLRRdw (ORCPT ); Fri, 18 Dec 2020 12:33: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 495E3C0611CF for ; Fri, 18 Dec 2020 09:32:35 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id w16so1736002pga.9 for ; Fri, 18 Dec 2020 09:32:35 -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=txg4LgzTONgLC7bOinTZzbCI37JS2siLcSWFwbF15Qk=; b=FT1wjtnmHCPECVPEQOVxWLN5IehXSRiI66FrjheH51idu4RnVyVuXK++01jSwEYClT KZcFQ0KFJhcsVGfoIH42EnumgM9kl6NEwU9q1v901FR335NFKd/uI3zQqmhFcU52+ZnU UrBN9FzQambsdleQEA8D+rYpufRq4QHqAZbw3u2I8hS4Ef79mMz71XebEFznG6UxpIN2 EKW/X23xQvlKzToX003uherA1MKSw08scJZVf8NMCxj1EVa/iXVQZ7+M7FUbWOoBQx5V bNimp0NbeQwOPco7XjifzHPkmZTafaMiWHnat4Mjv2WN1m2Z993yQZMHJGR4wx/4klCI C8QQ== 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=txg4LgzTONgLC7bOinTZzbCI37JS2siLcSWFwbF15Qk=; b=I3VJCLjxELXATrVoMTTKktAJm8bAmfqrTqNzhlq/BOS66HpNAkiPGUDaB/wbRCwkg/ H2HVqSANY2RhWPns4U43idx5jejPwp0cb0jHS23WVFLZTeKMJImtQxhXV1uGLjRbJZEr hSqEyNmLnzL4fsLVmSSuWHGqGF/0AvH2W6c7qX9XWpjDRj11f2gqVbFUkh6emW9ha/JF eSD9xVkuxZU31GYWxDZ4ouC71FmfoNitfE/f9xWiZZSuOnkxV5WzuEKr6GOyngLrH2/k IQAXbKbihj5FBpvMaDLtYlWMSbtw2NkpzbkhTpNz7QWVapElHizJJ2QaHFLSopcd/5V1 IOOQ== X-Gm-Message-State: AOAM531R1NRO4aLZoIgJW8244Knl5PjE6kGc3OVmGolRlNYIIYjmb+aE 6Abu8NyPEBE7wlKfH6Vb0l7xlg== X-Received: by 2002:a63:2060:: with SMTP id r32mr5077740pgm.129.1608312754801; Fri, 18 Dec 2020 09:32:34 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id l11sm9892957pgt.79.2020.12.18.09.32.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 09:32:34 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 04/17] remoteproc: Rename function rproc_actuate() Date: Fri, 18 Dec 2020 10:32:15 -0700 Message-Id: <20201218173228.2277032-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201218173228.2277032-1-mathieu.poirier@linaro.org> References: <20201218173228.2277032-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 f36786b47a4f..d0f6b39b56f9 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);