From: Greg KH <greg@kroah.com>
To: Matthew Gilbert <mgilbert@mvista.com>,
rmk@arm.linux.org.uk, ambx1@neo.rr.com
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
Patrick Mochel <mochel@digitalimplant.org>
Subject: Re: [PATCH] Custom IORESOURCE Class
Date: Mon, 8 Aug 2005 09:00:21 -0700 [thread overview]
Message-ID: <20050808160021.GB7481@kroah.com> (raw)
In-Reply-To: <1123524705.7951.5.camel@localhost.localdomain>
On Mon, Aug 08, 2005 at 11:11:45AM -0700, Matthew Gilbert wrote:
> Below is a patch that adds an additional resource class to the platform
> resource types. This is to support additional resources that need to be passed
> to drivers without overloading the existing specific types. In my case, I need
> to send clock information to the driver to enable power management.
>
> Signed-off-by: Matthew Gilbert <mgilbert@mvista.com>
Hm, you do realize that Pat's no longer the driver core maintainer? :)
Anyway, Russell and Adam, any objections to this patch?
thanks,
greg k-h
> diff -uprN -X dontdiff linux-2.6.12.3.orig/drivers/base/platform.c linux-2.6.12.3/drivers/base/platform.c
> --- linux-2.6.12.3.orig/drivers/base/platform.c 2005-07-15 14:18:57.000000000 -0700
> +++ linux-2.6.12.3/drivers/base/platform.c 2005-08-04 10:54:59.706802768 -0700
> @@ -37,7 +37,7 @@ platform_get_resource(struct platform_de
> struct resource *r = &dev->resource[i];
>
> if ((r->flags & (IORESOURCE_IO|IORESOURCE_MEM|
> - IORESOURCE_IRQ|IORESOURCE_DMA))
> + IORESOURCE_IRQ|IORESOURCE_DMA|IORESOURCE_OTHER))
> == type)
> if (num-- == 0)
> return r;
> @@ -73,7 +73,7 @@ platform_get_resource_byname(struct plat
> struct resource *r = &dev->resource[i];
>
> if ((r->flags & (IORESOURCE_IO|IORESOURCE_MEM|
> - IORESOURCE_IRQ|IORESOURCE_DMA)) == type)
> + IORESOURCE_IRQ|IORESOURCE_DMA|IORESOURCE_OTHER)) == type)
> if (!strcmp(r->name, name))
> return r;
> }
> diff -uprN -X dontdiff linux-2.6.12.3.orig/include/linux/ioport.h linux-2.6.12.3/include/linux/ioport.h
> --- linux-2.6.12.3.orig/include/linux/ioport.h 2005-07-15 14:18:57.000000000 -0700
> +++ linux-2.6.12.3/include/linux/ioport.h 2005-08-04 10:31:14.099528016 -0700
> @@ -35,13 +35,14 @@ struct resource_list {
> #define IORESOURCE_MEM 0x00000200
> #define IORESOURCE_IRQ 0x00000400
> #define IORESOURCE_DMA 0x00000800
> +#define IORESOURCE_OTHER 0x00001000
>
> -#define IORESOURCE_PREFETCH 0x00001000 /* No side effects */
> -#define IORESOURCE_READONLY 0x00002000
> -#define IORESOURCE_CACHEABLE 0x00004000
> -#define IORESOURCE_RANGELENGTH 0x00008000
> -#define IORESOURCE_SHADOWABLE 0x00010000
> -#define IORESOURCE_BUS_HAS_VGA 0x00080000
> +#define IORESOURCE_PREFETCH 0x00010000 /* No side effects */
> +#define IORESOURCE_READONLY 0x00020000
> +#define IORESOURCE_CACHEABLE 0x00040000
> +#define IORESOURCE_RANGELENGTH 0x00080000
> +#define IORESOURCE_SHADOWABLE 0x00100000
> +#define IORESOURCE_BUS_HAS_VGA 0x00800000
>
> #define IORESOURCE_DISABLED 0x10000000
> #define IORESOURCE_UNSET 0x20000000
>
>
next prev parent reply other threads:[~2005-08-08 18:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-08 18:11 [PATCH] Custom IORESOURCE Class Matthew Gilbert
2005-08-08 16:00 ` Greg KH [this message]
2005-08-08 23:17 ` Adam Belay
2005-08-09 4:23 ` Kumar Gala
2005-08-09 23:24 ` Matthew Gilbert
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=20050808160021.GB7481@kroah.com \
--to=greg@kroah.com \
--cc=akpm@osdl.org \
--cc=ambx1@neo.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgilbert@mvista.com \
--cc=mochel@digitalimplant.org \
--cc=rmk@arm.linux.org.uk \
/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.