From patchwork Thu Nov 26 21:06:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 333058 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp1633975ilb; Thu, 26 Nov 2020 13:08:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDkHqyULBlpUms/l5CXHtFRt8CcgWEk4wk+g8VZvOS7fYKHxLZO6RIeZ01EQKoO7SreVZF X-Received: by 2002:a17:906:468d:: with SMTP id a13mr4448424ejr.253.1606424901748; Thu, 26 Nov 2020 13:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606424901; cv=none; d=google.com; s=arc-20160816; b=fLxhGA+bqKk/P2GGG9U53iq8r+V2C8U7UTpOOsQtp5wNb4VDqoAZTOcs/JC9R6BOu+ C+HZVOG8L9iHEEMhvLndoMjdfOsayi5ZHTevpJO5hByP8Crnsjl+C1PTAjGCftPQcxXk Z+jcy78lz2sCk1R+MbAk8DTiVv8mZh0pgpdPDj3Ibbt1TQQpabsvOV/8qgvm1Tvy4VN3 oTCo5VlDdfSEKXyiaZbsdRWP+0XYGchfi7VItDkVCnGvA8PcWg2MBUoOAJHc2gkleVQb zCHOHMUlsORiwQ8FSgKbznUwGODshgxQAprz40wlJQK/35SF7bGomc4NsmODRYGf2J8o D07w== 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=bQf9W2GrtRWRw1UMEUEbP7Yk66JacHQ8dUdbgr755jw=; b=vqi0+M3vKX0KJOnOOKBJi+1wrUwhiM7PTtLNAGeOF4GpUO7PJG+/9C/kbsN8CHUu0T gj9ryPWTFrZIWth0tZywCPxLaB8kpULbvr/GpeGkKA4VKhSUT+t2az9MLTR3gpp5WRU7 Vgqde/DTlwI9aBUopFXFFEEifwVPRZqnLJ9i4894CoHsgkIKZYlFCE/KAlVkcv4QrVxg RGDzyqJboiZmcTZU3Yj6gMlSA6oo5FTwxBL+8CuRVP9MlwFOBI/dQi/pWHoO7xFCS9I4 ssWJFUm+GqpGYrXYad4151Y0SPRcB6MpwmiYT9scbVrMvAYOz9LyPCZznhaoHHo1bOfy XWjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ROaGQAgM; 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 k11si3567033ejg.330.2020.11.26.13.08.21; Thu, 26 Nov 2020 13:08:21 -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=ROaGQAgM; 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 S2391565AbgKZVGz (ORCPT + 6 others); Thu, 26 Nov 2020 16:06:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391555AbgKZVGy (ORCPT ); Thu, 26 Nov 2020 16:06:54 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 464B5C061A47 for ; Thu, 26 Nov 2020 13:06:54 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id t8so2610217pfg.8 for ; Thu, 26 Nov 2020 13:06:54 -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=bQf9W2GrtRWRw1UMEUEbP7Yk66JacHQ8dUdbgr755jw=; b=ROaGQAgMsA/abXfS91CGQGGuQokMfOchYq5XVlU/8OU7aCMqmfxZCbQRQl7XA0eJ0e hNi8wP945LU5aw0+vIwQSKhLSZ2tN5y56TbEFyTNBdhLlIdX2MSApMNqqBGUZ4rGU7Ub m6eNo9+EKzc7PjAvaKUPmLPF6nQVZ02qw+0kyGA/ALcn4WkChxnwtrVpUKlUvNPlPhEw KmP8dEva90/SACGZjupGXY7E7Fc+SOunYw4CejxaRbEctkcJxukr0mgewUw6zfFcJazj lmMITQUkIby8vqYFAud7FL4iQWgHRwryKf7JYykGRf2Hb2N4jPpPYBxjOC+yDyba1N6j Xg4w== 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=bQf9W2GrtRWRw1UMEUEbP7Yk66JacHQ8dUdbgr755jw=; b=g0KyE3fit05VwEUI6ewtRxynEqI5+pFej1S4n9pZi7q28GU4bGtbkX/4l6NMUbhI2f IIDSlPbIAkPEtfcusPimJHTsTWUGUjIKca1MqYPcQ09lKtdc4Dh1qOlFJtjhG5KHi+34 Kasn2xevXQ41awASNDQns/YAbUa0W2+pkyoDl7KotZ3tH5IIpmR4ojwiXDDSN4JRlAVk DipORYcl9COap4LI7oTnIALtOfw2Zi4laEsBU5QkpqF1kkOjJlWogZdnAsQMeDSi4RLA 3nm/vfbGknONQpSF6zfgjxN5C5Nxi1MSCgFzHExwi/uOFQ39VLi9QkfBJ0Iy9UHN3ACZ 6iRQ== X-Gm-Message-State: AOAM532XvL97+uFpSQcS6bcIyP3iep/41mMb0NbzkQ8Vcdm04ET+z3kg /YVqaGaXbQ44oWfDECoz69p/Fuycql4cVxe1 X-Received: by 2002:a62:768b:0:b029:197:dea6:586e with SMTP id r133-20020a62768b0000b0290197dea6586emr4196300pfc.44.1606424813863; Thu, 26 Nov 2020 13:06:53 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id c203sm5612676pfc.10.2020.11.26.13.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 13:06:53 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arnaud.pouliquen@st.com Subject: [PATCH v3 10/15] remoteproc: Rename function rproc_actuate() Date: Thu, 26 Nov 2020 14:06:37 -0700 Message-Id: <20201126210642.897302-11-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126210642.897302-1-mathieu.poirier@linaro.org> References: <20201126210642.897302-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Align what was done for rproc_detach() by renaming function rproc_actuate(). That way it is easier to figure out the opposite of each functions. Signed-off-by: Mathieu Poirier Reviewed-by: Peng Fan Reviewed-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index f5adf05762e9..b54f60cc3cbd 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; @@ -1825,7 +1825,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); @@ -1916,7 +1916,7 @@ EXPORT_SYMBOL(rproc_shutdown); * * @rproc: the remote processor * - * Detach a remote processor (previously attached to with rproc_actuate()). + * Detach a remote processor (previously attached to with rproc_attach()). * * In case @rproc is still being used by an additional user(s), then * this function will just decrement the power refcount and exit,