Porting a driver for a VME-PCI bridge from 2.4 to 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 10, 2008 at 02:45:18AM +0200, Tilman Glotzner wrote:
> Hello
> 
> I was eventually to make the ported driver work (please see my posting
> from Thu Apr 24 02:24:53 PDT 2008):
> 
> "return remap_page_range(vma, vma->vm_start, vma->vm_pgoff <<
> 
> PAGE_SHIFT,vma->vm_end - vma->vm_start, vma->vm_page_prot);"
> needs to be changed to
> 
> "return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
> vma->vm_end - vma->vm_start, vma->vm_page_prot);"
> 
> 
> rather than
> 
> "return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff << PAGE_SHIFT,
> vma->vm_end - vma->vm_start, vma->vm_page_prot);"
> 
> remap_pfn_range is the shift operation by PAGE_SHIFT already build in.

Great, have you submitted the driver for inclusion in the kernel tree?

thanks,

greg k-h


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux