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

Greg KH greg at kroah.com
Thu Aug 14 22:18:21 UTC 2008


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



More information about the devel mailing list