Skip to content
Commit e03ef828 authored by Jakub Palider's avatar Jakub Palider Committed by Ruiqiang Hao
Browse files

misc: bphy: Restore static resource allocation



commit 8d949e52c61d0b041609e590385f6192ff8aafe6 from
git@git.assembla.com:cavium/WindRiver.linux.git

Use statically defined data arrays.

This patch is a result of memory corruption observed on
non-fusion platforms when dynamic deallocation takes part
on exit call. The problem does not appear in this driver
but implicitely impacts resource management. To prevent
this data structures are predefined arrays now. This is
half step back - number of maximum active irqs is still
obtained from ATF at runtime to provide some flexibility.

Signed-off-by: default avatarJakub Palider <jpalider@marvell.com>
Change-Id: I6c77cb80ef547c4ffb1cc37dcbff86e106ac2cea
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/49752


Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent 0f343371
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment