mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: AnonimoVeneziano <voloterreno@tin.it>
Cc: linux-kernel@vger.kernel.org, Patrick Petermair <black666@inode.at>
Subject: Re: IDE-CD and VT8235 issue!!!
Date: Wed, 18 Dec 2002 10:03:38 +0100	[thread overview]
Message-ID: <20021218100338.B15267@ucw.cz> (raw)
In-Reply-To: <3DFDDF8C.8030609@tin.it>; from voloterreno@tin.it on Mon, Dec 16, 2002 at 03:13:32PM +0100

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

On Mon, Dec 16, 2002 at 03:13:32PM +0100, AnonimoVeneziano wrote:
> Vojtech Pavlik wrote:
> 
> >On Mon, Dec 16, 2002 at 02:19:56PM +0100, AnonimoVeneziano wrote:
> >  
> >
> >>>>Thanks for all your effort here. It's great to see such a good 
> >>>>community.
> >>>>        
> >>>>
> >>>If you can, please try 2.4.20 with this patch.
> >>>
> >>>      
> >>>
> >>This patch works great!! I've solved with this patch, very good work
> >>
> >>Thank you very much Pavlik!
> >>    
> >>
> >
> >Can you try another patch (on top of the previous one?)? It might still
> >work, and be less intrusive ... (attached)
> >
> >  
> >
> I don't know what u have changed in this patch, but this work great too. ;-)
> Thank you very much again

One more here, if you can try it (and remove the two previous ones
first).

-- 
Vojtech Pavlik
SuSE Labs

[-- Attachment #2: vt8235-min --]
[-- Type: text/plain, Size: 1161 bytes --]

ChangeSet@1.884, 2002-12-18 10:01:30+01:00, vojtech@suse.cz
  vt82cxxx.c IDE: Never use 1 PCICLK address setup, because new devices
  choke on it.


 via82cxxx.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


diff -Nru a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c
--- a/drivers/ide/pci/via82cxxx.c	Wed Dec 18 10:01:43 2002
+++ b/drivers/ide/pci/via82cxxx.c	Wed Dec 18 10:01:43 2002
@@ -286,6 +286,9 @@
  *	@timing: IDE timing data to use
  *
  *	via_set_speed writes timing values to the chipset registers
+ *	Note: we never use the fastest ADDRESS_SETUP timing (1 PCICLK),
+ *	because although it is OK with PIO4, many modern ATAPI devices
+ *	choke on it.
  */
 
 static void via_set_speed(struct pci_dev *dev, u8 dn, struct ide_timing *timing)
@@ -293,7 +296,7 @@
 	u8 t;
 
 	pci_read_config_byte(dev, VIA_ADDRESS_SETUP, &t);
-	t = (t & ~(3 << ((3 - dn) << 1))) | ((FIT(timing->setup, 1, 4) - 1) << ((3 - dn) << 1));
+	t = (t & ~(3 << ((3 - dn) << 1))) | ((FIT(timing->setup, 2, 4) - 1) << ((3 - dn) << 1));
 	pci_write_config_byte(dev, VIA_ADDRESS_SETUP, t);
 
 	pci_write_config_byte(dev, VIA_8BIT_TIMING + (1 - (dn >> 1)),

  reply	other threads:[~2002-12-18  8:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-14 18:40 AnonimoVeneziano
2002-12-14 19:19 ` Patrick Petermair
2002-12-14 23:55   ` AnonimoVeneziano
2002-12-15 13:21     ` AnonimoVeneziano
2002-12-15 20:50     ` Vojtech Pavlik
2002-12-15 21:16       ` AnonimoVeneziano
2002-12-15 21:56       ` Patrick Petermair
2002-12-16 10:34         ` Vojtech Pavlik
2002-12-16 10:39           ` Vojtech Pavlik
2002-12-16 13:45           ` Patrick Petermair
     [not found]           ` <3DFDD2FC.2030700@tin.it>
     [not found]             ` <20021216141945.A32729@ucw.cz>
2002-12-16 14:13               ` AnonimoVeneziano
2002-12-18  9:03                 ` Vojtech Pavlik [this message]
     [not found]                   ` <3E00EE72.1020506@BitWagon.com>
2002-12-18 22:06                     ` AnonimoVeneziano
2002-12-18 19:27                       ` Marcelo Tosatti

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=20021218100338.B15267@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=black666@inode.at \
    --cc=linux-kernel@vger.kernel.org \
    --cc=voloterreno@tin.it \
    /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

Powered by JetHome