[PATCH v2] net: dsa: fix filling routing table from OF description

2015-04-04 Thread Pavel Nakonechny
tested on a custom board with two Marvell 88E6095 switches with following corresponding routing tables: { -1, 10 } and { 8, -1 }. Signed-off-by: Pavel Nakonechny Reviewed-by: Andrew Lunn --- Documentation/devicetree/bindings/net/dsa/dsa.txt | 4 +++- net/dsa/dsa.c

Re: [PATCH] net: dsa: fix filling rtable from OF description

2015-04-04 Thread Pavel Nakonechny
Hi Andrew В письме от 4 апреля 2015 18:38:14 пользователь Andrew Lunn написал: > There is the code after applying your patch: > > static int dsa_of_setup_routing_table(struct dsa_platform_data *pd, > struct dsa_chip_data *cd, >

[PATCH] net: dsa: fix filling rtable from OF description

2015-04-04 Thread Pavel Nakonechny
now just looks for target switch number by parsing parent of 'link' device node. This was tested on custom board with two Marvell 88E6095 switches with following corresponding rtables: { -1, 10 } and { 8, -1 }. Signed-off-by: Pavel Nakonechny --- net/dsa/dsa.c | 19 +++-