From: Mike Frysinger <vapier.adi@gmail.com>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Roland Dreier <roland@purestorage.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gpio: reorganize drivers
Date: Tue, 7 Jun 2011 00:39:14 -0400 [thread overview]
Message-ID: <BANLkTinOPVo9TL5sgf9qVAjaw=83N2kYKQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=LXBgyae2Man7PpqCwR7L0=R7pYg@mail.gmail.com>
On Mon, Jun 6, 2011 at 13:37, Grant Likely wrote:
> On Mon, Jun 6, 2011 at 11:33 AM, Grant Likely wrote:
>> On Mon, Jun 6, 2011 at 11:27 AM, Roland Dreier wrote:
>>> On Mon, Jun 6, 2011 at 12:06 AM, Grant Likely wrote:
>>>> Sort the gpio makefile and enforce the naming convention gpio-*.c for
>>>> gpio drivers.
>>>
>>> OK, bikeshed colors here, but... what is the benefit of
>>> 'drivers/gpio/gpio-xxx.c' vs
>>> just 'drivers/gpio/xxx.c'? Seems like one 'gpio' should be enough for anyone...
>>
>> lsmod
>
> Specifically, module names don't give any clues about which directory
> they were loaded out of, so it is useful to have the module name
> reflect exactly what the module is for. Second, a lot of these
> gpio/spi/i2c cores end up being stuffed into an integrated chipset
> where they all pretty much share the same name, but the drivers are
> for different functional blocks. ie. gpio-omap.o, spi-omap.o,
> i2c-omap.o
well, more important is the opposite direction ... if we have
gpio/omap.c and i2c/omap.c and spi/omap.c, which "omap.ko" is
`modprobe` going to load ?
and if you `rmmod omap`, which one is going to be unloaded ?
i wonder if the module core even allows for that ...
-mike
next prev parent reply other threads:[~2011-06-07 4:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 7:06 [PATCH] gpio: reorganize drivers Grant Likely
2011-06-06 16:29 ` Mike Frysinger
2011-06-06 16:43 ` Grant Likely
2011-06-07 4:34 ` Tomoya MORINAGA
2011-06-06 17:27 ` Roland Dreier
2011-06-06 17:33 ` Grant Likely
2011-06-06 17:37 ` Grant Likely
2011-06-07 4:39 ` Mike Frysinger [this message]
2011-06-08 16:56 ` Roland Dreier
-- strict thread matches above, loose matches on Subject: below --
2011-06-05 7:16 Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTinOPVo9TL5sgf9qVAjaw=83N2kYKQ@mail.gmail.com' \
--to=vapier.adi@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@purestorage.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).