From: Tony Lindgren <tony@atomide.com>
To: "Gadiyar, Anand" <gadiyar@ti.com>
Cc: Felipe Balbi <me@felipebalbi.com>,
"igor.stoppa@nokia.com" <igor.stoppa@nokia.com>,
Jouni Hogander <jouni.hogander@nokia.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 1/7] 34XX: PM: Workaround to build omap hsmmc as a module
Date: Thu, 26 Jun 2008 16:20:22 +0300 [thread overview]
Message-ID: <20080626132021.GF12992@atomide.com> (raw)
In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB022BED282F@dbde02.ent.ti.com>
* Gadiyar, Anand <gadiyar@ti.com> [080626 11:33]:
> > > That wasn't what I said or meant. What I did want to bring out was that having
> > > something built-in might give it more exposure to test by someone who wasn't
> > > actively working on that area. And most bugs are caught by people other than
> > > the active developers.
> >
> > Not really, another usecase for modular kernel is that we don't wanna
> > add e.g. tea (radio) driver for n810 cuz it doesn't have that chip.
> > With modular kernel with proper MODULE_ALIAS() and udev, you just
> > flash the same kernel and modules in both n800 and n810 and tea driver
> > would only be probed in n800.
> >
> > I think this is what Igor meant when we said about validation across
> > boards.
>
> Ok. Fair enough. Point taken.
>
>
> > > At first glance to your email, I thought you had a valid point here. Thinking a
> > > little more, I think your point is valid only if you had a module that should not
> > > be loaded on a particular board. In such a case, you would anyway want to fix that
> > > module.
> >
> > Or you rely on udev rules and keep the main kernel code smaller.
> >
> > > Yes, having a modular kernel is useful. And it is probably the way to go. But please
> > > don't tell me that you can't do the same things with almost everything built-in.
> >
> > some stuff you really can't. If your mmc driver get stuck somewhere, you
> > can't modprobe -r -f omap_hsmmc and restart your work with a built-in
> > mmc driver. With modular kernel, we really can do it: forcefully remove
> > the driver and reset the controller, this would give us oportunity to
> > analyze logs and try again by reloading the module.
> >
> > With a built-in kernel, the only way out is reboot.
>
> Agreed.
>
> > > The 2430 defconfig has almost everything modular, while the 3430 defconfig doesn't.
> > > I propose we start a separate defconfig for the modular case or use allmodconfig.
> > > Maybe even have this as the defconfig for the multi-omap kernel. If we keep the
> > > individual defconfigs as a nearly all-built-in case, we can still get the best of
> > > both worlds.
> >
> > The thins is that normaly you'd have udev running anyways, and it would
> > automatically load modules based on /sys and correct MODULE_ALIAS()
> > and that's already another thing to test that can't be tested with built-in
> > modules.
> >
> > We know that several omap drivers are missing MODULE_ALIAS() and recently I've
> > added it to all twl4030 drivers for that purpose.
> >
> > We can now rely that udev will correctly load the necessary module when we
> > need it. And when I stated that there's no reason for not building
> > everything as dynamic module for omaps, I was considering that we have
> > enough memory in our boards and generaly developers will use NFS
> > root file system anyways.
> >
> > I think this discussion is now way too long for something really
> > simple: For development purposes on SDPs, dynamic linked modules
> > can increase the development cycle by decreasing the amount of
> > build/flash/reboot cycles.
>
> Okay. End of discussion. :)
Pushing Jouni's patch to make MMC a module today :)
Tony
next prev parent reply other threads:[~2008-06-26 13:20 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 9:11 [PATCH 0/7] 34XX: PM: Workarounds to get omap3 to retention 3rd Jouni Hogander
2008-06-25 9:13 ` [PATCH 1/7] 34XX: PM: Workaround to build omap hsmmc as a module Jouni Hogander
2008-06-25 9:50 ` Felipe Balbi
2008-06-25 11:17 ` Gadiyar, Anand
2008-06-25 12:03 ` Felipe Balbi
2008-06-25 12:11 ` Igor Stoppa
2008-06-25 12:40 ` Gadiyar, Anand
2008-06-25 13:23 ` Igor Stoppa
2008-06-26 4:25 ` Gadiyar, Anand
2008-06-26 7:28 ` Felipe Balbi
2008-06-26 8:31 ` Gadiyar, Anand
2008-06-26 13:20 ` Tony Lindgren [this message]
2008-06-25 9:13 ` [PATCH 2/7] 34XX: PM: Workaround to enable autoidle for clocks and plls Jouni Hogander
2008-06-26 2:30 ` Paul Walmsley
2008-06-27 8:59 ` Rajendra Nayak
2008-06-27 9:08 ` Högander Jouni
2008-06-25 9:13 ` [PATCH 3/7] 34XX: PM: Workaround to reset all wkdeps Jouni Hogander
2008-06-25 9:13 ` [PATCH 4/7] 34XX: PM: Workaround to check wether any fck is active before entering sleep Jouni Hogander
2008-06-25 9:13 ` [PATCH 5/7] OMAP: PM: Add new sysfs option for disabling clocks when entering idle Jouni Hogander
2008-06-25 9:13 ` [PATCH 6/7] 34XX: PM: Workaround for taking care of gpio clocks Jouni Hogander
2008-06-26 11:54 ` Rajendra Nayak
2008-06-26 12:16 ` Högander Jouni
2008-06-26 12:30 ` Rajendra Nayak
2008-06-26 12:40 ` Högander Jouni
2008-06-25 9:13 ` [PATCH 7/7] Added sleep support to UART Jouni Hogander
2008-06-25 11:38 ` [PATCH 0/7] 34XX: PM: Workarounds to get omap3 to retention 3rd Rajendra Nayak
2008-06-25 11:43 ` Högander Jouni
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=20080626132021.GF12992@atomide.com \
--to=tony@atomide.com \
--cc=gadiyar@ti.com \
--cc=igor.stoppa@nokia.com \
--cc=jouni.hogander@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=me@felipebalbi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.