public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* ahc1542 fun
@ 2004-05-26  2:32 Jeff Garzik
  2004-05-26  6:44 ` hch
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2004-05-26  2:32 UTC (permalink / raw)
  To: James Bottomley; +Cc: SCSI Mailing List, Andrew Morton


The old 1542 scsi driver is both ISA and MCA.  The MCA portions are 
disabled when !CONFIG_MCA through the typical wrapper scheme (a la pci.h 
and !CONFIG_PCI).  However...  the driver unconditionally includes 
linux/mca.h which in turn unconditionally includes asm/mca.h.

This breaks drivers on platforms with ISA but not MCA, like alpha.

(and I suppose any PCI platform, since you could have one on an ISA bridge)

	Jeff




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ahc1542 fun
  2004-05-26  2:32 ahc1542 fun Jeff Garzik
@ 2004-05-26  6:44 ` hch
  2004-05-26 17:52   ` Matthew Wilcox
  0 siblings, 1 reply; 4+ messages in thread
From: hch @ 2004-05-26  6:44 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: James Bottomley, SCSI Mailing List, Andrew Morton

On Tue, May 25, 2004 at 10:32:14PM -0400, Jeff Garzik wrote:
> 
> The old 1542 scsi driver is both ISA and MCA.  The MCA portions are 
> disabled when !CONFIG_MCA through the typical wrapper scheme (a la pci.h 
> and !CONFIG_PCI).  However...  the driver unconditionally includes 
> linux/mca.h which in turn unconditionally includes asm/mca.h.
> 
> This breaks drivers on platforms with ISA but not MCA, like alpha.
> 
> (and I suppose any PCI platform, since you could have one on an ISA bridge)

This needs fixing in mca.h and mca-legacy.h.  The debian kernel package
has a fix that I don't quite like.  I'll rework it in the next days and
submit it.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ahc1542 fun
  2004-05-26  6:44 ` hch
@ 2004-05-26 17:52   ` Matthew Wilcox
  2004-05-27 17:30     ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilcox @ 2004-05-26 17:52 UTC (permalink / raw)
  To: hch; +Cc: Jeff Garzik, James Bottomley, SCSI Mailing List, Andrew Morton

On Wed, May 26, 2004 at 02:44:30AM -0400, hch@infradead.org wrote:
> This needs fixing in mca.h and mca-legacy.h.  The debian kernel package
> has a fix that I don't quite like.  I'll rework it in the next days and
> submit it.

What I have in the PA tree is:

Index: include/linux/mca.h
===================================================================
RCS file: /var/cvs/linux-2.6/include/linux/mca.h,v
retrieving revision 1.4.46.1
retrieving revision 1.4
diff -u -p -r1.4.46.1 -r1.4
--- include/linux/mca.h 23 May 2004 23:31:15 -0000      1.4.46.1
+++ include/linux/mca.h 8 Oct 2003 20:53:03 -0000       1.4
@@ -12,7 +12,9 @@
 #include <linux/device.h>
 
 /* get the platform specific defines */
+#ifdef CONFIG_MCA
 #include <asm/mca.h>
+#endif
 
 /* The detection of MCA bus is done in the real mode (using BIOS).
  * The information is exported to the protected code, where this

Any use?

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ahc1542 fun
  2004-05-26 17:52   ` Matthew Wilcox
@ 2004-05-27 17:30     ` Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2004-05-27 17:30 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: hch, James Bottomley, SCSI Mailing List, Andrew Morton

Matthew Wilcox wrote:
> On Wed, May 26, 2004 at 02:44:30AM -0400, hch@infradead.org wrote:
> 
>>This needs fixing in mca.h and mca-legacy.h.  The debian kernel package
>>has a fix that I don't quite like.  I'll rework it in the next days and
>>submit it.
> 
> 
> What I have in the PA tree is:
> 
> Index: include/linux/mca.h
> ===================================================================
> RCS file: /var/cvs/linux-2.6/include/linux/mca.h,v
> retrieving revision 1.4.46.1
> retrieving revision 1.4
> diff -u -p -r1.4.46.1 -r1.4
> --- include/linux/mca.h 23 May 2004 23:31:15 -0000      1.4.46.1
> +++ include/linux/mca.h 8 Oct 2003 20:53:03 -0000       1.4
> @@ -12,7 +12,9 @@
>  #include <linux/device.h>
>  
>  /* get the platform specific defines */
> +#ifdef CONFIG_MCA
>  #include <asm/mca.h>
> +#endif


This patch is fine with me...  If Christoph's rework will take more than 
five minutes, please (Andrew?) apply this patch.

	Jeff



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-27 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-26  2:32 ahc1542 fun Jeff Garzik
2004-05-26  6:44 ` hch
2004-05-26 17:52   ` Matthew Wilcox
2004-05-27 17:30     ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox