Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3857695pxy; Tue, 4 May 2021 11:27:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnLRUsegSc36F31INl7e/n8aT/iQr1PVSxPFEKW4XEk7P6NGa1v99PB18hTJAQ/oC+prLB X-Received: by 2002:a17:90a:ae10:: with SMTP id t16mr30329225pjq.86.1620152854803; Tue, 04 May 2021 11:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620152854; cv=none; d=google.com; s=arc-20160816; b=eo+/F4W8eHOFgfB2Ng8oOjLajQTHiGVmqDArBsZzXcYr0P6asfxdOHoOtta/g1qXwJ qANRDbkQJSOQ8jWKvBz3yE0FTWlgoxpTzn5qcjCJdOl7Q8yl2IstmiyeLk4wp8avE2/D dSNtwpkUQD9RXiTH5cWs/vQcf1JjM2yQEp5ownkG69vdB5y0C3nOqZRlUunbvCwKyRoy C4SzwFMmhe4dI/p7k55eu+wlKXXazBZXQeurq0yZRiNJPSgakj2iubYOr2ZxOzxpGK9d RQCnyQuF8Vu7NTeAHg1+ynNk4Au9wsFpqVSnWYqHD0r16MFgJMEHZQzl7yY/EIPaQu/9 2h2w== 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=fzqlNtdsBiBaV00EBDfKVyKk5AQAycDnav35PwKqWQ0=; b=iWgPw4Lx8AjLrfpM0uhOCidVFDtON9/BjDzz/0dTbXSqHogm+rE2fPZbWaVSA4uGde QKYlgUtGn6n2tRA3PdDP2pQjJM52xuoV9hCDIlVQRdY/oR65tvlYt94ywdAh6Bmk4kgJ SQMR6g/dFWWRx5sK5x9sB8Dtjas1jGqC5+FiajiiQq44otworxhtS25Ju5+skFDjBAvh a1rgqac40xIb8nQNPElt6fvke4akxm8eaxLW3KPa/rIuUN6SFxU8dWCM7IRsEEnkprVm 8P+rY9cKhVapLarjI21kZProA+iMj4bFOeall7A7AqW7iz8KOfVRh/snsSmZVlt1hXpI HPlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D2IFQQae; 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 j8si18089220pfr.23.2021.05.04.11.27.19; Tue, 04 May 2021 11:27:34 -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=D2IFQQae; 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 S231608AbhEDQP6 (ORCPT + 99 others); Tue, 4 May 2021 12:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231538AbhEDQP5 (ORCPT ); Tue, 4 May 2021 12:15:57 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65B9DC061574 for ; Tue, 4 May 2021 09:15:02 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id 10so8142802pfl.1 for ; Tue, 04 May 2021 09:15:02 -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=fzqlNtdsBiBaV00EBDfKVyKk5AQAycDnav35PwKqWQ0=; b=D2IFQQaetYGhTlhtgYsrBpNy8AToFBTXn0Gu4DMlO8jGiDLYp7MFoZkzLYYHGnJgd7 Qf4CTsMEAqskVg6SBDu5oORhrj8S2g2cXmuLusfAuQtdoyJqKpXJ0HrOMyhP0AZYmdac M5v7vFPzePGp9Ona1e0nU8oycCySo2taxrJZ0EUmWqpSwu5LYXYBykeXCgawdmI5x+Xu gFQPcvq0Ia5frivFVfhAsAK8DSY5a8ySOEgbUn903V2dJlDXN67YxSZGi+cXVtVbytDh rwfFEE9xUHvNtrtN6ial9ZjztakMB1ZGt81T/AirJEjW2S1jFEfIFDRyvAYutHw4TjW1 7w4Q== 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=fzqlNtdsBiBaV00EBDfKVyKk5AQAycDnav35PwKqWQ0=; b=uO0Gdd47WtqMAzUb/sJxusZJ7jXgqLLhfOk7GxtmnIHfmm3rnXVO5B5U8u3JH0PvOp FkyaaHDjwrk7ZWN1FF3XIi5DLreZiKUv+7ySYugWqK0QO2xagUXdit81gygsC9JEiN7O jsGxszofVUlgY8vszglYjgQXgIugLX1Q46KcDGGmIPnJnUnFkqTDu1wTtnu7TqQTnzlv LuSNNyecELEIWDDxyK3Huaf/2dW/QTaYvsNdF5tHGUGjHhNfB855D6cq38UlJRWaZul0 n+OAgtDzBnUB8pcPw/dreXIj6yItCzQ/abdFX9nCkP81lWx6A7LWnzS+kKAq8rhU2ENt Rw6Q== X-Gm-Message-State: AOAM531cWOTNaklYCnZ6sVEIRSeHYNiZGORYXgv3KeQFRDIe7zUw2nTA 7zra5oKGryhzkbbEyI2qTVy+Dg== X-Received: by 2002:a17:90a:d582:: with SMTP id v2mr30182424pju.88.1620144901956; Tue, 04 May 2021 09:15:01 -0700 (PDT) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id 204sm2607767pfw.158.2021.05.04.09.15.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 09:15:01 -0700 (PDT) Date: Tue, 4 May 2021 10:14:59 -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 v3 3/6] rpmsg: Update rpmsg_chrdev_register_device function Message-ID: <20210504161459.GC1734971@xps15> References: <20210429135507.8264-1-arnaud.pouliquen@foss.st.com> <20210429135507.8264-4-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210429135507.8264-4-arnaud.pouliquen@foss.st.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 03:55:04PM +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 > Reviewed-by: Mathieu Poirier > --- > 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(-) > > 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 6b4d705b2dfd..6749e26b68fc 100644 > --- a/drivers/rpmsg/rpmsg_ctrl.c > +++ b/drivers/rpmsg/rpmsg_ctrl.c > @@ -173,7 +173,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 rpmsg_ctrldev_register_device() > * @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 >