From: Christian Krafft <krafft@de.ibm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: krafft@de.ibm.com, openipmi-developer@lists.sourceforge.net,
Paul Mackerras <paulus@samba.org>, Arnd Bergmann <arnd@arndb.de>,
linuxppc-dev@ozlabs.org
Subject: Re: [patch 0/1] next updated version, fixed cleanup and some minors
Date: Thu, 25 Jan 2007 14:30:56 +1100 [thread overview]
Message-ID: <20070125143056.47cbd5d2@localhost> (raw)
In-Reply-To: <DA5708FC-F9AB-4782-A48D-40B26990A24F@kernel.crashing.org>
On Thu, 25 Jan 2007 01:24:01 +0100
Segher Boessenkool <segher@kernel.crashing.org> wrote:
> > This patch adds support for of_platform_driver to the ipmi_si module.
> > When loading the module, the driver will be registered to of_platform.
> > The driver will be probed for all devices with the type ipmi. It's =20
> > supporting
> > devices with compatible settings ipmi-kcs, ipmi-smic and ipmi-bt.
> > Only ipmi-kcs could be tested.
>=20
> I'm still saying that because of this, and because they might
> never be used and as such be unnecessary baggage, you shouldn't
> add SMIC and BT support.
Well, i left it in because there is no baggage except the few bytes in the =
match array.
This way the driver gets loaded if there is such a device.
It looks better to me to add generic support for these devices,
instead of adding code every time a specific device becomes available.
But actually I don't care too much.=20
So if you have another argument than the few bytes baggage, I'll remove it.
>=20
> > Signed-off-by: Christian Krafft <krafft@de.ibm.com>
> > Acked-by: Heiko J Schick <schihei@de.ibm.com>
>=20
> > #define DEFAULT_REGSPACING 1
> > +#define DEFAULT_REGSIZE DEFAULT_REGSPACING
>=20
> Just #define it as 1 I'd say. Esp. for KCS interfaces, it can't
> ever be anything else there.
fixed
>=20
> > + if (regsize && proplen!=3D4) {
>=20
> Whitespace problem (a few times in this file).
fixed
>=20
> > + info->si_type =3D (enum si_type) match->data;
>=20
> Do you need the cast here? Oh I suppose you do, why else
> did you add it (and it teaches the world as a whole once
> again that enums in C are bloody useless almost always).
yep, I also feel sorry for that.
>=20
> > +static int __devexit ipmi_of_remove(struct of_device *dev)
> > +{
> > + /* should call
> > + * cleanup_one_si(dev->dev.driver_data); */
> > + return 0;
> > +}
>=20
> While I know this isn't really your problem, no one who
> isn't touching the IPMI code will ever fix it, so... nudge
> nudge, wink wink.
fixed, 2.6.20 will contain the forward declaration,=20
so the cleanup code can be called there.
>=20
> > (void *)(unsigned long) SI_KCS
>=20
> Yes I do hate enums.
Why ?
>=20
> > + .name =3D "ipmi",
>=20
> Shouldn't this name be "ipmi-kcs" etc.? Just asking :-)
You just wanna confuse me, right ?
>=20
> Cheers,
>=20
>=20
> Segher
>=20
See my next mail for patch.
--=20
Mit freundlichen Gr=FCssen,
kind regards,
Christian Krafft
IBM Systems & Technology Group,=20
Linux Kernel Development
IT Specialist
next prev parent reply other threads:[~2007-01-25 3:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20061218163846.337fed65@localhost>
2006-12-18 15:42 ` [patch 0/1] ipmi: update: add autosensing of ipmi devices on powerpc using of device tree Christian Krafft
2006-12-18 21:52 ` Segher Boessenkool
2006-12-18 22:23 ` Arnd Bergmann
2006-12-19 17:48 ` Segher Boessenkool
2006-12-19 18:06 ` [Openipmi-developer] " Corey Minyard
2006-12-19 13:12 ` Christian Krafft
2006-12-19 17:52 ` Segher Boessenkool
2006-12-19 18:01 ` Corey Minyard
2006-12-20 14:45 ` [patch 0/1] updated version Christian Krafft
2006-12-21 0:11 ` Arnd Bergmann
2007-01-24 23:45 ` [patch 1/1] updated version, fixed the compiler warning Christian Krafft
2007-01-24 23:56 ` Benjamin Herrenschmidt
2007-01-25 0:29 ` Segher Boessenkool
2007-01-25 0:45 ` Christian Krafft
2007-01-25 0:45 ` Benjamin Herrenschmidt
2007-01-25 1:05 ` Segher Boessenkool
2007-01-25 3:14 ` Arnd Bergmann
2007-01-25 0:24 ` Segher Boessenkool
2007-01-25 3:30 ` Christian Krafft [this message]
2007-01-25 3:34 ` [patch 1/1] next updated version, fixed cleanup and some minors Christian Krafft
2007-01-25 5:19 ` Arnd Bergmann
2007-01-29 3:49 ` [Openipmi-developer] " Corey Minyard
2007-01-26 2:54 ` [patch 1/1] updated version, fixed the compiler warning Christoph Hellwig
2007-01-26 4:23 ` Arnd Bergmann
2007-01-28 23:07 ` Christian Krafft
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=20070125143056.47cbd5d2@localhost \
--to=krafft@de.ibm.com \
--cc=arnd@arndb.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=openipmi-developer@lists.sourceforge.net \
--cc=paulus@samba.org \
--cc=segher@kernel.crashing.org \
/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.