]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ata: ahci_brcm: Add missing clock management during recovery
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 10 Dec 2019 18:53:47 +0000 (10:53 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:21:57 +0000 (16:21 +0100)
commit08c2896450cc90fd938f76144fd2b2f926fc6ca8
tree44d026246160d67ad44f681a63d7f77d110ff5bc
parent32a68706983a3219b59784747a6e889283aa05e6
ata: ahci_brcm: Add missing clock management during recovery

BugLink: https://bugs.launchpad.net/bugs/1860125
commit bf0e5013bc2dcac205417e1252205dca39dfc005 upstream.

The downstream implementation of ahci_brcm.c did contain clock
management recovery, but until recently, did that outside of the
libahci_platform helpers and this was unintentionally stripped out while
forward porting the patch upstream.

Add the missing clock management during recovery and sleep for 10
milliseconds per the design team recommendations to ensure the SATA PHY
controller and AFE have been fully quiesced.

Fixes: eb73390ae241 ("ata: ahci_brcm: Recover from failures to identify devices")
Cc: stable@vger.kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/ata/ahci_brcm.c