Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303695
b: refs/heads/master
c: 77c9e12
h: refs/heads/master
i:
  303693: 7de9432
  303691: 64ffe66
  303687: 9929ceb
  303679: ce25866
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 2, 2012
1 parent ae64f76 commit ef5aa8a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b741ab9da614b08da51cffa961435bc81314f3c4
refs/heads/master: 77c9e125b3c88372852ce6dac068387c3048a058
34 changes: 17 additions & 17 deletions trunk/drivers/usb/atm/cxacru.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
}

ret = offd;
dbg("cm %#x", cm);
usb_dbg(instance->usbatm, "cm %#x\n", cm);
fail:
mutex_unlock(&instance->cm_serialize);
err:
Expand Down Expand Up @@ -733,7 +733,7 @@ static int cxacru_card_status(struct cxacru_data *instance)
{
int ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0);
if (ret < 0) { /* firmware not loaded */
dbg("cxacru_adsl_start: CARD_GET_STATUS returned %d", ret);
usb_dbg(instance->usbatm, "cxacru_adsl_start: CARD_GET_STATUS returned %d\n", ret);
return ret;
}
return 0;
Expand All @@ -758,7 +758,7 @@ static int cxacru_atm_start(struct usbatm_data *usbatm_instance,
int ret;
int start_polling = 1;

dbg("cxacru_atm_start");
dev_dbg(&intf->dev, "%s\n", __func__);

/* Read MAC address */
ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_MAC_ADDRESS, NULL, 0,
Expand Down Expand Up @@ -962,13 +962,13 @@ static int cxacru_fw(struct usb_device *usb_dev, enum cxacru_fw_request fw,
ret = usb_bulk_msg(usb_dev, usb_sndbulkpipe(usb_dev, CXACRU_EP_CMD),
buf, offb, NULL, CMD_TIMEOUT);
if (ret < 0) {
dbg("sending fw %#x failed", fw);
dev_dbg(&usb_dev->dev, "sending fw %#x failed\n", fw);
goto cleanup;
}
offb = 0;
}
} while (offd < size);
dbg("sent fw %#x", fw);
dev_dbg(&usb_dev->dev, "sent fw %#x\n", fw);

ret = 0;

Expand All @@ -988,7 +988,7 @@ static void cxacru_upload_firmware(struct cxacru_data *instance,
usb_dev->descriptor.idProduct };
__le32 val;

dbg("cxacru_upload_firmware");
usb_dbg(usbatm, "%s\n", __func__);

/* FirmwarePllFClkValue */
val = cpu_to_le32(instance->modem_type->pll_f_clk);
Expand Down Expand Up @@ -1074,7 +1074,7 @@ static int cxacru_find_firmware(struct cxacru_data *instance,
char buf[16];

sprintf(buf, "cxacru-%s.bin", phase);
dbg("cxacru_find_firmware: looking for %s", buf);
usb_dbg(usbatm, "cxacru_find_firmware: looking for %s\n", buf);

if (request_firmware(fw_p, buf, dev)) {
usb_dbg(usbatm, "no stage %s firmware found\n", phase);
Expand Down Expand Up @@ -1115,9 +1115,9 @@ static int cxacru_heavy_init(struct usbatm_data *usbatm_instance,

ret = cxacru_card_status(instance);
if (ret)
dbg("modem initialisation failed");
usb_dbg(usbatm_instance, "modem initialisation failed\n");
else
dbg("done setting up the modem");
usb_dbg(usbatm_instance, "done setting up the modem\n");

return ret;
}
Expand All @@ -1133,7 +1133,7 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
/* instance init */
instance = kzalloc(sizeof(*instance), GFP_KERNEL);
if (!instance) {
dbg("cxacru_bind: no memory for instance data");
usb_dbg(usbatm_instance, "cxacru_bind: no memory for instance data\n");
return -ENOMEM;
}

Expand All @@ -1149,31 +1149,31 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,

instance->rcv_buf = (u8 *) __get_free_page(GFP_KERNEL);
if (!instance->rcv_buf) {
dbg("cxacru_bind: no memory for rcv_buf");
usb_dbg(usbatm_instance, "cxacru_bind: no memory for rcv_buf\n");
ret = -ENOMEM;
goto fail;
}
instance->snd_buf = (u8 *) __get_free_page(GFP_KERNEL);
if (!instance->snd_buf) {
dbg("cxacru_bind: no memory for snd_buf");
usb_dbg(usbatm_instance, "cxacru_bind: no memory for snd_buf\n");
ret = -ENOMEM;
goto fail;
}
instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!instance->rcv_urb) {
dbg("cxacru_bind: no memory for rcv_urb");
usb_dbg(usbatm_instance, "cxacru_bind: no memory for rcv_urb\n");
ret = -ENOMEM;
goto fail;
}
instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!instance->snd_urb) {
dbg("cxacru_bind: no memory for snd_urb");
usb_dbg(usbatm_instance, "cxacru_bind: no memory for snd_urb\n");
ret = -ENOMEM;
goto fail;
}

if (!cmd_ep) {
dbg("cxacru_bind: no command endpoint");
usb_dbg(usbatm_instance, "cxacru_bind: no command endpoint\n");
ret = -ENODEV;
goto fail;
}
Expand Down Expand Up @@ -1227,10 +1227,10 @@ static void cxacru_unbind(struct usbatm_data *usbatm_instance,
struct cxacru_data *instance = usbatm_instance->driver_data;
int is_polling = 1;

dbg("cxacru_unbind entered");
usb_dbg(usbatm_instance, "cxacru_unbind entered\n");

if (!instance) {
dbg("cxacru_unbind: NULL instance!");
usb_dbg(usbatm_instance, "cxacru_unbind: NULL instance!\n");
return;
}

Expand Down

0 comments on commit ef5aa8a

Please sign in to comment.