• Andrew Morton's avatar
    [PATCH] lance.c: fix for card with signature 0x52 0x49 · 5c952629
    Andrew Morton authored
    From: Vesselin Kostadiov <vesselin@alphawave.com.au>
    
    Problem: The lance.c driver did not work with my Racal Interlan EtherBlaster
    card.
    
    More info: I found that my card has a signature 0x52 0x49 that was not
    recognized by the driver.
    
    Explanation: Following your suggestion I created a static table with possible
    signatures, not too different from the table in ni65.c.  The updated code
    compares the first byte of the cards signature with the first byte of the
    signatures from the table.  It this succeeds then it reads the second byte and
    compares the whole signature with the values from the table.  This way the
    minimal I/O reads approach is maintained.
    
    Side effect: The previous version would missdetect cards with signatures 0x52
    0x57 and 0x57 0x44.  This has been fixed as well.
    5c952629
lance.c 40.4 KB