* [PATCH] VLYNQ: vlynq_enable_device should try remote enabling first
@ 2011-03-11 10:57 Florian Fainelli
2011-06-02 13:46 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2011-03-11 10:57 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm
I noticed device lockups on TNETD7200 chips when vlynq_enable_device tried
enabling the device in the following order: external -> local -> remote
inverting the external and remote order fixes the lock up and allows normal
operation of the remote VLYNQ device on all TNETD generations (7100, 7200,
7300).
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/drivers/vlynq/vlynq.c b/drivers/vlynq/vlynq.c
index f885c86..0dd05ce 100644
--- a/drivers/vlynq/vlynq.c
+++ b/drivers/vlynq/vlynq.c
@@ -516,9 +516,9 @@ static int __vlynq_enable_device(struct vlynq_device *dev)
!__vlynq_try_external(dev))
return 0;
} else {
- if (!__vlynq_try_external(dev) ||
- !__vlynq_try_local(dev) ||
- !__vlynq_try_remote(dev))
+ if (!__vlynq_try_remote(dev) ||
+ !__vlynq_try_local(dev) ||
+ !__vlynq_try_external(dev))
return 0;
}
break;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] VLYNQ: vlynq_enable_device should try remote enabling first
2011-03-11 10:57 [PATCH] VLYNQ: vlynq_enable_device should try remote enabling first Florian Fainelli
@ 2011-06-02 13:46 ` Florian Fainelli
0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2011-06-02 13:46 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm
Andrew,
On Friday 11 March 2011 11:57:28 Florian Fainelli wrote:
> I noticed device lockups on TNETD7200 chips when vlynq_enable_device tried
> enabling the device in the following order: external -> local -> remote
>
> inverting the external and remote order fixes the lock up and allows normal
> operation of the remote VLYNQ device on all TNETD generations (7100, 7200,
> 7300).
>
> Signed-off-by: Florian Fainelli <florian@openwrt.org>
I did not get a feedback from you whether you applied this patch or not, it is
still valid though.
Thank you.
> ---
> diff --git a/drivers/vlynq/vlynq.c b/drivers/vlynq/vlynq.c
> index f885c86..0dd05ce 100644
> --- a/drivers/vlynq/vlynq.c
> +++ b/drivers/vlynq/vlynq.c
> @@ -516,9 +516,9 @@ static int __vlynq_enable_device(struct vlynq_device
> *dev) !__vlynq_try_external(dev))
> return 0;
> } else {
> - if (!__vlynq_try_external(dev) ||
> - !__vlynq_try_local(dev) ||
> - !__vlynq_try_remote(dev))
> + if (!__vlynq_try_remote(dev) ||
> + !__vlynq_try_local(dev) ||
> + !__vlynq_try_external(dev))
> return 0;
> }
> break;
> --
> 1.7.1
--
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-02 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 10:57 [PATCH] VLYNQ: vlynq_enable_device should try remote enabling first Florian Fainelli
2011-06-02 13:46 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox