Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1481560pxb; Thu, 4 Mar 2021 12:27:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyx1nTRGbYbRXJAnZYtCqCSFqIjnPFRNX82ifPHzsy9BjRe6pxLyhkXdguhyvN/nSaqPJUq X-Received: by 2002:a17:906:b80c:: with SMTP id dv12mr6398512ejb.110.1614889668877; Thu, 04 Mar 2021 12:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614889668; cv=none; d=google.com; s=arc-20160816; b=RcpI99n8nvjOwW+5+mKClrEmXk+Y+RbexxgMb3Y3DjQktlW4gqVSLn0/sdPxtZANZQ ZlnNkE3hcNWRb5TEpcRaF6yt8Y85KIbDRkc/TUjy+jZv/Jn9WHheUeNemT4hhCwawM30 i/t/JmIJwVwCb6zORMeOdvsjYO1FsonjCJl0BLIQa+KdWXjovsfakhOC3USb1Xrg7FRc 0EBUJDsbJYxM32zKa/X85K6AAfWi03rb3z2GRqFSIdlrzElKay/zud6Jicp1Y4VJExpf OGIdqavHdJCe0d8f5fM5Mu/VV1iL3l4bwhnUvILYIAbeO98EEuM16geiQ5ub1vXoI1Do /+9A== 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=UBInWvC4UtsMqMVlbtixev5AhwLr9Odk/zIdyxeWBVE=; b=KJwrxaT/0DNzRP2KjVSnqupleeoXhmQy4SOzb8sq99KcW3Xhi97tT4JLxPc9DZqcg0 KERsJ5SACQhHvDiP/dNa7NBO2VnEHP2aa1OzuAt5ZNEF1SqsqBY50jT2klch6y/Ps0sa BfIHMZDC9ROAAfxH0mZnLk+tf9nzX5QkydJzMF1IEBAyPSJILfznlNaLaYBSP3iPbEPr Xl8jXfpggsKMoLeGcwMJo5RTb4J+lcjb7uEwEOS7yS/czNhr6U0Rn+YuYNqiQyWErVWI oUvrMl6az80zmSQfP2ejeer1fcBQQ2VsVFsoKcXBtrTU27UAF5o76StCPyfqeydkIdQm fUpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gkKGSNWC; 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 b18si381945edh.13.2021.03.04.12.27.26; Thu, 04 Mar 2021 12:27:48 -0800 (PST) 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=gkKGSNWC; 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 S1447347AbhCBU5v (ORCPT + 99 others); Tue, 2 Mar 2021 15:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1580524AbhCBSEX (ORCPT ); Tue, 2 Mar 2021 13:04:23 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BBBFC0611C1 for ; Tue, 2 Mar 2021 10:01:14 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id t29so14312120pfg.11 for ; Tue, 02 Mar 2021 10:01:14 -0800 (PST) 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=UBInWvC4UtsMqMVlbtixev5AhwLr9Odk/zIdyxeWBVE=; b=gkKGSNWCsOVvAVoe6dY3Z32WGzDgmFBGW2Rdy7IGyI+X06lJHhsUEJnYKADiJ+JwDz KZa4BRTCoHDaMLCWkJ3VXKKsiTKWIDKvMbwuY+xaQ6rzeikYjM4sBUKsNOTFnUMUOsNR o6Qlyjx7EVKBp4wxt/L+lmHVpdomxhCqLVSYVGlAoij6YB1NgtrudvLPLPduMz/06TQX /zXj3i/TR5iMmw/f0irj/FtJLyZUhjeAXxmRB/HDFZ0+hB6yS++YHwHv9NI+SjSpXrD/ yFUjZlgvAsbweDBQcQ000ZDcSzfSazOk8QnGzA7XPoc7/gVoJ/gzN85rz06qgjWIiqcR NE0g== 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=UBInWvC4UtsMqMVlbtixev5AhwLr9Odk/zIdyxeWBVE=; b=jXMKmmA7CYmkbh8bl8A3hrYLELqAhgLM1j925d2IX19DubZmAtU8UjvHdOLJ6kpxGX P3uIvaa4IHUIXRE4qYj+YNPpsP27EQQcNPDtDkKdLaQpBJKaT1PafTc98F5H7P3VOSIa XGcXQHR/uc6bxJCw+7gzzdwXfaupovDSW4cobzpgEgn7swTFCtVKAGphcPhkayj5hDKt pZfKX6Pmft9S/srJSVSD+sfat6WuBe+IVeKPL+NcSE+onw+3M41Gr8A1Ujn0UB5VR9Zv IK/FoUmUDL5YYmJoS0ITtR5ntnnsIZU1YNVNgPa5QOGQ2JltncmTG2f9Ew+FHm6yGrTL G4sg== X-Gm-Message-State: AOAM531Jre8mkZY7nZkGVPCon/fz9jpQo8RcP3qCOJY74I/IbI0JPT7w aHOBGa/nps6FoDyRpVqM8TxDgw== X-Received: by 2002:a63:585d:: with SMTP id i29mr19092274pgm.10.1614708074117; Tue, 02 Mar 2021 10:01:14 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id q15sm20198751pfk.181.2021.03.02.10.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 10:01:13 -0800 (PST) Date: Tue, 2 Mar 2021 11:01:11 -0700 From: Mathieu Poirier To: Arnaud Pouliquen Cc: Bjorn Andersson , Ohad Ben-Cohen , Andy Gross , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v5 05/16] rpmsg: char: dissociate the control device from the rpmsg class Message-ID: <20210302180111.GB3791957@xps15> References: <20210219111501.14261-1-arnaud.pouliquen@foss.st.com> <20210219111501.14261-6-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210219111501.14261-6-arnaud.pouliquen@foss.st.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 19, 2021 at 12:14:50PM +0100, Arnaud Pouliquen wrote: > The RPMsg control device is a RPMsg device, it is already > referenced in the RPMsg bus. There is only an interest to > reference the ept char devices in the rpmsg class. > This patch prepares the code split of the control and end point > devices in two separate files. > > Signed-off-by: Arnaud Pouliquen > --- > drivers/rpmsg/rpmsg_char.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c > index 78a6d19fdf82..23e369a00531 100644 > --- a/drivers/rpmsg/rpmsg_char.c > +++ b/drivers/rpmsg/rpmsg_char.c > @@ -485,7 +485,6 @@ static int rpmsg_chrdev_probe(struct rpmsg_device *rpdev) > dev = &ctrldev->dev; > device_initialize(dev); > dev->parent = &rpdev->dev; > - dev->class = rpmsg_class; This may break user space... It has been around for so long that even if the information is redundant we have to keep it. > > cdev_init(&ctrldev->cdev, &rpmsg_ctrldev_fops); > ctrldev->cdev.owner = THIS_MODULE; > -- > 2.17.1 >