]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - drivers/parisc/ccio-dma.c
parisc: Use lpa instruction to load physical addresses in driver code
[thirdparty/kernel/linux.git] / drivers / parisc / ccio-dma.c
index 9b434644524c20ca8c597cce0902a2138262ec63..8362517b98f94aa25d10de36657d7078c92ee591 100644 (file)
@@ -570,7 +570,7 @@ ccio_io_pdir_entry(u64 *pdir_ptr, space_t sid, unsigned long vba,
        ** "hints" parm includes the VALID bit!
        ** "dep" clobbers the physical address offset bits as well.
        */
-       pa = virt_to_phys(vba);
+       pa = lpa(vba);
        asm volatile("depw  %1,31,12,%0" : "+r" (pa) : "r" (hints));
        ((u32 *)pdir_ptr)[1] = (u32) pa;