GIT 35ed82ddb022880f89c7133fa965b94d19ec0e64 git+ssh://master.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6.git commit Author: Stefan Richter Date: Sat May 5 17:25:51 2007 +0200 ieee1394: eth1394: handle tlabel exhaustion When eth1394 was unable to acquire a transaction label, it just dropped outgoing packets without attempt to resend them later. The transmit queue is now halted if no tlabel is available to ->hard_start_xmit(). A workqueue job is then scheduled to catch the moment when ieee1394 recycled the next lot of tlabels. Fixes http://bugzilla.kernel.org/show_bug.cgi?id=8402 Signed-off-by: Stefan Richter commit 6cce8abf0e6171b9e310ad77e40b7e51696c21b2 Author: Stefan Richter Date: Sat May 5 17:19:09 2007 +0200 ieee1394: eth1394: remove bogus netif_wake_queue When we are within hard_start_xmit, the queue is already awake. Signed-off-by: Stefan Richter commit 445f7ee8f24988d028c77b0b3af8b2b0aa831700 Author: Stefan Richter Date: Sat May 5 17:18:12 2007 +0200 ieee1394: sbp2: include workqueue.h Signed-off-by: Stefan Richter commit 816127560af3a226c9c1a55fb3ec0b04aabbb4f0 Author: Stefan Richter Date: Thu May 3 20:24:19 2007 +0200 ieee1394: ohci1394: remove dead CONFIG variable spotted by Robert P. J. Day Signed-off-by: Stefan Richter commit 9640d3d775aa325650c8fcdf49127542f77b2156 Author: Kristian Høgsberg Date: Mon Apr 30 15:03:15 2007 -0400 firewire: Rename fw-device-cdev.c to fw-cdev.c and move header to include/linux. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit abaa5743e340c23922d92c9a5a6753ea3ae71e58 Author: Kristian Høgsberg Date: Mon Apr 30 15:03:14 2007 -0400 firewire: Future proof the iso ioctls by adding a handle for the iso context. Currently create context always returns 0 and the other iso ioctls will expect user space to pass that in for subsequent ioctls. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 4f2592232ea951e52b2faf1abf519e13856ac6f4 Author: Kristian Høgsberg Date: Mon Apr 30 15:03:13 2007 -0400 firewire: Add read/write and size annotations to IOC numbers. Also, with this change, refactor ioctl dispatch code to do the copying from and to user space as indicated by the IOC annotations. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 0b6aa3d0537104e86d80cde66192a0aa569e0bf4 Author: Randy Dunlap Date: Wed Apr 25 22:43:16 2007 -0700 firewire: don't use extern on public symbols Make firewire entry points not 'extern': drivers/firewire/fw-device.c:160:25: warning: function 'fw_device_get' with external linkage has definition drivers/firewire/fw-device.c:167:13: warning: function 'fw_device_put' with external linkage has definition Signed-off-by: Randy Dunlap Signed-off-by: Stefan Richter commit 3e1dcb00d59473d52d4ca80a57408b3d953e4573 Author: Andrew Morton Date: Thu Apr 26 00:16:04 2007 -0700 firewire: fw-device printk fix You don't know what type is used to implement u64. Signed-off-by: Andrew Morton Signed-off-by: Stefan Richter commit dde2b954302d143deee6dbd931ba2aa21413bb0a Author: Kristian Høgsberg Date: Tue Apr 17 11:51:57 2007 -0400 firewire: Don't use subsystem rwsem, it's going away. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 0fc7d6e4f4c243b49077b29466c9e135e3401938 Author: Kristian Høgsberg Date: Wed Apr 11 18:44:33 2007 -0400 firewire: Do an agent reset on error recovery. Signed-off-by: Kristian Høgsberg (Reverted part which moved it from eh_abort_handler to eh_host_reset_handler) Signed-off-by: Stefan Richter commit 12f26aa1b172a32604fedcb98d68c7aef268d6ad Author: Kristian Høgsberg Date: Tue Apr 10 18:11:20 2007 -0400 firewire: Only free ORBs that completed the initial transaction. In some situations we can receive the ORB status write before we have received the ORB pointer write response. When this happens, we assume that the fw_transaction is finished and free the ORB struct containing the fw_transaction. This fix make the status write logic only accept status writes for ORBs where the initial ORB pointer write transaction finished. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit fbb5423c1df99c846677480ce44588176352f7d9 Author: Kristian Høgsberg Date: Tue Apr 10 18:11:18 2007 -0400 firewire: Forward SAM status codes to the scsi stack. Or the SAM status codes from the device sense data into the command error code. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 053b30808f693b2e4bbef2955c2dad0fcacdb806 Author: Kristian Høgsberg Date: Tue Apr 10 18:11:17 2007 -0400 firewire: Check for CONTEXT_RUN not CONTEXT_ACTIVE when starting AT DMA context. Doh, bad typo... Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 15536221d1f09ae7707f70a183045ee20d8bcf17 Author: Kristian Høgsberg Date: Tue Apr 10 18:11:16 2007 -0400 firewire: Byteswap iso header so all headers are presented as be32. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 8a2f7d932fc6a4881ff837738e23b41a1c228338 Author: Kristian Høgsberg Date: Wed Mar 28 14:26:10 2007 -0400 firewire: Fix start on cycle 0 for IT, implement start on cycle for IR. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit ef370ee74b7a9cb769d50bfb73b4023ee3e37719 Author: Kristian Høgsberg Date: Wed Mar 28 20:46:23 2007 +0200 firewire: Fix the range check for the queue_iso payload pointer. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter (renamed a variable) commit c5dfd0a5b09bf20adf26b3242258679e305c39c8 Author: Kristian Høgsberg Date: Tue Mar 27 01:43:43 2007 -0400 firewire: Increase the number of config rom retries and the retry delay. Some devices have a really long power-on cycle, and we fail to successfully probe these if they're plugged in and then turned on. There's really no down-side to bumping the number of retries and the retry delay, and most devices will get picked up within the first couple of retries anyway. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 93e4fd455c62085cdceea3af4c56d95758d3cb74 Author: Kristian Høgsberg Date: Tue Mar 27 09:42:39 2007 -0500 firewire: Don't set card->irm_node before we have a new valid topology. In case the topology build fails, we want to retain the old topology info until another reset finishes and results in a valid new tree. If we clear card->irm_node to NULL and the topology build fails, we end up dereferencing a NULL pointer in a few places. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 3964a4496eaa4cb84772e8dfc6c3a72ec4ddca7a Author: Kristian Høgsberg Date: Tue Mar 27 01:43:41 2007 -0400 firewire: Generalize resource tracking for cdev implementation. Generalize the way we keep track of the various resources and assign a unique handle to each resource. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 66dea3e5f69abfdfa46b091ea117e497758351e7 Author: Kristian Høgsberg Date: Wed Mar 28 21:26:42 2007 +0200 firewire: Add ioctls to add and remove config rom descriptors. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter (fixed whitespace) commit da8ecffaed434a12930f652898f9e86d1c2abc3e Author: Kristian Høgsberg Date: Tue Mar 27 01:43:39 2007 -0400 firewire: Streamline userspace interface structs. Make event struct layout common part include the closure and add a union for all event types; provide a mechanism for setting the bus reset event closure. Shuffle struct fw_cdev_queue_iso fields around to be 64-bit safe. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 20d11673112f7fa2087ae2eaf8896c8d2d8ccb07 Author: Kristian Høgsberg Date: Mon Mar 26 19:18:19 2007 -0400 firewire: Remember to set the driver_data pointer when queueing a packet. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 6f2e53d5135a861d3ee8afdacac5cde13c49a05d Author: Kristian Høgsberg Date: Tue Mar 27 19:35:13 2007 -0400 firewire: Use device->groups for adding device attributes. We dynamically create an attribute group for the key present on the device in hand and point device->group to it. This way the device core adds the sysfs attributes for us as the device is added. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit ecab413359541b1dbe8e8c91cb5fa8eafa662c05 Author: Marc Butler Date: Fri Mar 23 10:24:02 2007 -0600 firewire: Add phy register defines. Signed-off-by: Marc Butler Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter (added whitespace) commit bbd1494580462fa35bdd2073dba3902fb53981bf Author: Kristian Høgsberg Date: Tue Mar 20 20:58:35 2007 -0400 firewire: Export GUID as sysfs attribute. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 7feb9cce2d07bea635256a2e226d7ca7a9f4585f Author: Kristian Høgsberg Date: Wed Mar 21 10:55:19 2007 -0400 firewire: Add sysfs attributes for config rom directory values. We export the entire config rom, so this is technically redundant, but should make udev rules and HAL integration easier. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 21351dbe4e61270f28cf61c685c745416554a4f1 Author: Kristian Høgsberg Date: Tue Mar 20 20:58:33 2007 -0400 firewire: Make use of struct device_type. The device_type struct is useful for setting attributes for a device and overriding .release and .uevent for a group of devices. This patch uses it this way to clean up the sysfs code a bit. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 945ac22253a09574da4ed568b426aef03722bfb6 Author: Stefan Richter Date: Tue Mar 20 19:44:26 2007 +0100 firewire: ROM cache is CPU-endian Puts a stray endian annotation down. Signed-off-by: Stefan Richter commit d84702a5d7b500ead8db129ddea789c88764f357 Author: Stefan Richter Date: Tue Mar 20 19:42:15 2007 +0100 firewire: fix compiler warnings on 64bit Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg commit 633c52dccd73d83eabbe1fb23e3822b695a2718b Author: Stefan Richter Date: Mon Mar 19 11:37:16 2007 -0400 firewire: add includes for sem and rw_sem as a precaution. Signed-off-by: Stefan Richter commit 015b066f4e5dbd301144c2de1c53329178f67a01 Author: Kristian Høgsberg Date: Mon Mar 19 11:37:16 2007 -0400 firewire: Grab dev->sem when doing the update callback. This serializes the update callback with the probe and remove callback from the driver core and prevents remove from being called while update is running for the same device. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 11f494ee25dd81af90255b1d61abc6f5508db4d0 Author: Stefan Richter Date: Sun Mar 18 01:39:28 2007 +0100 firewire: rename CONFIG_FW to CONFIG_FIREWIRE to avoid confusion with CONFIG_FW_LOADER. Signed-off-by: Stefan Richter Acked-by: Kristian Høgsberg commit b3d6e151142c6d22abdf1e3e7bde0f6d828df945 Author: Kristian Høgsberg Date: Wed Mar 14 17:34:58 2007 -0400 firewire: Add ref-counting for sbp2_device and hold a ref while we have work scheduled. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 7e35f7f318168f1b735abc87754108c06955f50d Author: Kristian Høgsberg Date: Wed Mar 14 17:34:57 2007 -0400 firewire: Free pending transactions on cdev release. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 693b9021767750cbac2c92e918d25ddadbab7c61 Author: Kristian Høgsberg Date: Wed Mar 14 17:34:56 2007 -0400 firewire: Zero out sd->scsi_host if we fail to register with the SCSI stack. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 9472316b6eab3500ded544f6e86700c33541ef4e Author: Kristian Høgsberg Date: Wed Mar 14 17:34:55 2007 -0400 firewire: Implement deallocation of address ranges. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit eb0306eac0aad0b7da18d8fbfb777f155b2c010d Author: Kristian Høgsberg Date: Wed Mar 14 17:34:54 2007 -0400 firewire: Move sync and tag parameters to start_iso ioctl. Setting these at create_context time or start_iso time doesn't matter much, but raw1394 sets them at start_iso time so that will be easier to emulate this way. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit c70dc788fd8d3870b41231b6a53a64afb98cfd13 Author: Kristian Høgsberg Date: Wed Mar 14 17:34:53 2007 -0400 firewire: Fix dualbuffer iso receive mode and drop buffer fill mode. The dualbuffer DMA setup did not account for the iso trailer word and thus didn't work correctly. With this fixed we can drop the dual buffer fallback mode. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit d60d7f1d5ce83d1be8d79256f711d6a645b7a2fa Author: Kristian Høgsberg Date: Wed Mar 7 12:12:56 2007 -0500 firewire: Implement CSR cycle time and bus time registers. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 473d28c730e2de888c24b226cfe4183868eacde2 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:55 2007 -0500 firewire: Implement topology map and fix a couple of loopback bugs. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 7c6e647da00883ec2208171d51537f23498dd669 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:54 2007 -0500 firewire: Export juju specific rcodes to user space. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 97e352753820c62fca6d46723e0591e1ff6a3b22 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:53 2007 -0500 firewire: Add generation field to send_request ioctl struct. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit e7533505fed97379b03538cf0ff2df0dc853298f Author: Kristian Høgsberg Date: Wed Mar 7 12:12:52 2007 -0500 firewire: Add card index field to get_info cdev ioctl struct. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 8fbdbb3683770f765afb4f8140a8d7898feeb94c Author: Kristian Høgsberg Date: Wed Mar 7 12:12:51 2007 -0500 firewire: Fix order of arguments for iso context creation. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 28cf6a04c82857d562968dc3a8a89726e6ac3dcb Author: Kristian Høgsberg Date: Wed Mar 7 12:12:50 2007 -0500 firewire: Track pending transactions and cancel them on cdev release. Without this, pending transactions will dereference freed memory if they complete after the device file has been closed. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit f319b6a02f12c3712eb64eee6a23584367cb3588 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:49 2007 -0500 firewire: Move async transmit to use the general context code. The old async transmit context handling was starting and stopping DMA for every packet transmission. This could cause silently failing packet transmission, if the DMA was reprogrammed too close to being stopped. The general context code keeps DMA running at all times and fixes this problem. It's also a nice cleanup. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 2603bf219e9bef3396b96b65326de7db27958c95 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:48 2007 -0500 firewire: Use only a wait queue and terminate poll and read on device removal. Drop the event list semaphore and only use the wait queue and the list to synchronize queue access. Break out of a poll or read whenever the device is disconnected. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 2aaad97be6b58ae865f402fcd27d138e7346ff81 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:47 2007 -0500 firewire: Don't time out command orbs, leave that to the scsi stack. The mod_timer based timing out of orb was a little to agressive and would time out legit, but long-lived scsi cmds. Besides, the scsi stack keeps track of this already. Since we're only timing out management orbs, go back to wait_for_completion_timeout. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 048961ef90b584d00ec79c75cb7c7b28403f0c87 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:46 2007 -0500 firewire: Add rom_index attribute for unit sysfs directories. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 5c5539d8cdfd13fdb080357fe79f94a7e11a6ef6 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:45 2007 -0500 firewire: Quiet down fw-sbp2 logging a bit, remove stale FIXME. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit a3aca3dabbcf00f2088d472f27755c29acaa992e Author: Kristian Høgsberg Date: Wed Mar 7 12:12:44 2007 -0500 firewire: Switch cdev code over to use register_chrdev and keep a list of devices. The old mechanism kept a struct cdev for each fw device, but fops->release would reference this struct after the device got freed in some cases. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 344bbc4de14e70d03f09bff04bb7d161b8a0d28c Author: Kristian Høgsberg Date: Wed Mar 7 12:12:43 2007 -0500 firewire: Generalize get_config_rom to get_info. Repurpose the get_config_rom ioctl to a general get_info ioctl. This ioctl is now used for version negotiation, and optionally returns the config rom, and the current bus info. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 5371842b723dd04df57171f2c74660966901380c Author: Kristian Høgsberg Date: Wed Mar 7 12:12:42 2007 -0500 firewire: Implement ioctl to initiate bus reset. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 97bd9efa5a4d8a70b3bafe0d1e3e1a814fdac5bc Author: Kristian Høgsberg Date: Wed Mar 7 12:12:41 2007 -0500 firewire: Add a bus reset event type for fw-device-cdev. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 1da0c93b31bb8f374a22f4e20dab02fd79f6c7e6 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:40 2007 -0500 firewire: Only use INIT_DELAYED_WORK for first initialization. Use PREPARE_DELAYED_WORK to just change the function pointer. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 5f48047756339065df3e6fead381978abb0bc557 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:39 2007 -0500 firewire: Iterate through units in a keventd callback for update callbacks. We can't take the klist lock for the child device list in interrupt context. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit e254a4b45f265d9df120b83d5c2c9437902b601b Author: Kristian Høgsberg Date: Wed Mar 7 12:12:38 2007 -0500 firewire: Clear all interrupt bits before shutting down. Some flaky controllers doesn't honor the masterIntEnable bits and can generate bus reset events even if that bit is cleared. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 49e1179b16fe54bfa070cd955a24c5ce82e21d16 Author: Kristian Høgsberg Date: Wed Mar 7 12:12:37 2007 -0500 firewire: Drop the unused fw_card device. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 937f687969f77bfeee5efd71cadfa6f1a813665e Author: Kristian Høgsberg Date: Wed Mar 7 12:12:36 2007 -0500 firewire: Let an fw_descriptor specify a leading immediate key/value pair. This lets us break out "Juju" as the model name in the config rom. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 65efffa8f0cd86a199bf19ede5c91552d35c5a38 Author: Thomas Gleixner Date: Mon Mar 5 18:19:51 2007 -0800 firewire: Scheduled removal of SA_xxx interrupt flags fixups 3 The obsolete SA_xxx interrupt flags have been used despite the scheduled removal. Fixup the remaining users in -mm. Signed-off-by: Thomas Gleixner Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 373b2edd864b8753419521b715bd1ddafd2f2af3 Author: Stefan Richter Date: Sun Mar 4 14:45:18 2007 +0100 firewire: adjust whitespace Remove space before tab and trailing whitespace. Unify indentation of goto target labels. Signed-off-by: Stefan Richter commit 98b6cbe83b6e8db54638746c9040c7962d96b322 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:51 2007 -0500 firewire: Implement sync and tag matching for isochronous receive. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 21efb3cfc6ed49991638000f58bb23b838c76e25 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:50 2007 -0500 firewire: Configure channel and speed at context creation time. We need the channel number as we queue up iso packets for transmission so we can fill out the header correctly. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit e364cf4e0aa245ba2ce5942289e8a43935505e53 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:49 2007 -0500 firewire: Store OHCI version and make sure we have at least 1.1 before doing dualbuffer. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 68be3fa15a420d96b1aaed4c519607bf2bfcb2e1 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:48 2007 -0500 firewire: Get zeroed out pages for mapping to user space. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit cb2d2cdbc66d9143159ee0381ad83975de56a57d Author: Kristian Høgsberg Date: Fri Feb 16 17:34:47 2007 -0500 firewire: Don't touch DMA descriptors after appending. When a DMA descriptor is appended to the context we sync it for DMA and the device might potentially read it immediately. So, we can't set the IRQ bits in the descriptor after appending. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit d2746dc192e8b9446ea1cb843e94c30f177b7e54 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:46 2007 -0500 firewire: Use a buffer fill descriptor for receive when header size is 0. When the DMA is setup to not strip any headers, we need to use the buffer fill descriptor instead of the dual buffer, since the dual buffer descriptor must strip a non-zero number of header quadlets. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 1e1d196bf5d9258f9583a05c41c1c351ffcdeac2 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:45 2007 -0500 firewire: Set correct buffer lengths for dualbuffer DMA descriptor. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 9b32d5f3074e9b1afaa39a360a59fd77a2214783 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:44 2007 -0500 firewire: Acummulate received iso headers and send them back to user space. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 500be7251a4af1a87aa48285a23a741f74a97a89 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:43 2007 -0500 firewire: Log OHCI chipset version in PCI probe. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit b82956685aab4a9d333714300eb8a86fed6c9ab3 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:42 2007 -0500 firewire: Implement functionality to stop isochronous DMA contexts. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 69cdb7268ca2e644665dae8ea26e35ce4e96679c Author: Kristian Høgsberg Date: Fri Feb 16 17:34:41 2007 -0500 firewire: Rename 'send_iso' to 'start_iso'. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 295e3feb92e5073ec32a3c626302d4b92c4c8a95 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:40 2007 -0500 firewire: Implement basic isochronous receive functionality. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 30200739e612932739cc34baf588b39bacc2f427 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:39 2007 -0500 firewire: Generalize the iso transmit descriptor buffer logic. The descriptor circular buffer logic used for iso transmission is useful for async transmit too, so pull the sharable logic out in a few standalone functions. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 9aad8125389a7a2990dee72d7892e22330a945eb Author: Kristian Høgsberg Date: Fri Feb 16 17:34:38 2007 -0500 firewire: Split the iso buffer out from fw_iso_context and avoid vmalloc. This patch splits out the iso buffer so we can initialize it at mmap time with the size provided in the mmap call. Furthermore, allocate the backing pages using alloc_page to avoid setting up kernel side virtual memory mappings for the pages. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 6e2e8424d310507fa044649435114217826ed78a Author: Kristian Høgsberg Date: Fri Feb 16 17:34:37 2007 -0500 firewire: Use correct payload pointer when demarshalling incoming requests. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit c889475fb57bfe30091b42e58eb6b76edd355d45 Author: Kristian Høgsberg Date: Fri Feb 16 17:34:36 2007 -0500 firewire: Read the *Clear versions of the iso interrupt register. The *Clear registers returns the masked value when read which is what we want. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit cbb59da719e413fcd499d86f49af2327893a9fdb Author: Kristian Høgsberg Date: Fri Feb 16 17:34:35 2007 -0500 firewire: Fix another typo from the bitfield conversion. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 82eff9db7dc5d8f78898d5051975d14f48be2028 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:40 2007 -0500 firewire: Use dma_mapping_error() for checking for DMA mapping errors. Pointed out by Pete Zaitcev. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 27a15e50fb87978d7e1e9f7b561f78692e0b1eb5 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:39 2007 -0500 firewire: Credit the old sbp2.c driver for being a good starting point. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit bbf19db37e8be3fa6d6fe3e26e50da068b44a0e8 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:38 2007 -0500 firewire: Use atomic_t's for serial numbers. Signed-off-by: Kristian Høgsberg Use atomic_inc_return. Signed-off-by: Stefan Richter commit 362c2c8ca4a2f33f6e23a85c3b4caf64f1ce4bf9 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:37 2007 -0500 firewire: Spell out fw as firewire in sysfs. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 374a00392853db6fac4ec4c93139873a368a78af Author: Kristian Høgsberg Date: Tue Feb 6 14:49:36 2007 -0500 firewire: Complete SCSI commands with DID_BUS_BUSY when a bus reset happens. 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 commit 993baca3dde7959567e3c7c262c2bc843ba241de Author: Kristian Høgsberg Date: Tue Feb 6 14:49:35 2007 -0500 firewire: Schedule topology work before calling driver update functions. 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 commit 7f37c426c68d34aa221ce29262c1eba39034ac97 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:34 2007 -0500 firewire: Introduce a retry mechanism for reconnects and logins. 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 commit 1d3d52c5367e0ca352aff6d6986533787bcf36d0 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:33 2007 -0500 firewire: fw-sbp2: Do ORB timeout right. 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 commit 730c32f58ba81b3a4fe6d19c7d9e9829dd96d363 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:32 2007 -0500 firewire: Implement proper transaction cancelation. 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 commit 72e318e07e1fa9840bfdd5788421fc6dc51a93de Author: Kristian Høgsberg Date: Tue Feb 6 14:49:31 2007 -0500 firewire: Reduce some redundant register definitions. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 32b46093a076986fa3c6e1dd484791624edf4585 Author: Kristian Høgsberg Date: Tue Feb 6 14:49:30 2007 -0500 firewire: Rework async receive DMA. 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 commit 641f8791f031d6133e5c3e9ce036b3e942416e9d Author: Stefan Richter Date: Sat Jan 27 10:34:55 2007 +0100 firewire: use atomic type for fw_device.state Signed-off-by: Stefan Richter commit 0edeefd99fd31f74432aba5860f6ebcbde874dbf Author: Kristian Høgsberg Date: Fri Jan 26 00:38:49 2007 -0500 firewire: Make sure we wait for DMA to stop before we reprogram it. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 931c4834c8d1e1bf0dcc256b89449a01711f970d Author: Kristian Høgsberg Date: Fri Jan 26 00:38:45 2007 -0500 firewire: Implement compliant bus management. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 9fc82689bf2920e9b3a8cc1766bcb6ad6454a7c4 Author: Kristian Høgsberg Date: Fri Jan 26 00:38:38 2007 -0500 firewire: Fix bit shift typo. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit e5f49c3b837ff90c8aec2c6c66c4966080aced06 Author: Kristian Høgsberg Date: Fri Jan 26 00:38:34 2007 -0500 firewire: Sanitize send error codes. 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 commit 93c4cceb963ebb133531e5e3f4f6e2da0d222656 Author: Kristian Høgsberg Date: Fri Jan 26 00:38:26 2007 -0500 firewire: Handle access to CSR resources on local node. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 746083d86cf5f874741e3ddecf56ea3ed32959c8 Author: Kristian Høgsberg Date: Fri Jan 26 00:38:18 2007 -0500 firewire: Add lock transaction opcodes to fw-device-cdev.h. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 36bfe49d076404fcdf5766098de21724635a1816 Author: Kristian Høgsberg Date: Fri Jan 26 00:38:13 2007 -0500 firewire: Clean up response handling. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit e636fe2576be552252a5b63e9287915e810b37d8 Author: Kristian Høgsberg Date: Fri Jan 26 00:38:04 2007 -0500 firewire: Loop requests to the host controller back into the stack. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 2639a6fb268e1f2a7700fe3d31cbca9b39aa3ad9 Author: Kristian Høgsberg Date: Fri Jan 26 00:37:57 2007 -0500 firewire: Use struct fw_packet for incoming packets too in controller interface. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit 748086eb53cc5f467604c9b46ab48dc3cb771c89 Author: Stefan Richter Date: Sat Jan 27 16:59:15 2007 +0100 firewire: fix compilation with gcc 3.4 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-field Signed-off-by: Stefan Richter commit 83db801ce8c644edee49f4364c7ebdfef1657762 Author: Kristian Høgsberg Date: Fri Jan 26 00:37:50 2007 -0500 firewire: Implement gap count optimization. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter commit cfb01381f4ffcd05aefe76c74911ba6bc996e8ba Author: Stefan Richter Date: Tue Jan 23 21:20:08 2007 +0100 firewire: fw-sbp2: set command set related device flags 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 devices Signed-off-by: Stefan Richter commit 907293d78872ee492ce6a114258dd853ec5082ae Author: Stefan Richter Date: Tue Jan 23 21:11:43 2007 +0100 firewire: consistent usage of node_id 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 commit 366f5f4fa31cd3f3d5901f5edfe255a48906505d Author: Stefan Richter Date: Tue Jan 23 21:09:23 2007 +0100 firewire: fw-ohci: remove unnecessary macro Cleans up after patch "Add PCI class ID for firewire OHCI controllers". Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg commit 02af8e70cbe42833805d6f2f10fc1d43ce90da0d Author: Stefan Richter Date: Sun Jan 21 20:50:11 2007 +0100 firewire: fw-sbp2: remove unused macro Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg commit 5fa1580d2d922171c5ef8da487054d056298a970 Author: Stefan Richter Date: Sun Jan 21 20:49:38 2007 +0100 firewire: fw-sbp2: remove bogus "emulated" host flag There is no emulation going on here too. Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg commit 6cad95fe97dc062d0367da125ac0b2e5f1694b23 Author: Stefan Richter Date: Sun Jan 21 20:46:45 2007 +0100 firewire: fix failure path in ohci_enable_phys_dma "goto out" happens with the lock taken. Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg commit 5af4e5eab30d481f76b89a2167c873dfad960acb Author: Stefan Richter Date: Sun Jan 21 20:45:32 2007 +0100 firewire: comma after last enum item or initializer Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg commit 5e20c282184fd5794661b6688883231ff5348abc Author: Stefan Richter Date: Sun Jan 21 20:44:09 2007 +0100 firewire: whitespace adjustments Signed-off-by: Stefan Richter Signed-off-by: Kristian Høgsberg commit 95688e97cdf7453cde22eaa73cc2ab6b113c1853 Author: Adrian Bunk Date: Mon Jan 22 19:17:37 2007 +0100 firewire: cleanups This patch contains the following cleanups: - "extern inline" -> "static inline" - fw-topology.c: make struct fw_node_create static Signed-off-by: Adrian Bunk Signed-off-by: Stefan Richter commit 21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84 Author: Stefan Richter Date: Sun Jan 14 15:29:07 2007 +0100 firewire: mark some structs const 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 commit 227e7d8194bd147484f6ae135a082ce22112b5b3 Author: Stefan Richter Date: Sun Jan 7 22:33:59 2007 +0100 firewire: additional help in Kconfig Signed-off-by: Stefan Richter commit 22a38e72bc18b9e8b860182c512efaade5590c7d Author: Stefan Richter Date: Sun Dec 31 17:20:20 2006 +0100 firewire: put old and new stack into same Kconfig submenu 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 ? ? ... ?