linux/arch/sh/boards
Geert Uytterhoeven 0c64a0dce5 sh: landisk: Add missing initialization of sh_io_port_base
The Landisk setup code maps the CF IDE area using ioremap_prot(), and
passes the resulting virtual addresses to the pata_platform driver,
disguising them as I/O port addresses.  Hence the pata_platform driver
translates them again using ioport_map().
As CONFIG_GENERIC_IOMAP=n, and CONFIG_HAS_IOPORT_MAP=y, the
SuperH-specific mapping code in arch/sh/kernel/ioport.c translates
I/O port addresses to virtual addresses by adding sh_io_port_base, which
defaults to -1, thus breaking the assumption of an identity mapping.

Fix this by setting sh_io_port_base to zero.

Fixes: 37b7a97884 ("sh: machvec IO death.")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rich Felker <dalias@libc.org>
2020-08-14 22:43:17 -04:00
..
mach-ap325rxa driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-dreamcast arch/sh/boards/mach-dreamcast/irq.c: Remove duplicate header 2019-05-14 09:47:44 -07:00
mach-ecovec24 sh: ecovec24: don't set unused fields in platform data 2019-11-11 11:34:01 +00:00
mach-highlander sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-hp6xx sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-kfr2r09 driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-landisk sh: landisk: Add missing initialization of sh_io_port_base 2020-08-14 22:43:17 -04:00
mach-lboxre2 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-microdev treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-migor driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-r2d sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-rsk sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-sdk7780 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-sdk7786 remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
mach-se driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-sh03 Merge branch 'akpm' (patches from Andrew) 2018-12-28 16:55:46 -08:00
mach-sh7763rdp sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-x3proto sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-apsh4a3a.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-apsh4ad0a.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-edosk7705.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-edosk7760.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-espt.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-magicpanelr2.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-polaris.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-secureedge5410.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-sh2007.c sh: sh2007: Modernize printing of kernel messages 2020-08-14 22:05:10 -04:00
board-sh7757lcr.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-sh7785lcr.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
board-shmin.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-titan.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-urquell.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
Kconfig sh: Remove SH5-based Cayman platform 2020-08-14 22:05:06 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
of-generic.c sh: fix multiple function definition build errors 2019-04-05 16:02:31 -10:00