Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp267084pxj; Thu, 3 Jun 2021 06:16:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoY33HhN+TxEY2i6GYu/5B5ND9E8taJ1QrCxAP5IorfMENTnQ5jHixW7M5QCPcu4AoYfvj X-Received: by 2002:a05:6402:2713:: with SMTP id y19mr42820184edd.59.1622726192665; Thu, 03 Jun 2021 06:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622726192; cv=none; d=google.com; s=arc-20160816; b=tkNYcaPw3cYieFLK/tdrW55Wr/2WJ9H9ZulLN6/TUYs7iOVFDWWgWc8dGNL9mcs0hk 33OzjMUqH4yE/MlbnOZwa/sWAklJcWzKy/NBky6asvBYgG0Ka5Pl7S+lYLtYbJlwZYXV rmj7TALm+tB/vecl+WDM/Su6WNoA8KpXkACZwwrQtyQmKDF5n4OENwXXIVXZtNCNl1tl 1x7ivv1hA0FPkmf3oj2gzGvvwdNGFcYuRyM4VFw7Z38JVi8hZJ10AW6LeiX9X0CJbWPm UFa/w837RDSAUF9m749Ns0K7cqh1pxNBJvntxbstv33vApaoVNCPe/oBYlPeuc3SG7jI tPjw== 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=0kj3v6zwaaiqZKKx9Pnk2mHop+0vtHP44YfJLTbnUZo=; b=zmpbDgh3d6Ji/cYflZzUQnffeIyGm8ePA6z79xXPoBcQKWexraqAH+erCastdM7yz7 8vO0z4aVEcj1BgIVSz/cOnKO8n03LojKqFROIiHkTsXqwMemhaPsml2AwSjSDfiVROp0 T3HQGfSoYVU4S0ZYh3WoeFKFuztLv6nDlxOeU18mGbrkn2BDAWm+M9mQ6oNvK58PFc5V BHY7eIlmEl9jNMNqiCRC8+St6U4rEWE5r4hEuevbUUgxsr2MZcs8IFxg4WiKAPoew+M8 iMw6WhSJ1vfnHWHkYBFTjBpa/+W3/w5YElPu6ltxB/t9KhFouEqfm76pShGXHJWFlp3F sb1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jJl0Caiu; 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 u6si55805eju.58.2021.06.03.06.16.09; Thu, 03 Jun 2021 06:16:32 -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=jJl0Caiu; 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 S231222AbhFCNOy (ORCPT + 99 others); Thu, 3 Jun 2021 09:14:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:52886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbhFCNOw (ORCPT ); Thu, 3 Jun 2021 09:14:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 81C5A613B8; Thu, 3 Jun 2021 13:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622725988; bh=W0H05tujlzZGpKDp66E8foU1Iit3ZDa5QdveP9Ti2ek=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jJl0Caiu4C/9rTSWq2sRssp61HNPP63yD+74s2fYbixYzZSD+wu1VBWfFgva+hRQ/ VVU6D2pJKfcyQLpFzIwZDtE4wgQBhhEb5RjfXdWLabfMpoSoFL1FiYPCUQrVd0i5Qg QgDu7CaltvxRGLmA1cBQ+K1OttXnov2C9O64fvEU= Date: Thu, 3 Jun 2021 15:13:05 +0200 From: Greg Kroah-Hartman To: Adrian Ratiu Cc: "Rafael J. Wysocki" , Andrew Morton , kernel@collabora.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/1] Initialize debugfs/ksysfs earlier? Message-ID: References: <20210603125534.638672-1-adrian.ratiu@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210603125534.638672-1-adrian.ratiu@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 03, 2021 at 03:55:33PM +0300, Adrian Ratiu wrote: > Hi Greg & all, > > I would like to add a new debugfs file like in the next patch but > I'm having a problem with commit 56348560d495 ("debugfs: do not > attempt to create a new file before the filesystem is initalized"). You should have had a problem before that commit happened as well, right? > > The problem is debugfs is initialized after the driver core, during > the core initcall, so I get an -ENOENT failure due to the above commit. > > My first reaction is to move the ksysfs_init() and debugfs_init() calls > before the driver core init which works. Would that be ok? > > An alternative would be to create the new debugfs file somewhere else > than the driver core, but I'm not sure where would be a good location, > maybe in debugfs_init()? Doesn't seem right. I don't really want the driver core to be messing with debugfs at all, why is that needed? I'll respond on your patch... thanks, greg k-h