Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1175028

Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases

From Geert Uytterhoeven <geert@linux-m68k.org>
Newsgroups linux.kernel
Subject Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases
Date 2015-07-01 09:20 +0200
Message-ID <pHktk-24l-17@gated-at.bofh.it> (permalink)
References (2 earlier) <pEcBY-iO-23@gated-at.bofh.it> <pHcFs-7yN-3@gated-at.bofh.it> <pHjGW-1xX-17@gated-at.bofh.it> <pHk9Y-1I7-19@gated-at.bofh.it> <pHkjE-20T-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jul 1, 2015 at 8:59 AM, Christoph Hellwig <hch@lst.de> wrote:
> On Wed, Jul 01, 2015 at 08:55:57AM +0200, Geert Uytterhoeven wrote:
>> >
>> > I think doing this at runtime might be a better idea.  E.g. a
>> > ioremap_flags with the CACHED argument will return -EOPNOTSUP unless
>> > actually implemented.  On various architectures different CPUs or
>> > boards will have different capabilities in this area.
>>
>> So it would be the responsibility of the caller to fall back from
>> ioremap(..., CACHED) to ioremap(..., UNCACHED)?
>> I.e. all drivers using it should be changed...
>
> All of the zero users we currently have will need to be changed, yes.

Good. Less work to convert all of these ;-)

> Note that I propose to leave ioremap(), aka ioremap_flags(..., 0) as
> a default that always has to work, -EOPNOTSUP is only a valid return
> value for non-default flaga.

OK.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases Geert Uytterhoeven <geert@linux-m68k.org> - 2015-07-01 09:20 +0200
  Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases Christoph Hellwig <hch@lst.de> - 2015-07-01 09:30 +0200
    Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases "Luis R. Rodriguez" <mcgrof@suse.com> - 2015-07-07 12:00 +0200
      Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-07-07 12:20 +0200
        Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases Geert Uytterhoeven <geert@linux-m68k.org> - 2015-07-07 12:30 +0200
        Re: [PATCH v5 2/6] arch: unify ioremap prototypes and macro aliases Toshi Kani <toshi.kani@hp.com> - 2015-07-08 01:20 +0200

csiph-web