OpenWrt – Blame information for rev 4

Subversion Repositories:
Rev:
Rev Author Line No. Line
4 office 1 --- a/drivers/net/phy/ar8327.c
2 +++ b/drivers/net/phy/ar8327.c
3 @@ -1279,6 +1279,21 @@ ar8327_sw_set_igmp_v3(struct switch_dev
4 return 0;
5 }
6  
7 +int
8 +ar8xxx_hw_reset(struct switch_dev *dev,
9 + const struct switch_attr *attr,
10 + struct switch_val *val)
11 +{
12 + struct ar8xxx_priv *priv = swdev_to_ar8xxx(dev);
13 + int ret;
14 +
15 + mutex_lock(&priv->reg_mutex);
16 + ret = priv->chip->hw_init(priv);
17 + mutex_unlock(&priv->reg_mutex);
18 +
19 + return ret;
20 +}
21 +
22 static int
23 ar8327_sw_set_port_vlan_prio(struct switch_dev *dev, const struct switch_attr *attr,
24 struct switch_val *val)
25 @@ -1393,6 +1408,12 @@ static const struct switch_attr ar8327_s
26 .get = ar8327_sw_get_igmp_v3,
27 .max = 1
28 },
29 + {
30 + .type = SWITCH_TYPE_NOVAL,
31 + .name = "phy_reset",
32 + .description = "phy hw reset",
33 + .set = ar8xxx_hw_reset,
34 + },
35 };
36  
37 static const struct switch_attr ar8327_sw_attr_port[] = {