summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Jaszczyk <jaz@semihalf.com>2018-03-23 16:30:02 +0100
committerKostya Porotchkin <kostap@marvell.com>2018-03-29 14:50:16 +0300
commit73612acb5cd22c311f4f037edbd1dcbb1d686c73 (patch)
treef975a7ee81db3bee3a9a4769f258f872f5198c89
parent889f709908c46e713eff2e6493dfdff12bafbe49 (diff)
mvebu: cp110: improve comments
No functional change Change-Id: If8d88bef1451c3dd961092108ebde7d00eee5167 Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/52626 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Igal Liberman <igall@marvell.com>
-rw-r--r--drivers/marvell/comphy/phy-comphy-cp110.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/marvell/comphy/phy-comphy-cp110.c b/drivers/marvell/comphy/phy-comphy-cp110.c
index d32405bc..7eb8379b 100644
--- a/drivers/marvell/comphy/phy-comphy-cp110.c
+++ b/drivers/marvell/comphy/phy-comphy-cp110.c
@@ -47,11 +47,11 @@
#define COMPHY_MASK(offset, len) (((1 << (len)) - 1) << (offset))
-/* Macro the extract the mode from lane description */
+/* Macro which extracts mode from lane description */
#define COMPHY_GET_MODE(x) (((x) & COMPHY_MODE_MASK) >> COMPHY_MODE_OFFSET)
-/* Macro the extract the unit index from lane description */
+/* Macro which extracts unit index from lane description */
#define COMPHY_GET_ID(x) (((x) & COMPHY_UNIT_ID_MASK) >> COMPHY_UNIT_ID_OFFSET)
-/* Macro the extract the speed from lane description */
+/* Macro which extracts speed from lane description */
#define COMPHY_GET_SPEED(x) (((x) & COMPHY_SPEED_MASK) >> COMPHY_SPEED_OFFSET)
#define COMPHY_SATA_MODE 0x1
@@ -207,7 +207,7 @@ static void mvebu_cp110_comphy_set_phy_selector(uint64_t comphy_base,
mmio_write_32(comphy_base + COMMON_SELECTOR_PHY_REG_OFFSET, reg);
}
-/* Clear PIPE selector - avoid collision with privious configuration */
+/* Clear PIPE selector - avoid collision with previous configuration */
void mvebu_cp110_comphy_clr_pipe_selector(uint64_t comphy_base, uint8_t comphy_index)
{
uint32_t reg, mask, field;