]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: ahci_brcm: Fix use of BCM7216 reset controller
authorJim Quinlan <jim2101024@gmail.com>
Fri, 30 Apr 2021 15:21:55 +0000 (11:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:44 +0000 (10:29 +0200)
commit4d3f043efd23467de3238362ae57e494d94d968b
tree6fd0ca140b2cfe8355b5766ed77aa04012e7f162
parent5dd8b27bb2ba923f76139ac446b7de656a571506
ata: ahci_brcm: Fix use of BCM7216 reset controller

[ Upstream commit e8d6f9e56187c101b325e8d18f1d4032420d08ff ]

This driver may use one of two resets controllers.  Keep them in separate
variables to keep things simple.  The reset controller "rescal" is shared
between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip.  Use
devm_reset_control_get_optional_shared() to handle this sharing.

[bhelgaas: add Jens' ack from v5 posting]
Fixes: 272ecd60a636 ("ata: ahci_brcm: BCM7216 reset is self de-asserting")
Fixes: c345ec6a50e9 ("ata: ahci_brcm: Support BCM7216 reset controller name")
Link: https://lore.kernel.org/r/20210430152156.21162-3-jim2101024@gmail.com
Signed-off-by: Jim Quinlan <jim2101024@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/ahci_brcm.c