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 /drivers/firewire/core.h | |
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 'drivers/firewire/core.h')
-rw-r--r-- | drivers/firewire/core.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h index b5a2f6197053..515a42c786d0 100644 --- a/drivers/firewire/core.h +++ b/drivers/firewire/core.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
5 | #include <linux/device.h> | 5 | #include <linux/device.h> |
6 | #include <linux/dma-mapping.h> | ||
6 | #include <linux/fs.h> | 7 | #include <linux/fs.h> |
7 | #include <linux/list.h> | 8 | #include <linux/list.h> |
8 | #include <linux/idr.h> | 9 | #include <linux/idr.h> |
@@ -154,7 +155,11 @@ void fw_node_event(struct fw_card *card, struct fw_node *node, int event); | |||
154 | 155 | ||
155 | /* -iso */ | 156 | /* -iso */ |
156 | 157 | ||
157 | int fw_iso_buffer_map(struct fw_iso_buffer *buffer, struct vm_area_struct *vma); | 158 | int fw_iso_buffer_alloc(struct fw_iso_buffer *buffer, int page_count); |
159 | int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card, | ||
160 | enum dma_data_direction direction); | ||
161 | int fw_iso_buffer_map_vma(struct fw_iso_buffer *buffer, | ||
162 | struct vm_area_struct *vma); | ||
158 | 163 | ||
159 | 164 | ||
160 | /* -topology */ | 165 | /* -topology */ |