summaryrefslogtreecommitdiff
path: root/drivers/ata/sata_dwc_460ex.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-12-04 22:28:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 11:21:06 +0300
commitd5c58be987bb73c6f5e9e24f9a4dc2703d035849 (patch)
tree369848577fd238a392834ba20f3f021b9be079c4 /drivers/ata/sata_dwc_460ex.c
parent725bbd5ce9f4e0253b5f6924521ce9f6423c3b76 (diff)
downloadlinux-d5c58be987bb73c6f5e9e24f9a4dc2703d035849.tar.xz
ata: ahci: mvebu: do Armada 38x configuration only on relevant SoCs
[ Upstream commit 96dbcb40e4b1a387cdb9b21f43638c759aebb5a4 ] At the beginning, only Armada 38x SoCs where supported by the ahci_mvebu.c driver. Commit 15d3ce7b63bd ("ata: ahci_mvebu: add support for Armada 3700 variant") introduced Armada 3700 support. As opposed to Armada 38x SoCs, the 3700 variants do not have to configure mbus and the regret option. This patch took care of avoiding such configuration when not needed in the probe function, but failed to do the same in the resume path. While doing so looks harmless by experience, let's clean the driver logic and avoid doing this useless configuration with Armada 3700 SoCs. Because the logic is very similar between these two places, it has been decided to factorize this code and put it in a "Armada 38x configuration function". This function is part of a new (per-compatible) platform data structure, so that the addition of such configuration function for Armada 3700 will be eased. Fixes: 15d3ce7b63bd ("ata: ahci_mvebu: add support for Armada 3700 variant") Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/ata/sata_dwc_460ex.c')
0 files changed, 0 insertions, 0 deletions