Commit 175df1ee authored by Linus Torvalds's avatar Linus Torvalds

Merge http://linux-mh.bkbits.net/bluetooth-2.6

into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents c143c545 41740fe8
...@@ -160,6 +160,9 @@ void __init ixp2000_map_io(void) ...@@ -160,6 +160,9 @@ void __init ixp2000_map_io(void)
iotable_init(ixp2000_small_io_desc, ARRAY_SIZE(ixp2000_small_io_desc)); iotable_init(ixp2000_small_io_desc, ARRAY_SIZE(ixp2000_small_io_desc));
iotable_init(ixp2000_large_io_desc, ARRAY_SIZE(ixp2000_large_io_desc)); iotable_init(ixp2000_large_io_desc, ARRAY_SIZE(ixp2000_large_io_desc));
early_serial_setup(&ixp2000_serial_port); early_serial_setup(&ixp2000_serial_port);
/* Set slowport to 8-bit mode. */
ixp2000_reg_write(IXP2000_SLOWPORT_FRM, 1);
} }
/************************************************************************* /*************************************************************************
......
...@@ -91,7 +91,7 @@ static void ixdp2x00_irq_unmask(unsigned int irq) ...@@ -91,7 +91,7 @@ static void ixdp2x00_irq_unmask(unsigned int irq)
unsigned long dummy; unsigned long dummy;
static struct slowport_cfg old_cfg; static struct slowport_cfg old_cfg;
#ifdef CONFGI_ARCH_IXDP2400 #ifdef CONFIG_ARCH_IXDP2400
if (machine_is_ixdp2400()) if (machine_is_ixdp2400())
ixp2000_acquire_slowport(&slowport_cpld_cfg, &old_cfg); ixp2000_acquire_slowport(&slowport_cpld_cfg, &old_cfg);
#endif #endif
......
...@@ -284,13 +284,15 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma, ...@@ -284,13 +284,15 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma,
spin_unlock_irqrestore(&consistent_lock, flags); spin_unlock_irqrestore(&consistent_lock, flags);
if (c) { if (c) {
unsigned long off = vma->vm_pgoff;
kern_size = (c->vm_end - c->vm_start) >> PAGE_SHIFT; kern_size = (c->vm_end - c->vm_start) >> PAGE_SHIFT;
if (vma->vm_pgoff < kern_size && if (off < kern_size &&
user_size <= (kern_size - vma->vm_pgoff)) { user_size <= (kern_size - off)) {
vma->vm_flags |= VM_RESERVED; vma->vm_flags |= VM_RESERVED;
ret = remap_pfn_range(vma, vma->vm_start, ret = remap_pfn_range(vma, vma->vm_start,
page_to_pfn(c->vm_pages), page_to_pfn(c->vm_pages) + off,
user_size, vma->vm_page_prot); user_size, vma->vm_page_prot);
} }
} }
......
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