Re: fmvj18x_cs.c misidentifies card

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

 



Hello,

> If you can implement a smart way to distinguish between the RATOC and 
> the Eagle, that would be great!

To check the ConfigBase is better way to detect MBH10302.
Please try the below. Thanks!

 	case MANFID_FUJITSU:
-	    if (le16_to_cpu(buf[1]) == PRODID_FUJITSU_MBH10302)
-                /* RATOC REX-5588/9822/4886's PRODID are 0004(=MBH10302),
-                   but these are MBH10304 based card. */ 
-		cardtype = MBH10304;
-	    else if (le16_to_cpu(buf[1]) == PRODID_FUJITSU_MBH10304)
-		cardtype = MBH10304;
-	    else
-		cardtype = LA501;
+	    if (link->conf.ConfigBase == 0x0fe0) {
+		cardtype = MBH10302;
+	    } else { 
+		if (le16_to_cpu(buf[1]) == PRODID_FUJITSU_MBH10304
+	    		|| le16_to_cpu(buf[1]) == PRODID_FUJITSU_MBH10302)
+		    cardtype = MBH10304;
+	    	else
+		    cardtype = LA501;
+	    }
 	    break;


Best Regards
Komuro

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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux