This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MPC860: quicc_smc_serial_driver change


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]