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:Jakub Palider <jpalider@marvell.com> Change-Id: I6c77cb80ef547c4ffb1cc37dcbff86e106ac2cea Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/49752 Tested-by:
sa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com> Reviewed-by:
Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by:
Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Loading
Please register or sign in to comment