From patchwork Tue Jun 26 01:34:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 139910 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4639329lji; Mon, 25 Jun 2018 18:34:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLxhoikJAeH5Szdmn4NEpT5dT4cwdiunfUnNpFP3Osyu6McdY6skfb1zImRdvZwf6Pk8X1n X-Received: by 2002:a63:7983:: with SMTP id u125-v6mr12531462pgc.267.1529976881424; Mon, 25 Jun 2018 18:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529976881; cv=none; d=google.com; s=arc-20160816; b=Fb5iBgsGjRv3HS2iyTZmQz7BQ+0zyaqvDCCl3u2/hEUNru/FCY+NjPBdCCkYpW1GpZ DBRP5C+OYeD8Mv7oGkvtDKjlAzFxKXsNXyq4fC0xYS8WoeH+DI+nBe/Bur+HYo8jMOAs 9zcjVPjrBAYK2xN2sQKSQ5br+bFO0JMcD84QIhPpuYBw4rfNiyt8koOzC+mBZGvcCDWq fRLdAnc9q87vkgAMYoQVHy2OKhn+bJer9x0/C+Bko0jXxsr7sIgf2zxMAKh38ONx27ww xiapHn/XTjCg3v/v9w6YhkipDE+XyQSz3Ufk11eNzYvutpiebih9OuMpTBAIOYiT0V3L lPXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=o5QeWxqEpyDQcrAm1vuw7S6DJdzLkwTzI+oUogCtYFc=; b=QmdSwoFVo4ef138td9yukCFAbvdRDseKvqVf+ZO3mWuCcTrTFyCPYL0FFwKvaGygRP XpIt0ZFxBgHcs30zdHjczgO1sOvjD1KOkb2giUPdw7Q8rwoG2bGQZwnvGzG6t3VMF3WR hf+6GXxL3dVfXGJdNLXRnUw7c2ag9qsNk3cucih1Ugot6VvOPr1PGTuPOVU6bRU0NLFe RvDru/Q/jQwiI/uuvugBWhv7YA8Igv8298k/waW1L9vsjjCMk/uQFbNXDiD1No/c6j7B xEzOS3nFCTcN02zS/GBPE+QTNjywtBKiFove8BtdZL6yisOT3vktR3bGUxcvQMNeLl8c XWbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a2iYIYiw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x9-v6si377432pln.465.2018.06.25.18.34.41; Mon, 25 Jun 2018 18:34:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a2iYIYiw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S935356AbeFZBej (ORCPT + 31 others); Mon, 25 Jun 2018 21:34:39 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:50508 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935251AbeFZBeQ (ORCPT ); Mon, 25 Jun 2018 21:34:16 -0400 Received: by mail-it0-f65.google.com with SMTP id u4-v6so15306956itg.0 for ; Mon, 25 Jun 2018 18:34:16 -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:in-reply-to:references; bh=o5QeWxqEpyDQcrAm1vuw7S6DJdzLkwTzI+oUogCtYFc=; b=a2iYIYiwPtOpeNCYlUlNTatUvNE6Oj5HspI6iCRgaCMg2F+XOQZJneS9e4tpd0s78c fg6sahQuZ9IBcSsJI9ah24B0oMNOTg6EuEJimX0i68jiJZa7aNGGXXBglQIQvH4k5lDE gGE8LMuG9bvojv4JZKDASnXvmZwTwj8lE70/Q= 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; bh=o5QeWxqEpyDQcrAm1vuw7S6DJdzLkwTzI+oUogCtYFc=; b=HiQ3hOS2ihZpfxHSOKlafmRkjZ9nJMq0DjjMykih9nkNNvtoyH0rsRWOJHWCmPeE0B lGnWhb6KmZotk1vW9lspFI1OJ4AFGdkRpByI4E3rvI3ceDfC4eeToZH+zMn+aCtv0sFS YAZvXPTUl3VrceJE+8sk2TA+S/lI+U9j/M0VRO/V512n/S/8Wqc2ebu9UmXoC/p5kEK5 +YfURH4iy0zA1suMSM6F5sHkJBzSRoiA7gV5Tc925qAxxFJ4wt0V1XI/e3PlffJmYSrS ZFCDKe/UfZBaKxnW7ScGg8VbYb2AqPsHAt1fKBqJptsl5CiNXbOZbxBNlrXyJUUNbW3+ rIGw== X-Gm-Message-State: APt69E0hYFdVfw3Y9CpcrnUwP3aK5Lmo0qhBXEo7rJeDti3Ipl96dgXl vbaVCg+zUP/jEpi3Ab6SPBhbXzg0Wuk= X-Received: by 2002:a02:a999:: with SMTP id q25-v6mr11796857jam.47.1529976856141; Mon, 25 Jun 2018 18:34:16 -0700 (PDT) Received: from localhost.localdomain (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.gmail.com with ESMTPSA id h62-v6sm184699ioa.22.2018.06.25.18.34.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 18:34:15 -0700 (PDT) From: Alex Elder To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH resend 4/5] remoteproc: rename subdev probe and remove functions Date: Mon, 25 Jun 2018 20:34:08 -0500 Message-Id: <20180626013409.5125-5-elder@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180626013409.5125-1-elder@linaro.org> References: <20180626013409.5125-1-elder@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename functions used when subdevices are started and stopped to reflect the new naming scheme. Signed-off-by: Alex Elder Tested-by: Fabien Dessenne --- drivers/remoteproc/qcom_common.c | 16 ++++++++-------- drivers/remoteproc/remoteproc_core.c | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) -- 2.17.1 diff --git a/drivers/remoteproc/qcom_common.c b/drivers/remoteproc/qcom_common.c index 4ae87c5b8793..6f77840140bf 100644 --- a/drivers/remoteproc/qcom_common.c +++ b/drivers/remoteproc/qcom_common.c @@ -33,7 +33,7 @@ static BLOCKING_NOTIFIER_HEAD(ssr_notifiers); -static int glink_subdev_probe(struct rproc_subdev *subdev) +static int glink_subdev_start(struct rproc_subdev *subdev) { struct qcom_rproc_glink *glink = to_glink_subdev(subdev); @@ -42,7 +42,7 @@ static int glink_subdev_probe(struct rproc_subdev *subdev) return PTR_ERR_OR_ZERO(glink->edge); } -static void glink_subdev_remove(struct rproc_subdev *subdev, bool crashed) +static void glink_subdev_stop(struct rproc_subdev *subdev, bool crashed) { struct qcom_rproc_glink *glink = to_glink_subdev(subdev); @@ -64,8 +64,8 @@ void qcom_add_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink) return; glink->dev = dev; - glink->subdev.start = glink_subdev_probe; - glink->subdev.stop = glink_subdev_remove; + glink->subdev.start = glink_subdev_start; + glink->subdev.stop = glink_subdev_stop; rproc_add_subdev(rproc, &glink->subdev); } @@ -129,7 +129,7 @@ int qcom_register_dump_segments(struct rproc *rproc, } EXPORT_SYMBOL_GPL(qcom_register_dump_segments); -static int smd_subdev_probe(struct rproc_subdev *subdev) +static int smd_subdev_start(struct rproc_subdev *subdev) { struct qcom_rproc_subdev *smd = to_smd_subdev(subdev); @@ -138,7 +138,7 @@ static int smd_subdev_probe(struct rproc_subdev *subdev) return PTR_ERR_OR_ZERO(smd->edge); } -static void smd_subdev_remove(struct rproc_subdev *subdev, bool crashed) +static void smd_subdev_stop(struct rproc_subdev *subdev, bool crashed) { struct qcom_rproc_subdev *smd = to_smd_subdev(subdev); @@ -160,8 +160,8 @@ void qcom_add_smd_subdev(struct rproc *rproc, struct qcom_rproc_subdev *smd) return; smd->dev = dev; - smd->subdev.start = smd_subdev_probe; - smd->subdev.stop = smd_subdev_remove; + smd->subdev.start = smd_subdev_start; + smd->subdev.stop = smd_subdev_stop; rproc_add_subdev(rproc, &smd->subdev); } diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index ca39fad175f2..2ede7ae6f5bc 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -301,14 +301,14 @@ void rproc_free_vring(struct rproc_vring *rvring) rsc->vring[idx].notifyid = -1; } -static int rproc_vdev_do_probe(struct rproc_subdev *subdev) +static int rproc_vdev_do_start(struct rproc_subdev *subdev) { struct rproc_vdev *rvdev = container_of(subdev, struct rproc_vdev, subdev); return rproc_add_virtio_dev(rvdev, rvdev->id); } -static void rproc_vdev_do_remove(struct rproc_subdev *subdev, bool crashed) +static void rproc_vdev_do_stop(struct rproc_subdev *subdev, bool crashed) { struct rproc_vdev *rvdev = container_of(subdev, struct rproc_vdev, subdev); @@ -399,8 +399,8 @@ static int rproc_handle_vdev(struct rproc *rproc, struct fw_rsc_vdev *rsc, list_add_tail(&rvdev->node, &rproc->rvdevs); - rvdev->subdev.start = rproc_vdev_do_probe; - rvdev->subdev.stop = rproc_vdev_do_remove; + rvdev->subdev.start = rproc_vdev_do_start; + rvdev->subdev.stop = rproc_vdev_do_stop; rproc_add_subdev(rproc, &rvdev->subdev);