linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: jeff@garzik.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH] pata_legacy: Restructure and revamp
Date: Tue, 11 Dec 2007 21:23:26 -0800	[thread overview]
Message-ID: <20071211212326.0223589c.akpm@linux-foundation.org> (raw)
In-Reply-To: <20071208155506.77642115@the-village.bc.nu>

On Sat, 8 Dec 2007 15:55:06 +0000 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:

> Rework the pata_legacy driver to have an internal way to plug multiple legacy interface types
> and designs into the driver. 
> 
> This driver supports
> 	- Generic legacy ISA on primary/secondary and tertiary ports
> 	- BIOS or jumper configured legacy ports
> 	- VLB controllers that snoop the mode set for PIO
> 		(Cirrus CLPD7220, Adaptec AIC25VL01)
> 	- Promise PDC20230
> 	- Holtek 6560A/B
> 	- Opti VLB controllers
> 	- QDI 6500/6580/6580DP controllers
> 
> The new driver also adds an "all" option so you can load all the PCI drivers you have, decide you have
> a controller that is totally unknown and then load pata_legacy all=1 to grab the primary/secondary ports
> as a last resort fallback.
> 
> TODO:
> 	Add ST412 support (needs some kind of geometry hook in libata core code)
> 	Winbond W83759A in programmable mode (aka DTC2278)
> 	Find more insane VLB controllers to support
> 
> This driver obsoletes pata_qdi, which can go once this is settled in.
> 

Is this patch going to screw my kernel up?

> +static __init void probe_opti_vlb(void)
> +{
> +	/* If an OPTI 82C46X is present find out where the channels are */
> +	static const char *optis[4] = {
> +		"3/463MV", "5MV",
> +		"5MVA", "5MVB"
> +	};
> +	u8 chans = 1;
> +	u8 ctrl = (opti_syscfg(0x30) & 0xC0) >> 6;
> +
> +	opti82c46x = 3;	/* Assume master and slave first */
> +	printk(KERN_INFO DRV_NAME ": Opti 82C46%s chipset support.\n",
> +								optis[ctrl]);
> +	if (ctrl == 3)
> +		chans = (opti_syscfg(0x3F) & 0x20) ? 2 : 1;

this could be

	if (ctrl == 3 && (opti_syscfg(0x3F) & 0x20))
		chans = 2;

if that's any clearer...


  reply	other threads:[~2007-12-12  5:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-08 15:55 [PATCH] pata_legacy: Restructure and revamp Alan Cox
2007-12-12  5:23 ` Andrew Morton [this message]
2007-12-12 16:00   ` Alan Cox

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=20071211212326.0223589c.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jeff@garzik.org \
    --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).