Skip to content

Commit 39eb4ed

Browse files
Joakim Tjernlundgregkh
authored andcommitted
usb: fhci-hcd: Allocate pram dynamically.
MPC832x does not have enough MURAM to do fixed MURAM allocation. Change to dynamic allocation. Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 74ad602 commit 39eb4ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/usb/host/fhci-hcd.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,12 +621,15 @@ static int __devinit of_fhci_probe(struct platform_device *ofdev)
621621
goto err_pram;
622622
}
623623

624-
pram_addr = cpm_muram_alloc_fixed(iprop[2], FHCI_PRAM_SIZE);
624+
pram_addr = cpm_muram_alloc(FHCI_PRAM_SIZE, 64);
625625
if (IS_ERR_VALUE(pram_addr)) {
626626
dev_err(dev, "failed to allocate usb pram\n");
627627
ret = -ENOMEM;
628628
goto err_pram;
629629
}
630+
631+
qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, QE_CR_SUBBLOCK_USB,
632+
QE_CR_PROTOCOL_UNSPECIFIED, pram_addr);
630633
fhci->pram = cpm_muram_addr(pram_addr);
631634

632635
/* GPIOs and pins */

0 commit comments

Comments
 (0)