[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4862BCA3.8020005@keyaccess.nl>
Date: Wed, 25 Jun 2008 23:46:11 +0200
From: Rene Herman <rene.herman@...access.nl>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: bjorn.helgaas@...com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] PNP: have quirk_system_pci_resources() include io resources.
On 25-06-08 23:16, Andrew Morton wrote:
> On Wed, 25 Jun 2008 19:58:20 +0200
> Rene Herman <rene.herman@...access.nl> wrote:
>
>> + unsigned int type;
>> +
>> + type = pci_resource_flags(pdev, i) &
>> + (IORESOURCE_IO | IORESOURCE_MEM);
>
> pci_resource_flags() returns an unsigned long.
>
> But I think you're right and resource.flags is wrong. Because there's
> no way in which we'll ever be able to use bits 32-63 of that field
> anyway.
>
> I suppose that Someone(tm) should convert resource.flags to a u32 or
> something. Minor issue.
Yes, did notice but pnp_get_resource() then takes those same flags as an
unsigned int -- had to pick one or the other and "the smallest one" then
seemed best...
Rene.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists