[PARPORT] Re: parport_pc & ECR


Andrea Arcangeli (arcangeli@mbox.queen.it)
Sat, 30 May 1998 20:49:30 +0200 (CEST)


On Sat, 30 May 1998, Andreas Muck wrote:

>Works fine with 0x0 and 0x4. 0x8 breaks it.

Thanks for the efficient report ;-).

Hmm.. 0x8 "only" enable the dma of the ECP parallel port, and you said me
that the printing breaks _only_ when you start to use the sound card at
the same time of the printing with the port in ECP.

You said me also that you set different dma channels for the parallel
port and for the soundcard.

Do you have other dma devices to try to understand if it' s the hardware
that mess? Could be the sound drivers that are generating conflicts with
the parport dma channel (and so the printing breaks)... Could happen also
due buggy hardware (some month ago I had to replace my __new__ motherboard
since it hard locked the machine running under certain conditions
`disable_dma()')...

For other parport developers:

        I think it' s better to set the ECR to 0 and be more compatible as
possible with plain SPP mode as _default_. Then if a device driver will
need dma or other "facilities" it will set the ECR and parport will
preserve its new settings at every parport scheduling switch as usual.

Initializing right ECR and CTR is to be done also when we register a
pardevice (not as now that the new pardevice inherit the port status of
the previous parport owner).

This new patch is against 2.1.103 and include all my latest parport
patches and implement a new very very simple callback
parport_xx_init_state() (should be really bug free ;-) needed to allow
every lowlevel device to initialize the port to the right default state.

In parport_ax it seems that econtrol works as in parport_pc so I
initialized ECR to 0 there too (it was not initialized at all there). For
parport_arc all xxx_state is not implemented (will compile?).

Works fine on my hardware (with EPP...). Andreas could you try it too?

Comments?

Andrea[s] Arcangeli

PS. I updated David' s email address in parport_pc, David, take a look
    also to MAINTAINERS and so on ;-)...

begin 644 parport-2.1.103-1.diff.gz
M'XL("#M1<#4"`W!A<G!O<G0M,BXQ+C$P,RTQ+F1I9F8`W5E;<^)*#GZ&7Z&I
M<VHVB<'8YAHF29$E9&JV9A(VF=FS;Y2Q&W#%V#[M=B[G\M]7ZC;8F&NRV:JM
MDP<(=DO=^B1]DNQJM0J^%R3/-2]P_,1E-?4KLGD4<J'/2N;I::=F-&MF&TRC
MVVQWFU;)U,VRIFD'2M8-,#M=L]TU.N5>#ZJF:55:H-%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<]M>U\7I!KD<W\S]\K`!-/J&JVNV89(/D7<]M8@K\`JO#A0!]GWXB!]L813=6!/
M&0='.JWPHB#NON6!HC3_M$5)H+YD#M&0='.JWPHB#NON6!HC3_M$5)H+YD#H@Y1ER$>-)3GG.<)@/79Y\6-U1ZG(/\
M7EZE1)M7EZE1)TD@9/F+/TK.RFTH'H11G'U(O>`C:Y60,JI-X(4Z;FEN4=^*XO2O9YL
C3\ZRYVHDE1G9G]DRPG$0#BGY*-9]'"TIL/\#7=7JREX>````
`
end

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:48 EST