kernel: bump 4.14 to 4.14.67
[oweals/openwrt.git] / target / linux / ar71xx / patches-4.9 / 999-mdio_hack.patch
1 --- a/drivers/net/phy/mdio-boardinfo.c
2 +++ b/drivers/net/phy/mdio-boardinfo.c
3 @@ -49,6 +49,7 @@ mdiobus_register_board_info(struct mdio_
4  
5         for (i = 0; i < n; i++, be++, info++) {
6                 memcpy(&be->board_info, info, sizeof(*info));
7 +               be->board_info.phy_addr = be->board_info.mdio_addr;
8                 mutex_lock(&__mdio_board_lock);
9                 list_add_tail(&be->list, &__mdio_board_list);
10                 mutex_unlock(&__mdio_board_lock);
11 --- a/include/linux/phy.h
12 +++ b/include/linux/phy.h
13 @@ -872,6 +872,7 @@ extern struct bus_type mdio_bus_type;
14  
15  struct mdio_board_info {
16         const char      *bus_id;
17 +       int             mdio_addr;
18         int             phy_addr;
19  
20         const void      *platform_data;