Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp53515pxy; Wed, 21 Apr 2021 18:16:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbztjHTTNIjnmLhmb5Cv3sCS+9u12HMlwVhSNPmtbO8oW3QS3//nLBVciVVWM45i2zjZqX X-Received: by 2002:a17:90b:e90:: with SMTP id fv16mr14097319pjb.90.1619054197184; Wed, 21 Apr 2021 18:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619054197; cv=none; d=google.com; s=arc-20160816; b=kWveWeIhQNkJuqLvnNqIBE8TuZ7TGoDHAq5sjQQ4AfbpYlh/S8xeJXdZv7GwLbzVXp 6MrJmxjBx+6BCQMUMWVw0GRCDLex1x4BtFlEkwpyJ+PCyqGqpLM3VsGgaREOM2UdYn+u i6uu1kb3Geuyc1CbDZwWaQaQlGCnnb2MMBa0rCQYhf3b5YrsuotqrKsNB7TKzkn27aX2 M2hsGfwKOFNHny8vvZf0rkkEqS0MYPY6pTrIpC08HeEs4evl2khtw6gSWejPIielEYh2 aFIVF/P4ms677OxKtM/B3iwqzAWgV8Q163CnqnYfg+UGDCh7EKWbmZBGPteDWv7evSLX qufA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rTCdIGeW4Af6klHefq45nF+2qbz5fBGqc92alfd8T8Y=; b=n+SbhPkHq1c4dC+2IJTsY/sJgDKmYLw4X4ruqLN46laVvYzD1Ny/d0O5RqhLoBAwZA QtROQ3kYtOgTWDQJUm3vKM2l1GronttYdEnhjj2e/YXlSU/B1Pa1u8EuvZmUi/VOR764 DBYdZs3XGIIQ6Yh3q3GX6kguWDZW242H1dfSmjU/7Wl8ZhKt4AI1yirqTBG+CfbKs/cK 17nd1am00AAu5HAAroz+IEja4UxVmMQjVpZAt0EJbsMr+u/mIhaAimh813ffIY0hxtTl oZWNIBRKJB1F9q/OlZcDd4QVhuz14bgjNTMmWzGSNnSM14htjW/yisZ0Sl5O/d4ytmMr nN7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E2FuKRBn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g17si1382984plg.307.2021.04.21.18.16.25; Wed, 21 Apr 2021 18:16:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=E2FuKRBn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241224AbhDUSHJ (ORCPT + 99 others); Wed, 21 Apr 2021 14:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241559AbhDUSHI (ORCPT ); Wed, 21 Apr 2021 14:07:08 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE332C06138A for ; Wed, 21 Apr 2021 11:06:35 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id e2so17792176plh.8 for ; Wed, 21 Apr 2021 11:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rTCdIGeW4Af6klHefq45nF+2qbz5fBGqc92alfd8T8Y=; b=E2FuKRBnSVVwyyWxul22Sg0uJ1sl4/2F2CVbq/RZreNFqbrgmdrZG+IdbD48BaGgf+ RsjvCBWV3RAACDrwOl9XrP6biUgwm1GJTNBvJyPq0G/PynAXny6xdGUC2hY1sB9a9Sqq BwBhOrMzTvL3MOZWTzXZpcVodktfdx6Q6gpp3Fy9FNAK4Dv9YrZ6xBNmgMxWaCvgEt22 iqAne+1MX2ZfcTFarBk+reZzFqDZkIvdPVUlOpvla1GV/oQQhlTgUAIBgeZXEKCsJ7u8 zmrzacfa/rtlYiZRNVELL7GO2uAdsc6bFAKI3xtgjXG6WmGXTDHZeQE9WY19GhQSELFR VPDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rTCdIGeW4Af6klHefq45nF+2qbz5fBGqc92alfd8T8Y=; b=uhZAN+//AAbPKy4d3hihfXx2kjm1ZRAY39ggkswITxH69LJEUnGQQvoY4gUJ8jvvaz OKAGj2eFtWxp5RrEoR2reH6uvVgRscy2MLTP9wxicuG93i/ro9xyUebDSulxN3ZKRme7 16Wip83JkYQMptlg8PB3i/Kz9KMeDfe6vuaQi+E5tV4siArqDwVAG6DOmKLlPFveuovV UHxqgsxXVh6PkPjkzKHvpdgx0zHE+oW+ZIFG7EuR5vZPjbCeRkgnoHm2GB4G9hFIPJqe N0VRS6y2WS5HH03kZWXlW5uCosrl5WU7TEqy+T6PkBQyKh4nqS1SoiYhK+Yd5/lVN8W8 o2Mw== X-Gm-Message-State: AOAM530yQvzlABSP4cY+1dSy5QDHoiUmMGbmhR67OsX0X72Hxvw0f/j7 1A5vBHE6ULOxJyOA0RKdBoWbgg== X-Received: by 2002:a17:902:778f:b029:ec:d04d:4556 with SMTP id o15-20020a170902778fb02900ecd04d4556mr4259318pll.43.1619028395305; Wed, 21 Apr 2021 11:06:35 -0700 (PDT) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id gc15sm2683421pjb.2.2021.04.21.11.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 11:06:34 -0700 (PDT) Date: Wed, 21 Apr 2021 12:06:32 -0600 From: Mathieu Poirier To: Arnaud Pouliquen Cc: Bjorn Andersson , Ohad Ben-Cohen , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH v2 3/7] rpmsg: Update rpmsg_chrdev_register_device function Message-ID: <20210421180632.GF1223348@xps15> References: <20210413134458.17912-1-arnaud.pouliquen@foss.st.com> <20210413134458.17912-4-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210413134458.17912-4-arnaud.pouliquen@foss.st.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 03:44:54PM +0200, Arnaud Pouliquen wrote: > The rpmsg_chrdev driver has been replaced by the rpmsg_ctrl driver > for the /dev/rpmsg_ctrlX devices management. The reference for the > driver override is now the rpmsg_ctrl. > > Update the rpmsg_chrdev_register_device function to reflect the update, > and rename the function to use the rpmsg_ctrldev prefix. > > The platform drivers are updated accordingly. > > Signed-off-by: Arnaud Pouliquen > > --- > update from v1 > - move the rename of the rpmsg_ctrl driver from previous patch to > this one. > --- > drivers/rpmsg/qcom_glink_native.c | 2 +- > drivers/rpmsg/qcom_smd.c | 2 +- > drivers/rpmsg/rpmsg_ctrl.c | 2 +- > drivers/rpmsg/rpmsg_internal.h | 8 ++++---- > drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- > 5 files changed, 8 insertions(+), 8 deletions(-) > Reviewed-by: Mathieu Poirier > diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c > index 05533c71b10e..7d7e809800ec 100644 > --- a/drivers/rpmsg/qcom_glink_native.c > +++ b/drivers/rpmsg/qcom_glink_native.c > @@ -1642,7 +1642,7 @@ static int qcom_glink_create_chrdev(struct qcom_glink *glink) > rpdev->dev.parent = glink->dev; > rpdev->dev.release = qcom_glink_device_release; > > - return rpmsg_chrdev_register_device(rpdev); > + return rpmsg_ctrldev_register_device(rpdev); > } > > struct qcom_glink *qcom_glink_native_probe(struct device *dev, > diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c > index 8da1b5cb31b3..d223e438d17c 100644 > --- a/drivers/rpmsg/qcom_smd.c > +++ b/drivers/rpmsg/qcom_smd.c > @@ -1113,7 +1113,7 @@ static int qcom_smd_create_chrdev(struct qcom_smd_edge *edge) > qsdev->rpdev.dev.parent = &edge->dev; > qsdev->rpdev.dev.release = qcom_smd_release_device; > > - return rpmsg_chrdev_register_device(&qsdev->rpdev); > + return rpmsg_ctrldev_register_device(&qsdev->rpdev); > } > > /* > diff --git a/drivers/rpmsg/rpmsg_ctrl.c b/drivers/rpmsg/rpmsg_ctrl.c > index a5bb9ed97f32..059c228d0045 100644 > --- a/drivers/rpmsg/rpmsg_ctrl.c > +++ b/drivers/rpmsg/rpmsg_ctrl.c > @@ -180,7 +180,7 @@ static struct rpmsg_driver rpmsg_ctrldev_driver = { > .probe = rpmsg_ctrldev_probe, > .remove = rpmsg_ctrldev_remove, > .drv = { > - .name = "rpmsg_chrdev", > + .name = "rpmsg_ctrl", > }, > }; > > diff --git a/drivers/rpmsg/rpmsg_internal.h b/drivers/rpmsg/rpmsg_internal.h > index a76c344253bf..8c500a8f29aa 100644 > --- a/drivers/rpmsg/rpmsg_internal.h > +++ b/drivers/rpmsg/rpmsg_internal.h > @@ -82,16 +82,16 @@ struct rpmsg_device *rpmsg_create_channel(struct rpmsg_device *rpdev, > int rpmsg_release_channel(struct rpmsg_device *rpdev, > struct rpmsg_channel_info *chinfo); > /** > - * rpmsg_chrdev_register_device() - register chrdev device based on rpdev > + * rpmsg_ctrl_register_device() - register a char device for control based on rpdev > * @rpdev: prepared rpdev to be used for creating endpoints > * > * This function wraps rpmsg_register_device() preparing the rpdev for use as > * basis for the rpmsg chrdev. > */ > -static inline int rpmsg_chrdev_register_device(struct rpmsg_device *rpdev) > +static inline int rpmsg_ctrldev_register_device(struct rpmsg_device *rpdev) > { > - strcpy(rpdev->id.name, "rpmsg_chrdev"); > - rpdev->driver_override = "rpmsg_chrdev"; > + strcpy(rpdev->id.name, "rpmsg_ctrl"); > + rpdev->driver_override = "rpmsg_ctrl"; > > return rpmsg_register_device(rpdev); > } > diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c > index 8e49a3bacfc7..e42234a3e2ab 100644 > --- a/drivers/rpmsg/virtio_rpmsg_bus.c > +++ b/drivers/rpmsg/virtio_rpmsg_bus.c > @@ -840,7 +840,7 @@ static struct rpmsg_device *rpmsg_virtio_add_ctrl_dev(struct virtio_device *vdev > rpdev_ctrl->dev.release = virtio_rpmsg_release_device; > rpdev_ctrl->little_endian = virtio_is_little_endian(vrp->vdev); > > - err = rpmsg_chrdev_register_device(rpdev_ctrl); > + err = rpmsg_ctrldev_register_device(rpdev_ctrl); > if (err) { > kfree(vch); > return ERR_PTR(err); > -- > 2.17.1 >