[PATCH] Re: Output state handling in 8255 driver

On 17/02/05 23:35, Frank Mori Hess wrote:
> On Monday 14 February 2005 07:36 am, Ian Abbott wrote:
>>Would it be better if:
>>
>>(i) the 8255 driver zeroed its output state when configuring the i/o
>>directions, or
>>(ii) the 8255 driver rewrote its current output state to the chip when
>>the i/o directions have changed?
> 
> I think the first option is better, since it makes more clear to the user 
> that something bad has happened.  If the driver rewrites the output state, 
> it still won't prevent a transient glitch on the output, which could cause 
> people problems.

Here's a patch to do the first option.  It also documents the quirky 
behaviour!

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-02-18Z13:01:51