aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pcmcia_resource.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-09-18 17:21:09 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-09-29 11:20:25 -0400
commit1c4a77bf54a61dde135740a563b6ec03382604e8 (patch)
tree8bd0e490fd9cca583a7fca69c48d2d43d36d83be /drivers/pcmcia/pcmcia_resource.c
parent2262054e74b4b26ed56a8535c1259f6c6c2862a4 (diff)
pcmcia: add a few debug statements
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/pcmcia_resource.c')
-rw-r--r--drivers/pcmcia/pcmcia_resource.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c
index 3194d515c023..a9af0d784426 100644
--- a/drivers/pcmcia/pcmcia_resource.c
+++ b/drivers/pcmcia/pcmcia_resource.c
@@ -534,6 +534,11 @@ int pcmcia_enable_device(struct pcmcia_device *p_dev)
534 s->ops->set_socket(s, &s->socket); 534 s->ops->set_socket(s, &s->socket);
535 s->lock_count++; 535 s->lock_count++;
536 536
537 dev_dbg(&p_dev->dev,
538 "enable_device: V %d, flags %x, base %x, regs %x, idx %x\n",
539 p_dev->vpp, flags, p_dev->config_base, p_dev->config_regs,
540 p_dev->config_index);
541
537 /* Set up CIS configuration registers */ 542 /* Set up CIS configuration registers */
538 base = p_dev->config_base; 543 base = p_dev->config_base;
539 if (p_dev->config_regs & PRESENT_COPY) { 544 if (p_dev->config_regs & PRESENT_COPY) {
@@ -874,6 +879,8 @@ int pcmcia_request_window(struct pcmcia_device *p_dev, struct resource *res,
874 u_long align; 879 u_long align;
875 int w; 880 int w;
876 881
882 dev_dbg(&p_dev->dev, "request_window %pR %d\n", res, speed);
883
877 if (!(s->state & SOCKET_PRESENT)) { 884 if (!(s->state & SOCKET_PRESENT)) {
878 dev_dbg(&p_dev->dev, "No card present\n"); 885 dev_dbg(&p_dev->dev, "No card present\n");
879 return -ENODEV; 886 return -ENODEV;
@@ -970,6 +977,9 @@ EXPORT_SYMBOL(pcmcia_request_window);
970void pcmcia_disable_device(struct pcmcia_device *p_dev) 977void pcmcia_disable_device(struct pcmcia_device *p_dev)
971{ 978{
972 int i; 979 int i;
980
981 dev_dbg(&p_dev->dev, "disabling device\n");
982
973 for (i = 0; i < MAX_WIN; i++) { 983 for (i = 0; i < MAX_WIN; i++) {
974 struct resource *res = p_dev->resource[MAX_IO_WIN + i]; 984 struct resource *res = p_dev->resource[MAX_IO_WIN + i];
975 if (res->flags & WIN_FLAGS_REQ) 985 if (res->flags & WIN_FLAGS_REQ)