PDEBUG("set device mode to %d", mode);
if (coredev->device_flags & SMS_DEVICE_FAMILY2) {
if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_RAW_TUNER) {
- sms_info("invalid mode specified %d", mode);
+ sms_err("invalid mode specified %d", mode);
return -EINVAL;
}
if (!(coredev->device_flags & SMS_DEVICE_NOT_READY)) {
rc = smscore_detect_mode(coredev);
if (rc < 0) {
- sms_info("mode detect failed %d", rc);
+ sms_err("mode detect failed %d", rc);
return rc;
}
}
rc = smscore_load_firmware_from_file(
coredev, smscore_fw_lkup[mode][type], NULL);
if (rc < 0) {
- sms_info("load firmware "
- "failed %d", rc);
+ sms_err("load firmware failed %d", rc);
return rc;
}
} else
kfree(buffer);
} else {
- sms_info("Could not allocate buffer for "
- "init device message.");
+ sms_err("Could not allocate buffer for "
+ "init device message.");
rc = -ENOMEM;
}
} else {
if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_DVBT_BDA) {
- sms_info("invalid mode specified %d", mode);
+ sms_err("invalid mode specified %d", mode);
return -EINVAL;
}
}
if (rc != 0)
- sms_info("return error code %d.", rc);
+ sms_err("return error code %d.", rc);
return rc;
}
if (!(vma->vm_flags & (VM_READ | VM_SHARED)) ||
(vma->vm_flags & VM_WRITE)) {
- sms_info("invalid vm flags");
+ sms_err("invalid vm flags");
return -EINVAL;
}
if ((end - start) != size) {
- sms_info("invalid size %d expected %d",
+ sms_err("invalid size %d expected %d",
(int)(end - start), (int) size);
return -EINVAL;
}
if (remap_pfn_range(vma, start,
coredev->common_buffer_phys >> PAGE_SHIFT,
size, pgprot_noncached(vma->vm_page_prot))) {
- sms_info("remap_page_range failed");
+ sms_err("remap_page_range failed");
return -EAGAIN;
}
struct smsusb_device_t *dev = surb->dev;
if (urb->status < 0) {
- sms_info("error, urb status %d, %d bytes",
- urb->status, urb->actual_length);
+ sms_err("error, urb status %d, %d bytes",
+ urb->status, urb->actual_length);
return;
}
/* sanity check */
if (((int) phdr->msgLength +
surb->cb->offset) > urb->actual_length) {
- sms_info("invalid response "
- "msglen %d offset %d "
- "size %d",
- phdr->msgLength,
- surb->cb->offset,
- urb->actual_length);
+ sms_err("invalid response "
+ "msglen %d offset %d "
+ "size %d",
+ phdr->msgLength,
+ surb->cb->offset,
+ urb->actual_length);
goto exit_and_resubmit;
}
smscore_onresponse(dev->coredev, surb->cb);
surb->cb = NULL;
} else {
- sms_info("invalid response "
- "msglen %d actual %d",
- phdr->msgLength, urb->actual_length);
+ sms_err("invalid response "
+ "msglen %d actual %d",
+ phdr->msgLength, urb->actual_length);
}
}
if (!surb->cb) {
surb->cb = smscore_getbuffer(dev->coredev);
if (!surb->cb) {
- sms_info("smscore_getbuffer(...) "
- "returned NULL");
+ sms_err("smscore_getbuffer(...) returned NULL");
return -ENOMEM;
}
}
for (i = 0; i < MAX_URBS; i++) {
rc = smsusb_submit_urb(dev, &dev->surbs[i]);
if (rc < 0) {
- sms_info("smsusb_submit_urb(...) "
- "failed");
+ sms_err("smsusb_submit_urb(...) failed");
smsusb_stop_streaming(dev);
break;
}
int rc, dummy;
if (id < DEVICE_MODE_DVBT || id > DEVICE_MODE_DVBT_BDA) {
- sms_info("invalid firmware id specified %d", id);
+ sms_err("invalid firmware id specified %d", id);
return -EINVAL;
}
rc = request_firmware(&fw, smsusb1_fw_lkup[id], &udev->dev);
if (rc < 0) {
- sms_info("failed to open \"%s\" mode %d",
- smsusb1_fw_lkup[id], id);
+ sms_err("failed to open \"%s\" mode %d",
+ smsusb1_fw_lkup[id], id);
return rc;
}
kfree(fw_buffer);
} else {
- sms_info("failed to allocate firmware buffer");
+ sms_err("failed to allocate firmware buffer");
rc = -ENOMEM;
}
sizeof(struct SmsMsgHdr_ST), 0 };
if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_DVBT_BDA) {
- sms_info("invalid firmware id specified %d", mode);
+ sms_err("invalid firmware id specified %d", mode);
return -EINVAL;
}
/* create device object */
dev = kzalloc(sizeof(struct smsusb_device_t), GFP_KERNEL);
if (!dev) {
- sms_info("kzalloc(sizeof(struct smsusb_device_t) "
- "failed");
+ sms_err("kzalloc(sizeof(struct smsusb_device_t) failed");
return -ENOMEM;
}
/* register in smscore */
rc = smscore_register_device(¶ms, &dev->coredev);
if (rc < 0) {
- sms_info("smscore_register_device(...) failed, "
- "rc %d", rc);
+ sms_err("smscore_register_device(...) failed, rc %d", rc);
smsusb_term_device(intf);
return rc;
}
sms_info("smsusb_start_streaming(...).");
rc = smsusb_start_streaming(dev);
if (rc < 0) {
- sms_info("smsusb_start_streaming(...) failed");
+ sms_err("smsusb_start_streaming(...) failed");
smsusb_term_device(intf);
return rc;
}
rc = smscore_start_device(dev->coredev);
if (rc < 0) {
- sms_info("smscore_start_device(...) failed");
+ sms_err("smscore_start_device(...) failed");
smsusb_term_device(intf);
return rc;
}
rc = usb_set_interface(
udev, intf->cur_altsetting->desc.bInterfaceNumber, 0);
if (rc < 0) {
- sms_info("usb_set_interface failed, "
- "rc %d", rc);
+ sms_err("usb_set_interface failed, rc %d", rc);
return rc;
}
}
if ((udev->actconfig->desc.bNumInterfaces == 2) &&
(intf->cur_altsetting->desc.bInterfaceNumber == 0)) {
- sms_info("rom interface 0 is not used");
+ sms_err("rom interface 0 is not used");
return -ENODEV;
}
{
int rc = usb_register(&smsusb_driver);
if (rc)
- sms_info("usb_register failed. Error number %d", rc);
+ sms_err("usb_register failed. Error number %d", rc);
sms_debug("");