ata: ahci_brcm: Add back regulators management
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 29 Jan 2021 18:28:45 +0000 (10:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:45 +0000 (11:37 +0100)
commit9e61730083eba72d5e0bf25fafe65a9983d28b5c
tree4185cd84fa6b51e6ce378caafcdffa7e8df630e8
parent61a1f0ad45de5541fae1e78260c81d4e7e307a1c
ata: ahci_brcm: Add back regulators management

[ Upstream commit 10340f8d7b6dd54e616339c8ccb2f397133ebea0 ]

While reworking the resources management and departing from using
ahci_platform_enable_resources() which did not allow a proper step
separation like we need, we unfortunately lost the ability to control
AHCI regulators. This broke some Broadcom STB systems that do expect
regulators to be turned on to link up with attached hard drives.

Fixes: c0cdf2ac4b5b ("ata: ahci_brcm: Fix AHCI resources management")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/ahci_brcm.c