Re: [PATCH] 2.5 ide 48-bit usage

Jens Axboe
2003-05-09T06:53:50Z

On Thu, May 08 2003, Alan Cox wrote:
> On Iau, 2003-05-08 at 17:34, Jens Axboe wrote:
> > Might not be a bad idea, drive->address_mode is a heck of a lot more to
> > the point. I'll do a swipe of this tomorrow, if no one beats me to it.
>
> We don't know if in the future drives will support some random mask of modes.
> Would
>
> drive->lba48
> drive->lba96
> drive->..
>
> be safer ?

I had the same thought yesterday, that just because a device does lba89
does not need it supports all of the lower modes. How about just using
the drive->address_mode as a supported field of modes?

if (drive->address_mode & IDE_LBA48)
lba48 = 1;

--
Jens Axboe