linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 6/6] ide: add ide_pci_device_t.host_flags
Date: Sun, 24 Jun 2007 21:10:46 +0400	[thread overview]
Message-ID: <467EA596.8000003@ru.mvista.com> (raw)
In-Reply-To: <200706240022.56055.bzolnier@gmail.com>

Hello.

Bartlomiej Zolnierkiewicz wrote:

>>>Index: b/drivers/ide/pci/serverworks.c
>>>===================================================================
>>>--- a/drivers/ide/pci/serverworks.c
>>>+++ b/drivers/ide/pci/serverworks.c
>>>@@ -448,9 +448,12 @@ static int __devinit init_setup_csb6 (st
>>> 			d->bootable = ON_BOARD;
>>> 	}
>>> 
>>>-	d->channels = ((dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE ||
>>>-			dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2) &&
>>>-		       (!(PCI_FUNC(dev->devfn) & 1))) ? 1 : 2;
>>>+	if ((dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE ||
>>>+	    dev->device == PCI_DEVICE_ID_SERVERWORKS_CSB6IDE2) &&

>>    I'd have left that aligning space alone. :-)

>>>+	    (!(PCI_FUNC(dev->devfn) & 1)))
>>>+		d->host_flags |= IDE_HFLAG_SINGLE;
>>>+	else
>>
>> > +		d->host_flags &= IDE_HFLAG_SINGLE;
>>
>>    Here's the offending code! Should've been:
>>
>>		d->host_flags &= ~IDE_HFLAG_SINGLE;

> Thanks for catching this.

    Such things usually just spring into the eye. :-)

> Fixed, new patch below.

> [PATCH] ide: add ide_pci_device_t.host_flags (take 2)
> 
> * Rename ide_pci_device_t.flags to ide_pci_device_t.host_flags
>   and IDEPCI_FLAG_ISA_PORTS flag to IDE_HFLAG_ISA_PORTS.
> 
> * Add IDE_HFLAG_SINGLE flag for single channel devices.
> 
> * Convert core code and all IDE PCI drivers to use IDE_HFLAG_SINGLE
>   and remove no longer needed ide_pci_device_t.channels field.
> 
> v2:
> * Fix issues noticed by Sergei:
>   - correct code alignment in scc_pata.c
>   - s/IDE_HFLAG_SINGLE/~IDE_HFLAG_SINGLE/ in serverworks.c

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

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

MBR, Sergei

      reply	other threads:[~2007-06-24 17:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-23 18:05 [PATCH 6/6] ide: add ide_pci_device_t.host_flags Bartlomiej Zolnierkiewicz
2007-06-23 19:19 ` Sergei Shtylyov
2007-06-23 22:22   ` Bartlomiej Zolnierkiewicz
2007-06-24 17:10     ` Sergei Shtylyov [this message]

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=467EA596.8000003@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=bzolnier@gmail.com \
    --cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).