Re: [PATCH] pata_legacy: Restructure and revamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 8 Dec 2007 15:55:06 +0000 Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> 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...

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux