From patchwork Tue May 15 20:53:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 135932 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp28264lji; Tue, 15 May 2018 13:54:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqs6Cq1K9ZnRQwYvDVF+jCjvG6w/nbzX4ELft/nmA5VxpiR3SDh0d/nEkGenrwG/bCgTlWz X-Received: by 2002:a63:31d8:: with SMTP id x207-v6mr13432780pgx.411.1526417682751; Tue, 15 May 2018 13:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526417682; cv=none; d=google.com; s=arc-20160816; b=ktsHcxnUuKjDYkP0KgG8XxqJE+IMRYmt90010PnEE9JTtfiI8D//86EuufjGX07eZk Yna8q7qnPwetJFVtXghH5A19ygat0Jwk2ANZIdzOReEsfEXHBmlKMaDuwCEu/J4+AXO6 RcLdOTjhRma4Uzsi8ZGWlsktiMOJNUvFXSJnnAOhWgt6QjqrJpYWN9dCZxTQWxgcWUbh MK9bkojU4yvGbbbJu6FxFfJBD0SCY5qtOTpC3N2KfbInGiuloQcs23fcwv+crefl30JC OtVqwrxYoPlCE8Uv6Ucyxfnwi92jiNsrA7v2K4Dcm0aF28WFUhNIGfoZbSCo7JmUu+bp qPqA== 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=nJJ8R5MJEX4f2cvyuWALD7kxLki+PWqpOrr/NPYCEZE=; b=a9JjXpIPSonRnHDD2juetEfp5BZoQXZhHzpwWcIUvVI75RTckhNaKHOnnt0tPV4H+H U+FZW66lLS2yF0gHhGdyHNOWS9Oz/lhEtU1nxmf5BZhKiYXf03nFiXBmR9fN1Ikf7c31 8VOHfMgkYnq09XLAszi/5o5rMKFlxbnOKcDndP8Su1+xByPRohS2u13LAdJpjbv4crFF QWLQ57Ucvt5YkPMpJQP5VkxkXkl8bPkmzIVS2yvAWQvxTRxHgYTJe1/S0k9PS2xNiYHu Lg+k+yWNRqp9sGg0sbAvlWvaBMTqLnwVizeZPz8Agf9Gh2TkctikHiG2VqIBEGKKf1CH c3rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P7+vpAfX; 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 r12-v6si918423pfk.83.2018.05.15.13.54.42; Tue, 15 May 2018 13:54:42 -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=P7+vpAfX; 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 S1752770AbeEOUyj (ORCPT + 29 others); Tue, 15 May 2018 16:54:39 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:55167 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752627AbeEOUx7 (ORCPT ); Tue, 15 May 2018 16:53:59 -0400 Received: by mail-it0-f68.google.com with SMTP id z6-v6so5060994iti.4 for ; Tue, 15 May 2018 13:53:58 -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=nJJ8R5MJEX4f2cvyuWALD7kxLki+PWqpOrr/NPYCEZE=; b=P7+vpAfXTIv+T+EpUU/OX8peYIBi1wIe0tJAXYQEUJ9a6uUTrGJAaIEvXq5hHh/JQ5 5pBDb/zIk8XHUMcJ4o8gObgU+SkzaKSeofnub4NhZv3r8X3g9Dg6HMErXbByNFl4JBr5 /KnTh2CIQ4U+JShWzVglkz5q86h3IORP2zk0E= 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=nJJ8R5MJEX4f2cvyuWALD7kxLki+PWqpOrr/NPYCEZE=; b=kPreN3YaHdQ8qVGBwqgdt2soMacDGTRtmPzko4ZyQdbuErNL4d0wAmEuRzAcF9qJvY yOr8g2ZyODCGA12sSK9biERu+bBxxNBL7/azt7Y4xxVpXOiBSENKLfJrWsgvJJIKqplL aOzTqgCqKhLyUxJBHuwe2AHTET6sbUMMmyuapB2icBzgbzdNw/MrXekW4GtXRdUEKBtm MxUqxIJBceAD+DVfYFCcgEb01EgelDrNmpR9uXIvG40kbdP46pTPb/4iVtKXwOeYdcsb c+QIPpP8fFD2eFa5urWC+RcWmB0D3vp9/4sQ913ZgFQ2fuDeCZeit12O2Nwd18NtA1I+ Hxvw== X-Gm-Message-State: ALKqPwcp2Y5MnVQIg+c4Ij/tZaE2wZHXTi5Ryhhyr/FwXJWnVnjbhmu4 o7MXWHMIlCHR3wim5U1ptty0CQ== X-Received: by 2002:a24:16d2:: with SMTP id a201-v6mr15974631ita.145.1526417638066; Tue, 15 May 2018 13:53:58 -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 t9-v6sm440407ioa.82.2018.05.15.13.53.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 13:53:57 -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 4/5] remoteproc: rename subdev probe and remove functions Date: Tue, 15 May 2018 15:53:44 -0500 Message-Id: <20180515205345.8090-5-elder@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180515205345.8090-1-elder@linaro.org> References: <20180515205345.8090-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 --- drivers/remoteproc/qcom_common.c | 16 ++++++++-------- drivers/remoteproc/remoteproc_core.c | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) -- 2.17.0 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);