Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3296071imm; Tue, 29 May 2018 04:55:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrJfwfOb0zgN8HMXESxEpdInSw3fOndVzzUwm4niyeS09l/YOujz/zCQSEctSfftPCI7Hro X-Received: by 2002:a17:902:bc84:: with SMTP id bb4-v6mr16948250plb.84.1527594935344; Tue, 29 May 2018 04:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527594935; cv=none; d=google.com; s=arc-20160816; b=ysIi97Wg9aRIbmb+BtDz9XTFj1xzrcTnVHeg6yCbAeiQAL89S2WoUd1+Im5Jtgr1Dy KTbhPHZGZCoCjW/d6YQ8/ZiWGewz8zsyDFKu0RHeut3Kv1Di8AulaP5idLLCyMagptvU zrZ+EC21jZdKWGy/z2Jq3twz2i0xS5uXjppUVzahxHk3ejf4e9shqcSR+iNf+7ot+28k K7kB5VZYBEnGw9o5wnAQ0dPdbKGEuMR4U56YGKBOwbhQ8t9OBlZnd/KZtKvi4VKzBPLn kjNn7aUdLuSoTKJGGdaC7CZFPTx5CUVxUK3NWsr48q2iWil/ph9805Joxu94b6i9eDWY FCIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=rVevulWDhaNbLFkhTgmczrgHj39Y8Ymfxp/d662RbhQ=; b=NmswKKgt5yAGm0pdhGHG+11eLXjwfnPCLaYeIwTiz7Ruv4lzx0sV7jSfFYyYfffbWq b6t8e6Y+arbedLqM78Uy9JpYm+CcGNAMX/EaZ2Hj98QxIoo2H6aalaYUKwpZ6XbkefL9 P/xxlJRKMoCmt74ZR9NSA2sk9NyWEbbVZK4/KqA3ClTmnc4c/GUmgLPc9GASE08vGakH cCL7ZG+d94w6gYH0SjcVm4aC4kmcbje6paPym545K2VeUeJ0xOuvmBPDjVsrTVlxUYAf wq8v2dMyDWUR0FDh+DypRUZcHUm4teD9rrpxITH6B2DPPbWsZ8g3u4a5iJUzaAM4QdgO TgSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DH2mf67P; 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 32-v6si31698263plc.252.2018.05.29.04.55.21; Tue, 29 May 2018 04:55:35 -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=DH2mf67P; 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 S933610AbeE2Lxq (ORCPT + 99 others); Tue, 29 May 2018 07:53:46 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:39812 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933428AbeE2Lxn (ORCPT ); Tue, 29 May 2018 07:53:43 -0400 Received: by mail-it0-f68.google.com with SMTP id c3-v6so18122427itj.4 for ; Tue, 29 May 2018 04:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rVevulWDhaNbLFkhTgmczrgHj39Y8Ymfxp/d662RbhQ=; b=DH2mf67PfTJFx1IDVy0L/i7SzePWL9Jwz3EwnAdmme9N2dhmW2FO65ZLjiT/KkleWH TpZdDZuSlXamnbs10vsK0WZc9uESvd6IKLtgYz1rhARegfgnAEVFYwpPpOR7AOSuvn98 vWrbwzQ+SB0hXszH2HIhDZsZzAFoEHy4uUB1k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rVevulWDhaNbLFkhTgmczrgHj39Y8Ymfxp/d662RbhQ=; b=MsCHDUbfWfbp16OYZlzy3zaVqEIbhyXX78kCAjWx/5DhOPqM6EX1uH/RilF+L3PbN5 fbG2GHp9/ckPBWZjIcQRKLyaM2gPDkKTyh1/4OiEdeNxebNOyK3NzTSYZYXyEfxsxjaY uNRKHM3v8hVu/Y3FQcY1m4QW0mIDvjncpPfAqcfREII6saC0Xd4mhZJ/QLUtshN+xF8g 18+HLnLMrr9RT7Q3MCKU9cRJizxnXYd5pAHa+YMLKNgzcPjxe7+opDzqyC7tiKurQnxu FH54rVeRWeX9uHI8hEms3nTlvhn7PbI9BkaaGh9cUfiB2J30X2OpBER3pUwZvsmNgtxW RS4w== X-Gm-Message-State: ALKqPwdngMfYf+d0L3/5QhymzQtsIi2QMCT2N04N/AUaJD+zMvcNqqdc CCMqMu3GKzxVXC0jHmHCq9ObcwPcnvU= X-Received: by 2002:a24:fa85:: with SMTP id v127-v6mr14244004ith.130.1527594822591; Tue, 29 May 2018 04:53:42 -0700 (PDT) Received: from [172.22.22.26] (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.googlemail.com with ESMTPSA id k3-v6sm15954322ioj.55.2018.05.29.04.53.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 04:53:42 -0700 (PDT) Subject: Re: [PATCH 4/5] remoteproc: rename subdev probe and remove functions To: Arnaud Pouliquen , ohad@wizery.com, bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180515205345.8090-1-elder@linaro.org> <20180515205345.8090-5-elder@linaro.org> From: Alex Elder Message-ID: <726fa7c1-dab8-c1e5-721a-2f60d7f967d8@linaro.org> Date: Tue, 29 May 2018 06:53:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/29/2018 04:12 AM, Arnaud Pouliquen wrote: > Hello Alex > > > We have the same needs (prepare unprepare steps) on our platform. We > tested you core patches and they answers to our need. I'm very glad to hear that. Would you offer your "Tested-by" on these? On your comment below, yes, I will re-send v2 and will separate the core from the glink code. Thanks. -Alex > Just a remark below > > On 05/15/2018 10:53 PM, Alex Elder wrote: >> 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(-) >> >> 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); > > Could you split in 2 patches one for the core another, the other for the > glink driver? > > Regards > Arnaud >