]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sata: ahci-da850: implement a workaround for the softreset quirk
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 4 Apr 2017 19:32:27 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:42:10 +0000 (12:42 +0200)
commit53a898c2dc3bf12e1454011b4e438738a1c47e96
tree10e302743509a5d8ea07568fcbb570e944b3a719
parentfcfd2ac4abfbeddaec28499481647b4db35bede2
sata: ahci-da850: implement a workaround for the softreset quirk

[ Upstream commit f4d435f3265661d04e5290a0a0450e3a38898128 ]

There's an issue with the da850 SATA controller: if port multiplier
support is compiled in, but we're connecting the drive directly to
the SATA port on the board, the drive can't be detected.

To make SATA work on the da850-lcdk board: first try to softreset
with pmp - if the operation fails with -EBUSY, retry without pmp.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/ahci_da850.c