diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-11-12 23:34:06 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-11-12 23:35:34 +0100 |
commit | 807277cbf9a240b133ee378a53b65375088ef62a (patch) | |
tree | e908475eb7cd340b58946e2ab8b55b2573944dbc /drivers/pcmcia/cs.c | |
parent | dfb279c97510da659816f4f055146bb1f9f0a870 (diff) | |
download | linux-3.10-807277cbf9a240b133ee378a53b65375088ef62a.tar.gz linux-3.10-807277cbf9a240b133ee378a53b65375088ef62a.tar.bz2 linux-3.10-807277cbf9a240b133ee378a53b65375088ef62a.zip |
[PCMCIA] inform user of insertion and ejection events
Print out minimal information in dmesg whnever a CardBus or PCMCIA card
is inserted into or ejected from a slot. This will make debugging certain
types of bugs much easier, and is similar to output produced by other
hotpluggable buses.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/cs.c')
-rw-r--r-- | drivers/pcmcia/cs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index 234cdca6fe1..a30aa74304a 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c @@ -513,6 +513,11 @@ static int socket_insert(struct pcmcia_socket *skt) ret = socket_setup(skt, setup_delay); if (ret == CS_SUCCESS) { skt->state |= SOCKET_PRESENT; + + printk(KERN_NOTICE "pccard: %s card inserted into slot %d\n", + (skt->state & SOCKET_CARDBUS) ? "CardBus" : "PCMCIA", + skt->sock); + #ifdef CONFIG_CARDBUS if (skt->state & SOCKET_CARDBUS) { cb_alloc(skt); @@ -598,6 +603,7 @@ static int socket_resume(struct pcmcia_socket *skt) static void socket_remove(struct pcmcia_socket *skt) { + printk(KERN_NOTICE "pccard: card ejected from slot %d\n", skt->sock); socket_shutdown(skt); cs_socket_put(skt); } |