[ar7] vlynq: try remote clock first, then external (#7324)
[openwrt/svn-archive/archive.git] / target / linux / ar7 / patches-2.6.32 / 160-vlynq_try_remote_first.patch
1 --- a/drivers/vlynq/vlynq.c 2010-08-02 00:11:14.000000000 +0200
2 +++ b/drivers/vlynq/vlynq.c 2010-10-17 15:49:36.215058054 +0200
3 @@ -515,9 +515,14 @@
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;