mach-s3c64xx: Remove all defintions not related to regs-clocks
Subsystems (4)
PATCH 1/1 mach-s3c64xx: Remove all defintions not related to regs-clocks
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1 -21
@@ -15,24 +15,4 @@#ifndef __PLAT_REGS_CLOCK_H#define __PLAT_REGS_CLOCK_H __FILE__ -/* -* FIXME: Remove remaining definitions -*/ - -#define S3C_CLKREG (x) (S3C_VA_SYS + (x)) - -#define S3C_PCLK_GATE S3C_CLKREG(0x34) -#define S3C6410_CLK_SRC2 S3C_CLKREG(0x10C) -#define S3C_MEM_SYS_CFG S3C_CLKREG(0x120) - -/* PCLK GATE Registers */ -#define S3C_CLKCON_PCLK_UART3 (1<<4) -#define S3C_CLKCON_PCLK_UART2 (1<<3) -#define S3C_CLKCON_PCLK_UART1 (1<<2) -#define S3C_CLKCON_PCLK_UART0 (1<<1) - -/* MEM_SYS_CFG */ -#define MEM_SYS_CFG_INDEP_CF 0x4000 -#define MEM_SYS_CFG_EBI_FIX_PRI_CFCON 0x30 - -#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */
Signature · 1 line
1.9.1
Quoted 29 lines · Nicholas Krause
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-12@@ -15,24 +15,4 @@#ifndef __PLAT_REGS_CLOCK_H#define __PLAT_REGS_CLOCK_H __FILE__ -/* -* FIXME: Remove remaining definitions -*/ - -#define S3C_CLKREG (x) (S3C_VA_SYS + (x)) - -#define S3C_PCLK_GATE S3C_CLKREG(0x34) -#define S3C6410_CLK_SRC2 S3C_CLKREG(0x10C) -#define S3C_MEM_SYS_CFG S3C_CLKREG(0x120) - -/* PCLK GATE Registers */ -#define S3C_CLKCON_PCLK_UART3 (1<<4)
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 18
Quoted 10 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1
-9-#define S3C_CLKCON_PCLK_UART2 (1<<3) -#define S3C_CLKCON_PCLK_UART1 (1<<2) -#define S3C_CLKCON_PCLK_UART0 (1<<1) - -/* MEM_SYS_CFG */ -#define MEM_SYS_CFG_INDEP_CF 0x4000 -#define MEM_SYS_CFG_EBI_FIX_PRI_CFCON 0x30 - -#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */
I don't know about the other changes, but that last line looks like an error. Did you build anything that #includes this header file?
Signature · 1 line
~Randy
Quoted 35 lines · Randy Dunlap
Quoted 34 lines · Nicholas Krause
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-17@@ -15,24 +15,4 @@#ifndef __PLAT_REGS_CLOCK_H#define __PLAT_REGS_CLOCK_H __FILE__ -/* -* FIXME: Remove remaining definitions -*/ - -#define S3C_CLKREG (x) (S3C_VA_SYS + (x)) - -#define S3C_PCLK_GATE S3C_CLKREG(0x34) -#define S3C6410_CLK_SRC2 S3C_CLKREG(0x10C) -#define S3C_MEM_SYS_CFG S3C_CLKREG(0x120) - -/* PCLK GATE Registers */ -#define S3C_CLKCON_PCLK_UART3 (1<<4) -#define S3C_CLKCON_PCLK_UART2 (1<<3) -#define S3C_CLKCON_PCLK_UART1 (1<<2) -#define S3C_CLKCON_PCLK_UART0 (1<<1) - -/* MEM_SYS_CFG */
Quoted 8 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 18
Quoted 5 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1
-4-#define MEM_SYS_CFG_INDEP_CF 0x4000 -#define MEM_SYS_CFG_EBI_FIX_PRI_CFCON 0x30 - -#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */I don't know about the other changes, but that last line looks like an error. Did you build anything that #includes this header file?
I just did
git grep -n S3C_CLKCON_PCLK_UART
It was just a guess. I did not cherry pick the defines that covers! The output of that command is, I think, pretty clear.
Nicholas, I think you've been told already to stop doing what you're doing again here. I try not to use colorful language on the net, but you're really pushing me here.
Please go find something other to do than grepping the kernel tree for FIXMEs!
Paul Bolle
Quoted 51 lines · Paul Bolle
Quoted 35 lines · Randy Dunlap
Quoted 34 lines · Nicholas Krause
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-17@@ -15,24 +15,4 @@#ifndef __PLAT_REGS_CLOCK_H#define __PLAT_REGS_CLOCK_H __FILE__ -/* -* FIXME: Remove remaining definitions -*/ - -#define S3C_CLKREG (x) (S3C_VA_SYS + (x)) - -#define S3C_PCLK_GATE S3C_CLKREG(0x34) -#define S3C6410_CLK_SRC2 S3C_CLKREG(0x10C) -#define S3C_MEM_SYS_CFG S3C_CLKREG(0x120) - -/* PCLK GATE Registers */ -#define S3C_CLKCON_PCLK_UART3 (1<<4) -#define S3C_CLKCON_PCLK_UART2 (1<<3) -#define S3C_CLKCON_PCLK_UART1 (1<<2) -#define S3C_CLKCON_PCLK_UART0 (1<<1) - -/* MEM_SYS_CFG */ Quoted 8 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 18
Quoted 5 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1
-4-#define MEM_SYS_CFG_INDEP_CF 0x4000 -#define MEM_SYS_CFG_EBI_FIX_PRI_CFCON 0x30 - -#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */I don't know about the other changes, but that last line looks like an error. Did you build anything that #includes this header file?
I just did
git grep -nS3C_CLKCON_PCLK_UARTIt was just a guess. I did not cherry pick the defines that covers! The output of that command is, I think, pretty clear.
Quoted 6 lines
Nicholas, I think you've been told already to stop doing what you're doing again here. I try not to use colorful language on the net, but you're really pushing me here.
Please go find something other to do than grepping the kernel tree for FIXMEs!
Yes.
FIXMEs are not a suggested starting point for kernel beginners. If they were easy to fix, they would already be fixed or most likely would never have been introduced.
Signature · 1 line
~Randy
Quoted 61 lines · Randy Dunlap
Quoted 51 lines · Paul Bolle
Quoted 35 lines · Randy Dunlap
Quoted 34 lines · Nicholas Krause
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-17@@ -15,24 +15,4 @@#ifndef __PLAT_REGS_CLOCK_H#define __PLAT_REGS_CLOCK_H __FILE__ -/* -* FIXME: Remove remaining definitions -*/ - -#define S3C_CLKREG (x) (S3C_VA_SYS + (x)) - -#define S3C_PCLK_GATE S3C_CLKREG(0x34) -#define S3C6410_CLK_SRC2 S3C_CLKREG(0x10C) -#define S3C_MEM_SYS_CFG S3C_CLKREG(0x120) - -/* PCLK GATE Registers */ -#define S3C_CLKCON_PCLK_UART3 (1<<4) -#define S3C_CLKCON_PCLK_UART2 (1<<3) -#define S3C_CLKCON_PCLK_UART1 (1<<2) -#define S3C_CLKCON_PCLK_UART0 (1<<1) - -/* MEM_SYS_CFG */ Quoted 8 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 18
Quoted 5 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1
-4-#define MEM_SYS_CFG_INDEP_CF 0x4000 -#define MEM_SYS_CFG_EBI_FIX_PRI_CFCON 0x30 - -#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */I don't know about the other changes, but that last line looks like an error. Did you build anything that #includes this header file?
I just did
git grep -nS3C_CLKCON_PCLK_UARTIt was just a guess. I did not cherry pick the defines that covers! The output of that command is, I think, pretty clear.
Quoted 6 lines
Nicholas, I think you've been told already to stop doing what you're doing again here. I try not to use colorful language on the net, but you're really pushing me here.
Please go find something other to do than grepping the kernel tree for FIXMEs!
linux-kernel at vger.kernel.org
Yes.
Quoted 7 lines
FIXMEs are not a suggested starting point for kernel beginners. If they were easy to fix, they would already be fixed or most likely would never have been introduced.
--
~Randy
Randy,
My mistake I didn't check the tree for files linking to these definitions. I will be more careful ,next time.
Niclk
Quoted 14 lines · Nicholas Krause
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-0
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 24
Quoted 10 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-7@@ -15,24 +15,4 @@#ifndef __PLAT_REGS_CLOCK_H#define __PLAT_REGS_CLOCK_H __FILE__ -/* -* FIXME: Remove remaining definitions -*/ - -#define S3C_CLKREG (x) (S3C_VA_SYS + (x)) - -#define S3C_PCLK_GATE S3C_CLKREG(0x34)
There is another header file that uses the #define S3C_PCLK_GATE above. Deleting it here should be causing a problem here:
./arch/arm/mach-s3c64xx/include/mach/pm-core.h:24: u32 tmp = __raw_readl(S3C_PCLK_GATE);./arch/arm/mach-s3c64xx/include/mach/pm-core.h:37: __raw_writel(tmp, S3C_PCLK_GATE);
Please check things like this in advance.
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 29
Quoted 5 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-5-#define S3C6410_CLK_SRC2 S3C_CLKREG(0x10C) -#define S3C_MEM_SYS_CFG S3C_CLKREG(0x120) - -/* PCLK GATE Registers */ -#define S3C_CLKCON_PCLK_UART3 (1<<4)
used by pm-core.h
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 30
Quoted 1 line
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-1-#define S3C_CLKCON_PCLK_UART2 (1<<3)
used by pm-core.h
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 31
Quoted 1 line
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-1-#define S3C_CLKCON_PCLK_UART1 (1<<2)
used by pm-core.h
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 32
Quoted 1 line
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +0
-1-#define S3C_CLKCON_PCLK_UART0 (1<<1)
used by pm-core.h
Quoted 8 lines
arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1
-6- -/* MEM_SYS_CFG */ -#define MEM_SYS_CFG_INDEP_CF 0x4000 -#define MEM_SYS_CFG_EBI_FIX_PRI_CFCON 0x30 - -#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */
Signature · 1 line
~Randy
Quoted 3 lines · On Monday 14 July 2014 14:14:24 Nicholas Krause wrote:
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
I believe the comment is meant to change the code still using those definitions so they are no longer needed. Just removing them would of course break e.g. s3c_pm_debug_init_uart().
Quoted 4 lines
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)
I have actually got a patch to move s3c64xx into multiplatform, following the s5pv210 work that Tomasz did, see patch below. Related to that would be a move of all header files that are not included by plat-samsung/* from arch/arm/mach-s3c64xx/include/mach/ to arch/arm/mach-s3c64xx/.
The most significant change in my patch set is the move of gpio-samsung.c back from the drivers directory into plat-samsung. I have discussed this with Linus Walleij as the gpio maintainer, and the conclusion is that this would be the least invasive way to deal with the problem. The driver is expected to eventually go away, and it is not used by DT-base machines.
The S3C_ADC is the one remaining show-stopper at this point, because the existing board files rely on this for hwmon (smartq only) and for the touchscreen (mini6410, real6410, smartq and smdk6410) and need to be converted to use the iio driver instead.
Arnd
commit ac0839aaf5042547ab11f5ce77c4e1cc28b4e84d
Author: Arnd Bergmann <[email protected]> Date: Mon Jul 7 14:25:15 2014 +0200
ARM: s3c64xx experimental multiplatform support
arch/arm/Kconfig | 26 ---------------------- arch/arm/configs/multi_v7_defconfig | 3 +++ arch/arm/mach-s3c64xx/Kconfig | 23 +++++++++++++++++++ arch/arm/mach-s3c64xx/Makefile | 3 +++ arch/arm/mach-s3c64xx/common.c | 1 + arch/arm/mach-s3c64xx/dev-uart.c | 1 + arch/arm/mach-s3c64xx/include/mach/irqs.h | 2 +- arch/arm/mach-s3c64xx/include/mach/pm-core.h | 1 + arch/arm/mach-s3c64xx/mach-anw6410.c | 1 + arch/arm/mach-s3c64xx/mach-crag6410-module.c | 2 ++ arch/arm/mach-s3c64xx/mach-crag6410.c | 1 + arch/arm/mach-s3c64xx/mach-mini6410.c | 1 + arch/arm/mach-s3c64xx/mach-real6410.c | 1 + arch/arm/mach-s3c64xx/mach-smdk6410.c | 1 + arch/arm/plat-samsung/Kconfig | 5 ++++- arch/arm/plat-samsung/Makefile | 5 ++++- .../gpio => arch/arm/plat-samsung}/gpio-samsung.c | 1 + drivers/gpio/Kconfig | 7 ------ drivers/gpio/Makefile | 1 - 19 files changed, 49 insertions(+), 37 deletions(-)
arch/arm/Kconfig +0 -26
@@ -609,32 +609,6 @@ config ARCH_S3C24XX (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or the Samsung SMDK2410 development board (and derivatives). -config ARCH_S3C64XX - bool "Samsung S3C64XX" - select ARCH_REQUIRE_GPIOLIB - select ARM_AMBA - select ARM_VIC - select ATAGS - select CLKDEV_LOOKUP - select CLKSRC_SAMSUNG_PWM - select COMMON_CLK_SAMSUNG - select CPU_V6K - select GENERIC_CLOCKEVENTS - select GPIO_SAMSUNG - select HAVE_S3C2410_I2C if I2C - select HAVE_S3C2410_WATCHDOG if WATCHDOG - select HAVE_TCM - select NO_IOPORT_MAP - select PLAT_SAMSUNG - select PM_GENERIC_DOMAINS if PM - select S3C_DEV_NAND - select S3C_GPIO_TRACK - select SAMSUNG_ATAGS - select SAMSUNG_WAKEMASK if PM - select SAMSUNG_WDT_RESET - help - Samsung S3C64XX series based systems - config ARCH_DAVINCI bool "TI DaVinci" select ARCH_HAS_HOLES_MEMORYMODEL
arch/arm/configs/multi_v7_defconfig +3 -0
@@ -9,6 +9,9 @@ CONFIG_PERF_EVENTS=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_PARTITION_ADVANCED=y +CONFIG_ARCH_MULTI_V7=y +# CONFIG_ARCH_MULTI_V5 if not set +# CONFIG_ARCH_MULTI_V4 if not set CONFIG_ARCH_VIRT=y CONFIG_ARCH_MVEBU=y CONFIG_MACH_ARMADA_370=y
arch/arm/mach-s3c64xx/Kconfig +23 -0
@@ -2,6 +2,29 @@ # Simtec Electronics, Ben Dooks <[email protected]> # # Licensed under GPLv2 +menuconfig ARCH_S3C64XX + bool "Samsung S3C64XX" if ARCH_MULTI_V6 + select ARCH_REQUIRE_GPIOLIB + select ARM_AMBA + select ARM_VIC + select ATAGS + select CLKSRC_SAMSUNG_PWM + select COMMON_CLK_SAMSUNG + select CPU_V6K + select GENERIC_CLOCKEVENTS + select GPIO_SAMSUNG + select HAVE_S3C2410_I2C if I2C + select HAVE_S3C2410_WATCHDOG if WATCHDOG + select HAVE_TCM + select PLAT_SAMSUNG + select PM_GENERIC_DOMAINS if PM + select S3C_DEV_NAND + select S3C_GPIO_TRACK + select SAMSUNG_ATAGS + select SAMSUNG_WAKEMASK if PM + select SAMSUNG_WDT_RESET + help + Samsung S3C64XX series based systems if ARCH_S3C64XX
arch/arm/mach-s3c64xx/Makefile +3 -0
@@ -5,6 +5,9 @@ # # Licensed under GPLv2 +ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include +asflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include + obj-y := obj-m := obj-n :=
arch/arm/mach-s3c64xx/common.c +1 -0
@@ -40,6 +40,7 @@#include <asm/system_misc.h> #include <mach/map.h> +#include <mach/irqs.h> #include <mach/hardware.h> #include <mach/regs-gpio.h> #include <mach/gpio-samsung.h>
arch/arm/mach-s3c64xx/dev-uart.c +1 -0
@@ -23,6 +23,7 @@#include <asm/mach/irq.h> #include <mach/hardware.h> #include <mach/map.h> +#include <mach/irqs.h> #include <plat/devs.h>
arch/arm/mach-s3c64xx/include/mach/irqs.h +1 -1
@@ -174,7 +174,7 @@/* Set the default NR_IRQS */ -#define NR_IRQS (IRQ_BOARD_END + 1) +#define S3C64XX_NR_IRQS (IRQ_BOARD_END + 1)/* Compatibility */
arch/arm/mach-s3c64xx/include/mach/pm-core.h +1 -0
@@ -18,6 +18,7 @@#include <linux/serial_s3c.h> #include <mach/regs-gpio.h> +#include <mach/regs-clock.h> static inline void s3c_pm_debug_init_uart (void ) {
arch/arm/mach-s3c64xx/mach-anw6410.c +1 -0
@@ -47,6 +47,7 @@#include <plat/devs.h> #include <plat/cpu.h> +#include <mach/irqs.h> #include <mach/regs-gpio.h> #include <mach/gpio-samsung.h> #include <plat/samsung-time.h>
arch/arm/mach-s3c64xx/mach-crag6410-module.c +2 -0
@@ -29,6 +29,8 @@#include <linux/platform_data/spi-s3c64xx.h> +#include <mach/irqs.h> +#include "crag6410.h" static struct s3c64xx_spi_csinfo wm0010_spi_csinfo = {
arch/arm/mach-s3c64xx/mach-crag6410.c +1 -0
@@ -51,6 +51,7 @@#include <mach/map.h> #include <mach/regs-gpio.h> #include <mach/gpio-samsung.h> +#include <mach/irqs.h> #include <plat/fb.h> #include <plat/sdhci.h>
arch/arm/mach-s3c64xx/mach-mini6410.c +1 -0
@@ -41,6 +41,7 @@#include <linux/platform_data/mmc-sdhci-s3c.h> #include <plat/sdhci.h> #include <linux/platform_data/touchscreen-s3c2410.h> +#include <mach/irqs.h> #include <video/platform_lcd.h> #include <video/samsung_fimd.h>
arch/arm/mach-s3c64xx/mach-real6410.c +1 -0
@@ -33,6 +33,7 @@#include <mach/map.h> #include <mach/regs-gpio.h> #include <mach/gpio-samsung.h> +#include <mach/irqs.h> #include <plat/adc.h> #include <plat/cpu.h>
arch/arm/mach-s3c64xx/mach-smdk6410.c +1 -0
@@ -51,6 +51,7 @@#include <asm/mach/irq.h> #include <mach/hardware.h> +#include <mach/irqs.h> #include <mach/map.h> #include <asm/irq.h>
arch/arm/plat-samsung/Kconfig +4 -1
@@ -43,7 +43,6 @@ config S3C_LOWLEVEL_UART_PORT config SAMSUNG_ATAGS def_bool n - depends on !ARCH_MULTIPLATFORM depends on ATAGS help This option enables ATAGS based boot support code for
@@ -74,6 +73,7 @@ config S3C_GPIO_TRACK config S3C_ADC bool "ADC common driver support" + depends on !ARCH_MULTIPLATFORM help Core support for the ADC block found in the Samsung SoC systems for drivers such as the touchscreen and hwmon to use to share
@@ -289,6 +289,9 @@ config SAMSUNG_WDT_RESET Compile support for system restart by triggering watchdog reset. Used on SoCs that do not provide dedicated reset control. +config GPIO_SAMSUNG + def_bool SAMSUNG_ATAGS + config DEBUG_S3C_UART depends on PLAT_SAMSUNG int
arch/arm/plat-samsung/Makefile +4 -1
@@ -4,7 +4,8 @@ # # Licensed under GPLv2 -ccflags-$(CONFIG_ARCH_MULTI_V7) += -I$(srctree)/$(src)/include +ccflags-$(CONFIG_ARCH_S3C64XX) := -I$(srctree)/arch/arm/mach-s3c64xx/include +ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include obj-y := obj-m :=
@@ -37,6 +38,8 @@ obj-$(CONFIG_S3C_DMA) += dma.o s3c-dma-ops.o obj-$(CONFIG_SAMSUNG_DMADEV) += dma-ops.o +obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o + # PM support samsung-pm-$(CONFIG_SAMSUNG_PM) += pm.o
arch/arm/plat-samsung/gpio-samsung.c renamed from drivers/gpio/gpio-samsung.c +1 -0
@@ -30,6 +30,7 @@#include <asm/irq.h> +#include <mach/irqs.h> #include <mach/map.h> #include <mach/regs-gpio.h>
drivers/gpio/Kconfig +0 -7
@@ -273,13 +273,6 @@ config GPIO_RCAR help Say yes here to support GPIO on Renesas R-Car SoCs. -config GPIO_SAMSUNG - bool - depends on PLAT_SAMSUNG - help - Legacy GPIO support. Use only for platforms without support for - pinctrl. - config GPIO_SCH311X tristate "SMSC SCH311x SuperI/O GPIO" help
drivers/gpio/Makefile +0 -1
@@ -70,7 +70,6 @@ obj-$(CONFIG_GPIO_PXA) += gpio-pxa.o obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o obj-$(CONFIG_GPIO_RCAR) += gpio-rcar.o -obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o obj-$(CONFIG_ARCH_SA1100) += gpio-sa1100.o obj-$(CONFIG_GPIO_SCH) += gpio-sch.o obj-$(CONFIG_GPIO_SCH311X) += gpio-sch311x.o
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 18
Quoted 11 lines · Nicholas Krause
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1
-1-#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */
You're kidding us, right? Given that this was obviously *not* compile tested at all, why should we believe that in fact all those #defines are in fact no longer used?
Hint: There's a very high chance that somebody stuck that FIXME in there rather than just cleaning it up themselves precisely *because* it was still in use in an inconvenient to fix place in the tree..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140714/99d5cb05/attachment.sig>
Quoted 17 lines · On Mon, Jul 14, 2014 at 5:43 PM, <[email protected]> wrote:
arch/arm/mach-s3c64xx/include/mach/regs-clock.h line 18
Quoted 11 lines · Nicholas Krause
This patch addresses the fix me message in this file that states to remove all definitions not related to reg-clocks in this header file.
Signed-off-by Nicholas Krause <[email protected]>--- arch/arm/mach-s3c64xx/include/mach/regs-clock.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-)arch/arm/mach-s3c64xx/include/mach/regs-clock.h +1
-1-#endif /* _PLAT_REGS_CLOCK_H */ +/#endif /* _PLAT_REGS_CLOCK_H */You're kidding us, right? Given that this was obviously *not* compile tested at all, why should we believe that in fact all those #defines are in fact no longer used?
Quoted 4 lines
Hint: There's a very high chance that somebody stuck that FIXME in there rather than just cleaning it up themselves precisely *because* it was still in use in an inconvenient to fix place in the tree..
I build the arch/arm directory I seem to me hitting a error.
arch/arm/xen/enlighten.c:17:29: fatal error: asm/system_misc.h: No
such file or directory
#include <asm/system_misc.h>
I am also looking into fixing this issue.
Cheers Nick