ARM: 8566/1: drivers: amba: properly handle devices with power domains
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 21 Apr 2016 06:58:35 +0000 (07:58 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 5 May 2016 18:00:40 +0000 (19:00 +0100)
commita41980f2a3eb33ed7a2636e83498b47e95ceb05b
tree7a85fde3ff00fe6964f0dbbe334736b4c36e82d1
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
ARM: 8566/1: drivers: amba: properly handle devices with power domains

To read pid/cid registers, the probed device need to be properly turned on.
When it is inside a power domain, the bus code should ensure that the
given power domain is enabled before trying to access device's registers.
However in some cases power domain (or clocks) might not be yet available.
Returning -EPROBE_DEFER is not a solution in such case, because callers
don't handle this special error code. Instead such devices are added to the
special list and their registration is retried from periodic worker until
all resources are available.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c
This page took 0.02625 seconds and 5 git commands to generate.