qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4/5] pxa2xx: fix SSSR TFN logic


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH 4/5] pxa2xx: fix SSSR TFN logic
Date: Sat, 4 Sep 2010 15:53:31 +0000

On Sat, Sep 4, 2010 at 3:30 PM, andrzej zaborowski <address@hidden> wrote:
> Hi,
>
> On 4 September 2010 16:17, Blue Swirl <address@hidden> wrote:
>> Fix SSSR TFN logic: TX FIFO is never filled, so it is always in
>> underrun condition if SSP is enabled.
>
> As far as I see this doesn't make any change when the port is enabled?
>  How does it fix the logic then?

Before, TFS flag was never cleared, so if the port was enabled and
then disabled the flag remained set. According to my reading of the
manual, this shouldn't be the case. As you noticed, the logic does not
change for the case where the port is enabled.

The previous check was always true. If you prefer, the patch could be
simplified to something like this:
-        if (0 <= SSCR1_TFT(s->sscr[1]))
-            s->sssr |= SSSR_TFS;
-        else
-            s->sssr &= ~SSSR_TFS;
+        /* TX FIFO is never filled, so it is always in underrun
+           condition if SSP is enabled */
+        s->sssr |= SSSR_TFS;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]