mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: RFC: Compact Flash True IDE Mode Driver
Date: Tue, 14 Feb 2006 17:24:50 +0100	[thread overview]
Message-ID: <58cb370e0602140824p32991ba3sa5e731a1394c3fbe@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0602141007090.27351-100000@gate.crashing.org>

On 2/14/06, Kumar Gala <galak@kernel.crashing.org> wrote:
> If this looks good, I'll send a more official patch with an signed-off-by.

Looks good but please add some description and Signed-off-by.

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

You can send final patch to akpm for inclusion into -mm.

> - k
>
> diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
> index 09086b8..359f659 100644
> --- a/drivers/ide/ide-disk.c
> +++ b/drivers/ide/ide-disk.c
> @@ -977,8 +977,6 @@ static void idedisk_setup (ide_drive_t *
>                 ide_dma_verbose(drive);
>         printk("\n");
>
> -       drive->no_io_32bit = id->dword_io ? 1 : 0;
> -
>         /* write cache enabled? */
>         if ((id->csfo & 1) || (id->cfs_enable_1 & (1 << 5)))
>                 drive->wcache = 1;
> diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
> index 427d1c2..1b7b4c5 100644
> --- a/drivers/ide/ide-probe.c
> +++ b/drivers/ide/ide-probe.c
> @@ -858,6 +858,15 @@ static void probe_hwif(ide_hwif_t *hwif)
>                         }
>                 }
>         }
> +
> +       for (unit = 0; unit < MAX_DRIVES; ++unit) {
> +               ide_drive_t *drive = &hwif->drives[unit];
> +
> +               if (hwif->no_io_32bit)
> +                       drive->no_io_32bit = 1;
> +               else
> +                       drive->no_io_32bit = drive->id->dword_io ? 1 : 0;
> +       }
>  }
>
>  static int hwif_init(ide_hwif_t *hwif);
> diff --git a/include/linux/ide.h b/include/linux/ide.h
> index a7fc4cc..8d2db41 100644
> --- a/include/linux/ide.h
> +++ b/include/linux/ide.h
> @@ -792,6 +792,7 @@ typedef struct hwif_s {
>         unsigned        no_dsc     : 1; /* 0 default, 1 dsc_overlap disabled */
>         unsigned        auto_poll  : 1; /* supports nop auto-poll */
>         unsigned        sg_mapped  : 1; /* sg_table and sg_nents are ready */
> +       unsigned        no_io_32bit : 1; /* 1 = can not do 32-bit IO ops */
>
>         struct device   gendev;
>         struct completion gendev_rel_comp; /* To deal with device release() */

  reply	other threads:[~2006-02-14 16:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-01  7:19 Kumar Gala
2006-02-06  4:13 ` Benjamin Herrenschmidt
2006-02-13 10:35 ` Bartlomiej Zolnierkiewicz
2006-02-13 16:30   ` Kumar Gala
2006-02-13 16:53     ` Bartlomiej Zolnierkiewicz
2006-02-13 19:45       ` Kumar Gala
2006-02-13 20:21         ` Bartlomiej Zolnierkiewicz
2006-02-13 22:13           ` Kumar Gala
2006-02-13 22:35             ` Bartlomiej Zolnierkiewicz
2006-02-14 14:57               ` Kumar Gala
2006-02-14 15:57                 ` Bartlomiej Zolnierkiewicz
2006-02-14 16:07                   ` Kumar Gala
2006-02-14 16:24                     ` Bartlomiej Zolnierkiewicz [this message]
2006-02-14 16:58   ` Alan Cox
2006-02-14 16:48     ` Kumar Gala

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=58cb370e0602140824p32991ba3sa5e731a1394c3fbe@mail.gmail.com \
    --to=bzolnier@gmail.com \
    --cc=galak@kernel.crashing.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®