Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3349050pxj; Mon, 14 Jun 2021 21:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP/iP6+aNQxkpqCmBiwUkC96lhtVdm0KKTPqzEFAb7zqFWS142nXW4NdSbOTl0Pv5ejERs X-Received: by 2002:a17:907:948c:: with SMTP id dm12mr18820005ejc.484.1623732970984; Mon, 14 Jun 2021 21:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623732970; cv=none; d=google.com; s=arc-20160816; b=UZnmW79+kCoHEyJqOuWBj7x9vAOxkreGUKGhm3R/F2kkd9wsOpLSirTVLQCJnryo6V ZBZ1LomRGDCjsC2uAGqdIdlROz4LPNfCKeuasjxp7wqXYTWl3Fv6QKyv+blB8lwYs4hx 0wQxAh5gSEOqIPQARb8jJrmgybO3TNgj33H2Oe43ZQshCEwFKW7HUY6RYup05N4jiY1J AiFquvPYGhmoRuwCxTh31ei7jJtOwZ0+9W3WCWpH55SeXRIS5CNq5jDAUnp1WHZZCcRY PRt+Mr8ehj7luWoCpyIbyMKTnbgqdRzfVRDf9oQdsJmXAfTCAFTWkT+/lb6mW0D7YmtV svjw== 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=N5q11scYHwf0QRFWjOZh8dOa0hkPtTQAHqhvc5sDQbY=; b=JzU1VVBbpH+1V7Esu//yCyjGs4q1YyE/PQRUZqNo6kejynikjbUzt7PLlv54PNL2Rn EnWVNYsgHc2pKE50EDe3LpnlHM2W69PuTmUHQ8fc/AY8dEf4rPVUmkska0wqxP3Jb1tW 4tyQQEKeiAoDRaxDBm4k7ZOxHGIyWRVEq2oY+u7RTfmkzfG4qvdiZIe9tygUktqB5dE7 QU2J9Rfb19JJs64HC1xU7w56C3PQcyujigBVU6g2LqdPBP0QtFlENIRWyDrnQ9XajBIG decHjr/Xt8e5BJ/Dzo7FXp652j4SM4MGlLiIHCW3vUo8DZFHi/M1uJkizratJVyC+niG DWWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UKGeezVA; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx16si13572068edb.256.2021.06.14.21.55.48; Mon, 14 Jun 2021 21:56:10 -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=@linuxfoundation.org header.s=korg header.b=UKGeezVA; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbhFOE4I (ORCPT + 99 others); Tue, 15 Jun 2021 00:56:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:47878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbhFOE4H (ORCPT ); Tue, 15 Jun 2021 00:56:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72E33613DA; Tue, 15 Jun 2021 04:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623732843; bh=fOIVqueeSvIwOOwxymxG8iFOWHtHfToeXH/xfzZ28uI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UKGeezVAF9k1Qj+Q3biPH7GSCVfzDL8wL13gj2j8wghAeH385rdx3gaG4E8l1gH6I s97LAabbdqXs5+f/l3HOOG7jiEISmdDKud1DuuyxK0fXVM9LeN9RYxVyQHJ8r+hjBC nUyapEZd9oaIzfTMamNpmLT14P+9YsS8sY7CK7cQ= Date: Tue, 15 Jun 2021 06:54:00 +0200 From: Greg KH To: Siddharth Gupta Cc: bjorn.andersson@linaro.org, ohad@wizery.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, psodagud@codeaurora.org, stable@vger.kernel.org Subject: Re: [PATCH v3 1/4] remoteproc: core: Move cdev add before device add Message-ID: References: <1623723671-5517-1-git-send-email-sidgup@codeaurora.org> <1623723671-5517-2-git-send-email-sidgup@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1623723671-5517-2-git-send-email-sidgup@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 07:21:08PM -0700, Siddharth Gupta wrote: > When cdev_add is called after device_add has been called there is no > way for the userspace to know about the addition of a cdev as cdev_add > itself doesn't trigger a uevent notification, or for the kernel to > know about the change to devt. This results in two problems: > - mknod is never called for the cdev and hence no cdev appears on > devtmpfs. > - sysfs links to the new cdev are not established. > > The cdev needs to be added and devt assigned before device_add() is > called in order for the relevant sysfs and devtmpfs entries to be > created and the uevent to be properly populated. > > Signed-off-by: Siddharth Gupta > Reviewed-by: Bjorn Andersson > --- > drivers/remoteproc/remoteproc_core.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.