Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff0fa48f authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Chris Ball
Browse files

mmc: sdhi: Enable driver compilation with COMPILE_TEST



This helps increasing build testing coverage.

The driver doesn't compile on (at least) x86 due (possibly among others)
to missing readsw/writesw I/O accessors, restrict compilation to SUPERH
or ARM.

Whether the CTL_DMA_ENABLE register is part of the standard TMIO
controller or is Renesas-specific is unknown and impossible to test as
we have no current or planned TMIO DMA users other than SUPERH and
ARCH_SHMOBILE. Writing to the register is thus conditionally compiled
for SUPERH and ARCH_SHMOBILE only. Adding ARCH_SHMOBILE_MULTI to the
list would extend this to multiarch kernels, but would break the driver
for non-shmobile platforms if the register is Renesas-specific. We can
thus get rid of the conditional compilation completely without
introducing any further issue, and let future non-Renesas users deal
with the situation if it turns out to be a the problem.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarSimon Horman <horms@verge.net.au>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 67debea3
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -479,7 +479,8 @@ config MMC_TMIO


config MMC_SDHI
config MMC_SDHI
	tristate "SH-Mobile SDHI SD/SDIO controller support"
	tristate "SH-Mobile SDHI SD/SDIO controller support"
	depends on SUPERH || ARCH_SHMOBILE
	depends on SUPERH || ARM
	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
	select MMC_TMIO_CORE
	select MMC_TMIO_CORE
	help
	help
	  This provides support for the SDHI SD/SDIO controller found in
	  This provides support for the SDHI SD/SDIO controller found in