]> git.baikalelectronics.ru Git - kernel.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)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 May 2021 18:15:04 +0000 (13:15 -0500)
commit261b533ae19117a5ade3b80b18a9ea1accd7edec
tree27bec57dc9f1b2fbd33e42b9ef455d79e872a734
parentfb8368a62a92f0ce92776ff511cb64f02c19135e
ata: ahci_brcm: Fix use of BCM7216 reset controller

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: 34291e8fd757 ("ata: ahci_brcm: BCM7216 reset is self de-asserting")
Fixes: 91ecff85d30b ("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>
drivers/ata/ahci_brcm.c