|
@@ -129,7 +129,7 @@ struct vsc8531_private {
|
|
|
#ifdef CONFIG_OF_MDIO
|
|
|
struct vsc8531_edge_rate_table {
|
|
|
u32 vddmac;
|
|
|
- u8 slowdown[8];
|
|
|
+ u32 slowdown[8];
|
|
|
};
|
|
|
|
|
|
static const struct vsc8531_edge_rate_table edge_table[] = {
|
|
@@ -386,8 +386,7 @@ out_unlock:
|
|
|
#ifdef CONFIG_OF_MDIO
|
|
|
static int vsc85xx_edge_rate_magic_get(struct phy_device *phydev)
|
|
|
{
|
|
|
- u8 sd;
|
|
|
- u32 vdd;
|
|
|
+ u32 vdd, sd;
|
|
|
int rc, i, j;
|
|
|
struct device *dev = &phydev->mdio.dev;
|
|
|
struct device_node *of_node = dev->of_node;
|
|
@@ -400,7 +399,7 @@ static int vsc85xx_edge_rate_magic_get(struct phy_device *phydev)
|
|
|
if (rc != 0)
|
|
|
vdd = MSCC_VDDMAC_3300;
|
|
|
|
|
|
- rc = of_property_read_u8(of_node, "vsc8531,edge-slowdown", &sd);
|
|
|
+ rc = of_property_read_u32(of_node, "vsc8531,edge-slowdown", &sd);
|
|
|
if (rc != 0)
|
|
|
sd = 0;
|
|
|
|