Skip to content

Commit d762f43

Browse files
committed
Merge branch 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (23 commits) sh: Ignore R_SH_NONE module relocations. SH: SE7751: Fix pcibios_map_platform_irq prototype. sh: remove warning and warning_symbol from struct stacktrace_ops sh: wire up sys_sendmmsg. clocksource: sh_tmu: Runtime PM support clocksource: sh_tmu: __clocksource_updatefreq_hz() update clocksource: sh_cmt: Runtime PM support clocksource: sh_cmt: __clocksource_updatefreq_hz() update dmaengine: shdma: synchronize RCU before freeing, simplify spinlock dmaengine: shdma: add runtime- and system-level power management dmaengine: shdma: fix locking sh: sh-sci: sh7377 and sh73a0 build fixes sh: cosmetic improvement: use an existing pointer serial: sh-sci: suspend/resume wakeup support V2 serial: sh-sci: Runtime PM support sh: select IRQ_FORCED_THREADING. sh: intc: Set virtual IRQs as nothread. sh: fixup fpu.o compile order i2c: add a module alias to the sh-mobile driver ALSA: add a module alias to the FSI driver ...
2 parents 5214638 + 78207ff commit d762f43

26 files changed

Lines changed: 235 additions & 157 deletions

File tree

‎arch/sh/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config SUPERH
2121
select HAVE_REGS_AND_STACK_ACCESS_API
2222
select HAVE_GENERIC_HARDIRQS
2323
select HAVE_SPARSE_IRQ
24+
select IRQ_FORCED_THREADING
2425
select RTC_LIB
2526
select GENERIC_ATOMIC64
2627
select GENERIC_IRQ_SHOW

‎arch/sh/boards/mach-ecovec24/setup.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static struct i2c_board_info ts_i2c_clients = {
482482
.irq = IRQ0,
483483
};
484484

485-
#if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE)
485+
#if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
486486
/* SDHI0 */
487487
static void sdhi0_set_pwr(struct platform_device *pdev, int state)
488488
{
@@ -522,7 +522,7 @@ static struct platform_device sdhi0_device = {
522522
},
523523
};
524524

525-
#if !defined(CONFIG_MMC_SH_MMCIF)
525+
#if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE)
526526
/* SDHI1 */
527527
static void sdhi1_set_pwr(struct platform_device *pdev, int state)
528528
{
@@ -836,7 +836,7 @@ static struct platform_device vou_device = {
836836
},
837837
};
838838

