• Dominik Brodowski's avatar
    [PATCH] pcmcia: mark resource setup as done · 0efb3841
    Dominik Brodowski authored
    PCMCIA device registration should only happen if we're quite confident
    there are resources available to at least map the CIS space -- else we can't
    determine manfid/cardid, whether it is a multifunction card, etc. So,
    add a flag to struct pcmcia_socket which denotes that -- and also whether
    resources were added the "old" adjust_resource_info way. On static sockets,
    it is activated upon registration, on non-static sockets, it is set upon an
    echo'ing of anything into
    /sys/class/pcmcia_socket/pcmcia_socket%n/device_possible_resources_setup_done
    Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    0efb3841
ss.h 6.79 KB