Skip to content
Commit e963408e authored by Russell King's avatar Russell King
Browse files

drivers/amba: fix reset control error handling



With commit 79bdcb20 ("ARM: 8906/1: drivers/amba: add reset control
to amba bus probe") it is possible for the the amba bus driver to defer
probing the device for its IDs because the reset driver may be probed
later.

However when a subsequent probe occurs, the call to request_resource()
in the driver returns -EBUSY as the driver has not released the resource
from the initial probe attempt - or cleaned up any of the preceding
actions.

Fix this both for the deferred probe case as well as a failure to get
the reset.

Fixes: 79bdcb20 ("ARM: 8906/1: drivers/amba: add reset control to amba bus probe")
Reported-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Tested-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 79bdcb20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment