From: Patrick Mochel <mochel@linux.intel.com>
To: "Moore, Robert" <robert.moore@intel.com>
Cc: "Accardi, Kristen C" <kristen.c.accardi@intel.com>,
Prarit Bhargava <prarit@sgi.com>, Andrew Morton <akpm@osdl.org>,
"Brown, Len" <len.brown@intel.com>,
greg@kroah.com, linux-acpi@vger.kernel.org,
pcihpd-discuss@lists.sourceforge.net,
linux-kernel@vger.kernel.org, arjan@linux.intel.com,
muneda.takahiro@jp.fujitsu.com, pavel@ucw.cz, temnota@kmv.ru
Subject: Re: [patch 1/3] acpi: dock driver
Date: Wed, 19 Apr 2006 10:36:34 -0700 [thread overview]
Message-ID: <20060419173634.GB14304@linux.intel.com> (raw)
In-Reply-To: <B28E9812BAF6E2498B7EC5C427F293A4200AD4@orsmsx415.amr.corp.intel.com>
On Wed, Apr 19, 2006 at 10:14:46AM -0700, Moore, Robert wrote:
> This is something to think about before we rip out all the ACPI
> core-style debug stuff.
Not sure which part you're referring to, but maybe these:
> > > > --- /dev/null
> > > > +++ 2.6-git-kca2/drivers/acpi/dock.c
> > > > @@ -0,0 +1,652 @@
> > >
> > > > +#define ACPI_DOCK_COMPONENT 0x10000000
> > > > +#define ACPI_DOCK_DRIVER_NAME "ACPI Dock Station Driver"
> > > > +#define _COMPONENT ACPI_DOCK_COMPONENT
> > >
> > > These aren't necessary for code that is outside of the ACPI-CA.
> >
> > Originally I did not include these, but it turns out if you wish to
> use
> > the ACPI_DEBUG macro, you need to have these things defined. I did go
> > ahead and use this macro in a couple places, mainly because I felt
> that
> > even though this isn't strictly an acpi driver (using the acpi driver
> > model), it does live in drivers/acpi and perhaps people might expect
> to
> > be able to debug it the same way.
Some of us have already thought about it. :-)
We have standard debugging macros that are used in many driver subsystems
defined in include/linux/device.h (dev_printk(), dev_dbg(), dev_err(), and
friends). The ACPI drivers are not very different than other Linux driver
subsystems (at a very basic level). They are very Linux-specific (not
portable like the CA), and should be using Linux-specific constructs as
much as possible to match the rest of the kernel. This makes it much
eaiser for people to understand exactly what those drivers are doing..
Pat
next prev parent reply other threads:[~2006-04-19 17:40 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-19 17:14 [patch 1/3] acpi: dock driver Moore, Robert
2006-04-19 17:36 ` Patrick Mochel [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-04-19 19:17 Moore, Robert
2006-04-19 17:51 Moore, Robert
2006-04-19 18:06 ` Patrick Mochel
2006-04-14 23:17 Brown, Len
2006-04-14 22:42 Brown, Len
2006-04-14 23:11 ` Kristen Accardi
[not found] <20060412221027.472109000@intel.com>
2006-04-12 22:18 ` Kristen Accardi
2006-04-13 5:27 ` Andrew Morton
2006-04-14 22:02 ` Kristen Accardi
2006-04-14 22:49 ` Kristen Accardi
2006-04-15 14:29 ` Prarit Bhargava
2006-04-18 18:03 ` Kristen Accardi
2006-04-18 22:54 ` Patrick Mochel
2006-04-19 17:08 ` Kristen Accardi
2006-04-19 17:28 ` Patrick Mochel
2006-04-19 18:28 ` Kristen Accardi
2006-04-19 18:20 ` Patrick Mochel
2006-04-16 13:28 ` Prarit Bhargava
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=20060419173634.GB14304@linux.intel.com \
--to=mochel@linux.intel.com \
--cc=akpm@osdl.org \
--cc=arjan@linux.intel.com \
--cc=greg@kroah.com \
--cc=kristen.c.accardi@intel.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=muneda.takahiro@jp.fujitsu.com \
--cc=pavel@ucw.cz \
--cc=pcihpd-discuss@lists.sourceforge.net \
--cc=prarit@sgi.com \
--cc=robert.moore@intel.com \
--cc=temnota@kmv.ru \
/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