From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Kumar Gala" <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org, linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH] [POWERPC] Add the PC speaker only when requested so
Date: Thu, 22 May 2008 22:44:06 -0600 [thread overview]
Message-ID: <fa686aa40805222144i7026cf57r3382635853140c83@mail.gmail.com> (raw)
In-Reply-To: <41365E63-56F5-4057-9F4A-BE986969466C@kernel.crashing.org>
On Thu, May 22, 2008 at 9:34 PM, Kumar Gala <galak@kernel.crashing.org> wrote:
>
> On May 22, 2008, at 6:27 PM, Grant Likely wrote:
>
>> On Thu, May 22, 2008 at 4:40 PM, Emil Medve <Emilian.Medve@freescale.com>
>> wrote:
>>>
>>> This will cause this minor boot-time debugging error message to go away:
>>>
>>> [ 1.316451] calling add_pcspkr+0x0/0x84
>>> [ 1.316478] initcall add_pcspkr+0x0/0x84 returned -19 after 0 msecs
>>
>> What situation are you hitting this in? The code should only run if
>> there is a "pnpPNP,100" compatible node in the device tree.
>
> The code always runs, the -19 is from the fact that the code returns -ENODEV
> when it doesn't find the device in the tree.
>
> I don't see any reason we should be ALWAYS be probing for a PC speaker.
> Seems like a reasonable patch.
Fair enough; I was just wondering if it was a complete fix. But now
that I dig into the code I see that the calling...initcall returned...
messages are just debug stuff that isn't always turned on.
I have no problem with the patch.
>
>> Also, where is CONFIG_PCSPKR_PLATFORM defined? I don't see it
>> anywhere in powerpc code and only a reference to it in an x86
>> Makefile. As it stands, it looks like this patch unconditionally
>> disables the pcspkr code.
>
> Its defined in init/Kconfig.
Apparently my grep-foo isn't what it used to be...
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
next prev parent reply other threads:[~2008-05-23 4:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 22:40 [PATCH] [POWERPC] Add the PC speaker only when requested so Emil Medve
2008-05-22 23:27 ` Grant Likely
2008-05-23 3:34 ` Kumar Gala
2008-05-23 4:44 ` Grant Likely [this message]
2008-05-23 12:59 ` Medve Emilian
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=fa686aa40805222144i7026cf57r3382635853140c83@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc-embedded@ozlabs.org \
--cc=paulus@samba.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 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).