[ar7] refresh 2.6.32 patches
[openwrt/svn-archive/archive.git] / target / linux / ar7 / patches-2.6.32 / 160-vlynq_try_remote_first.patch
1 --- a/drivers/vlynq/vlynq.c
2 +++ b/drivers/vlynq/vlynq.c
3 @@ -514,9 +514,14 @@ static int __vlynq_enable_device(struct
4 !__vlynq_try_external(dev))
5 return 0;
6 } else {
7 - if (!__vlynq_try_external(dev) ||
8 - !__vlynq_try_local(dev) ||
9 - !__vlynq_try_remote(dev))
10 + /* XXX: I don't really know what difference it makes, if the order
11 + * of the following calls is changed, but at least in this order
12 + * my fritzbox doesn't hang at startup as in
13 + * https://dev.openwrt.org/ticket/7324
14 + */
15 + if (!__vlynq_try_remote(dev) ||
16 + !__vlynq_try_local(dev) ||
17 + !__vlynq_try_external(dev))
18 return 0;
19 }
20 break;