/[packages]/cauldron/kernel/current/PATCHES/patches/0071-net-dsa-mv88e6xxx-Fix-writing-to-a-PHY-page.patch
ViewVC logotype

Contents of /cauldron/kernel/current/PATCHES/patches/0071-net-dsa-mv88e6xxx-Fix-writing-to-a-PHY-page.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1329221 - (show annotations) (download)
Fri Nov 9 22:05:45 2018 UTC (5 years, 10 months ago) by tmb
File size: 1189 byte(s)
add fixes from sashas autosel queue
1 From dd6d94803930e8807d21d91e8436deb5beca46dd Mon Sep 17 00:00:00 2001
2 From: Andrew Lunn <andrew@lunn.ch>
3 Date: Sun, 2 Sep 2018 18:13:14 +0200
4 Subject: [PATCH 071/145] net: dsa: mv88e6xxx: Fix writing to a PHY page.
5
6 [ Upstream commit c309b158090d788e96ee597444965cb79b040484 ]
7
8 After changing to the needed page, actually write the value to the
9 register!
10
11 Fixes: 09cb7dfd3f14 ("net: dsa: mv88e6xxx: describe PHY page and SerDes")
12 Signed-off-by: Andrew Lunn <andrew@lunn.ch>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 Signed-off-by: Sasha Levin <sashal@kernel.org>
15 ---
16 drivers/net/dsa/mv88e6xxx/phy.c | 3 +++
17 1 file changed, 3 insertions(+)
18
19 diff --git a/drivers/net/dsa/mv88e6xxx/phy.c b/drivers/net/dsa/mv88e6xxx/phy.c
20 index 46af8052e535..152a65d46e0b 100644
21 --- a/drivers/net/dsa/mv88e6xxx/phy.c
22 +++ b/drivers/net/dsa/mv88e6xxx/phy.c
23 @@ -110,6 +110,9 @@ int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy,
24 err = mv88e6xxx_phy_page_get(chip, phy, page);
25 if (!err) {
26 err = mv88e6xxx_phy_write(chip, phy, MV88E6XXX_PHY_PAGE, page);
27 + if (!err)
28 + err = mv88e6xxx_phy_write(chip, phy, reg, val);
29 +
30 mv88e6xxx_phy_page_put(chip, phy);
31 }
32
33 --
34 2.19.1
35

  ViewVC Help
Powered by ViewVC 1.1.30