From patchwork Tue Jun 26 12:11:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 139979 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5162742lji; Tue, 26 Jun 2018 05:12:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLtMaEEgO2CFl+RFMnlWy33eMi3ALCWXXqVQ1C8FWZovWIM059QDH2jUY9LTk1NZYghG/0j X-Received: by 2002:a17:902:321:: with SMTP id 30-v6mr1416626pld.122.1530015176611; Tue, 26 Jun 2018 05:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530015176; cv=none; d=google.com; s=arc-20160816; b=mxaWDOcPDsUqEKDPhDEpM/NrF+cTbPGt3PUAO9xtwmPPR7/F+sZ7pZASgTeItqnLnw gibOiP8Ee3kDpcn0nK/MHeEaD835fubrHNZsLEuSKuG7YkzSHdd8bXy5zAErEpJkImIs 7cfsjyTOZSBkRUTN9k9/6D4s5X4tkV3UvNKsukBaAdNaT6Ar1lYEVjZb0xsToC/sq80L Dmj0qLik7j23G8M50AsC1B1xZRH5yses2OEa/1U/PrlkAt8y/QGeo2UcPHbmrTOL+cSm MXl60WkP7Qt5KPAcUdGGd0fIwOl8zqTgyNItM6odcBx7E66TQsQE8mV1xRK5hcWHVYCT 8tGQ== 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=Dml+my2/w2gAe9jnCW4w4fKNsyHGv1cJooRXIxNvLLk=; b=X7BzI/gynyEo6srTSfSa9oTaM4QX2LBmuaBibhAJK8ql3bROtd7q0HgdjxxUSYssN/ 9xdIBVBuBrGfYSUWQEXhjN+QwCC4FqitOCUlSO8ctVrq5RsYcRtkvNtpoemlHdtFjvwN a43I9Vf6alRpRHkw9tjyhGpIN/ho436528TRg2mjGZG55lAMhsQcIQ0CAElEtUCqagKU QauRYF8/gsu4+KMTRh09FbNZv78HPzVzeRvxJTYo6vmxUmgam4eC2ATWiKiEd7OOaMnh W6si8W2qTnP9MAhpV2n0k8bQ3H+MvNqZwqwHv3CVvWn4MR1afDhzg/pD+DUGebuRDo5b VuZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DiCMCwDf; 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 m37-v6si1385714plg.491.2018.06.26.05.12.56; Tue, 26 Jun 2018 05:12:56 -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=DiCMCwDf; 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 S935421AbeFZMMy (ORCPT + 31 others); Tue, 26 Jun 2018 08:12:54 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:33728 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935265AbeFZMMO (ORCPT ); Tue, 26 Jun 2018 08:12:14 -0400 Received: by mail-it0-f68.google.com with SMTP id k17-v6so15191650ita.0 for ; Tue, 26 Jun 2018 05:12:13 -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=Dml+my2/w2gAe9jnCW4w4fKNsyHGv1cJooRXIxNvLLk=; b=DiCMCwDfm45FgCCaAFvtTkfORC+UUxgLHZLqQv03tB39ijXozyk/RevAsUjUzWXdrx yqLBjiuAKAdGcYUdPQgM5aOebBziH3lahdxuTjE7bqoEJsCg5alCnzyVy5Oj28KPtHh2 O6VWVxjkbqDT5gVWfsMLdRRuQDSRQOXJLci94= 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=Dml+my2/w2gAe9jnCW4w4fKNsyHGv1cJooRXIxNvLLk=; b=gcOk3jvVxG77A+br+ZH/Pkt6a6xVvBVh0bsAj7vNsy4tzmtpZzq0fD0DIjQw4E6vnu Zh2FB8nTGEkckvXJ2L8NrvMnw0rb5Lc6jXei2mmt8bq133yEaHZeqgz72X+FXGd5rlqB ZQu86Tb5H0YK//+YOzUtBv6vCrSLwwaCk/ZnDdujlk0XT6S2NDDQi7CsjrWWeJ6qxn+u 6foEhJU5muiURNuX5/QSD+Qj54SxjHaYfY0jw3xskitieYLHGi/gmn/azQ3qK1q6F+iJ pvyY9+mMlY8fH/fQ8HmxNxavg3qwaiaeNCn5lLoj9M8306pHYz80M3uWd+gmnMZlYKDA AQNA== X-Gm-Message-State: APt69E3HIaM3x3CkVmsI8xa07+JhiTWyUDzFVcbxYJPpuMg8RF/Oa18B CL5TJdnk3gzsQYEKoaWcHC8EsAdRHyk= X-Received: by 2002:a02:9bc1:: with SMTP id f1-v6mr1028344jal.90.1530015133228; Tue, 26 Jun 2018 05:12:13 -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 y62-v6sm902309ioy.88.2018.06.26.05.12.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 05:12:12 -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 v2 4/5] remoteproc: rename subdev probe and remove functions Date: Tue, 26 Jun 2018 07:11:58 -0500 Message-Id: <20180626121159.7267-5-elder@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180626121159.7267-1-elder@linaro.org> References: <20180626121159.7267-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. Tested-by: Fabien Dessenne 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.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);