Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: firewire: fw-ohci: shut up a superfluous compiler warning firewire: fw-ohci: log a note about unsupported features
This commit is contained in:
commit
9747170120
1 changed files with 9 additions and 4 deletions
|
@ -606,7 +606,7 @@ static int
|
||||||
at_context_queue_packet(struct context *ctx, struct fw_packet *packet)
|
at_context_queue_packet(struct context *ctx, struct fw_packet *packet)
|
||||||
{
|
{
|
||||||
struct fw_ohci *ohci = ctx->ohci;
|
struct fw_ohci *ohci = ctx->ohci;
|
||||||
dma_addr_t d_bus, payload_bus;
|
dma_addr_t d_bus, uninitialized_var(payload_bus);
|
||||||
struct driver_data *driver_data;
|
struct driver_data *driver_data;
|
||||||
struct descriptor *d, *last;
|
struct descriptor *d, *last;
|
||||||
__le32 *header;
|
__le32 *header;
|
||||||
|
@ -1459,7 +1459,7 @@ ohci_allocate_iso_context(struct fw_card *card, int type, size_t header_size)
|
||||||
/* FIXME: We need a fallback for pre 1.1 OHCI. */
|
/* FIXME: We need a fallback for pre 1.1 OHCI. */
|
||||||
if (callback == handle_ir_dualbuffer_packet &&
|
if (callback == handle_ir_dualbuffer_packet &&
|
||||||
ohci->version < OHCI_VERSION_1_1)
|
ohci->version < OHCI_VERSION_1_1)
|
||||||
return ERR_PTR(-EINVAL);
|
return ERR_PTR(-ENOSYS);
|
||||||
|
|
||||||
spin_lock_irqsave(&ohci->lock, flags);
|
spin_lock_irqsave(&ohci->lock, flags);
|
||||||
index = ffs(*mask) - 1;
|
index = ffs(*mask) - 1;
|
||||||
|
@ -1778,7 +1778,7 @@ ohci_queue_iso(struct fw_iso_context *base,
|
||||||
buffer, payload);
|
buffer, payload);
|
||||||
else
|
else
|
||||||
/* FIXME: Implement fallback for OHCI 1.0 controllers. */
|
/* FIXME: Implement fallback for OHCI 1.0 controllers. */
|
||||||
return -EINVAL;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct fw_card_driver ohci_driver = {
|
static const struct fw_card_driver ohci_driver = {
|
||||||
|
@ -1898,7 +1898,12 @@ pci_probe(struct pci_dev *dev, const struct pci_device_id *ent)
|
||||||
ohci->version = reg_read(ohci, OHCI1394_Version) & 0x00ff00ff;
|
ohci->version = reg_read(ohci, OHCI1394_Version) & 0x00ff00ff;
|
||||||
fw_notify("Added fw-ohci device %s, OHCI version %x.%x\n",
|
fw_notify("Added fw-ohci device %s, OHCI version %x.%x\n",
|
||||||
dev->dev.bus_id, ohci->version >> 16, ohci->version & 0xff);
|
dev->dev.bus_id, ohci->version >> 16, ohci->version & 0xff);
|
||||||
|
if (ohci->version < OHCI_VERSION_1_1) {
|
||||||
|
fw_notify(" Isochronous I/O is not yet implemented for "
|
||||||
|
"OHCI 1.0 chips.\n");
|
||||||
|
fw_notify(" Cameras, audio devices etc. won't work on "
|
||||||
|
"this controller with this driver version.\n");
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail_self_id:
|
fail_self_id:
|
||||||
|
|
Loading…
Add table
Reference in a new issue