Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756300Ab1FFMfM (ORCPT ); Mon, 6 Jun 2011 08:35:12 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:42496 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754911Ab1FFMfJ convert rfc822-to-8bit (ORCPT ); Mon, 6 Jun 2011 08:35:09 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=jBS35LDxOSxhzQKnL3xrowlubqF6Sr6saCxM61BQfyojxxOoPU+UinBDddggJb+EKC v6m5exXhUy43rrmehDb3kl9eyJAi6mW4wXTmgelW9HkTXbLocAGOS5gNkzZ/x6j5L3sR mRApPhVQeoYenHtVT39QT2qQRjGQzA4fuD+ac= MIME-Version: 1.0 In-Reply-To: <20110606141636.150c54b5@endymion.delvare> References: <20110605071725.26517.11573.stgit@ponder> <201106061100.38249.arnd@arndb.de> <1307352547.7586.6.camel@mulgrave.site> <201106061321.07400.arnd@arndb.de> <20110606141636.150c54b5@endymion.delvare> Date: Mon, 6 Jun 2011 14:35:07 +0200 X-Google-Sender-Auth: T19grdsOJqxWs6G_3yPQmmN2-CU Message-ID: Subject: Re: [PATCH] spi: reorganize drivers From: Geert Uytterhoeven To: Jean Delvare Cc: Arnd Bergmann , James Bottomley , Grant Likely , Stefan Richter , "Ben Dooks (embedded platforms)" , linux-pcmcia@lists.infradead.org, Matt Porter , Alexandre Bounine , "David S. Miller" , Michael Buesch , "Maciej W. Rozycki" , Rusty Russell , Florian Fainelli , spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org, Russell King Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2995 Lines: 63 On Mon, Jun 6, 2011 at 14:16, Jean Delvare wrote: > On Mon, 6 Jun 2011 13:21:07 +0200, Arnd Bergmann wrote: >> On Monday 06 June 2011, James Bottomley wrote: >> > I'd say it only makes sense if we do it for all busses ... so USB and >> > PCI would have to move too.  Logically, the bus code should move and we >> > should be left with the drivers in both of those directories.  I'd also >> > say that we don't have to deepen the tree: /bus would be fine.  That >> > way, /drivers/ would be only for specific drivers, with non >> > bus specific drivers we just group them by function as now. >> >> A top-level /bus would work for me, and I guess would also address Russell's >> concern. Regarding bus-specific drivers, we're gradually moving those out >> of the bus specific directories anyway, basically the only bus directory >> that really has device driver in it is USB at this point. It makes some >> sense to have a bus-specific low-level user space interface driver like >> sg or uio in the bus directory, but everything else should really belong >> into some other subsystem. > > Err, what about I2C and SPI? Aren't drivers/i2c/busses and drivers/spi > full of "device drivers"? Or are these what you call "bus-specific > drivers"? Maybe we need to define all the terms before the discussion > continues further. Arnd did write: | It does include i2c and spi, which stick out by being a lot larger than most others. >> (...) >> This is about to get worse as we introduce new subsystems (e.g. iommu, >> irq, clocksource, eeprom, nvram, ...) into which we are moving >> code from arch/arm, drivers/char and drivers/misc. Having buses and >> drivers in a separate hierarchy would make the drivers directory and >> the respective menuconfig list more clearly structured IMHO. > > This gets interesting. Would you suggest for example that i2c-core.c > goes to bus/i2c, and drivers/i2c/busses becomes drivers/i2c? And that > CONFIG_I2C is somewhere in menuconfig, and the hardware driver > selection for drivers/i2c is in a totally different place? > > While I am surprised, I am not necessarily objecting. But it seems that > you should better define what your actual plan is, before asking us if > we agree with it. Most other drivers are located based use case, i.e. from the user's point of view, e.g. drivers/net/ and drivers/video. Gr{oetje,eeting}s,                         Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.                                 -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/