mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: linux-kernel@vger.kernel.org, gregkh@suse.de
Subject: Re: [PATCH 04/04] resource: add new IORESOURCE_CLK type
Date: Fri, 11 Jul 2008 12:18:13 -0700	[thread overview]
Message-ID: <20080711121813.acc71327.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080709115502.14144.49264.sendpatchset@rx1.opensource.se>

On Wed, 09 Jul 2008 20:55:02 +0900 Magnus Damm <magnus.damm@gmail.com> wrote:

> This patch rearranges the values of the IORESOURCE_TYPE_BITS from
> one bit per type to a 4-bit counter. Also, IORESOURCE_CLK is added.
> Not sure if it is better to start counting from 0 instead of 1.
> 

I don't believe this is an adequate changelog.  It contains the "what" but
not the "why".

Why did we switch from one-bit to four-bits?

Why did we add IORESOURCE_CLK?

The latter was convered in [0/n] a bit, but not at all clearly/fully.


> ---
> 
>  include/linux/ioport.h |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> --- 0003/include/linux/ioport.h
> +++ work/include/linux/ioport.h	2008-07-09 15:19:45.000000000 +0900
> @@ -37,8 +37,9 @@ struct resource_list {
>  #define IORESOURCE_TYPE_BITS	0x00000f00	/* Resource type */
>  #define IORESOURCE_IO		0x00000100
>  #define IORESOURCE_MEM		0x00000200
> -#define IORESOURCE_IRQ		0x00000400
> -#define IORESOURCE_DMA		0x00000800
> +#define IORESOURCE_IRQ		0x00000300
> +#define IORESOURCE_DMA		0x00000400
> +#define IORESOURCE_CLK		0x00000500
>  
>  #define IORESOURCE_PREFETCH	0x00001000	/* No side effects */
>  #define IORESOURCE_READONLY	0x00002000

  reply	other threads:[~2008-07-11 19:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 11:54 [PATCH 00/04] resource: type and size patches Magnus Damm
2008-07-09 11:54 ` [PATCH 01/04] resource: add resource_size() Magnus Damm
2008-07-09 11:54 ` [PATCH 02/04] resource: add resource_type() and IORESOURCE_TYPE_BITS Magnus Damm
2008-07-09 11:54 ` [PATCH 03/04] resource: use new resource type changes Magnus Damm
2008-07-09 12:11   ` Josh Boyer
2008-07-11 19:18     ` Andrew Morton
2008-07-09 11:55 ` [PATCH 04/04] resource: add new IORESOURCE_CLK type Magnus Damm
2008-07-11 19:18   ` Andrew Morton [this message]
2008-07-15  8:19     ` Magnus Damm
2008-07-17 23:20       ` Andrew Morton

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=20080711121813.acc71327.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    /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

Powered by JetHome