839-
#if defined(CONFIG_MMC_SH_MMCIF)
839+
#if defined(CONFIG_MMC_SH_MMCIF) || defined(CONFIG_MMC_SH_MMCIF_MODULE)
840840
/* SH_MMCIF */
841841
static void mmcif_set_pwr(struct platform_device *pdev, int state)
842842
{
@@ -898,9 +898,9 @@ static struct platform_device *ecovec_devices[] __initdata = {
898898
&ceu0_device,
899899
&ceu1_device,
900900
&keysc_device,
901-
#if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE)
901+
#if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
902902
&sdhi0_device,
903-
#if !defined(CONFIG_MMC_SH_MMCIF)
903+
#if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE)
904904
&sdhi1_device,
905905
#endif
906906
#else
@@ -912,7 +912,7 @@ static struct platform_device *ecovec_devices[] __initdata = {
912912
&fsi_device,
913913
&irda_device,
914914
&vou_device,
915-
#if defined(CONFIG_MMC_SH_MMCIF)
915+
#if defined(CONFIG_MMC_SH_MMCIF) || defined(CONFIG_MMC_SH_MMCIF_MODULE)
916916
&sh_mmcif_device,
917917
#endif
918918
};
@@ -1180,7 +1180,7 @@ static int __init arch_setup(void)
11801180
gpio_direction_input(GPIO_PTR5);
11811181
gpio_direction_input(GPIO_PTR6);
11821182

1183-
#if defined(CONFIG_MMC_TMIO) || defined(CONFIG_MMC_TMIO_MODULE)
1183+
#if defined(CONFIG_MMC_SDHI) || defined(CONFIG_MMC_SDHI_MODULE)
11841184
/* enable SDHI0 on CN11 (needs DS2.4 set to ON) */
11851185
gpio_request(GPIO_FN_SDHI0CD, NULL);
11861186
gpio_request(GPIO_FN_SDHI0WP, NULL);
@@ -1193,7 +1193,7 @@ static int __init arch_setup(void)
11931193
gpio_request(GPIO_PTB6, NULL);
11941194
gpio_direction_output(GPIO_PTB6, 0);
11951195

1196-
#if !defined(CONFIG_MMC_SH_MMCIF)
1196+
#if !defined(CONFIG_MMC_SH_MMCIF) && !defined(CONFIG_MMC_SH_MMCIF_MODULE)
11971197
/* enable SDHI1 on CN12 (needs DS2.6,7 set to ON,OFF) */
11981198
gpio_request(GPIO_FN_SDHI1CD, NULL);
11991199
gpio_request(GPIO_FN_SDHI1WP, NULL);
@@ -1284,7 +1284,7 @@ static int __init arch_setup(void)
12841284
gpio_request(GPIO_PTU5, NULL);
12851285
gpio_direction_output(GPIO_PTU5, 0);
12861286

1287-
#if defined(CONFIG_MMC_SH_MMCIF)
1287+
#if defined(CONFIG_MMC_SH_MMCIF) || defined(CONFIG_MMC_SH_MMCIF_MODULE)
12881288
/* enable MMCIF (needs DS2.6,7 set to OFF,ON) */
12891289
gpio_request(GPIO_FN_MMC_D7, NULL);
12901290
gpio_request(GPIO_FN_MMC_D6, NULL);

‎arch/sh/configs/ecovec24_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ CONFIG_USB_GADGET=y
115115
CONFIG_USB_FILE_STORAGE=m
116116
CONFIG_MMC=y
117117
CONFIG_MMC_SPI=y
118-
CONFIG_MMC_TMIO=y
118+
CONFIG_MMC_SDHI=y
119119
CONFIG_RTC_CLASS=y
120120
CONFIG_RTC_DRV_RS5C372=y
121121
CONFIG_UIO=y

‎arch/sh/configs/sh7757lcr_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ CONFIG_USB_EHCI_HCD=y
7070
CONFIG_USB_OHCI_HCD=y
7171
CONFIG_USB_STORAGE=y
7272
CONFIG_MMC=y
73-
CONFIG_MMC_TMIO=y
73+
CONFIG_MMC_SDHI=y
7474
CONFIG_MMC_SH_MMCIF=y
7575
CONFIG_EXT2_FS=y
7676
CONFIG_EXT3_FS=y

‎arch/sh/drivers/pci/fixups-se7751.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <linux/io.h>
77
#include "pci-sh4.h"
88

9-
int __init pcibios_map_platform_irq(u8 slot, u8 pin)
9+
int __init pcibios_map_platform_irq(struct pci_dev *, u8 slot, u8 pin)
1010
{
1111
switch (slot) {
1212
case 0: return 13;

‎arch/sh/include/asm/stacktrace.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
/* Generic stack tracer with callbacks */
1111

1212
struct stacktrace_ops {
13-
void (*warning)(void *data, char *msg);
14-
/* msg must contain %s for the symbol */
15-
void (*warning_symbol)(void *data, char *msg, unsigned long symbol);
1613
void (*address)(void *data, unsigned long address, int reliable);
1714
/* On negative return stop dumping */
1815
int (*stack)(void *data, char *name);

‎arch/sh/include/asm/unistd_32.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,9 @@
373373
#define __NR_open_by_handle_at 360
374374
#define __NR_clock_adjtime 361
375375
#define __NR_syncfs 362
376+
#define __NR_sendmmsg 363
376377

377-
#define NR_syscalls 363
378+
#define NR_syscalls 364
378379

379380
#ifdef __KERNEL__
380381

‎arch/sh/include/asm/unistd_64.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,11 @@
394394
#define __NR_open_by_handle_at 371
395395
#define __NR_clock_adjtime 372
396396
#define __NR_syncfs 373
397+
#define __NR_sendmmsg 374
397398

398399
#ifdef __KERNEL__
399400

400-
#define NR_syscalls 374
401+
#define NR_syscalls 375
401402

402403
#define __ARCH_WANT_IPC_PARSE_VERSION
403404
#define __ARCH_WANT_OLD_READDIR

‎arch/sh/kernel/cpu/Makefile‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@ obj-$(CONFIG_ARCH_SHMOBILE) += shmobile/
1717

1818
obj-$(CONFIG_SH_ADC) += adc.o
1919
obj-$(CONFIG_SH_CLK_CPG_LEGACY) += clock-cpg.o
20-
obj-$(CONFIG_SH_FPU) += fpu.o
21-
obj-$(CONFIG_SH_FPU_EMU) += fpu.o
2220

23-
obj-y += irq/ init.o clock.o hwblk.o proc.o
21+
obj-y += irq/ init.o clock.o fpu.o hwblk.o proc.o

‎arch/sh/kernel/cpu/shmobile/pm_runtime.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static int default_platform_runtime_suspend(struct device *dev)
157157
might_sleep();
158158

159159
/* catch misconfigured drivers not starting with resume */
160-
if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &pdev->archdata.flags)) {
160+
if (test_bit(PDEV_ARCHDATA_FLAG_INIT, &ad->flags)) {
161161
ret = -EINVAL;
162162
goto out;
163163
}
@@ -170,8 +170,8 @@ static int default_platform_runtime_suspend(struct device *dev)
170170

171171
/* put device on idle list */
172172
spin_lock_irqsave(&hwblk_lock, flags);
173-
list_add_tail(&pdev->archdata.entry, &hwblk_idle_list);
174-
__set_bit(PDEV_ARCHDATA_FLAG_IDLE, &pdev->archdata.flags);
173+
list_add_tail(&ad->entry, &hwblk_idle_list);
174+
__set_bit(PDEV_ARCHDATA_FLAG_IDLE, &ad->flags);
175175
spin_unlock_irqrestore(&hwblk_lock, flags);
176176

177177
/* increase idle count */

0 commit comments

Comments
 (0)