Commit c0f62edd authored by Linus Torvalds's avatar Linus Torvalds

Merge branches 'msm-fixes' and 'msm-video' of git://codeaurora.org/quic/kernel/dwalker/linux-msm

* 'msm-fixes' of git://codeaurora.org/quic/kernel/dwalker/linux-msm:
  msm: Kconfig: drop unused config options
  msm: fix compile failure when no debug uart is selected
  msm: fix debug-macro.S build failure
  msm: timer: Decrease shift on timer clocksource
  arm: mach-msm: fix error handling in msm_iommu_probe()
  msm: fix Kconfig target board selection
  msm: fix compile failure on struct membank node member

* 'msm-video' of git://codeaurora.org/quic/kernel/dwalker/linux-msm:
  drivers/video/msm/mddi.c: Remove multiple KERN_<level> uses
  drivers: msm: video: add dev_set_name call
  drivers: video: msm: fix hang on disable_irq
...@@ -6,6 +6,7 @@ choice ...@@ -6,6 +6,7 @@ choice
config ARCH_MSM7X00A config ARCH_MSM7X00A
bool "MSM7x00A / MSM7x01A" bool "MSM7x00A / MSM7x01A"
select MACH_TROUT if !MACH_HALIBUT
select ARCH_MSM_ARM11 select ARCH_MSM_ARM11
select MSM_SMD select MSM_SMD
select MSM_SMD_PKG3 select MSM_SMD_PKG3
...@@ -15,34 +16,34 @@ config ARCH_MSM7X00A ...@@ -15,34 +16,34 @@ config ARCH_MSM7X00A
config ARCH_MSM7X30 config ARCH_MSM7X30
bool "MSM7x30" bool "MSM7x30"
select MACH_MSM7X30_SURF # if !
select ARCH_MSM_SCORPION select ARCH_MSM_SCORPION
select MSM_SMD select MSM_SMD
select MSM_VIC select MSM_VIC
select CPU_V7 select CPU_V7
select MSM_REMOTE_SPINLOCK_DEKKERS
select MSM_GPIOMUX select MSM_GPIOMUX
select MSM_PROC_COMM select MSM_PROC_COMM
select HAS_MSM_DEBUG_UART_PHYS select HAS_MSM_DEBUG_UART_PHYS
config ARCH_QSD8X50 config ARCH_QSD8X50
bool "QSD8X50" bool "QSD8X50"
select MACH_QSD8X50_SURF if !MACH_QSD8X50A_ST1_5
select ARCH_MSM_SCORPION select ARCH_MSM_SCORPION
select MSM_SMD select MSM_SMD
select MSM_VIC select MSM_VIC
select CPU_V7 select CPU_V7
select MSM_REMOTE_SPINLOCK_LDREX
select MSM_GPIOMUX select MSM_GPIOMUX
select MSM_PROC_COMM select MSM_PROC_COMM
select HAS_MSM_DEBUG_UART_PHYS select HAS_MSM_DEBUG_UART_PHYS
config ARCH_MSM8X60 config ARCH_MSM8X60
bool "MSM8X60" bool "MSM8X60"
select MACH_MSM8X60_SURF if (!MACH_MSM8X60_RUMI3 && !MACH_MSM8X60_SIM \
&& !MACH_MSM8X60_FFA)
select ARM_GIC select ARM_GIC
select CPU_V7 select CPU_V7
select MSM_V2_TLMM select MSM_V2_TLMM
select MSM_GPIOMUX select MSM_GPIOMUX
select MACH_MSM8X60_SURF if (!MACH_MSM8X60_RUMI3 && !MACH_MSM8X60_SIM \
&& !MACH_MSM8X60_FFA)
endchoice endchoice
......
...@@ -83,7 +83,6 @@ static void __init halibut_fixup(struct machine_desc *desc, struct tag *tags, ...@@ -83,7 +83,6 @@ static void __init halibut_fixup(struct machine_desc *desc, struct tag *tags,
{ {
mi->nr_banks=1; mi->nr_banks=1;
mi->bank[0].start = PHYS_OFFSET; mi->bank[0].start = PHYS_OFFSET;
mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET);
mi->bank[0].size = (101*1024*1024); mi->bank[0].size = (101*1024*1024);
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/msm_iomap.h> #include <mach/msm_iomap.h>
#ifdef CONFIG_HAS_MSM_DEBUG_UART_PHYS #if defined(CONFIG_HAS_MSM_DEBUG_UART_PHYS) && !defined(CONFIG_MSM_DEBUG_UART_NONE)
.macro addruart, rp, rv .macro addruart, rp, rv
ldr \rp, =MSM_DEBUG_UART_PHYS ldr \rp, =MSM_DEBUG_UART_PHYS
ldr \rv, =MSM_DEBUG_UART_BASE ldr \rv, =MSM_DEBUG_UART_BASE
...@@ -36,7 +36,18 @@ ...@@ -36,7 +36,18 @@
tst \rd, #0x04 tst \rd, #0x04
beq 1001b beq 1001b
.endm .endm
#else
.macro addruart, rp, rv
mov \rv, #0xff000000
orr \rv, \rv, #0x00f00000
.endm
.macro busyuart,rd,rx .macro senduart,rd,rx
.endm
.macro waituart,rd,rx
.endm .endm
#endif #endif
.macro busyuart,rd,rx
.endm
...@@ -128,7 +128,7 @@ static void msm_iommu_reset(void __iomem *base) ...@@ -128,7 +128,7 @@ static void msm_iommu_reset(void __iomem *base)
static int msm_iommu_probe(struct platform_device *pdev) static int msm_iommu_probe(struct platform_device *pdev)
{ {
struct resource *r; struct resource *r, *r2;
struct clk *iommu_clk; struct clk *iommu_clk;
struct msm_iommu_drvdata *drvdata; struct msm_iommu_drvdata *drvdata;
struct msm_iommu_dev *iommu_dev = pdev->dev.platform_data; struct msm_iommu_dev *iommu_dev = pdev->dev.platform_data;
...@@ -183,27 +183,27 @@ static int msm_iommu_probe(struct platform_device *pdev) ...@@ -183,27 +183,27 @@ static int msm_iommu_probe(struct platform_device *pdev)
len = r->end - r->start + 1; len = r->end - r->start + 1;
r = request_mem_region(r->start, len, r->name); r2 = request_mem_region(r->start, len, r->name);
if (!r) { if (!r2) {
pr_err("Could not request memory region: " pr_err("Could not request memory region: "
"start=%p, len=%d\n", (void *) r->start, len); "start=%p, len=%d\n", (void *) r->start, len);
ret = -EBUSY; ret = -EBUSY;
goto fail; goto fail;
} }
regs_base = ioremap(r->start, len); regs_base = ioremap(r2->start, len);
if (!regs_base) { if (!regs_base) {
pr_err("Could not ioremap: start=%p, len=%d\n", pr_err("Could not ioremap: start=%p, len=%d\n",
(void *) r->start, len); (void *) r2->start, len);
ret = -EBUSY; ret = -EBUSY;
goto fail; goto fail_mem;
} }
irq = platform_get_irq_byname(pdev, "secure_irq"); irq = platform_get_irq_byname(pdev, "secure_irq");
if (irq < 0) { if (irq < 0) {
ret = -ENODEV; ret = -ENODEV;
goto fail; goto fail_io;
} }
mb(); mb();
...@@ -211,14 +211,14 @@ static int msm_iommu_probe(struct platform_device *pdev) ...@@ -211,14 +211,14 @@ static int msm_iommu_probe(struct platform_device *pdev)
if (GET_IDR(regs_base) == 0) { if (GET_IDR(regs_base) == 0) {
pr_err("Invalid IDR value detected\n"); pr_err("Invalid IDR value detected\n");
ret = -ENODEV; ret = -ENODEV;
goto fail; goto fail_io;
} }
ret = request_irq(irq, msm_iommu_fault_handler, 0, ret = request_irq(irq, msm_iommu_fault_handler, 0,
"msm_iommu_secure_irpt_handler", drvdata); "msm_iommu_secure_irpt_handler", drvdata);
if (ret) { if (ret) {
pr_err("Request IRQ %d failed with ret=%d\n", irq, ret); pr_err("Request IRQ %d failed with ret=%d\n", irq, ret);
goto fail; goto fail_io;
} }
msm_iommu_reset(regs_base); msm_iommu_reset(regs_base);
...@@ -237,6 +237,10 @@ static int msm_iommu_probe(struct platform_device *pdev) ...@@ -237,6 +237,10 @@ static int msm_iommu_probe(struct platform_device *pdev)
return 0; return 0;
fail_io:
iounmap(regs_base);
fail_mem:
release_mem_region(r->start, len);
fail: fail:
kfree(drvdata); kfree(drvdata);
return ret; return ret;
......
...@@ -137,7 +137,7 @@ static struct msm_clock msm_clocks[] = { ...@@ -137,7 +137,7 @@ static struct msm_clock msm_clocks[] = {
.rating = 200, .rating = 200,
.read = msm_gpt_read, .read = msm_gpt_read,
.mask = CLOCKSOURCE_MASK(32), .mask = CLOCKSOURCE_MASK(32),
.shift = 24, .shift = 17,
.flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS,
}, },
.irq = { .irq = {
......
...@@ -318,7 +318,7 @@ static long mddi_wait_interrupt_timeout(struct mddi_info *mddi, ...@@ -318,7 +318,7 @@ static long mddi_wait_interrupt_timeout(struct mddi_info *mddi,
static void mddi_wait_interrupt(struct mddi_info *mddi, uint32_t intmask) static void mddi_wait_interrupt(struct mddi_info *mddi, uint32_t intmask)
{ {
if (mddi_wait_interrupt_timeout(mddi, intmask, HZ/10) == 0) if (mddi_wait_interrupt_timeout(mddi, intmask, HZ/10) == 0)
printk(KERN_INFO KERN_ERR "mddi_wait_interrupt %d, timeout " printk(KERN_INFO "mddi_wait_interrupt %d, timeout "
"waiting for %x, INT = %x, STAT = %x gotint = %x\n", "waiting for %x, INT = %x, STAT = %x gotint = %x\n",
current->pid, intmask, mddi_readl(INT), mddi_readl(STAT), current->pid, intmask, mddi_readl(INT), mddi_readl(STAT),
mddi->got_int); mddi->got_int);
...@@ -465,8 +465,7 @@ static int __init mddi_get_client_caps(struct mddi_info *mddi) ...@@ -465,8 +465,7 @@ static int __init mddi_get_client_caps(struct mddi_info *mddi)
if (mddi->flags & FLAG_HAVE_CAPS) if (mddi->flags & FLAG_HAVE_CAPS)
break; break;
printk(KERN_INFO KERN_ERR "mddi_init, timeout waiting for " printk(KERN_INFO "mddi_init, timeout waiting for caps\n");
"caps\n");
} }
return mddi->flags & FLAG_HAVE_CAPS; return mddi->flags & FLAG_HAVE_CAPS;
} }
......
...@@ -90,7 +90,7 @@ static int locked_disable_mdp_irq(struct mdp_info *mdp, uint32_t mask) ...@@ -90,7 +90,7 @@ static int locked_disable_mdp_irq(struct mdp_info *mdp, uint32_t mask)
mdp_irq_mask &= ~(mask); mdp_irq_mask &= ~(mask);
/* if no one is waiting on the interrupt, disable it */ /* if no one is waiting on the interrupt, disable it */
if (!mdp_irq_mask) { if (!mdp_irq_mask) {
disable_irq(mdp->irq); disable_irq_nosync(mdp->irq);
if (clk) if (clk)
clk_disable(clk); clk_disable(clk);
} }
...@@ -482,6 +482,7 @@ int mdp_probe(struct platform_device *pdev) ...@@ -482,6 +482,7 @@ int mdp_probe(struct platform_device *pdev)
/* register mdp device */ /* register mdp device */
mdp->mdp_dev.dev.parent = &pdev->dev; mdp->mdp_dev.dev.parent = &pdev->dev;
mdp->mdp_dev.dev.class = mdp_class; mdp->mdp_dev.dev.class = mdp_class;
dev_set_name(&mdp->mdp_dev.dev, "mdp%d", pdev->id);
/* if you can remove the platform device you'd have to implement /* if you can remove the platform device you'd have to implement
* this: * this:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment