From: Olivier Galibert <galibert@pobox.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org, jgarzik@pobox.com
Subject: Re: PATCH: Fix Jmicron support
Date: Wed, 12 Jul 2006 16:03:28 +0200 [thread overview]
Message-ID: <20060712140328.GA96059@dspnet.fr.eu.org> (raw)
In-Reply-To: <1152713141.22943.67.camel@localhost.localdomain>
On Wed, Jul 12, 2006 at 03:05:41PM +0100, Alan Cox wrote:
> + * If we are using libata we can drive this chip proeprly but must
> + * do this early on to make the additional device appear during
> + * the PCI scanning.
"properly"
> +static void __devinit quirk_jmicron_dualfn(struct pci_dev *pdev)
> +{
> + u32 conf;
> + u8 hdr;
> +
> + /* Only poke fn 0 */
> + if (PCI_FUNC(pdev->devfn))
> + return;
> +
> + switch(pdev->device) {
> + case PCI_DEVICE_ID_JMICRON_JMB365:
> + case PCI_DEVICE_ID_JMICRON_JMB366:
> + /* Redirect IDE second PATA port to the right spot */
> + pci_read_config_dword(pdev, 0x80, &conf);
> + conf |= (1 << 24);
> + /* Fall through */
> + pci_write_config_dword(pdev, 0x80, conf);
> + case PCI_DEVICE_ID_JMICRON_JMB361:
> + case PCI_DEVICE_ID_JMICRON_JMB363:
Wouldn't you want to put the fall throught comment after the
pci_write? Took me a moment to parse it given its position
OG.
next prev parent reply other threads:[~2006-07-12 14:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-12 14:05 Alan Cox
2006-07-12 14:03 ` Olivier Galibert [this message]
2006-07-12 17:05 ` Jeff Garzik
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=20060712140328.GA96059@dspnet.fr.eu.org \
--to=galibert@pobox.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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®