From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: trenn@suse.de
Cc: Rene Herman <rene.herman@keyaccess.nl>,
linux-kernel <linux-kernel@vger.kernel.org>,
akpm <akpm@linux-foundation.org>,
Bjorn Helgaas <bjorn.helgaas@hp.com>,
"Li, Shaohua" <shaohua.li@intel.com>,
"yakui.zhao" <yakui.zhao@intel.com>
Subject: Re: [PATCH 3/3] PNP cleanups - Version 2 - Pass struct pnp_dev to pnp_clean_resource_table for cleanup reasons
Date: Wed, 21 Nov 2007 18:13:18 +0000 [thread overview]
Message-ID: <20071121181318.75ceeb4d@the-village.bc.nu> (raw)
In-Reply-To: <1195638201.23700.285.camel@queen.suse.de>
> > in the pnp_dev. That is, the resources are tied to the device, with struct
> > pnp_resource_table being no more than a handy container to group them under
> > a single name.
> Putting the count into struct resource does not make sense.
Can you explain that claim ?
> The idea is to not rely on the exact pnp resource table structure and
> abstracting this to macros. If krealloc approach works,
> dev->res.port_resource[i].start would even still work, if not, it's
> easier to alter the pnp resource table and the macros internally.
Externally in drivers yes. Internally in code no - it makes the code
harder to work with.
> > Yes, I dont know how he intends to deal with this (nor, in fact, just how
> > dynamic things are supposed to end up to begin with) so over to Thomas.
> Krealloc should only get used at early pnp init time, when the BIOS
> structures are parsed. The devices shouldn't be active then...
> A bit of a problem, as said, could be the sysfs interfaces, there it
> must be insured krealloc is not used anymore.
I don't think its that simple but that can be dealt with one the changes
are in place if the objects are sensibly laid out.
Alan
next prev parent reply other threads:[~2007-11-21 18:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-20 17:52 Thomas Renninger
2007-11-20 18:00 ` Alan Cox
2007-11-20 19:36 ` Rene Herman
2007-11-20 22:18 ` Alan Cox
2007-11-21 8:37 ` Rene Herman
2007-11-21 9:43 ` Thomas Renninger
2007-11-21 18:13 ` Alan Cox [this message]
2007-11-21 23:05 ` Thomas Renninger
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=20071121181318.75ceeb4d@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@linux-foundation.org \
--cc=bjorn.helgaas@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rene.herman@keyaccess.nl \
--cc=shaohua.li@intel.com \
--cc=trenn@suse.de \
--cc=yakui.zhao@intel.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
all inboxes | Powered by JetHome®