net: phy: mscc: the extended page access register is 16 bits
Subsystems (3)
PATCH 1/1 net: phy: mscc: the extended page access register is 16 bits
The Extended Page Access is a 16-bit register, so change the page parameter of vsc85xx_phy_page_set to a u16.
--- drivers/net/phy/mscc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/mscc.c +1 -1
@@ -123,7 +123,7 @@ static const struct vsc8531_edge_rate_table edge_table[] = { };#endif /* CONFIG_OF_MDIO */ -static int vsc85xx_phy_page_set (struct phy_device *phydev,u8 page) +static int vsc85xx_phy_page_set (struct phy_device *phydev,u16 page) {int rc;
Signature · 1 line
2.17.1
Quoted 4 lines · Quentin Schulz
The Extended Page Access is a 16-bit register, so change the page parameter of
vsc85xx_phy_page_setto a u16.Signed-off-by Quentin Schulz <[email protected]>
Andrew
Quoted 4 lines · Quentin Schulz
The Extended Page Access is a 16-bit register, so change the page parameter of
vsc85xx_phy_page_setto a u16.Signed-off-by Quentin Schulz <[email protected]>
Quoted 20 lines
--- drivers/net/phy/mscc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/phy/mscc.c +1
-1@@ -123,7 +123,7 @@ static const struct vsc8531_edge_rate_table edge_table[] = { };#endif /* CONFIG_OF_MDIO */ -static int vsc85xx_phy_page_set (struct phy_device *phydev,u8 page) +static int vsc85xx_phy_page_set (struct phy_device *phydev,u16 page) {int rc;Signature · 1 line
2.17.1
Signature · 3 lines
Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
From: Quentin Schulz <[email protected]>
Date: Mon, 30 Jul 2018 14:53:13 +0200
Quoted 4 lines
The Extended Page Access is a 16-bit register, so change the page parameter of
vsc85xx_phy_page_setto a u16.Signed-off-by Quentin Schulz <[email protected]>
Applied.
Quoted 4 lines · Quentin Schulz
The Extended Page Access is a 16-bit register, so change the page parameter of
vsc85xx_phy_page_setto a u16.Signed-off-by Quentin Schulz <[email protected]>
Since you targeted net-next for this patch, I am assuming this is not yet a problem, but would soon be one with the changes you plan on introducing?
Quoted 18 lines
--- drivers/net/phy/mscc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/phy/mscc.c +1
-1@@ -123,7 +123,7 @@ static const struct vsc8531_edge_rate_table edge_table[] = { };#endif /* CONFIG_OF_MDIO */ -static int vsc85xx_phy_page_set (struct phy_device *phydev,u8 page) +static int vsc85xx_phy_page_set (struct phy_device *phydev,u16 page) {int rc;
Signature · 1 line
Florian
Hi Florian,
Quoted 10 lines · Florian Fainelli
Quoted 4 lines · Quentin Schulz
The Extended Page Access is a 16-bit register, so change the page parameter of
vsc85xx_phy_page_setto a u16.Signed-off-by Quentin Schulz <[email protected]>Since you targeted net-next for this patch, I am assuming this is not yet a problem, but would soon be one with the changes you plan on introducing?
Yes indeed. When I get the quad-port PHY things to go as planned, then I'll need sometimes to change to a page that is above the size of a u16. For now, all the pages are accessed with a number that is lower than the size of a u16, so it isn't a problem.
Quentin