aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/cs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2009-10-24 06:20:18 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2009-11-08 12:23:14 -0500
commit6d9a299f675b176e2f81e1f6d5a361a1173971ea (patch)
tree8a1f5ea15aafe9d3d90503013d80ab8fb1f049c6 /drivers/pcmcia/cs.c
parentc9f50dddd184a020d64dab63fa795967f0f14aa4 (diff)
pcmcia: extend error reporting and debug messages in core
Add a few more error and debug messages to the PCMCIA core. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/cs.c')
-rw-r--r--drivers/pcmcia/cs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c
index b0ec9c614ce7..b229f6d9e443 100644
--- a/drivers/pcmcia/cs.c
+++ b/drivers/pcmcia/cs.c
@@ -752,14 +752,17 @@ int pcmcia_reset_card(struct pcmcia_socket *skt)
752 mutex_lock(&skt->skt_mutex); 752 mutex_lock(&skt->skt_mutex);
753 do { 753 do {
754 if (!(skt->state & SOCKET_PRESENT)) { 754 if (!(skt->state & SOCKET_PRESENT)) {
755 dev_dbg(&skt->dev, "can't reset, not present\n");
755 ret = -ENODEV; 756 ret = -ENODEV;
756 break; 757 break;
757 } 758 }
758 if (skt->state & SOCKET_SUSPEND) { 759 if (skt->state & SOCKET_SUSPEND) {
760 dev_dbg(&skt->dev, "can't reset, suspended\n");
759 ret = -EBUSY; 761 ret = -EBUSY;
760 break; 762 break;
761 } 763 }
762 if (skt->state & SOCKET_CARDBUS) { 764 if (skt->state & SOCKET_CARDBUS) {
765 dev_dbg(&skt->dev, "can't reset, is cardbus\n");
763 ret = -EPERM; 766 ret = -EPERM;
764 break; 767 break;
765 } 768 }