• Dominik Brodowski's avatar
    [PATCH] pcmcia: multifunction card handling fixes · 1d2c9042
    Dominik Brodowski authored
    s->functions needs to be initialized earlier, for the "let's see
    how high it increases" approach means that pcmcia_request_irq()
    (which makes use of this value) is confused, and might request
    an exclusive IRQ first even though it is not supposed to.
    
    Also, a CIS override autoloaded using the firmware loader may
    allow for the use of more or less functions in a multifunction
    card. Therefore, we may need to schedule a call to add this
    second function later on, or simply remove the other function
    (it's always the first -valid- function which reaches this
    codepath).
    
    Many thanks to Fabrice Bellet for debugging and testing patches.
    Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
    1d2c9042
ds.c 33.2 KB