diff options
author | Roy Pledge <Roy.Pledge@freescale.com> | 2013-10-23 17:31:50 (GMT) |
---|---|---|
committer | Rivera Jose-B46482 <German.Rivera@freescale.com> | 2013-10-24 19:06:16 (GMT) |
commit | 500837de503650e001e4a1cb3177f4a4c69529cc (patch) | |
tree | 9fdc3653bef217d72a69a6ebb72f152c7bc1afe7 /drivers/net/ethernet/freescale/fsl_pq_mdio.c | |
parent | e312f01b0df471deccfd21a0cd24f7babb5817a0 (diff) | |
download | linux-fsl-qoriq-500837de503650e001e4a1cb3177f4a4c69529cc.tar.xz |
Prevent kernel panic if USDPAA mem cannot be allocated
USDPAA DMA memory is allocated very early in the boot process
using the memblock_alloc functions. The old function would
call panic() in cases that the allocation would fail, but
no indication would be given on the console since the
drivers were not loaded yet. This patch changes the function
called so that the panic will not occur and debug info can be
seen in the boot log
Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com>
Change-Id: I8ebe9eb826973ea8ef6d16ba6fc73512b779ab77
Reviewed-on: http://git.am.freescale.net:8181/5953
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com>
Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com>
Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fsl_pq_mdio.c')
0 files changed, 0 insertions, 0 deletions