diff options
author | Scott Wood <scottwood@freescale.com> | 2015-04-17 09:19:01 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-18 16:54:29 -0400 |
commit | 9efaca3e847696ed40fca1dbbc621fcc35b8d94c (patch) | |
tree | 2d97706c0a7393f5c716cecb46c1869131a507bd /drivers/block/dwc_ahsata.c | |
parent | 3907305fb97c4547af5a03a0107b013ed7e886ca (diff) | |
download | u-boot-9efaca3e847696ed40fca1dbbc621fcc35b8d94c.tar.gz |
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 'drivers/block/dwc_ahsata.c')
-rw-r--r-- | drivers/block/dwc_ahsata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/dwc_ahsata.c b/drivers/block/dwc_ahsata.c index 01a4148a52..cf3ef6be62 100644 --- a/drivers/block/dwc_ahsata.c +++ b/drivers/block/dwc_ahsata.c @@ -343,7 +343,7 @@ static int ahci_init_one(int pdev) | ATA_FLAG_PIO_DMA | ATA_FLAG_NO_ATAPI; - probe_ent->mmio_base = CONFIG_DWC_AHSATA_BASE_ADDR; + probe_ent->mmio_base = (void __iomem *)CONFIG_DWC_AHSATA_BASE_ADDR; /* initialize adapter */ rc = ahci_host_init(probe_ent); |