From: Witold Szczeponik <Witold.Szczeponik@gmx.net>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/3] PNP: Allow PNP resources to be disabled (interface)
Date: Sun, 01 Apr 2012 18:04:44 +0200 [thread overview]
Message-ID: <4F787C9C.8050206@gmx.net> (raw)
In-Reply-To: <CAErSpo7Xt2Pz5EqDO_NJGyRkPMrY21vzWJBK1ORwu=j+9t55Gg@mail.gmail.com>
On 27/03/12 22:57, Bjorn Helgaas wrote:
[...]
>
> If I understand this correctly, even with this patches, you still have
> to manually muck around with "/sys/bus/pnp/devices/*/resources" to get
> these ThinkPads to work? If that's the case, there must be more PNP
> work we could do to make them Just Work. And that's fine; I'm just
> trying to understand the current situation better. Is there a
> bugzilla or other URL with more details?
>
Yes, this is true: even with this patch applied it is necessary to
explicitly set the IRQ link to disabled. Let me briefly explain it,
using an excerpt from the 600E's DSDT (printer port):
Name (PLPT, ResourceTemplate ()
{
StartDependentFnNoPri ()
{
IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04)
IRQNoFlags () {7}
}
/* Some entries deleted */
StartDependentFnNoPri ()
{
IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04)
IRQNoFlags () {}
}
EndDependentFn ()
})
As you can see, the IRQ line for the second option is empty/disabled.
Also, both options share the same priority, there is no priority of
the first option over the second option.
In order to be able to use the IRQ 7 for some other device, I need
to be able to select the second option, which can be done with the
patch series applied.
As for a bugzilla entry: I did not find any. Frankly, I don't
think there is one, for until recently, disabled resources were
not handled at all (at least in the PNPACPI case). Though, it is
(remotely?) possible the handling of optional IRQ lines
(IORESOURCE_IRQ_OPTIONAL) is obsolete these days (because the
quirks that introduce that flag seem to fix a symptom that could
have been fixed by commit 18fd470a48396c8795ba7256c5973e92ffa25cb3).
--- Witold
prev parent reply other threads:[~2012-04-01 16:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 18:49 [PATCH 0/3] PNP: Allow PNP resources to be disabled (interface) Witold Szczeponik
2012-03-20 19:57 ` [PATCH 1/3] PNP: Simplify setting of resources Witold Szczeponik
2012-03-27 20:32 ` Bjorn Helgaas
2012-04-01 16:05 ` Witold Szczeponik
2012-03-20 20:00 ` [PATCH 2/3] PNP: Allow resources to be set as disabled Witold Szczeponik
2012-03-27 20:38 ` Bjorn Helgaas
2012-04-01 16:06 ` Witold Szczeponik
2012-03-20 20:05 ` [PATCH 3/3] PNP: Allow resource flags to be set explicitly Witold Szczeponik
2012-03-27 20:52 ` Bjorn Helgaas
2012-04-01 16:07 ` Witold Szczeponik
2012-03-27 20:57 ` [PATCH 0/3] PNP: Allow PNP resources to be disabled (interface) Bjorn Helgaas
2012-04-01 16:04 ` Witold Szczeponik [this message]
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=4F787C9C.8050206@gmx.net \
--to=witold.szczeponik@gmx.net \
--cc=bhelgaas@google.com \
--cc=linux-kernel@vger.kernel.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.