This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: MPC860: quicc_smc_serial_driver change
- From: Gary Thomas <gary at mlbassoc dot com>
- To: nprasad3 at gmu dot edu
- Cc: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: 07 Jan 2004 13:07:13 -0700
- Subject: Re: MPC860: quicc_smc_serial_driver change
- Organization: MLB Associates
- References: <78fe17f091.7f09178fe1@gmu.edu>
On Wed, 2004-01-07 at 11:55, nprasad3@gmu.edu wrote:
> Hi,
>
> I am not sure if this is the correct format for patch submission. If not please let me know and I'll send it in the correct format.
>
> Issue: [BUF_SIZE : 0, *polling* mode]
> ------------------------------------------------------
> 1. putc starts filling in the buffer (after the buffer is full, txbd->length is beyond smc_chan->txsize) and flush routine keeps getting called.
> 2. txbd->length gets reset only in the interrupt handler (*which was never set because outbound buffer length is 0*) and hence this never takes place.
>
> The following change allows use of 1 buffer, buffer is marked to be sent and then we just wait and reset the length.
>
Why do you want to add polling mode to an interrupt-driven driver?
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates