public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Dalecki <dalecki@evision-ventures.com>
To: Osamu Tomita <tomita@cinet.co.jp>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.5.14 IDE CD-ROM PIO mode
Date: Tue, 07 May 2002 11:57:20 +0200	[thread overview]
Message-ID: <3CD7A500.8030509@evision-ventures.com> (raw)
In-Reply-To: <3CD79586.63E17164@cinet.co.jp>

Uz.ytkownik Osamu Tomita napisa?:
> I could not use CD-ROM drive [PIO mode] on 2.5.14.
> Error messeges are follows.
> 
> May  7 11:05:03 sarah kernel: hdc: cdrom_read_intr: data underrun (4294967292 blocks)
> May  7 11:05:03 sarah kernel: end_request: I/O error, dev 16:00, sector 92
> May  7 11:05:03 sarah kernel: Buffer I/O error on device ide1(22,0), logical block 22
> 
> This patch works fine for me. Please check it.

Indeed this makes very much of sense. I will take it.
How did you see it "hawkeye"?

> --- linux/drivers/ide/ide-cd.c.orig	Mon May  6 12:38:01 2002
> +++ linux/drivers/ide/ide-cd.c	Tue May  7 16:43:51 2002
> @@ -962,7 +962,7 @@
>  
>  	/* First, figure out if we need to bit-bucket
>  	   any of the leading sectors. */
> -	nskip = MIN(rq->current_nr_sectors - bio_sectors(rq->bio), sectors_to_transfer);
> +	nskip = MIN((int)(rq->current_nr_sectors - bio_sectors(rq->bio)), sectors_to_transfer);
>  
>  	while (nskip > 0) {
>  		/* We need to throw away a sector. */


  reply	other threads:[~2002-05-07 11:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-07  8:51 [PATCH] 2.5.14 IDE CD-ROM PIO mode Osamu Tomita
2002-05-07  9:57 ` Martin Dalecki [this message]
2002-05-07 11:41   ` Christoph Hellwig
2002-05-07 10:42     ` Martin Dalecki
2002-05-07 14:29       ` Bartlomiej Zolnierkiewicz
2002-05-07 13:51         ` Martin Dalecki

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=3CD7A500.8030509@evision-ventures.com \
    --to=dalecki@evision-ventures.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tomita@cinet.co.jp \
    /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