diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-24 15:57:47 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-24 15:57:47 -0400 |
| commit | 2f78d8e249973f1eeb88315e6444e616c60177ae (patch) | |
| tree | 2f6fae6c781622301c40378ea404096d8f231a33 /include/linux | |
| parent | f2fde3a65e88330017b816faf2ef75f141d21375 (diff) | |
| parent | 26c72e22c94fbc28604c94e3a96fdae9c6fd0a42 (diff) | |
Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394
Pull IEEE 1394 (FireWire) subsystem updates from Stefan Richter:
- Fix mismatch between DMA mapping direction (was wrong) and DMA
synchronization direction (was correct) of isochronous reception
buffers of userspace drivers if vma-mapped for R/W access. For
example, libdc1394 was affected.
- more consistent retry stategy in device discovery/ rediscovery, and
improved failure diagnostics
- various small cleanups, e.g. use SCSI layer's DMA mapping API in
firewire-sbp2
* tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
firewire: sbp2: document the absence of alignment requirements
firewire: sbp2: remove superfluous blk_queue_max_segment_size() call
firewire: sbp2: use scsi_dma_(un)map
firewire: sbp2: give correct DMA device to scsi framework
firewire: core: fw_device_refresh(): clean up error handling
firewire: core: log config rom reading errors
firewire: core: log error in case of failed bus manager lock
firewire: move rcode_string() to core
firewire: core: improve reread_config_rom() interface
firewire: core: wait for inaccessible devices after bus reset
firewire: ohci: omit spinlock IRQ flags where possible
firewire: ohci: correct signedness of a local variable
firewire: core: fix DMA mapping direction
firewire: use module_pci_driver
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/firewire.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index e83c24af358..7edcf103171 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h | |||
| @@ -349,6 +349,7 @@ int fw_cancel_transaction(struct fw_card *card, | |||
| 349 | int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, | 349 | int fw_run_transaction(struct fw_card *card, int tcode, int destination_id, |
| 350 | int generation, int speed, unsigned long long offset, | 350 | int generation, int speed, unsigned long long offset, |
| 351 | void *payload, size_t length); | 351 | void *payload, size_t length); |
| 352 | const char *fw_rcode_string(int rcode); | ||
| 352 | 353 | ||
| 353 | static inline int fw_stream_packet_destination_id(int tag, int channel, int sy) | 354 | static inline int fw_stream_packet_destination_id(int tag, int channel, int sy) |
| 354 | { | 355 | { |
| @@ -406,6 +407,7 @@ struct fw_iso_buffer { | |||
| 406 | enum dma_data_direction direction; | 407 | enum dma_data_direction direction; |
| 407 | struct page **pages; | 408 | struct page **pages; |
| 408 | int page_count; | 409 | int page_count; |
| 410 | int page_count_mapped; | ||
| 409 | }; | 411 | }; |
| 410 | 412 | ||
| 411 | int fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, | 413 | int fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card, |
