提交 39eb4ed5 编写于 作者: J Joakim Tjernlund 提交者: Greg Kroah-Hartman

usb: fhci-hcd: Allocate pram dynamically.

MPC832x does not have enough MURAM to do fixed MURAM allocation.
Change to dynamic allocation.
Signed-off-by: NJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 74ad6029
...@@ -621,12 +621,15 @@ static int __devinit of_fhci_probe(struct platform_device *ofdev) ...@@ -621,12 +621,15 @@ static int __devinit of_fhci_probe(struct platform_device *ofdev)
goto err_pram; goto err_pram;
} }
pram_addr = cpm_muram_alloc_fixed(iprop[2], FHCI_PRAM_SIZE); pram_addr = cpm_muram_alloc(FHCI_PRAM_SIZE, 64);
if (IS_ERR_VALUE(pram_addr)) { if (IS_ERR_VALUE(pram_addr)) {
dev_err(dev, "failed to allocate usb pram\n"); dev_err(dev, "failed to allocate usb pram\n");
ret = -ENOMEM; ret = -ENOMEM;
goto err_pram; goto err_pram;
} }
qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, QE_CR_SUBBLOCK_USB,
QE_CR_PROTOCOL_UNSPECIFIED, pram_addr);
fhci->pram = cpm_muram_addr(pram_addr); fhci->pram = cpm_muram_addr(pram_addr);
/* GPIOs and pins */ /* GPIOs and pins */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册