From: Richard Hirst <rhirst@linuxcare.com>
To: Helge Deller <deller@gmx.de>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] ASP Parallel port driver broken on HP9000/730
Date: Thu, 15 Feb 2001 09:54:54 +0000 [thread overview]
Message-ID: <20010215095454.X1374@linuxcare.com> (raw)
In-Reply-To: <01021500595803.07438@P100.helgenet.de>; from deller@gmx.de on Thu, Feb 15, 2001 at 01:01:35AM +0100
On Thu, Feb 15, 2001 at 01:01:35AM +0100, Helge Deller wrote:
> I'm still sure, that this is the correct address to test, but maybe we should
> just disable the initialisation of bidirectional mode for machines which
> - have an ASP chip, or
> - have their parport-chip at address 0xf0824800 (which is the only region
> where the ASP has it's parport), or
> - on machines, where "parisc_get_cpu_type(cpu_data[0]) < pcxt_" (from
> hardware.h and processor.h) [but I'm not sure if pcxt_ is correct. You'll
> need to verify]
That parisc_get_cpu_type() bit isn't quite right, how about:
diff -u -r1.7 parport_gsc.c
--- parport_gsc.c 2001/01/25 00:01:32 1.7
+++ parport_gsc.c 2001/02/15 09:42:08
@@ -482,7 +482,7 @@
/*
some older machines with ASP-chip don't support the enhanced parport modes
*/
- if (!pdc_add_valid( (void *)(port+4))) {
+ if (boot_cpu_data.cpu_type > pcxt && !pdc_add_valid( (void *)(port+4))) {
/* Initialize bidirectional-mode (0x10) & data-tranfer-mode #1 (0x20) */
printk("%s: initialize bidirectional-mode.\n", __FUNCTION__);
parport_writeb ( (0x10 + 0x20), port + 4);
Works on my 715/75, where boot_cpu_data.cpu_type = 2 = pcxt.
Richard
next prev parent reply other threads:[~2001-02-15 9:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-09 2:04 [parisc-linux] ASP Parallel port driver broken on HP9000/730 M. Grabert
2001-02-09 3:38 ` Grant Grundler
2001-02-09 13:45 ` M. Grabert
2001-02-09 14:48 ` Helge Deller
2001-02-10 23:25 ` M. Grabert
2001-02-09 17:43 ` Grant Grundler
2001-02-11 20:16 ` M. Grabert
2001-02-12 15:59 ` Matthew Wilcox
2001-02-12 23:18 ` M. Grabert
2001-02-14 16:49 ` Richard Hirst
2001-02-14 16:53 ` [parisc-linux] "M. Grabert" <xam@deathsdoor.com> delivery problems Richard Hirst
2001-02-15 0:01 ` [parisc-linux] ASP Parallel port driver broken on HP9000/730 Helge Deller
2001-02-15 9:54 ` Richard Hirst [this message]
2001-02-15 21:58 ` Helge Deller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010215095454.X1374@linuxcare.com \
--to=rhirst@linuxcare.com \
--cc=deller@gmx.de \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox