Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5977564ybi; Wed, 31 Jul 2019 06:23:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFntKddDPJzM+C4R3qtmaLh940RRnvRC57bW0CNqAi/02wtkdFb30a7djXHlWxrIy5y0fH X-Received: by 2002:a17:902:f087:: with SMTP id go7mr120209570plb.330.1564579414196; Wed, 31 Jul 2019 06:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564579414; cv=none; d=google.com; s=arc-20160816; b=Hyn8n34TQzLC9KQ+5Hf29cgrpi0NUOtc6HEfsltuDzKS3x6RbHHkUyhvT8JRKm1etq B4Q2NXo9qoe6nFaKolJOnoyprMtcVfYE+Bp9jGPvARHbNVAEUtCgm/BEgRDjSboPPUlZ AuSXQSkMnTWr/G/lhSPKEYDAyE91/q4Fo9SEoPpPnOa2IbZ+O9XpplirsqZfse4GtBQu m4jrNTUKzrfm9nl5s2mjJScJRCV6G3YmqKuQCsZ5pj4evsN2GB5uwEkpdeOY25SyP7xE pBf63aTSsHgMY4Fr09lR5Jlifp3QbsHPrtVQiDTLaLNyhfQRKHuCoCiwZhXEGMRdC+gp 5aPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hUcIQoux3Pmtg2SoDxG3dq5tzyu/wfMkC33/EHqHdRw=; b=amAr8KTIYA47+HWPgvK72tzx6hh0HMagZMHMWw5PVEW/7ABbsUMk3f88vxpSz6Ge4E C0WqLQ+1uHXXywsCsumKz2rDhwQW2DlrNTxLwrlWDe/kda0FJ/OeWOQHUYgK+6Cnp6GN MvutKVebzOn9RCSQ/ydg9dkkmpN6LkdXphhkycNUBgLl9vIsuOYvW6M1rROGsGqj7qbJ BtB74cbTvSFZ1IIyT7S6DMs1EOdx74aKmGBoXdzSqTDcPRca+UzzLovMaqkv8AXLFuzB mKPcoazzIL2XAbpFftowdTRK2QYHBMkesVq3EkFHUawVcw1pVe1l/aaV+hqUgxcv9I17 tlwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KyQY5CBj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 131si26558852pgf.597.2019.07.31.06.23.18; Wed, 31 Jul 2019 06:23:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KyQY5CBj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388261AbfGaNWb (ORCPT + 99 others); Wed, 31 Jul 2019 09:22:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:50672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388236AbfGaNWa (ORCPT ); Wed, 31 Jul 2019 09:22:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1808D2064A; Wed, 31 Jul 2019 13:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564579349; bh=W+aYKCz9gxgG7u43KzXszSqqe6R1n9t7d1fUb3QuD7c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KyQY5CBjylSO7ewCUAToDkmaAwmQjJO8QvWo9w/ul3hlz4NRL+Gjz7gxVd5980jtP IGtcgcpPaQMoyDy1ZqpRsRWFSClc3ZThgNhemnSMgUB4JrS5m6yoU88+l6E0va7/KJ GHePa31wbh7qJ6l/aUhzBXH+dHwFwpLbAqoeZ3VE= Date: Wed, 31 Jul 2019 15:22:27 +0200 From: Greg Kroah-Hartman To: Dmitry Torokhov Cc: linux-kernel@vger.kernel.org, Richard Gong , "H. Peter Anvin" , Andy Shevchenko , Andy Shevchenko , Bartlomiej Zolnierkiewicz , Borislav Petkov , Darren Hart , Florian Fainelli , Ingo Molnar , Sudeep Holla , Thomas Gleixner , Tony Prisk , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2 00/10] drivers, provide a way to add sysfs groups easily Message-ID: <20190731132227.GC12603@kroah.com> References: <20190731124349.4474-1-gregkh@linuxfoundation.org> <20190731131045.GB147138@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190731131045.GB147138@dtor-ws> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 31, 2019 at 06:10:45AM -0700, Dmitry Torokhov wrote: > On Wed, Jul 31, 2019 at 02:43:39PM +0200, Greg Kroah-Hartman wrote: > > This patch originally started out just as a way for platform drivers to > > easily add a sysfs group in a race-free way, but thanks to Dmitry's > > patch, this series now is for all drivers in the kernel (hey, a unified > > driver model works!!!) > > > > I've only converted a few platform drivers here in this series to show > > how it works, but other busses can be converted after the first patch > > goes into the tree. > > > > Here's the original 00 message, for people to get an idea of what is > > going on here: > > > > If a platform driver wants to add a sysfs group, it has to do so in a > > racy way, adding it after the driver is bound. To resolve this issue, > > have the platform driver core do this for the driver, making the > > individual drivers logic smaller and simpler, and solving the race at > > the same time. > > > > All of these patches depend on the first patch. I'll take the first one > > through my driver-core tree, and any subsystem maintainer can either ack > > their individul patch and I will be glad to also merge it, or they can > > wait until after 5.4-rc1 when the core patch hits Linus's tree and then > > take it, it's up to them. > > Maybe make an immutable branch off 5.2 with just patch 1/10 so that > subsystems (and the driver core tree itself) could pull it in at their > leisure into their "*-next" branches and did not have to wait till 5.4 > or risk merge clashes? Good idea, I will do that when I apply it after a few days to give people a chance to review it. thanks, greg k-h