diff options
-rw-r--r-- | arch/avr32/boards/atstk1000/atstk1002.c | 1 | ||||
-rw-r--r-- | arch/avr32/mm/fault.c | 2 | ||||
-rw-r--r-- | include/asm-avr32/arch-at32ap/gpio.h | 2 | ||||
-rw-r--r-- | include/asm-avr32/cache.h | 9 |
4 files changed, 13 insertions, 1 deletions
diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c index fe1dbe2e28f4..e253e86a1a39 100644 --- a/arch/avr32/boards/atstk1000/atstk1002.c +++ b/arch/avr32/boards/atstk1000/atstk1002.c | |||
@@ -42,6 +42,7 @@ static struct spi_board_info spi0_board_info[] __initdata = { | |||
42 | .modalias = "ltv350qv", | 42 | .modalias = "ltv350qv", |
43 | .max_speed_hz = 16000000, | 43 | .max_speed_hz = 16000000, |
44 | .chip_select = 1, | 44 | .chip_select = 1, |
45 | .mode = SPI_MODE_3, | ||
45 | }, | 46 | }, |
46 | }; | 47 | }; |
47 | 48 | ||
diff --git a/arch/avr32/mm/fault.c b/arch/avr32/mm/fault.c index e011f1ce1875..4b2495285d94 100644 --- a/arch/avr32/mm/fault.c +++ b/arch/avr32/mm/fault.c | |||
@@ -158,7 +158,7 @@ bad_area: | |||
158 | up_read(&mm->mmap_sem); | 158 | up_read(&mm->mmap_sem); |
159 | 159 | ||
160 | if (user_mode(regs)) { | 160 | if (user_mode(regs)) { |
161 | if (exception_trace) | 161 | if (exception_trace && printk_ratelimit()) |
162 | printk("%s%s[%d]: segfault at %08lx pc %08lx " | 162 | printk("%s%s[%d]: segfault at %08lx pc %08lx " |
163 | "sp %08lx ecr %lu\n", | 163 | "sp %08lx ecr %lu\n", |
164 | is_init(tsk) ? KERN_EMERG : KERN_INFO, | 164 | is_init(tsk) ? KERN_EMERG : KERN_INFO, |
diff --git a/include/asm-avr32/arch-at32ap/gpio.h b/include/asm-avr32/arch-at32ap/gpio.h index 80a21aa9ae77..af7f9535bab3 100644 --- a/include/asm-avr32/arch-at32ap/gpio.h +++ b/include/asm-avr32/arch-at32ap/gpio.h | |||
@@ -14,6 +14,8 @@ int gpio_direction_output(unsigned int gpio, int value); | |||
14 | int gpio_get_value(unsigned int gpio); | 14 | int gpio_get_value(unsigned int gpio); |
15 | void gpio_set_value(unsigned int gpio, int value); | 15 | void gpio_set_value(unsigned int gpio, int value); |
16 | 16 | ||
17 | #include <asm-generic/gpio.h> /* cansleep wrappers */ | ||
18 | |||
17 | static inline int gpio_to_irq(unsigned int gpio) | 19 | static inline int gpio_to_irq(unsigned int gpio) |
18 | { | 20 | { |
19 | return gpio + GPIO_IRQ_BASE; | 21 | return gpio + GPIO_IRQ_BASE; |
diff --git a/include/asm-avr32/cache.h b/include/asm-avr32/cache.h index dabb955f3c00..d3cf35ab11ab 100644 --- a/include/asm-avr32/cache.h +++ b/include/asm-avr32/cache.h | |||
@@ -4,6 +4,15 @@ | |||
4 | #define L1_CACHE_SHIFT 5 | 4 | #define L1_CACHE_SHIFT 5 |
5 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) | 5 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) |
6 | 6 | ||
7 | /* | ||
8 | * Memory returned by kmalloc() may be used for DMA, so we must make | ||
9 | * sure that all such allocations are cache aligned. Otherwise, | ||
10 | * unrelated code may cause parts of the buffer to be read into the | ||
11 | * cache before the transfer is done, causing old data to be seen by | ||
12 | * the CPU. | ||
13 | */ | ||
14 | #define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES | ||
15 | |||
7 | #ifndef __ASSEMBLER__ | 16 | #ifndef __ASSEMBLER__ |
8 | struct cache_info { | 17 | struct cache_info { |
9 | unsigned int ways; | 18 | unsigned int ways; |