[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200808252223.54795.bzolnier@gmail.com>
Date: Mon, 25 Aug 2008 22:23:54 +0200
From: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
To: Sergei Shtylyov <sshtylyov@...mvista.com>
Cc: linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/9] ide-disk: set_addressing() fixes
On Saturday 23 August 2008, Sergei Shtylyov wrote:
> Hello.
>
> Bartlomiej Zolnierkiewicz wrote:
>
> > * Return -EIO if arg > 0 and LBA48 is unsupported.
> >
> > * No need to reset ->addressing.
> >
> > * Make ->addressing a single bit flag.
> >
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
> >
> [...]
> > Index: b/include/linux/ide.h
> > ===================================================================
> > --- a/include/linux/ide.h
> > +++ b/include/linux/ide.h
> > @@ -507,7 +507,7 @@ struct ide_drive_s {
> > unsigned sleeping : 1; /* 1=sleeping & sleep field valid */
> > unsigned post_reset : 1;
> > unsigned udma33_warned : 1;
> > - unsigned addressing : 2; /* 0=28-bit, 1=48-bit, 2=48-bit doing 28-bit */
> > + unsigned addressing : 1; /* 0=28-bit, 1=48-bit */
> > unsigned wcache : 1; /* status of write cache */
> > unsigned nowerr : 1; /* used for ignoring ATA_DF */
> >
>
> Don't you want to get rid of things like:
>
> u8 lba48 = (drive->addressing == 1) ? 1 : 0;
This was dealt with in "[PATCH 5/9] ide: add device flags" - since patch
#5/9 was going to touch the code anyway and there were no benefits besides
aesthetics in doing it in #2/9 I optimized the development process a bit...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists