On Mon, 3 Mar 2008, Carsten Otte wrote: > > Jared Hulbert wrote: > > The problem is that virt_to_phys() gives bogus answer for a > > mtd->point()'ed address. It's a ioremap()'ed address which doesn't > > work with the ARM virt_to_phys(). I can get a physical address from > > mtd->point() with a patch I dropped a little while back. > > Is there a chance virt_to_phys() can be fixed on arm? NO! "virt_to_phys()" is about kernel 1:1-mapped virtual addresses, and "fixing" it would be totally wrong. We don't do crap like following page tables, and we shouldn't encourage anybody to even think that we do. If somebody needs to follow page table pointers, they had better do it themselves and open-code the fact that they are doing something stupid and expensive, not make it easy for everybody else to do that mistake without even realising. A lot of the kernel architecture is all about making it really hard to do stupid things by mistake. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html