From 9efaca3e847696ed40fca1dbbc621fcc35b8d94c Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Fri, 17 Apr 2015 09:19:01 -0500 Subject: ahci: mmio_base is a virtual address Don't store it in a u32. Don't dereference the bus address as if it were a virtual address (fixes 284231e49a2b4 ("ahci: Support splitting of read transactions into multiple chunks")). Fixes crash on boot in MPC8641HPCN_36BIT target. Signed-off-by: Scott Wood Cc: Vadim Bendebury Acked-by: York Sun --- include/ahci.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ahci.h') diff --git a/include/ahci.h b/include/ahci.h index e8dee53575..6d917121c6 100644 --- a/include/ahci.h +++ b/include/ahci.h @@ -151,7 +151,7 @@ struct ahci_probe_ent { u32 hard_port_no; u32 host_flags; u32 host_set_flags; - u32 mmio_base; + void __iomem *mmio_base; u32 pio_mask; u32 udma_mask; u32 flags; @@ -160,7 +160,7 @@ struct ahci_probe_ent { u32 link_port_map; /*linkup port map*/ }; -int ahci_init(u32 base); -int ahci_reset(u32 base); +int ahci_init(void __iomem *base); +int ahci_reset(void __iomem *base); #endif -- cgit v1.2.1