]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ata: sata_mv: fix disk hotplug for Armada 370/XP SoCs
authorLior Amsalem <alior@marvell.com>
Tue, 14 Jan 2014 19:09:57 +0000 (20:09 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 15 Jan 2014 12:44:02 +0000 (07:44 -0500)
commit9013d64e661fc2a37a1742670202171c27fef4b5
treee58a512bbc7d8bd815bef96321d2cfc6e24464e9
parentb1f5c73bd5a4752efb7d7af019034044b08aafe9
ata: sata_mv: fix disk hotplug for Armada 370/XP SoCs

On Armada 370/XP SoCs, once a disk is removed from a SATA port, then the
re-plug events are not detected by the sata_mv driver. This patch fixes
the issue by updating the PHY speed in the LP_PHY_CTL register (0x58)
according to the SControl speed.

Note that this fix is only applied if the compatible string
"marvell,armada-370-sata" is found in the SATA DT node.

Fixes: 9ae6f740b49f ("arm: mach-mvebu: add support for Armada 370 and Armada XP with DT")
Signed-off-by: Lior Amsalem <alior@marvell.com>
Signed-off-by: Nadav Haklai <nadavh@marvell.com>
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@free-electrons.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: stable@vger.kernel.org # v3.6+
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_mv.c