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

misc: bphy: Ensure proper cleanup sequence



commit 283152abc8648035d7315cbcdcfc45a01a6f1d89 from
git@git.assembla.com:cavium/WindRiver.linux.git

There appears to be a race condition between irq cleanup
handlers and release procedure.
Freeing resourcs at release() is still too early since
cleanup functions may take place until driver exit(). This
is also a place where resource freeing now takes place. In
order to keep allocation/deallocation symmetry related
resources from now are acquired in init().

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


Reviewed-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Tested-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent 1ea1f672
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