All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 7/8] ide: add IDE_HFLAG_NO_LBA48 and IDE_HFLAG_NO_LBA48_DMA host flags
       [not found] <200708271934.18313.bzolnier@gmail.com>
@ 2007-10-04 14:53 ` Sergei Shtylyov
  0 siblings, 0 replies; only message in thread
From: Sergei Shtylyov @ 2007-10-04 14:53 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide

Hello.

Bartlomiej Zolnierkiewicz wrote:

> Add IDE_HFLAG_NO_LBA48[_DMA] host flags, use it instead of hwif->no_lba48[_dma]
> and then remove no longer needed hwif->no_lba48[_dma].  As a side-effect
> this change fixes hwif->no_lba48_dma not being restored by ide_hwif_restore().

> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

> Index: b/drivers/ide/ide-probe.c
> ===================================================================
> --- a/drivers/ide/ide-probe.c
> +++ b/drivers/ide/ide-probe.c
> @@ -951,7 +951,8 @@ static int ide_init_queue(ide_drive_t *d
>  	blk_queue_segment_boundary(q, 0xffff);
>  
>  	if (!hwif->rqsize) {
> -		if (hwif->no_lba48 || hwif->no_lba48_dma)
> +		if ((hwif->host_flags & IDE_HFLAG_NO_LBA48) ||
> +		    (hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA))

    Could have been:

		if (hwif->host_flags &
		   (IDE_HFLAG_NO_LBA48_DMA | IDE_HFLAG_NO_LBA48_DMA))

MBR, Sergei

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-04 14:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200708271934.18313.bzolnier@gmail.com>
2007-10-04 14:53 ` [PATCH 7/8] ide: add IDE_HFLAG_NO_LBA48 and IDE_HFLAG_NO_LBA48_DMA host flags Sergei Shtylyov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.