From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] sis5513: backport short cables support from pata_sis.c
Date: Wed, 27 Jun 2007 21:15:31 +0200 [thread overview]
Message-ID: <200706272115.31807.bzolnier@gmail.com> (raw)
In-Reply-To: <46816011.70000@ru.mvista.com>
On Tuesday 26 June 2007, Sergei Shtylyov wrote:
> Bartlomiej Zolnierkiewicz wrote:
>
> > Backport short cables support from pata_sis.c.
>
> > This patch should allow UDMA > 2 modes on ASUS A6K.
>
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>
> Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>
> > Index: b/drivers/ide/pci/sis5513.c
> > ===================================================================
> > --- a/drivers/ide/pci/sis5513.c
> > +++ b/drivers/ide/pci/sis5513.c
> [...]
> > @@ -796,10 +796,33 @@ static unsigned int __devinit init_chips
> > return 0;
> > }
> >
> > +struct sis_laptop {
> > + u16 device;
> > + u16 subvendor;
> > + u16 subdevice;
> > +};
> > +
> > +static const struct sis_laptop sis_laptop[] = {
> > + /* devid, subvendor, subdev */
> > + { 0x5513, 0x1043, 0x1107 }, /* ASUS A6K */
> > + /* end marker */
> > + { 0, }
> > +};
> > +
> > static u8 __devinit ata66_sis5513(ide_hwif_t *hwif)
> > {
> > + struct pci_dev *pdev = hwif->pci_dev;
> > + const struct sis_laptop *lap = &sis_laptop[0];
> > u8 ata66 = 0;
> >
> > + while (lap->device) {
> > + if (lap->device == pdev->device &&
> > + lap->subvendor == pdev->subsystem_vendor &&
> > + lap->subdevice == pdev->subsystem_device)
> > + return ATA_CBL_PATA40_SHORT;
> > + lap++;
> > + }
> > +
>
> The code even starts looking generic enough to be put into helper...
Hmm, agreed, now if somebody could send me a patch...
Thanks,
Bart
prev parent reply other threads:[~2007-06-27 19:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-10 13:58 [PATCH 4/5] sis5513: backport short cables support from pata_sis.c Bartlomiej Zolnierkiewicz
2007-06-26 18:50 ` Sergei Shtylyov
2007-06-27 19:15 ` Bartlomiej Zolnierkiewicz [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=200706272115.31807.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
/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).