ata: sata_mv: add proper definitions for LP_PHY_CTL register values
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 19 Mar 2015 13:36:37 +0000 (14:36 +0100)
committerTejun Heo <tj@kernel.org>
Thu, 19 Mar 2015 18:20:03 +0000 (14:20 -0400)
commit3661aa99d82ed06e3781964d43d89be1050593c0
treee63a7da1b74c753891bba8497a5dcdd1a0dea761
parent7b09ac704bac2de5bf0362793edc22a0094e381c
ata: sata_mv: add proper definitions for LP_PHY_CTL register values

Commit 9013d64e661fc ("ata: sata_mv: fix disk hotplug for Armada
370/XP SoCs") added some manipulation of the LP_PHY_CTL register, but
using magic values. This commit changes the code to use proper
definitions for the LP_PHY_CTL register, which allows to document what
the different bits are doing.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_mv.c