OSDN Git Service

ata: ahci_brcm: Perform reset after obtaining resources
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 17 Jan 2020 23:53:12 +0000 (15:53 -0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 18 Jan 2020 00:14:18 +0000 (17:14 -0700)
commit1a0600d112e32eac893d2120207da7887f345495
tree2c25a9b70808924363852dbdf7590fef73590016
parent6fedae3cad8b122c8b0afb26a0569d9910255edd
ata: ahci_brcm: Perform reset after obtaining resources

Resources such as clocks, PHYs, regulators are likely to get a probe
deferral return code, which could lead to the AHCI controller being
reset a few times until it gets successfully probed. Since this is
typically the most time consuming operation, move it after the resources
have been acquired.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/ahci_brcm.c