10 Mar, 2007
40 commits
-
Signed-off-by: Kristian Høgsberg
Use atomic_inc_return.
Signed-off-by: Stefan Richter
-
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
This lets the SCSI stack retry the command when a SCSI command is
interrupted by a FireWire bus reset.Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
This prevents superfluous bus traffic as fw-sbp2 logs in only to
get kicked off the device by another bus reset as the driver core
does bus management. Scheduling it this way lets the driver core
finish bus management before higher level drivers get the update
callback.Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Sometimes we reconnect too soon, sometimes too late. Adding a retry
mechanism make the reconnect step much more robust.Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
When a management ORB times out, either because the fw_transaction
times out or when we don't get the status write, we need to properly
cancel the entire operation.Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Drivers such as fw-sbp2 had no way to properly cancel in-progress
transactions, which could leave a pending transaction or an unset
packet in the low-level queues after kfree'ing the containing
structure. fw_cancel_transaction() lets drivers cancel a submitted
transaction.Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
The old DMA program for receiving async packets stops DMA while
processing received packets and only expects one packet per
interrupt. Stopping DMA can silently drop packets and we need to
handle multiple received packets per interrupt.This new version keeps DMA running at all times and just append new
pages as buffers fill up, and supports multiple packets per interrupt.Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Stefan Richter
-
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Drop the negative errnos and use RCODEs for all error codes
in the complete transaction callback.Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
drivers/firewire/fw-topology.c: In function `report_found_node':
drivers/firewire/fw-topology.c:345: error: `typeof' applied to a bit-field
drivers/firewire/fw-topology.c:345: error: `typeof' applied to a bit-fieldSigned-off-by: Stefan Richter
-
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
Copied from sbp2:
- enable spin-up by START STOP UNIT for all devices
- enable INQUIRY (36) workaround on demand
- prefer READ/ WRITE (10) over (6) for all devices
- prefer MODE SENSE (10) for MMC devicesSigned-off-by: Stefan Richter
-
Definitions as per IEEE 1212 and IEEE 1394:
Node ID: Concatenation of bus ID and local ID. 16 bits long.
Bus ID: Identifies a particular bus within a group of buses
interconnected by bus bridges.
Local ID: Identifies a particular node on a bus.
PHY ID: Local ID of IEEE 1394 nodes. 6 bits long.Never ever use a variable called node_id for anything else than a node ID.
Signed-off-by: Stefan Richter
-
Cleans up after patch "Add PCI class ID for firewire OHCI controllers".
Signed-off-by: Stefan Richter
Signed-off-by: Kristian Høgsberg -
Signed-off-by: Stefan Richter
Signed-off-by: Kristian Høgsberg -
There is no emulation going on here too.
Signed-off-by: Stefan Richter
Signed-off-by: Kristian Høgsberg -
"goto out" happens with the lock taken.
Signed-off-by: Stefan Richter
Signed-off-by: Kristian Høgsberg -
Signed-off-by: Stefan Richter
Signed-off-by: Kristian Høgsberg -
Signed-off-by: Stefan Richter
Signed-off-by: Kristian Høgsberg -
This patch contains the following cleanups:
- "extern inline" -> "static inline"
- fw-topology.c: make struct fw_node_create staticSigned-off-by: Adrian Bunk
Signed-off-by: Stefan Richter -
Instances of struct file_operations and struct fw_card_driver can be
qualified as "const". Ditto with struct fw_descriptor.data, struct
fw_device_id, and predefined instances of struct fw_address_region,
at least in the current implementation.Data qualified as const is placed into the .rodata section which won't
be mixed with dirty data.Signed-off-by: Stefan Richter
-
Signed-off-by: Stefan Richter
-
Screenshot from "make menuconfig":
...
?????????????????????? IEEE 1394 (FireWire) support ???????????????????????
? Arrow keys navigate the menu. selects submenus --->. ?
...
? ??????????????????????????????????????????????????????????????????????? ?
? ? IEEE 1394 (FireWire) support (JUJU alternative stack, experim? ?
? ? Support for OHCI firewire host controllers ? ?
? ? Support for storage devices (SBP-2 protocol driver) ? ?
? ? IEEE 1394 (FireWire) support ? ?
? ? --- Subsystem Options ? ?
? ? [ ] Excessive debugging output ? ?
...
? < Exit > < Help > ?
???????????????????????????????????????????????????????????????????????????Signed-off-by: Stefan Richter
-
Replace __fw_core_h by __fw_transaction_h to match the file name.
Add comments to the final #endif in header files.Signed-off-by: Stefan Richter
-
Correct a typo. Also spell FireWire consistently.
Signed-off-by: Stefan Richter
-
The new stack is not yet stable WRT functionality and APIs.
Signed-off-by: Stefan Richter
-
drivers/firewire/fw-sbp2.c: At top level:
drivers/firewire/fw-sbp2.c:1060: error: storage size of '__mod_ieee1394_device_table' isn't known
(error pointed out by akpm)Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
ia64:
drivers/firewire/fw-sbp2.c: In function `sbp2_command_orb_map_scatterlist':
drivers/firewire/fw-sbp2.c:826: warning: implicit declaration of function `sg_dma_len'
drivers/firewire/fw-sbp2.c:828: warning: implicit declaration of function `sg_dma_address'
drivers/firewire/fw-sbp2.c:837: error: invalid use of undefined type `struct scatterlist'
drivers/firewire/fw-sbp2.c:838: error: invalid use of undefined type `struct scatterlist'Signed-off-by: Andrew Morton
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
alpha:
drivers/firewire/fw-ohci.c: In function 'ar_context_tasklet':
drivers/firewire/fw-ohci.c:266: warning: implicit declaration of function 'dma_sync_single_for_device'
drivers/firewire/fw-ohci.c:267: error: 'DMA_TO_DEVICE' undeclared (first use in this function)
drivers/firewire/fw-ohci.c:267: error: (Each undeclared identifier is reported only once
drivers/firewire/fw-ohci.c:267: error: for each function it appears in.)
drivers/firewire/fw-ohci.c: In function 'ar_context_init':
drivers/firewire/fw-ohci.c:282: warning: implicit declaration of function 'dma_map_single'
drivers/firewire/fw-ohci.c:283: error: 'DMA_TO_DEVICE' undeclared (first use in this function)
drivers/firewire/fw-ohci.c:293: error: 'DMA_FROM_DEVICE' undeclared (first use in this function)
etc.Signed-off-by: Andrew Morton
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter -
drivers/firewire/fw-ohci.c: In function 'ar_context_init':
drivers/firewire/fw-ohci.c:288: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'dma_addr_t'Signed-off-by: Andrew Morton
Signed-off-by: Kristian Høgsberg
Signed-off-by: Stefan Richter