Commit bd40cb9d authored by Adam Belay's avatar Adam Belay

[PNP] re-add the previously removed "get" command in interface.c.

This patch adds the "get" command because at this point it is needed
for debugging.
parent d58b5898
...@@ -333,6 +333,13 @@ pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count ...@@ -333,6 +333,13 @@ pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count
pnp_init_resources(&dev->res); pnp_init_resources(&dev->res);
goto done; goto done;
} }
if (!strnicmp(buf,"get",3)) {
down(&pnp_res_mutex);
if (pnp_can_read(dev))
dev->protocol->get(dev, &dev->res);
up(&pnp_res_mutex);
goto done;
}
if (!strnicmp(buf,"set",3)) { if (!strnicmp(buf,"set",3)) {
int nport = 0, nmem = 0, nirq = 0, ndma = 0; int nport = 0, nmem = 0, nirq = 0, ndma = 0;
if (dev->active) if (dev->active)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment