From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 23 Mar 2003 11:21:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 23 Mar 2003 11:21:21 -0500 Received: from phoenix.infradead.org ([195.224.96.167]:43277 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Sun, 23 Mar 2003 11:21:20 -0500 Date: Sun, 23 Mar 2003 16:32:23 +0000 From: Christoph Hellwig To: Roman Zippel Cc: Greg KH , Andries.Brouwer@cwi.nl, linux-kernel@vger.kernel.org, akpm@digeo.com Subject: Re: [PATCH] alternative dev patch Message-ID: <20030323163223.A9499@infradead.org> Mail-Followup-To: Christoph Hellwig , Roman Zippel , Greg KH , Andries.Brouwer@cwi.nl, linux-kernel@vger.kernel.org, akpm@digeo.com References: <20030321012455.GB10298@kroah.com> <20030322013800.GD18835@kroah.com> <20030323081956.GK26145@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from zippel@linux-m68k.org on Sun, Mar 23, 2003 at 04:05:24PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 23, 2003 at 04:05:24PM +0100, Roman Zippel wrote: > > Yeah, but as I know, it's a big pain in the butt. Let's make it easy to > > do this, don't make writing a driver tougher than it has to be (it's > > already much harder than it used to be.) Andries's patch makes it easy, > > which is a good thing in my book. > > Andries' patch doesn't help at all and only makes things worse. Only very > few drivers should have to deal with the major/minor business. Most > drivers should just do add_serial_device/add_tape_device/... and these > function will do the right thing (e.g. announce the new device via sysfs). Yupp. The add_serial_device/add_tape_device/ would also have the benefit that they could keept track of devfs like the gendisk handling when GENHD_FL_DEVFS is set by the drivers - lots of cruft can be remove from drivers and midlayers incrementally.