Fixes a problem with the maximum packet size being reported as 8 bytes by the
X-Net 1394VS card (VT6306 chip), by enforcing a minimum of 512 bytes.
Patch is against the cvsrev926 of ieee1394 driver for 2.4 kernels.

See
http://www.linux1394.org/
http://sourceforge.net/projects/linux1394/
http://www.linux1394.org/viewcvs/ieee1394/branches/linux-2.4/?sortby=rev

Volker Kuhlmann, 8 May 2003


--- linux-2.4.20.SuSE/drivers/ieee1394/ohci1394.c.orig	2003-05-03 06:13:27.000000000 +1200
+++ linux-2.4.20.SuSE/drivers/ieee1394/ohci1394.c	2003-05-08 12:00:36.000000000 +1200
@@ -547,7 +547,10 @@
 	/* Now get our max packet size */
 	ohci->max_packet_size = 
 		1<<(((reg_read(ohci, OHCI1394_BusOptions)>>12)&0xf)+1);
-
+    /* VK: */
+	if ( (ohci->max_packet_size) < 512 )
+		ohci->max_packet_size = 512;
+	
 	/* Don't accept phy packets into AR request context */ 
 	reg_write(ohci, OHCI1394_LinkControlClear, 0x00000400);

