From: Logan Gunthorpe <logang@deltatee.com>
To: Heiko Carstens <heiko.carstens@de.ibm.com>,
Sebastian Ott <sebott@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Al Viro <viro@ZenIV.linux.org.uk>
Subject: Re: [PATCH] s390: provide default ioremap and iounmap declaration
Date: Fri, 26 May 2017 10:52:34 -0600 [thread overview]
Message-ID: <0dc5ea4a-6567-e0fc-8704-aab119de8cb4@deltatee.com> (raw)
In-Reply-To: <20170526123801.GC14849@osiris>
On 26/05/17 06:38 AM, Heiko Carstens wrote:
> On Thu, May 25, 2017 at 09:43:48AM -0600, Logan Gunthorpe wrote:
> I'd rather move the #ifdef CONFIG_PCI than implementing this yet another
> time (see patch below). But I'll leave that up to Sebastian.
I'd be more than happy with this change. Let me know if you want me to
resubmit a patch that looks like that.
Thanks,
Logan
> diff --git a/arch/s390/include/asm/io.h b/arch/s390/include/asm/io.h
> index 437e9af96688..904e4b3af95d 100644
> --- a/arch/s390/include/asm/io.h
> +++ b/arch/s390/include/asm/io.h
> @@ -25,8 +25,6 @@ void unxlate_dev_mem_ptr(phys_addr_t phys, void *addr);
>
> #define IO_SPACE_LIMIT 0
>
> -#ifdef CONFIG_PCI
> -
> #define ioremap_nocache(addr, size) ioremap(addr, size)
> #define ioremap_wc ioremap_nocache
> #define ioremap_wt ioremap_nocache
> @@ -49,6 +47,8 @@ static inline void ioport_unmap(void __iomem *p)
> {
> }
>
> +#ifdef CONFIG_PCI
> +
> /*
> * s390 needs a private implementation of pci_iomap since ioremap with its
> * offset parameter isn't sufficient. That's because BAR spaces are not
>
next prev parent reply other threads:[~2017-05-26 16:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-25 15:43 [PATCH] s390: provide default ioremap and iounmap declaration Logan Gunthorpe
2017-05-26 12:38 ` Heiko Carstens
2017-05-26 16:52 ` Logan Gunthorpe [this message]
2017-05-29 16:07 ` Sebastian Ott
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=0dc5ea4a-6567-e0fc-8704-aab119de8cb4@deltatee.com \
--to=logang@deltatee.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=schwidefsky@de.ibm.com \
--cc=sebott@linux.vnet.ibm.com \
--cc=viro@ZenIV.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox