diff options
author | Fahad Kunnathadi <fahad.kunnathadi@dexceldesigns.com> | 2017-09-15 06:31:58 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-12 09:51:21 (GMT) |
commit | fc2fe7a06d6d3b6d9f3a0e1880b98fab0fa88341 (patch) | |
tree | 25ef7a7060121c6f2534e516011a42af08b6a2a2 /usr | |
parent | e814bae39ad562608361b851ae79cc7edcc35bf7 (diff) | |
download | linux-fc2fe7a06d6d3b6d9f3a0e1880b98fab0fa88341.tar.xz |
net: phy: Fix mask value write on gmii2rgmii converter speed register
[ Upstream commit f2654a4781318dc7ab8d6cde66f1fa39eab980a9 ]
To clear Speed Selection in MDIO control register(0x10),
ie, clear bits 6 and 13 to zero while keeping other bits same.
Before AND operation,The Mask value has to be perform with bitwise NOT
operation (ie, ~ operator)
This patch clears current speed selection before writing the
new speed settings to gmii2rgmii converter
Fixes: f411a6160bd4 ("net: phy: Add gmiitorgmii converter support")
Signed-off-by: Fahad Kunnathadi <fahad.kunnathadi@dexceldesigns.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions