Commit 45ff993d authored by Linus Torvalds's avatar Linus Torvalds

Merge master.kernel.org:/home/rmk/linux-2.6-arm

* master.kernel.org:/home/rmk/linux-2.6-arm:
  [ARM] pxa: fix one-shot timer mode
  [ARM] 4645/1: Cyberpro: Trivial fix to restore 16bpp mode.
  [ARM] 4644/2: fix flush_kern_tlb_range() in module space
  [ARM] Allow watchdog drivers to be selected again
  [ARM] 4633/1: omap build fix when FB enabled
  [ARM] 4642/2: netX: default config for netx based boards
  [ARM] 4641/2: netX: fix kobject_name type
  [ARM] Fix iop3xx macro
parents cb834e7c 91bc51d8
...@@ -1040,6 +1040,8 @@ source "drivers/power/Kconfig" ...@@ -1040,6 +1040,8 @@ source "drivers/power/Kconfig"
source "drivers/hwmon/Kconfig" source "drivers/hwmon/Kconfig"
source "drivers/watchdog/Kconfig"
source "drivers/ssb/Kconfig" source "drivers/ssb/Kconfig"
#source "drivers/l3/Kconfig" #source "drivers/l3/Kconfig"
......
...@@ -190,15 +190,15 @@ struct xc *request_xc(int xcno, struct device *dev) ...@@ -190,15 +190,15 @@ struct xc *request_xc(int xcno, struct device *dev)
goto exit; goto exit;
if (!request_mem_region if (!request_mem_region
(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, kobject_name(dev->kobj))) (NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, kobject_name(&dev->kobj)))
goto exit_free; goto exit_free;
if (!request_mem_region if (!request_mem_region
(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, kobject_name(dev->kobj))) (NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, kobject_name(&dev->kobj)))
goto exit_release_1; goto exit_release_1;
if (!request_mem_region if (!request_mem_region
(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, kobject_name(dev->kobj))) (SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, kobject_name(&dev->kobj)))
goto exit_release_2; goto exit_release_2;
x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno)); x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno));
......
...@@ -68,6 +68,7 @@ pxa_ost0_interrupt(int irq, void *dev_id) ...@@ -68,6 +68,7 @@ pxa_ost0_interrupt(int irq, void *dev_id)
if (c->mode == CLOCK_EVT_MODE_ONESHOT) { if (c->mode == CLOCK_EVT_MODE_ONESHOT) {
/* Disarm the compare/match, signal the event. */ /* Disarm the compare/match, signal the event. */
OIER &= ~OIER_E0; OIER &= ~OIER_E0;
OSSR = OSSR_M0;
c->event_handler(c); c->event_handler(c);
} else if (c->mode == CLOCK_EVT_MODE_PERIODIC) { } else if (c->mode == CLOCK_EVT_MODE_PERIODIC) {
/* Call the event handler as many times as necessary /* Call the event handler as many times as necessary
...@@ -100,9 +101,9 @@ pxa_ost0_interrupt(int irq, void *dev_id) ...@@ -100,9 +101,9 @@ pxa_ost0_interrupt(int irq, void *dev_id)
* anything that might put us "very close". * anything that might put us "very close".
*/ */
#define MIN_OSCR_DELTA 16 #define MIN_OSCR_DELTA 16
do { do {
OSSR = OSSR_M0; OSSR = OSSR_M0;
next_match = (OSMR0 += LATCH); next_match = (OSMR0 += LATCH);
c->event_handler(c); c->event_handler(c);
} while (((signed long)(next_match - OSCR) <= MIN_OSCR_DELTA) } while (((signed long)(next_match - OSCR) <= MIN_OSCR_DELTA)
&& (c->mode == CLOCK_EVT_MODE_PERIODIC)); && (c->mode == CLOCK_EVT_MODE_PERIODIC));
...@@ -114,14 +115,16 @@ pxa_ost0_interrupt(int irq, void *dev_id) ...@@ -114,14 +115,16 @@ pxa_ost0_interrupt(int irq, void *dev_id)
static int static int
pxa_osmr0_set_next_event(unsigned long delta, struct clock_event_device *dev) pxa_osmr0_set_next_event(unsigned long delta, struct clock_event_device *dev)
{ {
unsigned long irqflags; unsigned long flags, next, oscr;
raw_local_irq_save(irqflags); raw_local_irq_save(flags);
OSMR0 = OSCR + delta;
OSSR = OSSR_M0;
OIER |= OIER_E0; OIER |= OIER_E0;
raw_local_irq_restore(irqflags); next = OSCR + delta;
return 0; OSMR0 = next;
oscr = OSCR;
raw_local_irq_restore(flags);
return (signed)(next - oscr) <= MIN_OSCR_DELTA ? -ETIME : 0;
} }
static void static void
...@@ -132,15 +135,16 @@ pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev) ...@@ -132,15 +135,16 @@ pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev)
switch (mode) { switch (mode) {
case CLOCK_EVT_MODE_PERIODIC: case CLOCK_EVT_MODE_PERIODIC:
raw_local_irq_save(irqflags); raw_local_irq_save(irqflags);
OSMR0 = OSCR + LATCH;
OSSR = OSSR_M0; OSSR = OSSR_M0;
OIER |= OIER_E0; OIER |= OIER_E0;
OSMR0 = OSCR + LATCH;
raw_local_irq_restore(irqflags); raw_local_irq_restore(irqflags);
break; break;
case CLOCK_EVT_MODE_ONESHOT: case CLOCK_EVT_MODE_ONESHOT:
raw_local_irq_save(irqflags); raw_local_irq_save(irqflags);
OIER &= ~OIER_E0; OIER &= ~OIER_E0;
OSSR = OSSR_M0;
raw_local_irq_restore(irqflags); raw_local_irq_restore(irqflags);
break; break;
...@@ -149,6 +153,7 @@ pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev) ...@@ -149,6 +153,7 @@ pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev)
/* initializing, released, or preparing for suspend */ /* initializing, released, or preparing for suspend */
raw_local_irq_save(irqflags); raw_local_irq_save(irqflags);
OIER &= ~OIER_E0; OIER &= ~OIER_E0;
OSSR = OSSR_M0;
raw_local_irq_restore(irqflags); raw_local_irq_restore(irqflags);
break; break;
......
...@@ -171,7 +171,7 @@ static int check_fbmem_region(int region_idx, struct omapfb_mem_region *rg, ...@@ -171,7 +171,7 @@ static int check_fbmem_region(int region_idx, struct omapfb_mem_region *rg,
* Called from map_io. We need to call to this early enough so that we * Called from map_io. We need to call to this early enough so that we
* can reserve the fixed SDRAM regions before VM could get hold of them. * can reserve the fixed SDRAM regions before VM could get hold of them.
*/ */
void omapfb_reserve_sdram(void) void __init omapfb_reserve_sdram(void)
{ {
struct bootmem_data *bdata; struct bootmem_data *bdata;
unsigned long sdram_start, sdram_size; unsigned long sdram_start, sdram_size;
......
This diff is collapsed.
...@@ -874,6 +874,8 @@ static int cyber2000fb_set_par(struct fb_info *info) ...@@ -874,6 +874,8 @@ static int cyber2000fb_set_par(struct fb_info *info)
default: default:
BUG(); BUG();
} }
break;
case 24:/* TRUECOLOUR, 16m */ case 24:/* TRUECOLOUR, 16m */
hw.co_pixfmt = CO_PIXFMT_24BPP; hw.co_pixfmt = CO_PIXFMT_24BPP;
hw.width *= 3; hw.width *= 3;
......
...@@ -231,7 +231,7 @@ extern int init_atu; ...@@ -231,7 +231,7 @@ extern int init_atu;
IOP3XX_PCI_IO_WINDOW_SIZE - 1) IOP3XX_PCI_IO_WINDOW_SIZE - 1)
#define IOP3XX_PCI_UPPER_IO_VA (IOP3XX_PCI_LOWER_IO_VA +\ #define IOP3XX_PCI_UPPER_IO_VA (IOP3XX_PCI_LOWER_IO_VA +\
IOP3XX_PCI_IO_WINDOW_SIZE - 1) IOP3XX_PCI_IO_WINDOW_SIZE - 1)
#define IOP3XX_PCI_IO_PHYS_TO_VIRT(addr) (((u32) addr -\ #define IOP3XX_PCI_IO_PHYS_TO_VIRT(addr) (((u32) (addr) -\
IOP3XX_PCI_LOWER_IO_PA) +\ IOP3XX_PCI_LOWER_IO_PA) +\
IOP3XX_PCI_LOWER_IO_VA) IOP3XX_PCI_LOWER_IO_VA)
......
...@@ -249,7 +249,7 @@ extern struct page *empty_zero_page; ...@@ -249,7 +249,7 @@ extern struct page *empty_zero_page;
#define set_pte_ext(ptep,pte,ext) cpu_set_pte_ext(ptep,pte,ext) #define set_pte_ext(ptep,pte,ext) cpu_set_pte_ext(ptep,pte,ext)
#define set_pte_at(mm,addr,ptep,pteval) do { \ #define set_pte_at(mm,addr,ptep,pteval) do { \
set_pte_ext(ptep, pteval, (addr) >= PAGE_OFFSET ? 0 : PTE_EXT_NG); \ set_pte_ext(ptep, pteval, (addr) >= TASK_SIZE ? 0 : PTE_EXT_NG); \
} while (0) } while (0)
/* /*
......
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