Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1286671
| From | Geert Uytterhoeven <geert@linux-m68k.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mtd: sh_flctl: pass FIFO as physical address |
| Date | 2015-12-08 17:40 +0100 |
| Message-ID | <qDtt0-4J4-21@gated-at.bofh.it> (permalink) |
| References | <qDswV-48l-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Dec 8, 2015 at 4:38 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> By convention, the FIFO address we pass using dmaengine_slave_config
> is a physical address in the form that is understood by the DMA
> engine, as a dma_addr_t, phys_addr_t or resource_size_t.
>
> The sh_flctl driver however passes a virtual __iomem address that
> gets cast to dma_addr_t in the slave driver. This happens to work
> on shmobile because that platform sets up an identity mapping for
> its MMIO regions, but such code is not portable to other platforms,
> and prevents us from ever changing the platform mapping or reusing
> the driver on other architectures like ARM64 that might not have the
> mapping.
Note that since the removal of (ARM) sh7367/sh7377/sh7372 support, this
driver is used on SH only.
I'll send a patch to update Kconfig.
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 | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] mtd: sh_flctl: pass FIFO as physical address Arnd Bergmann <arnd@arndb.de> - 2015-12-08 16:40 +0100
Re: [PATCH] mtd: sh_flctl: pass FIFO as physical address Geert Uytterhoeven <geert@linux-m68k.org> - 2015-12-08 17:40 +0100
Re: [PATCH] mtd: sh_flctl: pass FIFO as physical address Brian Norris <computersforpeace@gmail.com> - 2015-12-10 03:30 +0100
Re: [PATCH] mtd: sh_flctl: pass FIFO as physical address Geert Uytterhoeven <geert@linux-m68k.org> - 2015-12-10 10:10 +0100
Re: [PATCH] mtd: sh_flctl: pass FIFO as physical address Arnd Bergmann <arnd@arndb.de> - 2015-12-10 10:30 +0100
csiph-web