diff options
author | Scott Wood | 2015-04-17 09:19:01 -0500 |
---|---|---|
committer | Tom Rini | 2015-04-18 16:54:29 -0400 |
commit | 9efaca3e847696ed40fca1dbbc621fcc35b8d94c (patch) | |
tree | 2d97706c0a7393f5c716cecb46c1869131a507bd /board/sunxi | |
parent | 3907305fb97c4547af5a03a0107b013ed7e886ca (diff) |
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 <scottwood@freescale.com>
Cc: Vadim Bendebury <vbendeb@chromium.org>
Acked-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/sunxi')
-rw-r--r-- | board/sunxi/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/sunxi/ahci.c b/board/sunxi/ahci.c index b7f0dda2058..6d51b9b8e95 100644 --- a/board/sunxi/ahci.c +++ b/board/sunxi/ahci.c @@ -83,5 +83,5 @@ void scsi_init(void) if (sunxi_ahci_phy_init(SUNXI_SATA_BASE) < 0) return; - ahci_init(SUNXI_SATA_BASE); + ahci_init((void __iomem *)SUNXI_SATA_BASE); } |