blob: 79909edc9d577e3f6daeead1bc4bb4eda3fc5912 [file] [log] [blame]
# PCMCIA devices:
# modprobe $modalias loads all possibly appropriate modules
ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \
RUN+="/sbin/modprobe $modalias"
# Very few CIS firmware entries (which we use for matching)
# are so broken that we need to read out random bytes of it
# instead of the manufactor, card or product ID. Then the
# matching is done in userspace.
ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \
# However, the "weak" matching by func_id is only allowed _after_ modprobe
# returns, so that "strong" matches have a higher priority.
ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \
RUN+="/bin/sh -c 'echo 1 > /sys/$DEVPATH/allow_func_id_match'"
# PCMCIA sockets:
# modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
SUBSYSTEM="pcmcia_socket" RUN+="/sbin/modprobe pcmcia"
# if this is a PCMCIA socket which needs a resource database,
# pcmcia-socket-startup sets it up
SUBSYSTEM="pcmcia_socket" RUN+="/sbin/pcmcia-socket-startup"