1
0
Fork 0
alistair23-linux/arch/sh/boards
Geert Uytterhoeven e47e005598 sh: landisk: Add missing initialization of sh_io_port_base
[ Upstream commit 0c64a0dce5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 13:05:38 +02:00
..
mach-ap325rxa driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-cayman sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-dreamcast arch/sh/boards/mach-dreamcast/irq.c: Remove duplicate header 2019-05-14 09:47:44 -07:00
mach-ecovec24 driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07: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-21 13:05:38 +02: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 treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07: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
Kconfig Fix allyesconfig output. 2019-04-21 22:53:58 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01: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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-sh7757lcr.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-sh7785lcr.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08: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
of-generic.c sh: fix multiple function definition build errors 2019-04-05 16:02:31 -10:00