commit 606135a3081e045b677cde164a296c51f66c4633 Author: Linus Torvalds Date: Tue Feb 27 20:59:12 2007 -0800 Linux 2.6.21-rc2 Too many changes for comfort since -rc1. Some missed merges, and some just annoyingly big fixes since. This is not how an -rc2 should look. Need to really calm things down! commit bb4c18cbba474ae20c84171819255598cf975158 Author: David S. Miller Date: Mon Feb 26 14:55:06 2007 -0800 [SPARC64]: Fix PCI interrupts on E450 et al. When the PCI controller OBP node lacks an interrupt-map and interrupt-map-mask property, we need to form the INO by hand. The PCI swizzle logic was not doing that properly. This was a regression added by the of_device code. Signed-off-by: David S. Miller commit f8dfdd5cab482a2ce4a8e2375e1512aa4829c653 Author: Stephen Hemminger Date: Mon Feb 26 14:51:56 2007 -0800 netxen: do_rom_fast_write error handling Compiler warning spots real error! The function do_rom_fast_read called in do_rom_fast_write can fail and leave data1 unset. This causes a compile warning. The correct thing is to propagate the error out. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 6eaf6fc81ab2fa8c264f819f57dc950b6ea9c651 Author: Adrian Bunk Date: Sun Feb 25 01:08:47 2007 +0100 remove the jffs MAINTAINERS entry This patch removes the MAINTAINERS entry for the removed jffs filesystem. Signed-off-by: Adrian Bunk Signed-off-by: Jeff Garzik commit 36c843d5e347ec71ec579a477c941538a03b8cf3 Author: Mark Brown Date: Sun Feb 25 15:37:27 2007 +0000 natsemi: Fix detection of vanilla natsemi cards Bob Tracy reported that the addition of support for Aculab E1/T1 cPCI carrier cards broke detection of vanilla natsemi cards. This patch fixes that: the problem is that the driver-specific ta in the PCI device table is an index into a second table and this had not been updated for the vanilla cards. This patch fixes the problem minimally. Signed-Off-By: Mark Brown Signed-off-by: Jeff Garzik commit b882addd7aecbdae7b938fa189f0459d0713976b Author: Alan Date: Tue Feb 20 18:08:57 2007 +0000 net: remove a collection of unneeded #undef REALLY_SLOW_IO stuff Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 54d3e568209553d3dd0d824fbc0ef4a6cedaf465 Author: Roland Dreier Date: Mon Feb 26 14:58:49 2007 -0800 chelsio: Fix non-NAPI compile Chelsio without NAPI enabled has been broken (won't compile) since 3de00b89 ("chelsio: NAPI speed improvement"): drivers/net/chelsio/sge.c: In function `t1_interrupt`: drivers/net/chelsio/sge.c:1716: error: `Q` undeclared (first use in this function) The change below seems to add back in the declaration and initialization of `Q` that was removed by mistake, and at least makes the driver compile for me, although I have no hardware and hence no way to test whether this actually works. Signed-off-by: Roland Dreier Signed-off-by: Jeff Garzik commit e0994eb1d9ead09bb8f6483cf5cf6aa55ce0f3b9 Author: Divy Le Ray Date: Sat Feb 24 16:44:17 2007 -0800 cxgb3 - Feed Rx free list with pages Populate Rx free list with pages. Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik commit bae73f44472921008f8d0982344c53ae231445a1 Author: Divy Le Ray Date: Sat Feb 24 16:44:12 2007 -0800 cxgb3 - Recovery from HW starvation of response queue entries. Improve the traffic recovery after the HW ran out of response queue entries. Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik commit 99d7cf30b99a8b7863090d8a510d6a4d9ad082cf Author: Divy Le Ray Date: Sat Feb 24 16:44:06 2007 -0800 cxgb3 - Unmap offload packets when they are freed Offload packets may be DMAed long after their SGE Tx descriptors are done so they must remain mapped until they are freed rather than until their descriptors are freed. Unmap such packets through an skb destructor. Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik commit 75d8626fdd172745ebb638c2bf5138071e67a818 Author: Divy Le Ray Date: Sun Feb 25 16:32:37 2007 -0800 cxgb3 - FW version update Update FW version to 3.2 Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik commit 1825494a7ec6c0fed0a7dfb1646e84402979743e Author: Divy Le Ray Date: Sat Feb 24 16:43:56 2007 -0800 cxgb3 - private ioctl cleanup Clean up some private ioctls. Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik commit 896392ef94dd7b9e66d1e836f98b57380452a280 Author: Divy Le Ray Date: Sat Feb 24 16:43:50 2007 -0800 cxgb3 - manage sysfs attributes per port sysfs attributes are now managed per port, no longer per adapter. Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik commit d8d70caf836e48c4c462435d38434f2901058884 Author: Sivakumar Subramani Date: Sat Feb 24 02:04:24 2007 -0500 S2IO: Restoring the mac address in s2io_reset - Restore in s2io_reset, the mac address assigned during s2io_open. Earlier, it was getting overwritten to the factory default (read from the eeprom) and subsequently dropping received frames. - Fixed the typo in calling rtnl_unlock in s2io_set_link function. Signed-off-by: Sivakumar Subramani Signed-off-by: Jeff Garzik commit fa1f0cb350989617281a98d30e6a3a4914c79b58 Author: Sivakumar Subramani Date: Sat Feb 24 02:03:22 2007 -0500 S2IO: Avoid printing the Enhanced statistics for Xframe I card. - Enhanced Statistics are supported only for Xframe II (Herculas) card. Add condition check such Enhanced statistics will included only in the case of Xframe II card. Signed-off-by: Sivakumar Subramani Signed-off-by: Jeff Garzik commit ac1f90d6f1267b916c47cc5a033ef5ec1baf4280 Author: Sivakumar Subramani Date: Sat Feb 24 02:01:31 2007 -0500 S2IO: Making LED off during LINK_DOWN notification. - Turning off LED for LINK_DOWN notification - Return from rxd_owner_bit_reset function if call to set_rxd_buffer_pointer fails with ENOMEM Signed-off-by: Sivakumar Subramani Signed-off-by: Jeff Garzik commit 926930b202d56c3dfb6aea0a0c6bfba2b87a8c03 Author: Sivakumar Subramani Date: Sat Feb 24 01:59:39 2007 -0500 S2IO: Added a loadable parameter to enable or disable vlan stripping in frame. - Added code to not to strip vlan tag when driver is in promiscuous mode - Added module loadable parameter 'vlan_tag_strip" through which user can enable or disable vlan stripping irrespective of mode ( promiscuous or non-promiscuous ). Signed-off-by: Sivakumar Subramani Signed-off-by: Jeff Garzik commit 9fc93a41a1ad11da128f37e60cac01b67990cfb4 Author: Sivakumar Subramani Date: Sat Feb 24 01:57:32 2007 -0500 S2IO: Optimized the delay to wait for command completion - Optimized delay to wait for command completion so as to reduce the initialization wait time. - Disable differentiated services steering. By default RMAC is configured to steer traffic with certain DS codes to other queues. Driver must initialize the DS memory to 0 to make sure that DS steering will not be used by default. Signed-off-by: Sivakumar Subramani Signed-off-by: Jeff Garzik commit fb6a825b09a2311624e9cac20e643d9d7ef602dc Author: Sivakumar Subramani Date: Sat Feb 24 01:51:50 2007 -0500 S2IO: Fixes for MSI and MSIX - Added debug statements to print a debug message if the MSI/MSI-X vector (or) data is zero. - This patch removes the code that will enable NAPI for the case of single ring and MSI-X / MSI case. There are some issue in the enabling NAPI with MSI/MSI-X. So we are turning off NAPI in the case of MSI/MSI-X. Signed-off-by: Sivakumar Subramani Signed-off-by: Jeff Garzik commit ed227dcc2d998c8e0616449db06f7ef892cb17fc Author: Benjamin Li Date: Mon Feb 26 11:06:43 2007 -0800 qla3xxx: Bumping driver version number Signed-off-by: Benjamin Li Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit e8f4df2491d07fc369e9d631e0638da03a9b3a38 Author: Benjamin Li Date: Mon Feb 26 11:06:42 2007 -0800 qla3xxx: Kernic Panic on pSeries under stress conditions To reproduce this panic consistently, we run an intensive network application like 'netperf'. After waiting for a couple of seconds, you will see a stack trace and a kernel panic where we are calling pci_unmap_single() in ql_poll(). Changes: 1) Check the flags on the Response MAC IO Control block to check for errors 2) Ensure that if we are on the 4022 we only use one segment 3) Before, we were reading the memory mapped producer index register everytime we iterated in the loop when clearing the queue. We should only be iterating to a known point, not as the producer index is being updated. Signed-off-by: Benjamin Li Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 63b66d12de57d8455615d9f619e18824137ed547 Author: Ron Mercer Date: Mon Feb 26 11:06:41 2007 -0800 qla3xxx: bugfix tx reset after stress conditions. To Reproduce the Problem: To reproduce this panic consistently, we run an intensive network application like 'netperf' and then switch to a different console. After waiting for a couple of seconds, you will see a tx reset has occured. Reason: We enable interrupts even if we were not running. Solution: Now we will enable interrupts only after we are ready to give up the poll routine. Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 0f8ab89e825f8c9f1c84c558ad7e2e4006aee0d3 Author: Benjamin Li Date: Mon Feb 26 11:06:40 2007 -0800 qla3xxx: Check return code from pci_map_single() in ql_release_to_lrg_buf_free_list(), ql_populate_free_queue(), ql_alloc_large_buffers(), and ql3xxx_send() pci_map_single() could fail. We need to properly check the return code from pci_map_single(). If we can not properly map this address, then we should cleanup and return the proper return code. Signed-off-by: Benjamin Li Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 3e71f6dd47e7e64461328adcdc3fbad1465b4c2f Author: Ron Mercer Date: Mon Feb 26 11:06:39 2007 -0800 qla3xxx: bugfix: Fixed jumbo frame handling for 3032 chip. The scatter/gather lists were not being build correctly. When large frames spanned several buffers the chip would panic. Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 97916330e12371b44df659abb25d4d5d528e3ff7 Author: Ron Mercer Date: Mon Feb 26 11:06:38 2007 -0800 qla3xxx: Clean up receive process. Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 1357bfcf71063637d16a7014639d675b5cbf5189 Author: Ron Mercer Date: Mon Feb 26 11:06:37 2007 -0800 qla3xxx: Dynamically size the rx buffer queue based on the MTU. This change removes use of constants for rx buffer queue size and instead calculates the queue length based on what he MTU is set to. Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit cb8bac12ec92ec469ecfe0967429bf9032f835c1 Author: Ron Mercer Date: Mon Feb 26 11:06:36 2007 -0800 qla3xxx: Remove API to change MTU. This network device driver shares the same hardware as the qla4xxx iSCSI driver. Changing the MTU via the device interface will cause qla4xxx to crash as there is no way to make notification. Users wishing to change the MTU must do so using an iSCSI utility such as Qlogic SanSurfer. This forces the user to unload/reload this network device driver after the MTU value has been changed in flash. Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 04f10773535248466455ae80c1eedeb205c81e9a Author: Benjamin Li Date: Mon Feb 26 11:06:35 2007 -0800 qla3xxx: Fix deadlock issue on error paths 1) Fix deadlock issue when in QL_RESET_ACTIVE state and traversing through the Link State Machine 2) Fix deadlock issue when ethtool would call ql_get_settings() 3) Fix deadlock issue when adaptor is ifup'ed but adaptor fails to initialize Signed-off-by: Benjamin Li Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit cd238faa32c4ee0791125526e518f87f48493292 Author: Benjamin Li Date: Mon Feb 26 11:06:33 2007 -0800 qla3xxx: Changed to use netdev_alloc_skb() from dev_alloc_skb Signed-off-by: Benjamin Li Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit d2d76b8db4e681944801870f81b859c5bf9964cf Author: Benjamin Li Date: Mon Feb 26 11:06:32 2007 -0800 qla3xxx: Remove unnecessary memset() in qla3xxx_send() We do not need to zero out the 64 byte MAC request I/O control block. By zeroing out the control block and setting it to proper fields is redundant work. This is because in the qla3xxx_send() function we will already set the proper fields in this structure. The unused fields are not looked at by the hardware and do not need to be zeroed out. Signed-off-by: Benjamin Li Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 546faf077e14930df2ebddad9190db42f1c42f0f Author: Benjamin Li Date: Mon Feb 26 11:06:31 2007 -0800 qla3xxx: Return proper error codes when the 4022/4032 is being probed The return code was not properly set when when allocating memory or mapping memory failed. Depending on the stack, the return code would sometimes return 0, which indicates everything was ok, when in fact there was an error. This would cause trouble when the module was removed. Now, we will pass back the proper return code when an error occurs during the PCI probe. Signed-off-by: Benjamin Li Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik commit 908b637fe793165b6aecdc875cdca67c4959a1ad Author: Ralf Baechle Date: Mon Feb 26 19:52:06 2007 +0000 Alignment in mv643xx_eth The driver contains this little piece of candy: #if defined(CONFIG_DMA_NONCOHERENT) || defined(CONFIG_NOT_COHERENT_CACHE) #define ETH_DMA_ALIGN L1_CACHE_BYTES #else #define ETH_DMA_ALIGN 8 #endif Any reason why we're not using dma_get_cache_alignment() instead? Ralf Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit 92b0c4e240d0768f875bd08d01ec26d87b9546d1 Author: Ralf Baechle Date: Mon Feb 26 01:50:34 2007 +0000 sgiseeq: Don't include unnecessary headerfiles. Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik commit e9eb70c92143c8f03e456aa60d89204b3311e554 Author: Timur Tabi Date: Wed Feb 21 14:40:12 2007 -0600 ucc_geth: use of_get_mac_address() Update ucc_geth_probe() to use function of_get_mac_address() to obtain the MAC address. Signed-off-by: Timur Tabi Signed-off-by: Jeff Garzik commit f19841f517f4db628366fa2f080dfa7ac24f0f51 Author: Stephen Hemminger Date: Fri Feb 23 14:04:54 2007 -0800 skge: comma consistency Use comma's consistently. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit c4cd29d2058808b7a68e3f2e6cbbcfe19ca7233d Author: Stephen Hemminger Date: Fri Feb 23 14:03:00 2007 -0800 skge: fix transmitter flow control It looks like the skge driver inherited another bug from the sk98lin code. If I send from 1000mbit port to a machine on 100mbit port, the switch should be doing hardware flow control, but no pause frames show up in the statistics. This is the analog of the recent sky2 fixes. The device needs to listen for multicast pause frames and then not discard them. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 9dc6f0e789ac8cdd4a7912a9c27027d937a6e784 Author: Brice Goglin Date: Wed Feb 21 18:05:17 2007 +0100 myri10ge: workaround buggy adopted firmwares Work around a bug which occurs when adopting firmware versions 1.4.4 though 1.4.11 where broadcasts are filtered as if they were multicasts. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik commit b1adf031a1325bd85eef0313e42d0189d89cece0 Author: Amit S. Kale Date: Wed Feb 21 06:54:06 2007 -0800 NetXen: Driver ifconfig fix Signed-off-by: Amit S. Kale Signed-off-by: Jeff Garzik commit 9de06610669b2f7b9c2ba6f0a849b70aa91b2edb Author: Amit S. Kale Date: Wed Feb 21 06:37:06 2007 -0800 NetXen: Driver unload fixes Signed-off-by: Amit S. Kale Signed-off-by: Jeff Garzik commit fa302484218e4043f4502de2f64a69f87101c78e Author: Linas Vepstas Date: Tue Feb 20 16:45:27 2007 -0600 spidernet: maintainership Update driver support contact info. Signed-off-by: Linas Vepstas Cc: Jens Osterkamp Cc: Kou Ishizaki Signed-off-by: Jeff Garzik commit 7376e732561f3bd4e2bc7edb26e06874f4ce737c Author: Linas Vepstas Date: Tue Feb 20 16:42:59 2007 -0600 spidernet: janitorial, typos Janitorial patch. Undo long lines, fix typo in err msg. Signed-off-by: Linas Vepstas Cc: Jens Osterkamp Cc: Kou Ishizaki Signed-off-by: Jeff Garzik commit 5c8e98fe4742734c1c6b81699a86d1f5b03841e0 Author: Linas Vepstas Date: Tue Feb 20 16:41:59 2007 -0600 spidernet: transmit race Multiple threads performing a transmit can race into the spidernet tx ring cleanup code. This puts the relevant check under a lock. Signed-off-by: Linas Vepstas Cc: Jens Osterkamp Cc: Kou Ishizaki Signed-off-by: Jeff Garzik commit d9c199ee781fa874e6feb4c56ae3d0e19f7f82a6 Author: Linas Vepstas Date: Tue Feb 20 16:41:03 2007 -0600 spidernet: fix racy double-free of skb It appears that under certain circumstances, a race will result in a double-free of an skb. This patch null's out the skb pointer upon the skb free, avoiding the inadvertent deref of bogus data. The next patch fixes the actual race. Signed-off-by: Linas Vepstas Cc: Jens Osterkamp Cc: Kou Ishizaki Signed-off-by: Jeff Garzik commit 4cb6f9e57d5d7c26d08809c1ce6310c8a7dc96d2 Author: Linas Vepstas Date: Tue Feb 20 16:40:06 2007 -0600 spidernet: separate hardware state from driver state. This patch separates the hardware descriptor state from the driver descriptor state, per (old) suggestion from Ben Herrenschmidt. This compiles and boots and seems to work. Signed-off-by: Linas Vepstas Cc: Jens Osterkamp Cc: Kou Ishizaki Signed-off-by: Jeff Garzik commit 4b23a554db1571306d9e9cfb2321c3a44770371e Author: Jens Osterkamp Date: Tue Feb 20 16:39:13 2007 -0600 spidernet: move medium variable into card struct This moves the medium variable into the spidernet card structure. It renames the GMII_ variables to BCM54XX specific ones. Signed-off-by: Jens Osterkamp Signed-off-by: Linas Vepstas Signed-off-by: Jeff Garzik commit fc8e13da9118b2d45642c2a8bdbdd0448d9f6d04 Author: Ishizaki Kou Date: Tue Feb 20 16:37:42 2007 -0600 spidernet: remove txram full logging This patches removes logging for SPIDER_NET_GTMFLLINT interrupts. Since the interrupts are not irregular, and they happen frequently when using 100Mbps network switches. Signed-off-by: Kou Ishizaki Signed-off-by: Linas Vepstas Signed-off-by: Jeff Garzik commit 3342cf0e59b6e360ae770f8082b062f4db09f3b5 Author: Kou Ishizaki Date: Tue Feb 20 16:36:14 2007 -0600 spidernet: spidernet: add support for Celleb This patch adds or changes some HW specific settings for spider_net on Celleb. Signed-off-by: Kou Ishizaki Signed-off-by: Linas Vepstas Signed-off-by: Jeff Garzik commit 3cf761ddccb9332218973e17f9b987bb5cae7b69 Author: Kou Ishizaki Date: Tue Feb 20 16:34:50 2007 -0600 spidernet: load firmware when open This patch moves calling init_firmware() from spider_net_probe() to spider_net_open() so as to use the driver by built-in. Signed-off-by: Kou Ishizaki Signed-off-by: Linas Vepstas Signed-off-by: Jeff Garzik commit abdb66b566fce5641c90100e0a113a94bab43fda Author: Kou Ishizaki Date: Tue Feb 20 16:33:41 2007 -0600 spidernet: autoneg support for Celleb Add auto negotiation support for Celleb. Signed-off-by: Kou Ishizaki Signed-off-by: Linas Vepstas Signed-off-by: Jeff Garzik commit d406eafee814c0e20af00a9a74f68f6993d8cb9c Author: Linas Vepstas Date: Tue Feb 20 16:32:00 2007 -0600 spidernet: compile break. As of 2.6.20-git4, the spider_net driver does not compile. This appears to be due to some archaic usage involving kobjects. It also fixes a nasty double-free during ifdown of the interface. Signed-off-by: Linas Vepstas Cc: Jens Osterkamp Cc: Kou Ishizaki Signed-off-by: Jeff Garzik commit eb5b5b2ff96e8f3a42a46378968a166bb56bd900 Author: Jens Osterkamp Date: Tue Feb 20 16:30:50 2007 -0600 sungem_phy: support bcm5461 phy, autoneg. This version moves the medium variable to the card specific structure and changes the GMII_* to BCM54XX_* #defines. This patch adds improved version of enable_fiber for both the 5421 and the 5461 phy. It is now possible to specify with these wether you want autonegotiation or not. This is needed for bladecenter switches where some expect autonegotiation and some dont seem to like this at all. Depending on this flag it sets phy->autoneg accordingly for the fiber mode. More importantly it implements proper read_link and poll_link functions for both phys which can handle both copper and fiber mode by determining the medium first and then branching to the required functions. For fiber they all work fine, for copper they are not tested but return the result of the genmii_* function anyway which is supposed to work. The patch moves the genmii_* functions around to avoid foreward declarations. Signed-off-by: Jens Osterkamp Signed-off-by: Arnd Bergmann Signed-off-by: Linas Vepstas Signed-off-by: Jeff Garzik commit 6fedae1f6e66ab5f169bf58064e23e015fc1307d Author: Ayaz Abdulla Date: Tue Feb 20 03:34:44 2007 -0500 forcedeth: fix checksum feature in mcp65 This patch removes checksum offload feature in mcp65 chipsets as they are not supported in hw. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit caf96469e8ab57170cc8ca9c59809132d38e529e Author: Ayaz Abdulla Date: Tue Feb 20 03:34:40 2007 -0500 forcedeth: disable msix There seems to be an issue when both MSI-X is enabled and NAPI is configured. This patch disables MSI-X until the issue is root caused. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit e0379a14fc80cb98978fa86989dab77b522a8106 Author: Ayaz Abdulla Date: Tue Feb 20 03:34:30 2007 -0500 forcedeth: fixed missing call in napi poll The napi poll routine was missing the call to the optimized rx process routine. This patch adds the missing call for the optimized path. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit 420e85241e41fc84b8f5b26c811beb03c472b679 Author: Jeff Garzik Date: Sat Feb 24 17:02:16 2007 -0500 [netdrvr] tc35815: fix obvious bugs * clear_page() use is wrong. We might have multiple pages. Use memset() instead. * Call pci_unregister_driver() in module exit. Signed-off-by: Jeff Garzik commit e047d1cfc3cd79f75e7dda9ffb28b456f6936864 Author: Ryusuke Konishi Date: Tue Feb 27 14:13:02 2007 +0900 [AGPGART] fix compile errors This fixes the following compile failures of agpgart drivers. These errors were inserted by the recent AGPGART constification patch. drivers/char/agp/uninorth-agp.c:492: error: expected '{' before 'const' drivers/char/agp/uninorth-agp.c:517: error: expected '{' before 'const' drivers/char/agp/uninorth-agp.c: In function 'agp_uninorth_probe': drivers/char/agp/uninorth-agp.c:634: error: 'u3_agp_driver' undeclared (first use in this function) drivers/char/agp/uninorth-agp.c:634: error: (Each undeclared identifier is reported only once drivers/char/agp/uninorth-agp.c:634: error: for each function it appears in.) drivers/char/agp/uninorth-agp.c:636: error: 'uninorth_agp_driver' undeclared (first use in this function) Signed-off-by: Ryusuke Konishi Signed-off-by: Dave Jones commit 01363220f5d23ef68276db8974e46a502e43d01d Author: Kyle McMartin Date: Mon Feb 26 22:21:22 2007 -0500 [PARISC] clocksource: Move update_cr16_clocksource later in boot smp_cpus_done is too early for us... before we even do a device inventory! Move update_cr16_clocksource into the tail end of processor_probe() and stub it out on CONFIG_SMP=n builds. Verified that clocksource0 is properly updated to use jiffies on an SMP build. Signed-off-by: Kyle McMartin commit fb55a0debee81280684b68713024d0c5e62e8aa5 Author: Kyle McMartin Date: Mon Feb 26 21:29:26 2007 -0500 [PARISC] parisc-agp: Fix thinko const-ifying Can't really blame davej for mucking this up... static-ify it while we're at it, which would have prevented this... Signed-off-by: Kyle McMartin commit b2a8289a611af409e5621df27227dc3f55ba358b Author: Kyle McMartin Date: Mon Feb 26 21:24:56 2007 -0500 [PARISC] time: clocksource lost update_callback So move the code to be called by smp_cpus_done, which is after we've figured out if there's more than one cpu actually present. Signed-off-by: Kyle McMartin commit 87c8174727c95ab43f5bd2164e78c665c6945e67 Author: Kyle McMartin Date: Mon Feb 26 20:15:18 2007 -0500 [PARISC] time: Convert clocksource is_continuous to flag Signed-off-by: Kyle McMartin commit 00d1f3c31a415bb3701abbd3a2c2aa44cb97116c Author: Kyle McMartin Date: Mon Feb 26 20:10:42 2007 -0500 [PARISC] clocksource_cr16: Use clocksource_change_rating() Signed-off-by: Kyle McMartin commit 0ff851e1903cd46823520a0d95d00f5347a88bd8 Author: Kyle McMartin Date: Mon Feb 26 20:08:46 2007 -0500 [PARISC] Remove __read_mostly annotation from command_line Who cares if it's in the read mostly section when it's going to be discarded anyway? Signed-off-by: Kyle McMartin commit c68644d3304d217d50b8f0a179d4aa7e5a85a5bc Author: Ralf Baechle Date: Mon Feb 26 20:46:34 2007 +0000 [MIPS] Make SMTC_IDLE_HOOK_DEBUG a proper option in Kconfig.debug. Signed-off-by: Ralf Baechle commit e016c38d1813c4ad180a4cd44942bca2a9e7a8c9 Author: Ralf Baechle Date: Sat Feb 24 21:15:11 2007 +0000 [MIPS] Fix foobar in wiring up compat_sys_epoll_pwait syscall. Signed-off-by: Ralf Baechle commit b772e6d272152808cede1c8f5387626b6329538c Author: Ralf Baechle Date: Sat Feb 24 21:04:04 2007 +0000 [MIPS] Always fixup unaligned accesses in kernel mode. Signed-off-by: Ralf Baechle commit 9b43fb6bc118226206c17be5f46297fd76b4abbb Author: Thomas Bogendoerfer Date: Fri Feb 23 19:58:48 2007 +0100 [MIPS] Fix dma_sync_*_for_device() functions Signed-off-by: Thomas Bogendoerfer Signed-off-by: Ralf Baechle commit 40139bd459d3fe90ee560f46a2cb00f16b873170 Author: Robert P. J. Day Date: Sat Feb 24 06:17:09 2007 -0500 [MIPS] Remove unreferenced _IOC_SLMASK macro in ioctl.h. Delete the definition of the apparently unreferenced macro _IOC_SLMASK. Signed-off-by: Robert P. J. Day Signed-off-by: Ralf Baechle commit f13cc01d8d3630ba42680ac56b3bedfce812e531 Author: Thomas Bogendoerfer Date: Fri Feb 23 21:39:38 2007 +0100 [MIPS] SNI: MIPS_CPU_IRQ_BASE cleanup Use MIPS_CPU_IRQ_BASE instead of own define. Signed-off-by: Thomas Bogendoerfer Signed-off-by: Ralf Baechle commit 3dac2561e2ed8d75a8bb682c25a32b271298ff49 Author: Ralf Baechle Date: Fri Feb 23 14:12:32 2007 +0000 [MIPS] RTLX: Delete multiple definition of ret shaddowing each other. Signed-off-by: Ralf Baechle commit c4c4018b04f9b7993e3800dc1f391ac8947764a5 Author: Ralf Baechle Date: Fri Feb 23 13:40:45 2007 +0000 [MIPS] RTLX, VPE: Make open actually atomic. Signed-off-by: Ralf Baechle commit cbc841356702ccf4f16e760c84006ed3ddd4b1fd Author: Thomas Koeller Date: Fri Feb 23 01:39:41 2007 +0100 [MIPS] excite: Set serial driver iotype to UPIO_RM9000 Signed-off-by: Thomas Koeller Signed-off-by: Ralf Baechle commit be91589ee8b8691209d5dd876360e67d2f79f16a Author: Thomas Koeller Date: Fri Feb 23 01:40:34 2007 +0100 [MIPS] excite: Rename CONFIG option This change is purely cosmetical. Signed-off-by: Thomas Koeller Signed-off-by: Ralf Baechle commit 4419708807308fc93ec9a135db7ffe50b182fdda Author: Atsushi Nemoto Date: Fri Feb 23 01:13:17 2007 +0900 [MIPS] Mark pcibios_fixup_device_resources() as __devinit pcibios_fixup_device_resources() is called by pcibios_fixup_bus() which is marked as __devinit. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit d2af363cfb94f1bacb3e60327bc44a97881a38c2 Author: Atsushi Nemoto Date: Fri Feb 23 00:39:48 2007 +0900 [MIPS] Kill redundant EXTRA_AFLAGS Many Makefiles in arch/mips have EXTRA_AFLAGS := $(CFLAGS) line. This is redundant while AFLAGS contains $(cflags-y) and any options only listed in CFLAGS (not in cflags-y) should be unnecessary for asm sources. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 67e2cccec6d230165345fdf6c0fe4c8761f9d1ba Author: Ralf Baechle Date: Thu Feb 22 14:19:48 2007 +0000 [MIPS] RTLX: Handle signals when sleeping. Signed-off-by: Ralf Baechle commit cc39cb15a62c7e515557edcc3aea20cc62ffb13b Author: Yoichi Yuasa Date: Thu Feb 22 22:31:00 2007 +0900 [MIPS] TB0287: Enable SM501 driver support in defconfig Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 221dee285ee38099b82437531bcae9fa9cb64cc4 Author: Linus Torvalds Date: Mon Feb 26 14:55:48 2007 -0800 Revert "[CPUFREQ] constify cpufreq_driver where possible." This reverts commit aeeddc1435c37fa3fc844f31d39c185b08de4158, which was half-baked and broken. It just resulted in compile errors, since cpufreq_register_driver() still changes the 'driver_data' by setting bits in the flags field. So claiming it is 'const' _really_ doesn't work. Signed-off-by: Linus Torvalds commit e41698894d3fe64f17fe411e3e5ef3c2537bf2e6 Author: Russell King Date: Mon Feb 26 21:07:30 2007 +0000 [ARM] CLPS7500 doesn't have IO ports Signed-off-by: Russell King commit 61fde514c2368a93e97f926a289d556c93a18fc6 Author: Russell King Date: Mon Feb 26 21:04:29 2007 +0000 [ARM] Fix more apm-emulation.h Signed-off-by: Russell King commit eafb4f184cd89e8af5676ec49ae35184172553fe Author: Alan Date: Wed Feb 21 16:41:23 2007 +0000 [PATCH] Fix oops in pata_pcmcia The change to the devres layer re-orders the execution of cleanup functions and in turn causes the pcmcia layer to oops as it zaps a pointer now needed later on. We simply leave the pointer alone. Signed-off-by: Alan Cox Acked-by: Jeff Garzik Signed-off-by: Linus Torvalds commit 8cd0ae056a8d3528e4deb7ecc046304bb2d5a680 Author: Rusty Russell Date: Fri Feb 23 14:12:02 2007 +1100 [PATCH] Make hvc_console.c compile on non-powerpc: Remove NO_IRQ Paulus preferred this over #defining NO_IRQ in the file, since that's 0 for powerpc anyway. Signed-off-by: Rusty Russell Acked-by: Paul Mackerras Signed-off-by: Linus Torvalds commit 843613b04744d5b65c2f37975c5310f366a0d070 Author: Roland Dreier Date: Mon Feb 26 12:57:08 2007 -0800 IPoIB: Correct debugging output when path record lookup fails If path_rec_completion() is passed a non-NULL path record pointer along with an unsuccessful status value, the tracing code incorrectly prints the (invalid) DLID from the path record rather than the more interesting status code. The actual logic of the function correctly uses the path record only if the status indicates a successful lookup. Signed-off-by: Roland Dreier commit 62fa4dc7f782911b7b3867b6360892dcd46d8e69 Author: Ondrej Zajicek Date: Thu Feb 22 17:00:41 2007 +0100 [PATCH] Fix build-failure in drivers/video/s3fb.c Toralf Förster pointed out that drivers/video/s3fb.c would fail to compile: > ... > CC drivers/video/s3fb.o > drivers/video/s3fb.c: In function `s3_pci_remove': > drivers/video/s3fb.c:1003: warning: unused variable `par' > drivers/video/s3fb.c: In function `s3fb_setup': > drivers/video/s3fb.c:1141: error: `mtrr' undeclared (first use in this function) > drivers/video/s3fb.c:1141: error: (Each undeclared identifier is reported only once > drivers/video/s3fb.c:1141: error: for each function it appears in.) > make[2]: *** [drivers/video/s3fb.o] Error 1 > make[1]: *** [drivers/video] Error 2 > make: *** [drivers] Error 2 Here is fix, it also fixes broken boot options. Signed-off-by: Linus Torvalds commit 25165120f2432ffa36518d53bd3ec66f6e434f63 Author: Ingo Molnar Date: Thu Feb 22 09:38:22 2007 +0100 [PATCH] x86: add -freg-struct-return to CFLAGS Jeremy Fitzhardinge suggested the use of -freg-struct-return, which does structure-returns (such as when using pte_t) in registers instead of on the stack. that is indeed so, and this option reduced the kernel size a bit: text data bss dec hex filename 4799506 543456 3760128 9103090 8ae6f2 vmlinux.before 4798117 543456 3760128 9101701 8ae185 vmlinux.after the resulting kernel booted fine on my testbox. Lets go for it. Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds commit 38bed5429987c939d86cd3da915d6706fd1e6e53 Author: Ingo Molnar Date: Thu Feb 22 09:09:34 2007 +0100 [PATCH] add MAINTAINERS entry for high-res timers, clockevents, dynticks Thomas is the maintainer and primary author of the high-res timers, clockevents and dynticks code. Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds commit 6572d6d7d0f965dda19d02af804ed3ae4b3bf1fc Author: Mikael Pettersson Date: Sun Feb 25 12:49:01 2007 +0100 [PATCH] CREDITS: update my email address Update my email address in CREDITS to one that works. Signed-off-by: Mikael Pettersson Signed-off-by: Linus Torvalds commit f15e66b9328c8e2fef4f59f121221c902d7a9920 Author: Richard Knutsson Date: Sat Feb 24 11:46:06 2007 +0100 [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver Replace pci_module_init with pci_register_driver Signed-off-by: Richard Knutson Acked-by: Ben Dooks Signed-off-by: Linus Torvalds commit aef8811abbc9249a2bd59bd2331bbe523df05d17 Author: Bernhard Walle Date: Mon Feb 26 12:10:32 2007 -0800 [XFRM]: Fix oops in xfrm4_dst_destroy() With 2.6.21-rc1, I get an oops when running 'ifdown eth0' and an IPsec connection is active. If I shut down the connection before running 'ifdown eth0', then there's no problem. The critical operation of this script is to kill dhcpd. The problem is probably caused by commit with git identifier 4337226228e1cfc1d70ee975789c6bd070fb597c (Linus tree) "[IPSEC]: IPv4 over IPv6 IPsec tunnel". This patch fixes that oops. I don't know the network code of the Linux kernel in deep, so if that fix is wrong, please change it. But please fix the oops. :) Signed-off-by: Bernhard Walle Acked-by: Patrick McHardy Signed-off-by: David S. Miller commit 4f4acf3a478d5cada688f336f2229ab580f56113 Author: Stephen Smalley Date: Mon Feb 26 12:02:34 2007 -0500 Always initialize scontext and scontext_len Always initialize *scontext and *scontext_len in security_sid_to_context. (via http://lkml.org/lkml/2007/2/23/135) Signed-off-by: Stephen Smalley Signed-off-by: James Morris commit fadcdb451632d32d7c0d4c71df9ac2d3b7ae2348 Author: Eric Paris Date: Thu Feb 22 18:11:31 2007 -0500 Reassign printk levels in selinux kernel code Below is a patch which demotes many printk lines to KERN_DEBUG from KERN_INFO. It should help stop the spamming of logs with messages in which users are not interested nor is there any action that users should take. It also promotes some KERN_INFO to KERN_ERR such as when there are improper attempts to register/unregister security modules. A similar patch was discussed a while back on list: http://marc.theaimsgroup.com/?t=116656343500003&r=1&w=2 This patch addresses almost all of the issues raised. I believe the only advice not taken was in the demoting of messages related to undefined permissions and classes. Signed-off-by: Eric Paris Acked-by: Stephen Smalley security/selinux/hooks.c | 20 ++++++++++---------- security/selinux/ss/avtab.c | 2 +- security/selinux/ss/policydb.c | 6 +++--- security/selinux/ss/sidtab.c | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) Signed-off-by: James Morris commit e4396b544fa5c85e3c263e0bc92b0743a24ba818 Author: Arnaldo Carvalho de Melo Date: Sat Feb 24 18:12:42 2007 -0800 [XFRM_TUNNEL]: Reload header pointer after pskb_may_pull/pskb_expand_head Please consider applying, this was found on your latest net-2.6 tree while playing around with that ip_hdr() + turn skb->nh/h/mac pointers as offsets on 64 bits idea :-) Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller commit 4c3ae4d7e727eac6f6eb23587cef0413734d4ae1 Author: Joe Perches Date: Thu Feb 22 01:26:32 2007 -0800 [IPV4]: Use random32() in net/ipv4/multipath Removed local random number generator function Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit 269def7c505b4d229f9ad49bf88543d1e605533e Author: Stephen Hemminger Date: Thu Feb 22 01:10:18 2007 -0800 [BRIDGE]: eliminate workqueue for carrier check Having a work queue for checking carrier leads to lots of race issues. Simpler to just get the cost when data structure is created and update on change. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit ac062e84d0c177c43549e7fb608152fec218e7fc Author: Stephen Hemminger Date: Thu Feb 22 01:07:53 2007 -0800 [BRIDGE]: get rid of miscdevice include The bridge hasn't used miscdevice for a long long time. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 7401055b58e557362dfcaa65a581db1d1e972439 Author: David S. Miller Date: Wed Feb 21 23:26:56 2007 -0800 [IPV6]: Fix __ipv6_addr_type() export in correct place. It needs to be in net/ipv6/addrconf_core.c Signed-off-by: David S. Miller commit 8030f54499925d073a88c09f30d5d844fb1b3190 Author: Herbert Xu Date: Thu Feb 22 01:53:47 2007 +0900 [IPV4] devinet: Register inetdev earlier. This patch allocates inetdev at registration for all devices in line with IPv6. This allows sysctl configuration on the devices to occur before they're brought up or addresses are added. Signed-off-by: Herbert Xu Signed-off-by: YOSHIFUJI Hideaki commit 45ba9dd2007da23da5ac21179451c3c9fee30a96 Author: YOSHIFUJI Hideaki Date: Thu Feb 15 02:07:27 2007 +0900 [IPV6] ADDRCONF: Register inet6_dev earlier. Allocate inet6_dev earlier to allow users to set up per-interface variables. Signed-off-by: YOSHIFUJI Hideaki commit 46d480468fd9d165513d96f5e545538425d6472d Author: YOSHIFUJI Hideaki Date: Wed Feb 7 20:36:26 2007 +0900 [IPV6] ADDRCONF: Manage prefix route corresponding to address manually added. It is more natural to manage prefix routes corresponding to address which is being added manually. With help from Masafumi Aramoto . Signed-off-by: YOSHIFUJI Hideaki commit 268920584b57d534a40503a8a3a47eff9e57fbf8 Author: Yasuyuki Kozakai Date: Sun Sep 10 03:59:17 2006 +0900 [IPV6] IP6TUNNEL: Use update_pmtu() of dst on xmit. Signed-off-by: Yasuyuki Kozakai Signed-off-by: YOSHIFUJI Hideaki commit 8c14b7ce22a7ddd9fe1b1c852c4015633ec3efec Author: YOSHIFUJI Hideaki Date: Thu Feb 22 02:25:42 2007 +0900 [IPV6] ADDRCONF: Statically link __ipv6_addr_type() for sunrpc subsystem. Link __ipv6_addr_type() statically for sunrpc code even if IPv6 is built as module. Signed-off-by: YOSHIFUJI Hidaki commit f4b9479dc5a1b0e1ca8666053f0d932baddc619d Author: Baruch Even Date: Wed Feb 21 19:32:37 2007 -0800 [IPV4]: Correct links in net/ipv4/Kconfig Correct dead/indirect links in net/ipv4/Kconfig Signed-off-by: Baruch Even Signed-off-by: David S. Miller commit 1845a579e0c3084a822fbe610f7cfd1b0e0396ac Author: Vlad Yasevich Date: Wed Feb 21 02:06:19 2007 -0800 [SCTP]: Strike the transport before updating rto. Once we reach a point where we exceed the max.path.retrans, strike the transport before updating the rto. This will force transport switch at the right time, instead of 1 retransmit too late. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit 8c4a2d41a7eb5a8f214f537acca533dcd6430782 Author: Vlad Yasevich Date: Wed Feb 21 02:06:04 2007 -0800 [SCTP]: Fix connection hang/slowdown with PR-SCTP The problem that this patch corrects happens when all of the following conditions are satisfisfied: 1. PR-SCTP is used and the timeout on the chunks is set below RTO.Max. 2. One of the paths on a multihomed associations is brought down. In this scenario, data will expire within the rto of the initial transmission and will never be retransmitted. However this data still fills the send buffer and is counted against the association as outstanding data. This causes any new data not to be sent and retransmission to not happen. The fix is to discount the abandoned data from the outstanding count and peers rwnd estimation. This allows new data to be sent and a retransmission timer restarted. Even though this new data will most likely expire within the rto, the timer still counts as a strike against the transport and forces the FORWARD-TSN chunk to be retransmitted as well. Signed-off-by: Vlad Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller commit 2c4f6219aca5939b57596278ea8b014275d4917b Author: David S. Miller Date: Tue Feb 20 23:51:47 2007 -0800 [TCP]: Fix MD5 signature pool locking. The locking calls assumed that these code paths were only invoked in software interrupt context, but that isn't true. Therefore we need to use spin_{lock,unlock}_bh() throughout. Signed-off-by: David S. Miller commit 7f62ad5d37f4e43c841e92c6f159c93dcf2d2cdd Author: Michael Chan Date: Tue Feb 20 23:25:40 2007 -0800 [TG3]: TSO workaround fixes. 1. Add race condition check after netif_stop_queue(). tg3_tx() runs without netif_tx_lock and can race with tg3_start_xmit_dma_bug() -> tg3_tso_bug(). 2. Firmware TSO in 5703/5704/5705 also have the same TSO limitation, i.e. they cannot handle TSO headers bigger than 80 bytes. Rename TG3_FL2_HW_TSO_1_BUG to TG3_FL2_TSO_BUG and set this flag on these chips as well. 3. Update version to 3.74. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit ad930650c0e694233971c56e8de8e78b896e2613 Author: Jason Lunz Date: Tue Feb 20 23:19:54 2007 -0800 [AF_PACKET]: Remove unnecessary casts. packet_lookup_frame() always returns tpacket_hdr*, so there's no reason to return char* and require casting by callers. Also, remove a cast of void*. Signed-off-by: Jason Lunz Signed-off-by: David S. Miller commit ca17c23345308a8692a65a0cca363d9108a665ca Author: Joe Jin Date: Tue Feb 20 01:30:15 2007 -0800 [IPV6]: Adjust inet6_exit() cleanup sequence against inet6_init() This patch for adjust inet6_exit() to inverse sequence to inet6_init(). At ipv6_init, it first create proc_root/net/dev_snmp6 entry by call ipv6_misc_proc_init(), then call addrconf_init() to create the corresponding device entry at this directory, but at inet6_exit, ipv6_misc_proc_exit() called first, then call addrconf_init(). Signed-off-by: Joe Jin Signed-off-by: David S. Miller commit d3f23dfe8bbb6bf352a208755e4ff2806315067b Author: Noriaki TAKAMIYA Date: Tue Feb 20 01:08:41 2007 -0800 [IPSEC]: More fix is needed for __xfrm6_bundle_create(). Fixed to set fl_tunnel.fl6_src correctly in xfrm6_bundle_create(). Signed-off-by: Noriaki TAKAMIYA Acked-by: Masahide NAKAMURA Signed-off-by: David S. Miller commit a39a21982c53846acb3bee1a23764a387160a4c8 Author: Adrian Bunk Date: Tue Feb 20 01:06:40 2007 -0800 [IRDA] net/irda/: proper prototypes This patch adds proper prototypes for some functions in include/net/irda/irda.h Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit 2312119afbce0108a72a1e09015a37308f7c7212 Author: Marcel Holtmann Date: Sat Feb 17 23:59:02 2007 +0100 [Bluetooth] Make use of MODULE_FIRMWARE Some Bluetooth drivers need one or more binary firmware images. Export these image names via the MODULE_FIRMWARE tag. Signed-off-by: Marcel Holtmann commit c1a3313698895d8ad4760f98642007bf236af2e8 Author: Marcel Holtmann Date: Sat Feb 17 23:58:57 2007 +0100 [Bluetooth] Make use of device_move() for RFCOMM TTY devices In the case of bound RFCOMM TTY devices the parent is not available before its usage. So when opening a RFCOMM TTY device, move it to the corresponding ACL device as a child. When closing the device, move it back to the virtual device tree. Signed-off-by: Marcel Holtmann commit f5ffd4620aba9e55656483ae1ef5c79ba81f5403 Author: Marcel Holtmann Date: Sat Feb 17 23:58:53 2007 +0100 [Bluetooth] Add open and close callbacks for HID device The open and close callbacks for the HID device are not optional, but for the Bluetooth HID report mode support it is enough to add empty dummy callbacks. Signed-off-by: Marcel Holtmann commit e1aaadd4d8162a2c33e41dd5a72234ea4d3b014f Author: Marcel Holtmann Date: Sat Feb 17 23:58:49 2007 +0100 [Bluetooth] Add support for using the HID subsystem This patch extends the current Bluetooth HID support to use the new HID subsystem and adds full report mode support. Signed-off-by: Marcel Holtmann commit a83d6c0de8811d7bcc4eb67ed199d1120ca6cad8 Author: Marcel Holtmann Date: Sat Feb 17 23:58:44 2007 +0100 [Bluetooth] Fix wrong put_user() from HIDP compat ioctl patch The compat ioctl patch copied the parser version field into the report descriptor size field by mistake. Signed-off-by: Marcel Holtmann commit 19ba1b19962aeb87a029b37234f54b02e8f7b507 Author: David S. Miller Date: Mon Feb 26 09:46:54 2007 -0800 [SPARC] uctrl: Check request_irq() return value. Based upon a patch by Monakhov Dmitriy. Signed-off-by: David S. Miller commit c5b002c1bf31d1145271b28ed63db5e4f893dfd3 Author: David S. Miller Date: Mon Feb 26 10:45:43 2007 -0800 [SPARC64]: Update defconfig. Signed-off-by: David S. Miller commit 3b36fb8471f8639d565b69c9a456a3ef9413df59 Author: David S. Miller Date: Mon Feb 26 10:11:35 2007 -0800 [SPARC64] bbc_i2c: Fix kenvctrld eating %100 cpu. Based almost entirely upon a patch by Joerg Friedrich Signed-off-by: David S. Miller commit abfd336cd79ea154dc71f09272f578a731b81d8c Author: David S. Miller Date: Mon Feb 26 09:40:34 2007 -0800 [SPARC64]: Fix arch_teardown_msi_irq(). Need to use get_irq_msi() not get_irq_data(). Signed-off-by: David S. Miller commit 5746c99dfa09231fa24cac1986de4661ea79a80f Author: David S. Miller Date: Tue Feb 20 01:26:48 2007 -0800 [SPARC64]: virt_irq_free only needed when CONFIG_PCI_MSI Noticed by Meelis Roos. Signed-off-by: David S. Miller commit cacfd56756c087873f22dc9e2ace5f634775836a Author: Adrian Bunk Date: Tue Feb 20 01:03:48 2007 -0800 [SPARC]: Remove the broken SUN_AURORA driver. The SUN_AURORA driver: - has been marked as BROKEN for more than two years and - is still marked as BROKEN. Drivers that had been marked as BROKEN for such a long time seem to be unlikely to be revived in the forseeable future. But if anyone wants to ever revive this driver, the code is still present in the older kernel releases. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit 3494c16676a21e7e53e21b08a0a469a38df6dcfb Author: David S. Miller Date: Sat Feb 24 22:11:42 2007 -0800 [TICK] tick-common: Fix one-shot handling in tick_handle_periodic(). When clockevents_program_event() is given an expire time in the past, it does not update dev->next_event, so this looping code would loop forever once the first in-the-past expiration time was used. Keep advancing "next" locally to fix this bug. Acked-by: Thomas Gleixner Signed-off-by: David S. Miller commit 9e203bcc1051cac2a8b15c3ee9db4c0d05794abe Author: David S. Miller Date: Sat Feb 24 22:10:13 2007 -0800 [TIME] tick-sched: Add missing asm/irq_regs.h include. Acked-by: Thomas Gleixner Signed-off-by: David S. Miller commit 2a786b452eba900324c29a8fcf5c96d5b1c01000 Author: Eric W. Biederman Date: Fri Feb 23 04:46:20 2007 -0700 [PATCH] genirq: Mask irqs when migrating them. move_native_irqs tries to do the right thing when migrating irqs by disabling them. However disabling them is a software logical thing, not a hardware thing. This has always been a little flaky and after Ingo's latest round of changes it is guaranteed to not mask the apic. So this patch fixes move_native_irq to directly call the mask and unmask chip methods to guarantee that we mask the irq when we are migrating it. We must do this as it is required by all code that call into the path. Since we don't know the masked status when IRQ_DISABLED is set so we will not be able to restore it. The patch makes the code just give up and trying again the next time this routing is called. Signed-off-by: Eric W. Biederman Acked-by: Suresh Siddha Signed-off-by: Linus Torvalds commit 610142927b5bc149da92b03c7ab08b8b5f205b74 Author: Eric W. Biederman Date: Fri Feb 23 04:40:58 2007 -0700 [PATCH] x86_64 irq: Safely cleanup an irq after moving it. The problem: After moving an interrupt when is it safe to teardown the data structures for receiving the interrupt at the old location? With a normal pci device it is possible to issue a read to a device to flush all posted writes. This does not work for the oldest ioapics because they are on a 3-wire apic bus which is a completely different data path. For some more modern ioapics when everything is using front side bus delivery you can flush interrupts by simply issuing a read to the ioapic. For other modern ioapics emperical testing has shown that this does not work. So it appears the only reliable way to know the last of the irqs from an ioapic have been received from before the ioapic was reprogrammed is to received the first irq from the ioapic from after it was reprogrammed. Once we know the last irq message has been received from an ioapic into a local apic we then need to know that irq message has been processed through the local apics. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit bc5e81a1519abc69472bb67deace7bb1ac09d65a Author: Eric W. Biederman Date: Fri Feb 23 04:38:26 2007 -0700 [PATCH] x86_64 irq: Add constants for the reserved IRQ vectors. For the ISA irqs we reserve 16 vectors. This patch adds constants for those vectors and modifies the code to use them. Making the code a little clearer and making it possible to move these vectors in the future. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit b93179bdfcbb0154e63e57194e2648bd0ff648a7 Author: Eric W. Biederman Date: Fri Feb 23 04:36:25 2007 -0700 [PATCH] x86_64 irq: Remove unnecessary irq 0 setup. The code in io_apic.c and in i8259.c currently hardcode the same vector for the timer interrupt so there is no reason for a special assignment for the timer as the setup for the i8259 already takes care of this. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit dfbffdd81c5d029ca8f8a754ce0eb8199c418eba Author: Eric W. Biederman Date: Fri Feb 23 04:35:05 2007 -0700 [PATCH] x86_64 irq: Simplify assign_irq_vector's arguments. Currently assign_irq_vector works mostly by side effect and returns the results of it's changes to the caller. Which makes for a lot of arguments to pass/return and confusion as to what to do if you need the status but you aren't calling assign_irq_vector. This patch stops returning values from assign_irq_vector that can be retrieved just as easily by examining irq_cfg, and modifies the callers to retrive those values from irq_cfg when they need them. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit 13a79503ab4a0f602c6806b2572b3338994b55d2 Author: Eric W. Biederman Date: Fri Feb 23 04:32:47 2007 -0700 [PATCH] x86_64 irq: Begin consolidating per_irq data in structures. Currently the io_apic.c has several parallel arrays for different kinds of data that can be know about an irq. The parallel arrays make the code harder to maintain and make it difficult to remove the static limits on the number of the number of irqs. This patch pushes irq_data and irq_vector into a irq_cfg array and updates the code to use it. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit e273d140d9d0c2c7941d97a6ace455113bb4ec63 Author: Eric W. Biederman Date: Fri Feb 23 04:26:53 2007 -0700 [PATCH] x86_64 irq: Use NR_IRQS not NR_IRQ_VECTORS NR_IRQ_VECTORS is currently a compatiblity define set to NR_IRQs. This patch updates the users of NR_IRQ_VECTORS to use NR_IRQs instead so that NR_IRQ_VECTORS can be removed. There is still shared code with arch/i386 that uses NR_IRQ_VECTORS so we can't remove the #define just yet :( Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit f45bcd7022a46de48cc414e3ea3a5b9b4de318ec Author: Eric W. Biederman Date: Fri Feb 23 04:23:52 2007 -0700 [PATCH] x86_64 irq: In __DO_ACTION perform the FINAL action for every entry. If we have an irq that comes from multiple io_apic pins the FINAL action (which is io_apic_sync or nothing) needs to be called for every entry or else if the two pins come from different io_apics we may not wait until after the action happens on the io_apic. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit 5ff5115efafb08b49cbc8abdea9726884fba0b5a Author: Eric W. Biederman Date: Fri Feb 23 04:20:59 2007 -0700 [PATCH] x86_64 irq: Simplfiy the set_affinity logic. For some reason the code has been picking TARGET_CPUS when asked to set the affinity to an empty set of cpus. That is just silly it's extra work. Instead if there are no cpus to set the affinity to we should just give up immediately. That is simpler and a little more intuitive. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit a8c8a36736c00b261fd5dd01400c41726f2f19eb Author: Eric W. Biederman Date: Fri Feb 23 04:19:08 2007 -0700 [PATCH] x86_64 irq: Refactor setup_IO_APIC_irq Currently we have two routines that do practically the same thing setup_IO_APIC_irq and io_apic_set_pci_routing. This patch makes setup_IO_APIC_irq the common factor of these two previous routines. For setup_IO_APIC_irq all that was needed was to pass the trigger and polarity to make the code a proper subset of io_apic_set_pci_routing. Hopefully consolidating these two routines will improve maintenance there were several differences that simply appear to be one routine or the other getting it wrong. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit a27bc06dd8ee6ad6394e8a76345660b93621b51b Author: Eric W. Biederman Date: Fri Feb 23 04:16:31 2007 -0700 [PATCH] x86_64 irq: Remove the unused vector parameter from ioapic_register_intr Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit e560c8bd866bfa284b2c5978efcaf1bd16ee9fc3 Author: Eric W. Biederman Date: Fri Feb 23 04:15:15 2007 -0700 [PATCH] x86_64 irq: Kill declaration of removed array, interrupt It's dead Jim. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit 9f0a5ba5508143731dc63235de19659be20d26dc Author: Eric W. Biederman Date: Fri Feb 23 04:13:55 2007 -0700 [PATCH] irq: Remove set_native_irq_info This patch replaces all instances of "set_native_irq_info(irq, mask)" with "irq_desc[irq].affinity = mask". The latter form is clearer uses fewer abstractions, and makes access to this field uniform accross different architectures. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit fc5d56f987170cda1d344095c4df65a60a3e9820 Author: Eric W. Biederman Date: Fri Feb 23 04:11:56 2007 -0700 [PATCH] x86_64 irq: Simplfy __assign_irq_vector By precomputing old_mask I remove an extra if statement, remove an indentation level and make the code slightly easier to read. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit ea3d5226f52ef30f52aa0a04f47f5919c7facacf Author: Linus Torvalds Date: Mon Feb 26 09:21:46 2007 -0800 Revert "[PATCH] i386: add idle notifier" This reverts commit 2ff2d3d74705d34ab71b21f54634fcf50d57bdd5. Uwe Bugla reports that he cannot mount a floppy drive any more, and Jiri Slaby bisected it down to this commit. Benjamin LaHaise also points out that this is a big hot-path, and that interrupt delivery while idle is very common and should not go through all these expensive gyrations. Fix up conflicts in arch/i386/kernel/apic.c and arch/i386/kernel/irq.c due to other unrelated irq changes. Cc: Stephane Eranian Cc: Andi Kleen Cc: Andrew Morton Cc: Uwe Bugla Cc: Jiri Slaby Signed-off-by: Linus Torvalds commit cb48cab7f363014e0a5dc21f7b4892c15d626d41 Author: Jeff Garzik Date: Mon Feb 26 06:04:24 2007 -0500 [libata] bump versions Bump versions based on changes submitted during 2.6.21 merge window. Signed-off-by: Jeff Garzik commit a84471fe269c38ea3725345c43ad64e5f489bea2 Author: Jeff Garzik Date: Mon Feb 26 05:51:33 2007 -0500 [libata] Trim trailing whitespace. No code changes. Signed-off-by: Jeff Garzik commit fb621e2fde735abab854586d52c96c5624bcb5b8 Author: Jeff Garzik Date: Sun Feb 25 04:19:45 2007 -0500 [libata] sata_mv: Fix 50xx irq mask IRQ mask bits assumed a 60xx or newer generation chip, which is very wrong for the 50xx series. Luckily both generations shared the per-port interrupt mask bits, leaving only the "misc chip features" bits to be completely mismatched. Fix 50xx by ensuring we only program bits that exist. Signed-off-by: Jeff Garzik commit e728eabea110da90e69c05855e3a11174edb77ef Author: Jeff Garzik Date: Sun Feb 25 02:53:41 2007 -0500 [libata] sata_mv: don't touch reserved bits in EDMA config register The code in mv_edma_cfg() reflected its 60xx origins, by doing things [slightly] incorrectly on the older 50xx and newer 6042/7042 chips. Clean up the EDMA configuration setup such that, each chip family carefully initializes its own EDMA setup. Signed-off-by: Jeff Garzik commit 616ece2e7e5363574d172d64b19ffe9535606a1b Author: Alan Date: Tue Feb 20 18:15:03 2007 +0000 libata: Use new id_to_dma_mode function to tidy reporting in more drivers (minimally tested) Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit cc70991d64e767729c37278cd4f80f709556079a Author: Alan Date: Wed Feb 21 16:41:23 2007 +0000 pata_pcmcia: Fix oops in 2.6.21-rc1 Manuel Lass reports: > This bug is also present in 2.6.21-rc1, and this patch > indeed fixes it. The change to the devres layer re-orders the execution of cleanup functions and in turn causes the pcmcia layer to oops as it zaps a pointer now needed later on. We simply leave the pointer alone. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 10305f0f8e642590c69674d08bd22accef610aed Author: Alan Date: Tue Feb 20 18:01:59 2007 +0000 Add id_to_dma_mode function for printing DMA modes Also export dev_disable as this is needed by drivers doing slave decode filtering, which will follow shortly Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 098cdff3d40286f87062c17cd07e98ca7ad94184 Author: Mikael Pettersson Date: Sun Feb 25 17:51:15 2007 +0100 sata_promise: simplify port setup Each place in pdc_ata_init_one() that initialises a SATA port first calls pdc_ata_setup_port(), and then manually assigns the port's ->scr_addr. Simplify the code by extending pdc_ata_setup_port() to also handle scr_addr initialisation; for PATA ports we pass NULL as scr_addr. The initialisation of the PATA-only 20619 redundantly set up scr_addr for the ports. Remove this. Tested on 20619, 20575, and 20775 chips. Signed-off-by: Mikael Pettersson Signed-off-by: Jeff Garzik commit 540477b4d93f5b49f9e9ce3ae2437071103a0f8e Author: Mikael Pettersson Date: Sun Feb 25 12:44:39 2007 +0100 sata_promise: fix 20619 new EH merge error When I merged my 20619 new EH conversion with #libata-upstream I had to manually resolve a conflict, and inadvertently lost pdc_pata_ops' ->post_internal_cmd binding. Corrected by this patch. Signed-off-by: Mikael Pettersson Signed-off-by: Jeff Garzik commit 8748415d0df9e16c419a749b5de3a0ccd90bca3f Author: Uwe Kleine-König Date: Fri Feb 23 20:20:47 2007 +0100 [ARM] 4234/1: Introduce get_irqnr_preamble and arch_ret_to_user for ns9xxx. This is a follow up for f80dff9da07d81da16e3b842118d47b9febf9c01 which didn't include adaption for the new ns9xxx machine support. Signed-off-by: Uwe Kleine-König Signed-off-by: Russell King commit dff5e44c36ed7ef6ce2a5280e5204c452668960f Author: Arnaud Patard Date: Fri Feb 23 01:00:09 2007 +0100 [ARM] 4233/1: nand/s3c2410.c: warning fix Noticed while building a s3c2410 kernel : drivers/mtd/nand/s3c2410.c: In function 's3c2440_nand_calculate_ecc': drivers/mtd/nand/s3c2410.c:476: warning: format '%06x' expects type 'unsigned int', but argument 3 has type 'long unsigned int' This patch fixes it. Signed-off-by: Arnaud Patard Signed-off-by: Russell King commit ec3622d963522432a873cc1b6f66fed6fceddc18 Author: Nicolas Pitre Date: Wed Feb 21 15:32:28 2007 +0100 [ARM] 4226/1: initial .data and .bss mappings of XIP kernel should be TEXT_OFFSET aware Since TEXT_OFFSET is meant to determine RAM location for kernel use, itshould affect .data and .bss initial mapping in the XIP case. Otherwise a XIP kernel would crash if TEXT_OFFSET gets somewhat larger than 2MB. Corresponding code is also moved up a bit to be near the similar .text mapping code making the whole a bit more straight forward to understand. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King commit e98ff7f6d8164c5636538998fb7d1e08b1fbbddd Author: Nicolas Pitre Date: Thu Feb 22 16:18:09 2007 +0100 [ARM] 4224/2: allow XIP kernel to boot again Since commit 2552fc27ff79b10b9678d92bcaef21df38bb7bb6 XIP kernels failed to boot because (_end - PAGE_OFFSET - 1) is much smaller than the size of the kernel text and data in the XIP case, causing the kernel not to be entirely mapped. Even in the non-XIP case, the use of (_end - PAGE_OFFSET - 1) is wrong because it produces a too large value if TEXT_OFFSET is larger than 1MB. Finally the original code was performing one loop too many. Let's break the loop when the section pointer has passed the last byte of the kernel instead. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King commit fc16c25ff431d0c5b12693108f0ec3809ef1e804 Author: Jeff Garzik Date: Sat Feb 24 21:05:01 2007 -0500 [libata] ACPI: remove needless ->qc_issue hook existence test All drivers must implement this hook, otherwise ATA commands would go nowhere (and a lot of other oopsen would appear as well). Signed-off-by: Jeff Garzik commit ea34e45a4670c4fa0da3442fc74789fd66c1201b Author: Dan Williams Date: Fri Feb 23 16:36:43 2007 -0700 sata_vsc: refactor vsc_sata_interrupt and hook up error handling Separate sata_vsc interrupt handling into a normal (per-port) path and an error path with the addition of vsc_port_intr and vsc_error_intr respectively. The error path handles interrupt based hotplug events which requires the definition of vsc_freeze and vsc_thaw. Note: vsc_port_intr has a workaround for unexpected interrupts that occur during polled commands. This fixes a regression between 2.6.19 and 2.6.20. Changes in take2: * removed definition of invalid fis bit * let standard ata-error-handling handle the serror register * clear all unhandled interrupts * revert changes to vsc_intr_mask_update (vsc_thaw enables all interrupts) * use unlikely() for the pci-abort and not-our-interrupt cases in vsc_sata_interrupt Changes in take3: * Unify the "add" + "hook-up" patches into this single patch [htejun@gmail.com: clean up comments and suggestions] Cc: Jeremy Higdon Signed-off-by: Dan Williams Signed-off-by: Jeff Garzik commit e2f8fb72144a9f38d44ccf3f939e939392eda659 Author: Tejun Heo Date: Sat Feb 24 22:30:36 2007 +0900 sata_sil: ignore and clear spurious IRQs while executing commands by polling sata_sil used to trigger HSM error if IRQ occurs during polling command. This didn't matter because polling wasn't used in sata_sil. However, as of 2.6.20, all IDENTIFYs are performed by polling and device detection sometimes fails due to spurious IRQ. This patch makes sata_sil ignore and clear spurious IRQ while executing commands by polling. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 6a59dcf8678cbc4106a8a6e158d7408a87691358 Author: Tejun Heo Date: Sat Feb 24 15:12:31 2007 +0900 sata_mv: fix pci_enable_msi() error handling intx should be turned on when pci_enable_msi() fails not when it succeeds. Fix it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit f1da66e7592c978d9122cb05d8eada1bd900de1a Author: Tejun Heo Date: Mon Feb 5 17:01:28 2007 +0900 pata_amd: fix an obvious bug in cable detection 80c test mask is at bits 18 and 19 of EIDE Controller Configuration not 22 and 23. Fix it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 19c262391c4741b012a5031fc438fb694e77c385 Author: Alan Stern Date: Tue Feb 20 15:03:32 2007 -0500 USB: export autosuspend delay in sysfs This patch (as861) adds sysfs attributes to expose the autosuspend delay value for each USB device. If the user changes the delay from 0 (no autosuspend) to a positive value, an autosuspend is attempted. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit dfa87c824a9a5430008acd1ed2e8111ed164fcbe Author: Alan Stern Date: Tue Feb 20 15:02:44 2007 -0500 sysfs: allow attributes to be added to groups This patch (as860) adds two new sysfs routines: sysfs_add_file_to_group() and sysfs_remove_file_from_group(). A later patch adds code that uses the new routines. Signed-off-by: Alan Stern Cc: Maneesh Soni Signed-off-by: Greg Kroah-Hartman commit b5e795f8df42936590ba9c606edc715fe3593284 Author: Alan Stern Date: Tue Feb 20 15:00:53 2007 -0500 USB: make autosuspend delay a module parameter This patch (as859) makes the default USB autosuspend delay a module parameter of usbcore. By setting the delay value at boot time, users will be able to prevent the system from autosuspending devices which for some reason can't handle it. The patch also stores the autosuspend delay as a per-device value. A later patch will allow the user to change the value, tailoring the delay for each individual device. A delay value of 0 will prevent autosuspend. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit aa084f3efe5fb7e9c0d5b54ce704f0de69bbf27c Author: Alan Stern Date: Tue Feb 20 14:59:59 2007 -0500 USB: minor cleanups for sysfs.c This patch (as858) makes some minor cleanups to sysfs.c in usbcore. Unnecessary tests are removed and a few temp variables are added. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 7ceec1f1d26f966c0816b86a1aab1e0b3b208757 Author: Oliver Neukum Date: Fri Jan 26 14:26:21 2007 +0100 USB: add a blacklist for devices that can't handle some things we throw at them. This adds a blacklist to the USB core to handle some autosuspend and string issues that devices have. Originally written by Oliver, but hacked up a lot by Greg. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit bb417020ba8c559eb52f57379ba17f669f8f72cd Author: Greg Kroah-Hartman Date: Fri Jan 26 14:26:21 2007 +0100 USB: refactor usb device matching and create usb_device_match This is needed for the quirk match code. Cc: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit 80d4e8e9862fa71ce896195c60b691a623c38d49 Author: Ping Cheng Date: Fri Feb 23 12:22:48 2007 -0800 USB: Wacom driver updates Updated Intuos and Graphire irq calls Report pad device ID Signed-off-by: Ping Cheng Signed-off-by: Greg Kroah-Hartman commit 50f97a1f829d26e01ae8bb33cd1384cf0a5e046f Author: Sarah Bailey Date: Thu Feb 22 22:36:21 2007 -0800 gadgetfs: Fixed bug in ep_aio_read_retry. I don't think the current code works with multiple iovecs. The original would just copy the first part of priv->buf over and over into multiple iovecs. Signed-off-by: Sarah Bailey Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 4ef2e23f03c597e2073b649e7287b840f8fb9274 Author: Michael Opdenacker Date: Wed Feb 21 22:51:25 2007 +0100 USB: Use USB defines in usbmouse.c and usbkbd.c The below patch proposes to use USB defines (defined in linux/hid.h) instead of just plain numbers in the USB_INTERFACE_INFO statements. Signed-off-by: Michael Opdenacker Signed-off-by: Greg Kroah-Hartman commit 672027a35795ec95f516fdc702ba8900d55a9eef Author: Inaky Perez-Gonzalez Date: Thu Feb 22 16:37:53 2007 -0800 USB: add rationale on why usb descriptor structures have to be packed Add argumentation in defense of using __attribute__((packed)) in USB descriptors authored by Dave Brownell. Necessary as in some cases it seems superfluous. Signed-off-by: Inaky Perez-Gonzalez Signed-off-by: Greg Kroah-Hartman commit 822c7ef48b06332168530284781640856621d9f4 Author: Micke Prag Date: Sun Feb 4 23:39:11 2007 +0100 USB: ftdi_sio: Adding VID and PID for Tellstick I would like to add the VID and PID for Telldus Technologies Homeautomation usb-dongle to the ftdi_sio driver. From: Micke Prag Signed-off-by: Greg Kroah-Hartman commit 17230acdc71137622ca7dfd789b3944c75d39404 Author: Alan Stern Date: Mon Feb 19 15:52:45 2007 -0500 UHCI: Eliminate asynchronous skeleton Queue Headers This patch (as856) attempts to improve the performance of uhci-hcd by removing the asynchronous skeleton Queue Headers. They don't contain any useful information but the controller has to read through them at least once every millisecond, incurring a non-zero DMA overhead. Now all the asynchronous queues are combined, along with the period-1 interrupt queue, into a single list with a single skeleton QH. The start of the low-speed control, full-speed control, and bulk sublists is determined by linear search. Since there should rarely be more than a couple of QHs in the list, the searches should incur a much smaller total load than keeping the skeleton QHs. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 28b9325e6ae45ffb5e99fedcafe00f25fcaacf06 Author: Alan Stern Date: Mon Feb 19 15:51:51 2007 -0500 UHCI: Add macros for computing DMA values This patch (as855) adds some convenience macros to uhci-hcd, to help simplify the code for computing hardware DMA pointers. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit d0374f4f9c35cdfbee0ade72d06732613b4e6628 Author: Peter Korsgaard Date: Fri Feb 16 17:03:54 2007 +0100 USB: Davicom DM9601 usbnet driver This patch adds a driver for the Davicom DM9601 USB 1.1 10/100Mbps ethernet adaptor using the usbnet framework. See http://www.davicom.com.tw/eng/products/dm9601.htm for details. Signed-off-by: Peter Korsgaard Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 39c4b38cad00287cfd92cb66fec7c9a3edf50f2a Author: David Hollis Date: Tue Feb 20 08:02:24 2007 -0500 USB: asix.c - Add JVC-PRX1 ids Add device IDs for the JVC-PRX1 port replicator. Additionally cleans up the tabs on a few of other IDs in the list. Reported by: Reuben Thomas Signed-off-by: David Hollis Signed-off-by: Greg Kroah-Hartman commit 21641e3fb1c2e53b3a0acf68e6f62f1f82f61445 Author: Pete Zaitcev Date: Tue Feb 20 10:37:52 2007 -0800 usbmon: Remove erroneous __exit mon_bin_exit() and mon_text_exit() are called from __init code, so don't mark them as __exit. Signed-off-by: Alexey Dobriyan Signed-off-by: Russell King Signed-off-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman commit 946b960d13c15f050a3b848987aaca79f6a459b7 Author: Greg Kroah-Hartman Date: Wed Feb 14 13:40:14 2007 -0800 USB: add driver for iowarrior devices. The ioctl is commented out for now, until we verify some userspace application issues. Cc: Christian Lucht Cc: Robert Marquardt Signed-off-by: Greg Kroah-Hartman commit fd978bfa127a0b8c0bdbbbc9d64f3c73bf080f61 Author: Greg Kroah-Hartman Date: Wed Feb 21 12:53:17 2007 -0800 USB: option: add a bunch of new device ids This adds all of the known Option device ids to the driver. Many thanks to some Option engineers for getting me this list. Cc: Matthias Urlichs Signed-off-by: Greg Kroah-Hartman commit b656b2cbd74fb591d46e07c7c291791b280ad5b4 Author: Greg Kroah-Hartman Date: Wed Feb 21 12:53:17 2007 -0800 USB: option: remove duplicate device id table There is no need to have two tables with the same device ids in it. Cc: Matthias Urlichs Signed-off-by: Greg Kroah-Hartman commit dfff0a0671baf4e69fc676bf8150635407548288 Author: Greg Kroah-Hartman Date: Fri Feb 23 14:54:57 2007 -0800 Revert "Driver core: let request_module() send a /sys/modules/kmod/-uevent" This reverts commit c353c3fb0700a3c17ea2b0237710a184232ccd7f. It turns out that we end up with a loop trying to load the unix module and calling netfilter to do that. Will redo the patch later to not have this loop. Acked-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman commit 82f0cf9b7c42684c29189ddb6d0bc86eb1137fc4 Author: James Simmons Date: Wed Feb 21 17:44:51 2007 +0000 Driver core: fix error by cleanup up symlinks properly When a device fails to register the class symlinks where not cleaned up. This left a symlink in the /sys/class/"device"/ directory that pointed to no where. This caused the sysfs_follow_link Oops I reported earlier. This patch cleanups up the symlink. Please apply. Thank you. Signed-Off: James Simmons Signed-off-by: Greg Kroah-Hartman commit 4541ac94d0ea0b00776edd5904ac91dd6d6330f7 Author: Adrian Bunk Date: Tue Feb 20 01:07:49 2007 +0100 make kernel/kmod.c:kmod_mk static This patch makes the needlessly global struct kmod_mk static. Signed-off-by: Adrian Bunk Signed-off-by: Greg Kroah-Hartman commit 2a9df4945106d62ed9249a44d666fab93c685f7a Author: Johannes Berg Date: Fri Feb 16 01:38:30 2007 -0800 power management: fix struct layout and docs Because the pm ops in powermac are obviously not using them as intended, I added documentation for it in kernel-doc format. Reordering the fields in struct pm_ops not only makes the output of kernel-doc make more sense but also removes a hole from the structure on 64-bit platforms. Signed-off-by: Johannes Berg Cc: "Randy.Dunlap" Cc: Rafael J. Wysocki Cc: Pavel Macheck Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 9c372d06ce9ddf65e1393f9ea22a6d6bd5f96b42 Author: Johannes Berg Date: Fri Feb 16 01:38:29 2007 -0800 power management: no valid states w/o pm_ops Change /sys/power/state to not advertise any valid states (except for disk if SOFTWARE_SUSPEND is enabled) when no pm_ops have been set so userspace can easily discover what states should be available. Signed-off-by: Johannes Berg Cc: "Randy.Dunlap" Cc: Rafael J. Wysocki Cc: Pavel Macheck Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit dfe461aef0d621d8472d0af343ae8a60866a7a8a Author: Manuel Lauss Date: Wed Feb 21 14:47:20 2007 +0100 Driver core: more fallout from class_device changes for pcmcia More fallout from the PCMCIA class_device changes. The first hunk is run-tested on SH-4, the others are converted in the spirit of the original conversion. Signed-off-by: Manuel Lauss Signed-off-by: Greg Kroah-Hartman commit d56c3eae6753f53d3313b926dcdda38c6c9bbe9b Author: Adam J. Richter Date: Fri Feb 16 21:35:25 2007 +0800 sysfs: move struct sysfs_dirent to private header struct sysfs_dirent is private to the fs/sysfs/ subtree. It is not even referenced as an opaque structure outside of that subtree. The following patch moves the declaration from include/linux/sysfs.h to fs/sysfs/sysfs.h, making it clearer that nothing else in the kernel dereferences it. I have been running this patch for years. Please integrate and forward upstream if there are no objections. From: "Adam J. Richter" Signed-off-by: Greg Kroah-Hartman commit 63ce18cfe685115ff8d341bae4c9204a79043cf0 Author: Mike Galbraith Date: Wed Feb 21 12:45:35 2007 -0800 driver core: refcounting fix Fix a reference counting bug exposed by commit 725522b5453dd680412f2b6463a988e4fd148757. If driver.mod_name exists, we take a reference in module_add_driver(), and never release it. Undo that reference in module_remove_driver(). Signed-off-by: Mike Galbraith Cc: Kay Sievers Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 40cf67c5fcc513406558c01b91129280208e57bf Author: Greg Kroah-Hartman Date: Mon Jul 3 14:31:12 2006 -0700 Driver core: remove class_device_rename No one uses it, and it wasn't exported to modules, so remove it. The only other user of it was the network code, which is now converted to use struct device instead. Signed-off-by: Greg Kroah-Hartman commit 2f236735fd05259a07a28233dcd07a8a6dddee9b Author: Steve Wise Date: Wed Feb 21 14:45:39 2007 -0600 RDMA/cxgb3: Stop the EP Timer on BAD CLOSE Stop the ep timer in ec_status() if the status indicates a bad close. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 2b540355cd2f46c5445030995e72c4b4fb2b775e Author: Adrian Bunk Date: Wed Feb 21 11:52:49 2007 +0100 RDMA/cxgb3: cleanups - don't mark static functions in C files as inline - gcc should know best whether inlining makes sense - never compile the unused cxio_dbg.c - make the following needlessly global functions static: - cxio_hal.c: cxio_hal_clear_qp_ctx() - iwch_provider.c: iwch_get_qp() - remove the following unused global functions: - cxio_hal.c: cxio_allocate_stag() - cxio_resource.: cxio_hal_get_rhdl() - cxio_resource.: cxio_hal_put_rhdl() Signed-off-by: Adrian Bunk Acked-by: Steve Wise Signed-off-by: Roland Dreier commit ec09150303479aff2bbe5ca5fcb714336b973074 Author: Jeff Garzik Date: Fri Feb 23 05:49:14 2007 -0500 [libata] ata_piix: remove duplicate PCI IDs Duplicate ids noticed by Kay Sievers Although 100% different, this is based on a patch by Greg Kroah-Hartman Signed-off-by: Jeff Garzik commit 2a54cf76d1066d5aadfac65c8455426df80322f4 Author: Robert Hancock Date: Wed Feb 21 23:53:03 2007 -0600 sata_nv: complain on spurious completion notifiers Recently Tejun wrote a patch to ahci.c to make it raise a HSM violation if the drive attempted to complete a tag that wasn't outstanding. We could run into the same problem with sata_nv ADMA. This adds code to raise a HSM violation error if the controller gives us a notifier tag that isn't outstanding, since the drive may be issuing spurious completions. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 32d90911568f67fad3f73623e106667a37c6e7ed Author: Tejun Heo Date: Wed Feb 21 20:25:08 2007 +0900 libata: test major version in ata_id_is_sata() Test major version in ata_id_is_sata() not separately. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit f5ecac2d8e0beb0e4d3eb09833cfd19d8f9f004d Author: Robert Hancock Date: Tue Feb 20 21:49:10 2007 -0600 sata_nv: kill old private BMDMA helper functions sata_nv implemented its own copies of the BMDMA helper functions for ADMA, since the ADMA BMDMA status registers are PIO while the other registers are MMIO, and this was the only way to handle this previously. Now that we have iomap support, the standard routines should just work, so use them. The only thing we need to override as far as ADMA and BMDMA is the post_internal_cmd callback, where we should only call ata_post_internal_cmd if we are in port-register mode. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 878d4fedab4e5eba59877b771622856495a92df4 Author: Tejun Heo Date: Wed Feb 21 16:36:33 2007 +0900 libata: fix remaining ap->id Merge order left libata-acpi and pata_scc with remainling usage of ap->id. Kill superflous id printing and substitute the remaining ones with ap->print_id. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit a2bbd0c923708a23c6fcc6bbc492f2eecadc676f Author: Tejun Heo Date: Wed Feb 21 16:34:25 2007 +0900 ahci: consider SDB FIS containing spurious NCQ completions HSM violation (regenerated) SDB FIS containing spurious NCQ completions is a clear protocol violation. Currently, only some Maxtors with early firmware revisions are showing this problem. Those firmwares have other NCQ related problems including buggy NCQ error reporting and occasional lock up after NCQ errors. Consider spurious NCQ completions HSM violation and freeze the port after it. EH will turn off NCQ after this happens several times. Eventually drives which show this behavior should be blacklisted for NCQ. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 1836854f25b1bc63766bff06aeeb83d2a602b050 Author: Sean Hefty Date: Thu Feb 22 11:37:44 2007 -0800 RDMA/cma: Remove unused node_guid from cma_device structure Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit e971b8cd19d39366b9fdc9eadafec988d785264d Author: Sean Hefty Date: Thu Feb 22 11:37:38 2007 -0800 IB/cm: Remove ca_guid from cm_device structure The cm_device references an ib_device, which already contains the node_guid. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 962063e64b0c55d270979fa0e4ae26daedac6282 Author: Sean Hefty Date: Wed Feb 21 16:40:44 2007 -0800 RDMA/cma: Request reversible paths only The rdma_cm requires that path records be reversible. Set the reversible bit when issuing an path record query. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 47645d8d25387c08bb3ccd84e1405c3776f21d24 Author: Sean Hefty Date: Wed Feb 21 16:37:31 2007 -0800 IB/core: Set hop limit in ib_init_ah_from_wc correctly The hop_limit value in the ah_attr should be 0xFF, not the value read from the received GRH (which should be 0). See 13.5.4.4 in the 1.2 IB spec. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit bd5ab26a7d0cc834d846fe5dd7291f0aed3be72b Author: Dave Jones Date: Thu Feb 22 19:11:16 2007 -0500 [CPUFREQ] constify some data tables. Signed-off-by: Dave Jones commit aeeddc1435c37fa3fc844f31d39c185b08de4158 Author: Dave Jones Date: Thu Feb 22 19:08:27 2007 -0500 [CPUFREQ] constify cpufreq_driver where possible. Not all cases are possible due to ->flags being set at runtime on some drivers. Signed-off-by: Dave Jones commit e5524f355a0d272ba5233537a896a668db1f3008 Author: Dave Jones Date: Thu Feb 22 18:41:28 2007 -0500 [AGPGART] Further constification. Make agp_bridge_driver->aperture_sizes and ->masks const. Also agp_bridge_data->driver Signed-off-by: Dave Jones commit aaf1aef55f50f53812871693692c7cbefcd57f39 Author: Roland Dreier Date: Thu Feb 22 13:16:51 2007 -0800 IB/uverbs: Return correct error for invalid PD in register MR If no matching PD is found in ib_uverbs_reg_mr(), then the function jumps to err_release without setting the return value ret. This means that ret will hold the return value of the call to ib_umem_get() a few lines earlier; if the function reaches the point where it looks for the PD, we know that ib_umem_get() must have returned 0, so ib_uverbs_reg_mr() ends up return 0 for a bad PD ID. Fix this by setting ret to -EINVAL before jumping to the exit path when no PD is found. Signed-off-by: Roland Dreier commit 0ebffe39f8ec8b5b126d9505852a396371014555 Author: Andrew Victor Date: Thu Feb 22 09:38:52 2007 +0100 [ARM] 4232/1: AT91: Generic GPIO bug The new gpio_direction_input() and gpio_direction_output() functions were both enabling output mode. When configuring a GPIO for input mode, you need to program the ODR (Output Disable Register). Signed-off-by: Andrew Victor Signed-off-by: Russell King commit 7f6e2d992d4cb2f537ece62d221e466df1fead1c Author: Andrew Victor Date: Thu Feb 22 07:34:56 2007 +0100 [ARM] 4231/1: AT91: Merge and typo fixes. The duplicate file "include/asm-arm/arch-at91rm9200/entry-macro.S" can be removed - it was already moved to include/asm-arm/arch-at91/. Fix 3 small typo's - two in comments, and the incorrect clock was specified for the LCD device. Signed-off-by: Andrew Victor Signed-off-by: Russell King commit f8dbf45fabaec0371c3bdd1bc94abc569af4badf Author: Ben Dooks Date: Wed Feb 21 17:50:04 2007 +0100 [ARM] 4229/1: S3C2410: Add MACH_QT2410 to s3c2410_defconfig Add the Armzone QT2410 to the list of built machines in the s3c2410_defconfig Signed-off-by: Ben Dooks Signed-off-by: Russell King commit b9c28081a71316dcce7a59122c2a3994ae6091ed Author: Ben Dooks Date: Wed Feb 21 17:45:54 2007 +0100 [ARM] 4228/2: S3C24XX: update s3c2410_defconfig for 2.6.21-rc1 Udpate s3c2410_defconfig for 2.6.21-rc1 Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 658bcef619f50d9eb6028452ff9e1ad4a96c2af9 Author: Roland Dreier Date: Wed Feb 21 20:28:05 2007 -0800 IPoIB: Remove unused local_rate tracking Now that low-level drivers handle the conversion from an absolute rate to a relative rate, there's no need for the IPoIB driver to keep track of the local port's data rate. Signed-off-by: Roland Dreier commit 2e8e2d49b14cce7bae910d22d59d2f282761e0d3 Author: Dale Farnsworth Date: Tue Feb 20 15:46:49 2007 -0700 [MIPS] Fix port 0 mac address for mips mv6434x platforms Signed-off-by: Dale Farnsworth Signed-off-by: Ralf Baechle commit 0970769aceb9bccf038f5dba72379f68431f94db Author: Atsushi Nemoto Date: Thu Feb 22 02:17:28 2007 +0900 [SERIAL] serial_txx9 driver update * Use platform_device. * Fix and cleanup suspend/resume/initialization codes. Signed-off-by: Atsushi Nemoto Acked-by: Alan Cox Signed-off-by: Ralf Baechle commit 5ce704f877057e257ecb9f5cdec6c4aa5c0d064c Author: Ralf Baechle Date: Wed Feb 21 09:37:44 2007 +0000 Revert "[PATCH] Generic ioremap_page_range: mips conversion" The generic version truncates addresses. This reverts commit 8e087929df884dbb13e383d49d192bdd6928ecbf. commit 0eb9d788f24167acce48f99688e9eeb13bfe8a32 Author: Ralf Baechle Date: Wed Feb 21 02:17:58 2007 +0000 [MIPS] Cobalt: Rename "Colo" MTD partition to "firmware". Signed-off-by: Ralf Baechle commit de7fa296b60c9086fa038350404975b7ee4e60c2 Author: Ralf Baechle Date: Wed Feb 21 00:10:19 2007 +0000 [MIPS] SMP: Get smp_tune_scheduling to do something useful. Signed-off-by: Ralf Baechle commit 9693a85378b590cc7a4aa2db2174422585c7c8c4 Author: Franck Bui-Huu Date: Fri Feb 2 17:41:47 2007 +0100 [MIPS] Add basic SMARTMIPS ASE support This patch adds trivial support for SMARTMIPS extension. This extension is currently implemented by 4KS[CD] CPUs. Basically it saves/restores ACX register, which is part of the SMARTMIPS ASE, when needed. This patch does *not* add any support for Smartmips MMU features. Futhermore this patch does not add explicit support for 4KS[CD] CPUs since they are respectively mips32 and mips32r2 compliant. So with the current processor configuration, a platform that has such CPUs needs to select both configs: CPU_HAS_SMARTMIPS SYS_HAS_CPU_MIPS32_R[12] This is due to the processor configuration which is mixing up all the architecture variants and the processor types. The drawback of this, is that we currently pass '-march=mips32' option to gcc when building a kernel instead of '-march=4ksc' for 4KSC case. This can lead to a kernel image a little bit bigger than required. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle commit b5bf28cde894b3bb3bd25c13a7647020562f9ea0 Author: Linus Torvalds Date: Wed Feb 21 11:21:44 2007 -0800 Revert "e1000: fix shared interrupt warning message" This reverts commit d2ed16356ff4fb9de23fbc5e5d582ce580390106. As Thomas Gleixner reports: "e1000 is not working anymore. ifup fails permanentely. ADDRCONF(NETDEV_UP): eth0: link is not ready nothing else" The broken commit was identified with "git bisect". Auke Kok says: "I think we need to drop this now. The report that says that this *fixes* something might have been on regular interrupts only. I currently suspect that it breaks all MSI interrupts, which would make sense if I look a the code. Very bad indeed." Cc: Jesse Brandeburg Acked-by: Auke Kok Cc: Andrew Morton Cc: Jeff Garzik Signed-off-by: Linus Torvalds commit 5fc7e655a50b0a19229a6b4a8a5e23bfedf700a4 Author: Linus Torvalds Date: Wed Feb 21 11:18:26 2007 -0800 Fix bogus 'inline' in drivers/char/ip2/i2lib.c Not only was the function way too big to be inlined in the first place, it was used before it was even defined. Noted-by: Faik Uygur Cc: Jiri Slaby Signed-off-by: Linus Torvalds commit 1055a8af093fea7490445bd15cd671020e542035 Author: Kyle McMartin Date: Wed Feb 21 15:36:05 2007 +0000 [PARISC] Use symbolic last syscall in __NR_Linux_syscalls Hopefully will prevent people from forgetting to update this... Signed-off-by: Kyle McMartin commit f6982d59480953a8f5a84c237a9dabff39f788ce Author: Michael Krufky Date: Tue Feb 13 18:26:26 2007 -0300 V4L/DVB (5253): Qt1010: whitespace / 80 column cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 47e76c5c7904b8bc2d4c08fbe531017b704a877d Author: Michael Krufky Date: Tue Feb 13 17:53:46 2007 -0300 V4L/DVB (5252): Qt1010: use ARRAY_SIZE macro when appropriate Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit b79ea694a919ebc107c90af61b5d22becb1b1324 Author: Marco Schluessler Date: Tue Feb 13 16:46:13 2007 -0300 V4L/DVB (5251): Qt1010: fix compiler warning In function 'qt1010_init': Signed-off-by: Marco Schluessler Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4acf26703e6cabceb6838ee9c4f75f765ad96915 Author: Marcel Siegert Date: Tue Feb 13 18:44:49 2007 -0300 V4L/DVB (5249): Fix compiler warning in vivi.c The result of copy_to_user was not used, so the compiler complained now a warning will be issued if copy_to_user fails. Signed-off-by: Marcel Siegert Signed-off-by: Mauro Carvalho Chehab commit 90e3bd4ba5563f2a6efbb46ce7e10845329dfffd Author: Hartmut Birr Date: Tue Feb 13 18:01:56 2007 -0300 V4L/DVB (5247): Stv0297: Enable BER/UNC counting Enable BER/UNC counting for the stv0297 frontend. The idea for this patch comes from stv0297_cs.c. Signed-off-by: Hartmut Birr Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 59327a4897a0395d6f0358574dbb113102b63769 Author: David Härdeman Date: Tue Feb 13 09:39:58 2007 -0300 V4L/DVB (5246): Budget-ci: IR handling fixups Commit 00c4cc67512ada1d195b8bf3ef1db1d6b3951605 Oliver Endriss changed the budget-ci driver to use interrupt mode for i2c transfers. This also meant that a new bunch of IR bytes that were previously lost are now received, which allowed me to better understand how the MSP430 chip works. Unfortunately it also means that the current driver gets some assumptions wrong and might generate double keypresses for one IR command. The attached patch fixes this by throwing away the repeat bytes and by associating the correct command and device bytes. Signed-off-by: David Härdeman Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 89e4d59f2c082be9472c4de4dafb832e01bfbe01 Author: Marco Schluessler Date: Tue Feb 13 09:31:07 2007 -0300 V4L/DVB (5245): Dvb-ttpci: use i2c gate ctrl from stv0297 frontend driver Use i2c gate ctrl from stv0297 frontend driver. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit b61901024776b25ce7b8edc31bb1757c7382a88e Author: Marcel Siegert Date: Tue Feb 13 09:46:55 2007 -0300 V4L/DVB (5244): Dvbdev: fix illegal re-usage of fileoperations struct Arjan van de Ven reported an illegal re-usage of the fileoperations struct if more than one dvb device (e.g. frontend) is present. This patch fixes this issue. It allocates a new fileoperations struct each time a device is registered and copies the default template fileops. Signed-off-by: Marcel Siegert Signed-off-by: Mauro Carvalho Chehab commit e1af498063007cee5d7ec5af1e0cf25c088d05c7 Author: Chris Rankin Date: Tue Feb 6 20:29:07 2007 -0300 V4L/DVB (5178): Avoid race when deregistering the IR control for dvb-usb The work item function is dvb_usb_read_remote_control(): INIT_WORK(&d->rc_query_work, dvb_usb_read_remote_control, d); and the last piece of work it does is: schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc_interval)); Hence you need to call "cancel_rearming_delayed_work()" and not "cancel_delayed_work()", correct? I certainly haven't seen this oops reoccur since I applied this patch. Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 705d41e5da674b449f900df97ad13ebe53e82b82 Author: Antti Palosaari Date: Sat Jan 27 16:41:35 2007 -0300 V4L/DVB (5240): Qt1010: use i2c_gate_ctrl where appropriate This patch adds calls to i2c_gate_ctrl in the qt1010 dvb tuner module, while removing the temporary hack in au6610 and gl861. Tested successfully against fi-Oulu frequencies with MSI Megasky 580 GL861 and Sigmatek DVB-110 AU6610. Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 38d0629fd80464247290450d8641890d6f94b6fa Author: Michael Krufky Date: Sun Jan 21 15:57:48 2007 -0300 V4L/DVB (5239): Whitespace / 80-column cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit d4130b18f7ae5adfe2fd5761e31803554d090aa9 Author: Michael Krufky Date: Sun Jan 21 15:56:46 2007 -0300 V4L/DVB (5238): Kconfig: qt1010 should be selected by gl861 and au6610 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4c7e3ea92da379c4f31500a65680862d8c898dee Author: Antti Palosaari Date: Sun Jan 21 15:56:10 2007 -0300 V4L/DVB (5237): Dvb: add new qt1010 tuner module gl861: (MSI Megasky) - hack for enable ZL10353 / QT1010 I2C gate - use new QT1010 module instead of old code au6610: (Sigmatek DVB-110) - hack for enable ZL10353 / QT1010 I2C gate - use new QT1010 module instead of old code Tested successfully with au6610 and gl861 devices against fi-Yllas frequencies. Now it locks perfectly with both devices. There is a "hack" to enable probable i2c gate in zl10535 demodulator. QT1010 doesn't respond to any i2c messages before we write 0x1a to demodulator register 0x62. In my understanding this should be fixed to demodulator code. Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 5decdd2729066c5c155d0f6e7fdf89b844fbfc27 Author: Antti Palosaari Date: Sun Nov 5 16:05:38 2006 -0300 V4L/DVB (5236): Initial support for Sigmatek DVB-110 DVB-T This patch adds driver for Sigmatek DVB-110 USB DVB-T stick. Stick has based on hardware of Qtuantek QT1010 tuner, Zarlink ZL10353 (Intel CE 6353) demodulator and Alcor Micro AU6610 DVB-T USB controller. HW is rather similar as used in MSI Megasky GL861. Currently, the driver works only in USB 2.0. In my understanding USB 1.1 is also supported by hw but I cannot test it due to lack of USB 1.1 port. Device supports only isochronous mode transfers. There is also eeprom in usb controller(at least in address range 0x80 - 0xbf) for storing data, eg. firmware. Anyway, firmware loading is not used / required by the device. There seems to be at least one unknown I2C device in address 0xa0, probably remote control or GPIO. Windows drivers reads registers from 0x00 to 0x07 from this unknown address. Driver is based on gl861 module. Tuner has a lot of problems to lock with megasky qt1010 module with this hardware with some broadcasting standards. Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4131fd4fd40aa22cfe61b4e7c78e640b9fcfcd8c Author: Carl Lundqvist Date: Mon Oct 9 12:49:17 2006 -0300 V4L/DVB (5235): Gl861: use parallel_ts - use parallel_ts - Now this driver works. - correct typo in MODULE_VERSION Signed-off-by: Carl Lundqvist Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 05eb2a8058ecd964f0560807a0ce582909a8c30e Author: Michael Krufky Date: Mon Oct 9 01:11:07 2006 -0300 V4L/DVB (5234): Gl861: remove unneeded declaration remove unneeded declaration of .generic_bulk_ctrl_endpoint generic_bulk_ctrl_endpoint isn't being used in this device, so this is not needed here. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 8c0b24c2d2f779040a8ec21de0422eeaf56395cc Author: Jan Nijs Date: Sat Oct 7 16:29:54 2006 -0300 V4L/DVB (5233): Gl861: correct address of the bulk endpoint The megasky 580 based on gl861 has three endpoints: - 0x81 BULK/ISOC IN MPEG2 TS - 0x83 INT IN remote control receiver - 0x02 BULK OUT bulk control endpoint It doesn't look like the bulk endpoint is used, but better to have the correct one in the config. Signed-off-by: Jan Nijs Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit b3b2b8b5746cfe5af181dc2ce7a0912b5b2c598a Author: Jan Nijs Date: Sat Oct 7 01:25:53 2006 -0300 V4L/DVB (5232): Gl861: correct oops when loading module This patch moves the DVB_USB_IS_AN_I2C_ADAPTER flag from the adapter properties to the device properties. Without this patch I get an OOPS when the gl861 driver tries to access any registers. Signed-off-by: Jan Nijs Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 1f78867bc8a05b6c0bc3f2cb1c5915c10e92369e Author: Michael Krufky Date: Tue Oct 3 17:21:13 2006 -0300 V4L/DVB (5231): Gl861: whitespace cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e465ea7ed16124e926ca4988317b1d2d31f41d6f Author: Michael Krufky Date: Tue Oct 3 17:20:37 2006 -0300 V4L/DVB (5230): Gl861: remove NULL entry from gl861_properties Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6ae7232084ffea750968320241a0276d2211d736 Author: Michael Krufky Date: Tue Oct 3 17:19:30 2006 -0300 V4L/DVB (5229): Gl861: use qt1010_tuner_attach function from qt1010.h The gl861_tuner_attach function is not specific to this device. This patch removes gl861_tuner_attach, and replaces it with qt1010_tuner_attach from the qt1010 header file. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 8bb36dc7b5c9f528541b8674f9417901129dae64 Author: Michael Krufky Date: Tue Oct 3 17:17:24 2006 -0300 V4L/DVB (5228): Gl861: remove unneeded "extern int" declaration Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 73b96c09f679dfaaf8f72b7789a277fc10618328 Author: Michael Krufky Date: Tue Oct 3 17:16:44 2006 -0300 V4L/DVB (5227): Gl861: hide disabled code from upstream patch system enclose disabled code inside an #if 0 block, instead of /* comments */ Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 05ec6cc88c901fa8755fc11e847c1d6a0e31f9c5 Author: Michael Krufky Date: Tue Oct 3 17:15:26 2006 -0300 V4L/DVB (5226): Gl861: fix driver_name Rename driver_name from "gl861" to "dvb_usb_gl861" Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 947af8fdcd034e567421bdc55ec446e24b519b7f Author: Michael Krufky Date: Tue Oct 3 17:14:07 2006 -0300 V4L/DVB (5225): Gl861: fix MODULE_AUTHOR The author's email address is already in the MODULE_AUTHOR field. This patch adds his name as well. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit a9bde1d88c49cd7ab4faae5110261046555dd7a3 Author: Michael Krufky Date: Tue Oct 3 17:12:55 2006 -0300 V4L/DVB (5224): Gl861: select DVB_ZL10353 if !DVB_FE_CUSTOMISE Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6f7880f0264457e80e456b512722c7a627883fda Author: Michael Krufky Date: Tue Oct 3 17:12:14 2006 -0300 V4L/DVB (5223): Rename USB_PID_MSI_MEGASKY55801 to USB_PID_MSI_MEGASKY580_55801 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit f0c3a2ca56c5c56ecfaf46c1b47851319e9655ac Author: Carl Lundqvist Date: Tue Oct 3 17:09:30 2006 -0300 V4L/DVB (5221): Dvb-usb: initial support for MSI Mega Sky 580 DVB-T based on GL861 This patch adds support for MSI Mega Sky 580 / GL861 DVB-T USB2.0 Except for the 2 lines added to zl10353.c, zl10353_reset_attach needs to be changed. If I read the code correctly setting parallel_ts will take care of the 3rd byte, but the 2nd byte needs to be 0x0b instead of 0x03 too. I guess these changes needs to be done only for this device, not sure how to do that. The zl10353 changes have been split apart from this patch, into the next patch, soon to follow. Signed-off-by: Carl Lundqvist Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6345f0f6428cc7a3f73b83624c6f97629a9fddd1 Author: Chris Pascoe Date: Sat Feb 10 10:19:16 2007 -0300 V4L/DVB (5218): Zl10353: register definitions update Update the descriptions of "discovered" registers on the zl10353, using the equivalaent mt352 register names. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit f7f57770dc610eddd678aec483263e7980327ee9 Author: Antti Palosaari Date: Sat Feb 10 10:19:11 2007 -0300 V4L/DVB (5217): Zl10353: Implement TRL nominal rate calculation Implement trl nominal rate calculation to Zarlink ZL10353 demod, based on calculation used in Zarlink MT352. This adds support for 6 and 8MHz bandwidth transponders. Signed-off-by: Antti Palosaari Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit 0a11bb865a88a7459855ab46f74091e6ca4a1a20 Author: Antti Palosaari Date: Sat Feb 10 10:19:08 2007 -0300 V4L/DVB (5216): Zl10353: add i2c_gate_ctrl support Implement I2C gate control for Megasky GL861 and SigmaTek AU6610 support. Signed-off-by: Chris Pascoe Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 67b60aad168cfdd40ffec12f14b93e2e68f7d486 Author: Chris Pascoe Date: Sat Feb 10 10:17:57 2007 -0300 V4L/DVB (5215): Experimental support for signal strength/BER/uncorrectable count After studying many hours worth of register dumps of MT352 and ZL10353 fed with identically damaged RF signals I have made an educated guess at which registers contain the AGC level, bit error rate and uncorrectable error count values. Implement the IOCTLs that return these values to userspace. Signed-off-by: Chris Pascoe Signed-off-by: Mauro Carvalho Chehab commit 90060d32ca0a941b158994f78e60d0381871c84b Author: Mike Isely Date: Thu Feb 8 02:02:53 2007 -0300 V4L/DVB (5212): Pvrusb2: Be more forgiving about encoder firmware size The pvrusb2 driver previously rejected encoder firmware whose size was not a multiple of 8192. But this is a false check because it's possible to find cx23416 firmware whose size doesn't conform to this limit. So change the firmware loader implementation to be more forgiving of the image size. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 201779f5c4a4bd8503a38749dd371ecddb7928a5 Author: Mike Isely Date: Thu Feb 8 01:48:57 2007 -0300 V4L/DVB (5210): Pvrusb2: Fix printk format typo Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6591691b259f9487f374f35c0c310aa220f829c6 Author: akpm@linux-foundation.org Date: Thu Feb 8 14:36:57 2007 -0300 V4L/DVB (5209): Kthread api conversion for dvb_frontend and av7110 fix avoid double-up(), pointed out by Oliver. Signed-off-by: Andrew Morton Acked-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 8eec14295e03f9dfe2be7bb75c8004a5fa867cdb Author: Herbert Poetzl Date: Thu Feb 8 14:32:43 2007 -0300 V4L/DVB (5208): Kthread API conversion for dvb_frontend and av7110 dvb kernel_thread to kthread API port. It is running fine here, including module load/unload and software suspend (which doesn't work as expected with or without this patch :). I didn't convert the dvb_ca_en50221 as I do not have such an interface, but if the conversion process is fine with the v4l-dvb maintainers, it should not be a problem to send a patch for that too ... Acked-by: Oliver Endriss Signed-off-by: Herbert Poetzl Signed-off-by: Andrew Morton Acked-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 2a9f8b5d25beacd034369fca416b548cbf931561 Author: Thierry MERLE Date: Wed Feb 7 10:14:38 2007 -0300 V4L/DVB (5206): Usbvision: set alternate interface modification - usb alternate selection modified to get the biggest endpoint packet size. - fix sysfs get values for brightness/contrast/hue/saturation Signed-off-by: Thierry MERLE Signed-off-by: Mauro Carvalho Chehab commit 6f78e186fe5d29dbff5e34f950adb573c4808de4 Author: Thierry MERLE Date: Wed Feb 7 10:13:11 2007 -0300 V4L/DVB (5205): Usbvision: dynamic allocation for frames - fix decoder route output - dynamic frame buffer allocation Signed-off-by: Thierry MERLE Signed-off-by: Mauro Carvalho Chehab commit c65eeaab1f04d1113b5c4fb21f7f61ded795d2bb Author: Adrian Bunk Date: Tue Feb 6 21:53:31 2007 -0300 V4L/DVB (5200): V4l_printk_ioctl_arg() is no longer used. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit b1e7df1d3543906654b9e6443aee177c8009acac Author: Michael Schimek Date: Wed Feb 7 09:15:01 2007 -0300 V4L/DVB (5204): Change videodev2.h licence to dual GPL/BSD videodev2.h contains just the V4L2 API structs and defines. By allowing this header file to be dual GPL/BSD will enable sharing userspace apps between Linux and *BSD systems. It will also allow developing newer BSD licensed drivers that can be shared on Linux and *BSD. It should be noticed that most of the current V4L drivers, and v4l core itself are GPL only. This won't be changed by this patch. Signed-off-by: Michael H. Schimek Signed-off-by: Gerd Hoffmann Signed-off-by: Bill Dirks Signed-off-by: Hans Verkuil Signed-off-by: Martin Rubli Signed-off-by: Mauro Carvalho Chehab commit 0496daa7d88d117fab4dd190c7f6e7c4a5aa15cd Author: Ahmed S. Darwish Date: Wed Feb 14 22:57:42 2007 -0200 V4L/DVB (5202): DVB: Use ARRAY_SIZE macro when appropriate Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish Acked-by: Manu Abraham Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit fd4bc4455360ff0b6ff50ec8fa5673b4da18cbb6 Author: Richard Knutsson Date: Tue Feb 6 21:55:07 2007 -0300 V4L/DVB (5201): Radio/: Convert to generic boolean-values Signed-off-by: Richard Knutsson Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit db406b58551bc7de1e331e8ad1bc11ba1545ee8b Author: Adrian Bunk Date: Tue Feb 6 21:53:04 2007 -0300 V4L/DVB (5199): Cx88-video.c: remove struct radionorms This patch removes the unused struct radionorms. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 3198cf676c18edd2b04c7016d1873f6e797b3d9a Author: Jonathan Corbet Date: Tue Feb 6 21:52:36 2007 -0300 V4L/DVB (5198): Cafe_ccic.c fix warning Quiet a spurious gcc warning. Signed-off-by: Jonathan Corbet Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit e8be02a34a43c88a7666217b186e169a30f1609b Author: Richard Knutsson Date: Tue Feb 6 21:52:04 2007 -0300 V4L/DVB (5197): Convert to generic boolean-values Signed-off-by: Richard Knutsson Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 7a9ca4a3f99129c2316ee14273ded519630c573d Author: Andrew Morton Date: Tue Feb 6 21:51:14 2007 -0300 V4L/DVB (5196): VIDEO_BUF depends on PCI m68k allmodconfig: drivers/media/video/video-buf.c: In function 'videobuf_queue_pci': drivers/media/video/video-buf.c:396: error: 'pci_map_sg' undeclared (first use in this function) drivers/media/video/video-buf.c:396: error: (Each undeclared identifier is reported only once drivers/media/video/video-buf.c:396: error: for each function it appears in.) drivers/media/video/video-buf.c:399: error: 'pci_dma_sync_sg_for_cpu' undeclared (first use in this function) drivers/media/video/video-buf.c:401: error: 'pci_unmap_sg' undeclared (first use in this function) drivers/media/video/video-buf.c: In function 'videobuf_pci_dma_map': Acked-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 346304097b47a6e1376d99af80dbffb759fa55f4 Author: Adrian Bunk Date: Tue Feb 6 21:50:36 2007 -0300 V4L/DVB (5195): Frontends: make 4 functions static This patch makes four needlessly global functions static. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 48fc923b0e43bc11975d6302f3fcb173d2f50f19 Author: Robert P. J. Day Date: Tue Feb 6 21:46:54 2007 -0300 V4L/DVB (5193): Remove the unused kernel config option VIDEO_VIDEOBUF Signed-off-by: Robert P. J. Day Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 716a4e334efe75f8ac97ce5c475bb689158bf16b Author: Marco Schluessler Date: Sat Feb 3 14:47:14 2007 -0300 V4L/DVB (5189): Budget-av: Call saa7146_vv_release on exit Call saa7146_vv_release on exit. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 6c914490210cf7155a288b3c5c2fdd305692e298 Author: Oliver Endriss Date: Fri Feb 2 19:12:53 2007 -0300 V4L/DVB (5188): Add separate configuration data for subsystem 0x13c2:0x1012 Fixed problem reported by Teemu Suikki: After a device with subsystem 0x13c2:0x1012 has been installed, devices with subsystem id 0x13c2:0x1011 did not work anymore. Reason: The driver for 0x13c2:0x1012 modified shared configuration data. Fix: Use separate configuration data for those devices. Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 32ec5332f987435d42371c1c47e310c9cc211cf7 Author: Ian Armstrong Date: Sat Feb 3 06:37:25 2007 -0300 V4L/DVB (5184): Add cx23415 decoder register documentation Many thanks to Ian Armstrong for figuring out what all these registers do. Signed-off-by: Ian Armstrong Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit faeb4ab38f6fec62d50a023e1778d13e73a0b088 Author: Hans Verkuil Date: Sat Feb 3 06:35:07 2007 -0300 V4L/DVB (5183): Fix CC handling in VIDIOC_INT_G_VBI_DATA When capturing a 60 Hz input the internal field ID is inverted. The VIDIOC_INT_G_VBI_DATA didn't take that into account and so returned XDS instead of CC and vice versa. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 2675f7a88f73bc3131b817c118fbffa5cfed8868 Author: Hans Verkuil Date: Sat Feb 3 03:23:44 2007 -0300 V4L/DVB (5182): Remove #if 0 section from videodev2.h Remove a section containing basically ideas for future sliced VBI standards. This can be resurrected should any of this be actually implemented. For now it only pollutes this header file. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 4f828ef7f360ecfba6b8d81c731a56b1c8d4bc07 Author: Hans Verkuil Date: Sat Feb 3 03:19:14 2007 -0300 V4L/DVB (5181): Sliced VBI API no longer marked experimental. The Sliced VBI API is no longer marked experimental. Introduced in 2.6.14 and with only a single modification in 2.6.19 I think we can consider this API to be solid. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit b7a01e723c9edaefcadb99d42c1409371c01dde1 Author: Hans Verkuil Date: Fri Feb 2 20:49:54 2007 -0300 V4L/DVB (5180): Fix cx2584x revision reporting. Revisions >= 23 were always reported as revision 23. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit fec1bc71a314507418e65bcd0f232b3b9f36f435 Author: Hans Verkuil Date: Fri Feb 2 20:42:02 2007 -0300 V4L/DVB (5179): Cx2341x encoder documentation update. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 201f5c9cafeb88cf0658300bd3bceb5c30d28430 Author: Mike Isely Date: Sun Jan 28 16:08:36 2007 -0300 V4L/DVB (5175): Pvrusb2: VIDIOC_DBG_[S|G]_REGISTER fixups Support 64 bit register IDs internally. Only allow root access to this API (for both set and get). Note that actual 64 bit access only becomes possible once the definition for v4l2_register is updated, but this change clears the way for it from the viewpoint of the pvrusb2 driver. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6fe7d2c4660174110c6872cacc4fc2acb6e00acf Author: Mike Isely Date: Sun Jan 28 15:42:56 2007 -0300 V4L/DVB (5174): Pvrusb2: video corruption fixes Tweak the encoder setup in order to stop it from corrupting the video data when there is a disruption in the data flow (e.g. a channel change). Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit c43000ef0c9f21fff090ff3b5428ac31a41dbc99 Author: Mike Isely Date: Sun Jan 28 15:41:12 2007 -0300 V4L/DVB (5173): Pvrusb2: encoder comm protocol cleanup Update the implementation of the communication protocol for operating the encoder, using updated knowledge about the encoder. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 567d7115b9ce8145c166e3368bf31fe613451f77 Author: Mike Isely Date: Sun Jan 28 15:38:55 2007 -0300 V4L/DVB (5172): Pvrusb2: Control protocol cleanup Several special-case FX2 commands were being issued through pvr2_write_u16() and pvr2_write_8(), but there's really nothing special case about them. These date from a very early time in the driver development. This patch removes these functions and replaces their use with calls to pvr2_send_request. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit edae96bd72155b88f8682c830c63338cd699d35c Author: Mike Isely Date: Mon Jan 22 02:18:54 2007 -0300 V4L/DVB (5170): Pvrusb2: Add boilerplate to new header file Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 8d3643637e18e6590969436734c22151805d0350 Author: Michael Krufky Date: Mon Jan 22 02:17:55 2007 -0300 V4L/DVB (5169): Pvrusb2: Use macro names for FX2 commands This is a maintainability cleanup; use nice names for all the FX2 commands instead of raw bytes. This way we can easily find where we issue FX commands. Signed-off-by: Michael Krufky Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 05ad390724d1f307111a322325df83282a1479e6 Author: Trent Piepho Date: Tue Jan 30 23:26:01 2007 -0300 V4L/DVB (5166): Remove obsolete alias defines of CONFIG_* settings The out of tree v4l-dvb build system didn't always override the kernel's configuration settings with v4l-dvb's settings correctly. To work around this, makefiles would define some new macro based on the setting of a config variable. e.g. the pwc Makefile would define CONFIG_PWC_DEBUG if CONFIG_USB_PWC_DEBUG (which is defined via Kconfig) was set. The v4l-dvb build system should now always override correctly, and this is no longer necessary. This patch gets ride of these extra defines and just uses the CONFIG_* settings directly. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 6827709a6148a6e8530d90027b4f31aa0aaa5ae5 Author: Trent Piepho Date: Tue Jan 30 23:25:46 2007 -0300 V4L/DVB (5164): Compat: Handle input_register_device() change and some others input_register_device() was changed to return an error code instead of being void in 2.6.15. Handle it with a macro wrapper in config.h. For this to work, linux/input.h must be included before config.h. This required some trivial header re-ordering in budget-ci.c and ttusb_dec.c. In kernel 2.6.15-rc1 a helper function called setup_timer() was added to linux/timer.h. Add to compat.h, but require that linux/timer.h be included first to give the definition of struct timer_list. A new 4GB DMA zone, __GFP_DMA32, was added in 2.6.15-rc2. Alias it to __GFP_DMA on older kernels. Handle another 2.6.15 "input_dev->dev to input_dev->cdev.dev" change for some recently added code in cinergyT2.c. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 62d50addf0774115adaa9e01e09099c3d7daa13d Author: Trent Piepho Date: Tue Jan 30 23:25:41 2007 -0300 V4L/DVB (5163): Add checks for CAP_SYS_ADMIN to VIDIOC_DBG_G_REGISTER Before, root privileges were only needed to set hardware registers, not to read them. On some hardware, reading from the wrong place at the wrong time can hang the machine. So, to be consistent, root privileges are required to read registers on all hardware. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit e7b58f5259a81dbd9fbfea79408d272f44eb894f Author: Trent Piepho Date: Tue Jan 30 22:47:18 2007 -0300 V4L/DVB (5162): Change VIDIOC_DBG_[SG]_REGISTER ioctls' reg address to 64 bits Maybe someday there will be a device with a register address space > 32-bits, or maybe an i2c device which uses a protocol > 4 bytes long to address its registers. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit e19c55ffb984c2db28191d8aa4400bb81ecd756d Author: Marco Schluessler Date: Wed Jan 31 14:32:29 2007 -0300 V4L/DVB (5161): Dvb-ttpci: call saa7146_vv_release() on exit Call saa7146_vv_release() on exit. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 58af00456ac6b3158c99a3c6b3435c88d4f25a0e Author: Marco Schluessler Date: Wed Jan 31 14:27:55 2007 -0300 V4L/DVB (5160): Saa7146_vv: pass correct memory size to pci_free_consistent Pass correct memory size to pci_free_consistent. Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 7857735b3a6695a90fa3c8808bf96385ac5a95dc Author: Oliver Endriss Date: Sat Jan 27 21:13:06 2007 -0300 V4L/DVB (5158): Dvb-ttpci: Fixed unregistering the vbi device Fixed unregistering the vbi device for cards without analog tuner. Thanks to Marco Schluessler for pointing out this bug. Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 357a268d59411b84fde712400585dd118c61467f Author: Matthias Schwarzott Date: Wed Jan 24 20:49:58 2007 -0300 V4L/DVB (5157): Set phys, bustype, version, vendor and product for input device Add phys-string, bustype, version, vendor and product to help udev and others using EVIOCPHYS ioctl to identify the input device node. Code taken (with little changes) from budget-ci.c Signed-off-by: Matthias Schwarzott Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit feaba7a96dd02f2fc0d1fe5c2148d79444db0717 Author: Michael Schimek Date: Fri Jan 26 08:30:05 2007 -0300 V4L/DVB (5156): Fix: dma free is being called with wrong arguments Functions buffer_release() in bttv-driver.c and vbi_buffer_release() in bttv-vbi.c are ending with: bttv_dma_free(&fh->cap,fh->btv,buf); For vbi it seems to be wrong. Both functions should end with: bttv_dma_free(q,fh->btv,buf); Thanks to Peter Schlaf for pointing this. Signed-off-by: Michael H. Schimek Signed-off-by: Mauro Carvalho Chehab commit 712642b8e371687e24ec8e1d34114beab18e92ca Author: Mauro Carvalho Chehab Date: Fri Jan 26 07:33:07 2007 -0300 V4L/DVB (5155): Properly initialize mute and radio frequency Signed-off-by: Mauro Carvalho Chehab commit f1557cebc8c5714fd463ffeb5f424dc56dd61bdf Author: Mauro Carvalho Chehab Date: Fri Jan 26 07:23:44 2007 -0300 V4L/DVB (5154): Add some debug info, depending on debug level With debug>0, it will show mute/unmute and set frequency events with debug>=4, it will show get frequency events Also, some kernel CodingStyle fixes were done. Signed-off-by: Mauro Carvalho Chehab commit b61f8d695c02dbcd3391b3409eafcf182451f10f Author: Mauro Carvalho Chehab Date: Fri Jan 26 07:07:12 2007 -0300 V4L/DVB (5153): Make it coherent with vidioc_g_tuner Signed-off-by: Mauro Carvalho Chehab commit a0c05ab9762560cf12733181d19b6529bb7231d2 Author: Mauro Carvalho Chehab Date: Thu Jan 25 16:48:13 2007 -0300 V4L/DVB (5152): Implements VIDIOC_[S|G]_INPUT on radio-aztech/radio-maxiradio fmtools use VIDIOCSTUNER, with, in turn, calls VIDIOC_S_INPUT on v4l1-compat. So, those ioctls are required for V4L1 to work properly. Signed-off-by: Mauro Carvalho Chehab commit 676b0ac7aa409d326d92ca46c65bba20bebb3c1c Author: Mauro Carvalho Chehab Date: Thu Jan 25 15:10:31 2007 -0300 V4L/DVB (5151): Implement VIDIOC_[GS]_AUDIO on aztech v4l1-compat requires those two ioctls to translate VIDIOC[SG]RADIO into V4L2 calls. Signed-off-by: Mauro Carvalho Chehab commit 140dcc46ede8dcd9032bbe0ce52eb4df104a1ab0 Author: Mauro Carvalho Chehab Date: Thu Jan 25 15:00:45 2007 -0300 V4L/DVB (5150): Implement VIDIOC_[GS]_AUDIO on maxiradio v4l1-compat requires those two ioctls to translate VIDIOC[SG]RADIO into V4L2 calls. Signed-off-by: Mauro Carvalho Chehab commit 06470ed612cf2bf99bf05d57259d0a65a5481df5 Author: Mauro Carvalho Chehab Date: Thu Jan 25 09:04:34 2007 -0300 V4L/DVB (5149): Convert radio-maxiradio to use video_ioctl2 Signed-off-by: Mauro Carvalho Chehab commit 99218fe478e2ca6d5ee660a655690ab6496e6ab5 Author: Mauro Carvalho Chehab Date: Thu Jan 25 08:09:32 2007 -0300 V4L/DVB (5148): Convert radio-aztech to use video_ioctl2 Signed-off-by: Mauro Carvalho Chehab commit b50e7fe99317c05b0bb8ba6338bc6aa7da3b918e Author: Mauro Carvalho Chehab Date: Thu Jan 25 05:00:01 2007 -0300 V4L/DVB (5147): Make vivi driver to use vmalloced pointers Before this patch, vivi were simulating a scatter gather DMA transfer. While this is academic, showing how stuff really works on a real PCI device, this means a non-optimized code. There are only two memory models that vivi implements: 1) kernel alloced memory. This is also used by read() method. On this case, a vmalloc32 buffer is allocated at kernel; 2) userspace allocated memory. This is used by most userspace apps. video-buf will store this pointer. a simple copy_to_user is enough to transfer data. The third memory model scenario supported by video-buf is overlay mode. This model is not implemented on vivi and unlikely to be implemented on newer drivers, since now, most userspace apps do some post-processing (like de-interlacing). After this patch, some cleanups may be done at video-buf.c to avoid allocating pages, when the driver doesn't need a PCI buffer. This is the case of vivi and usb drivers. Signed-off-by: Mauro Carvalho Chehab commit 52ebc763d8e0c9f2ab48af89a75e90e2318bac86 Author: Trent Piepho Date: Tue Jan 23 22:38:13 2007 -0300 V4L/DVB (5146): Make VIDIOC_INT_[SG]_REGISTER ioctls no longer internal only The direct register access ioctls were defined as kernel internal only, but they are very useful for debugging hardware from userspace and are used as such. Officially export them. VIDIOC_INT_[SG]_REGISTER is renamed to VIDIOC_DBG_[SG]_REGISTER Definition of ioctl and struct v4l2_register is moved from v4l2-common.h to videodev2.h. Types used in struct v4l2_register are changed to the userspace exportable versions (u32 -> __u32, etc). Use of VIDIOC_DBG_S_REGISTER requires CAP_SYS_ADMIN permission, so move the check into the video_ioctl2() dispatcher so it doesn't need to be duplicated in each driver's call-back function. CAP_SYS_ADMIN check is added to pvrusb2 (which doesn't use video_ioctl2). Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit dbbff48f39263f7e5c96a55624da87879de2bf71 Author: Trent Piepho Date: Mon Jan 22 23:31:53 2007 -0300 V4L/DVB (5144): Restore VIDIOC_INT_[SG]_REGISTER calls Add support for these ioctls to the video_ioctl2 system and the cx88 driver. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 758117c25b65ed5fa502c13f3cdf040a8f954161 Author: Michael Krufky Date: Tue Jan 23 15:34:10 2007 -0300 V4L/DVB (5142): M920x: move filter caps from device caps to adapter caps Move filter caps from device caps to adapter caps for the megasky driver. This fixes usb1.1 operation. Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e16c1f55642d79a80c45ace7603b284975559e78 Author: Michael Krufky Date: Tue Jan 23 15:00:42 2007 -0300 V4L/DVB (5141): M920x: group tuner / demod callback functions together Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit fa94805d0316e7706d2ce0273a9c58688482c9f6 Author: Michael Krufky Date: Sun Jan 21 15:57:48 2007 -0300 V4L/DVB (5140): Whitespace / 80-column cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 84ad7574f69b971565061663be2b0a9ade5b8ca7 Author: Aapo Tahkola Date: Sun Jan 21 15:57:20 2007 -0300 V4L/DVB (5139): M920x: Fix tuner identification bug with qt1010 module Fixes qt1010 identification bug with megasky caused by the Quantek QT1010 tuner module patch. Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 816172f8b944a98716f4b5fda801b7744cb91624 Author: Michael Krufky Date: Sun Jan 21 15:56:46 2007 -0300 V4L/DVB (5138): Kconfig: qt1010 should be selected by m920x Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit cbdc80ed8f59e204c031b52ea7e44f419029f75b Author: Antti Palosaari Date: Sun Jan 21 15:56:10 2007 -0300 V4L/DVB (5137): Dvb: add new qt1010 tuner module QT1010: - old qt1010-code totally rewritten and put in own kernel module - same enhancements as my earlier QT1010 125kHz patch - tuner initialization - register 1f calculation - register 20 calculation - register 25 calculation m920x: (MSI Megasky) - use new QT1010 module instead of old code Signed-off-by: Antti Palosaari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 1f61f3bab303c02cfd822c952284a381089452a0 Author: Michael Krufky Date: Sat Oct 7 15:03:04 2006 -0300 V4L/DVB (5136): M920x: correct oops when loading module move .caps from the adapter properties to the device properties. Thanks to Martin Schwier for confirming this fix. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 565ef12713c5620b6f802d67861153a3f68499a4 Author: Jan Nijs Date: Sat Oct 7 01:06:54 2006 -0300 V4L/DVB (5135): Qt1010: correct hardlockup when an app access the DVB dongle This patch changes qt1010.h to use dvb_usb_device struct instead of a dvb_usb_adapter for accessing the private area of the driver. Without this patch my PC hard locks when an application tries to access the DVB tuner. Signed-off-by: Jan Nijs Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e2d79439c2253571e4d32fe959663b5615d89907 Author: Michael Krufky Date: Tue Oct 3 16:46:33 2006 -0300 V4L/DVB (5134): M920x: fix build in hg tree / other trivial fixes - removed extra newline - removed NULL entry - fixed versions.txt Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 6cf2a10180e4039aaad1e4ecba5f2520f157da40 Author: Michael Krufky Date: Thu Sep 28 14:47:21 2006 -0300 V4L/DVB (5133): M920x: move qt1010_tuner_attach function into qt1010.h The megasky_tuner_attach function is not specific to this device. This patch renames it to qt1010_tuner_attach and moves it into the qt1010 header file. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 94a47dc4335a614eba30cf29aa3a953040625c92 Author: Patrick Boettcher Date: Thu Sep 28 13:48:03 2006 -0300 V4L/DVB (5132): M920x: more trivial cleanups - Removed some needless brances - Removed an unneeded check for adapter[0] - Removed unneeded declaration of .generic_bulk_ctrl_endpoint = 0x01 Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 26f48eaa9e57a3436fc049f30241256dda002de5 Author: Michael Krufky Date: Thu Sep 28 01:46:49 2006 -0300 V4L/DVB (5131): M920x: more cleanups Some cleanups and suggestions from Patrick Boettcher. Dropped the mutex in m9206_rc_query using #if 0, because M9206_CORE, M9206_I2C, M9206_FILTER and M9206_FW can be accessed concurrently. Thanks to both Aapo Tahkola and Patrick Boettcher. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit e2adbecf72d54515b66f8631813ec49069669d5e Author: Aapo Tahkola Date: Thu Sep 28 00:47:51 2006 -0300 V4L/DVB (5130): M920x: misc updates and fixes - hardware pid filtering no longer enabled unless in usb 1.x mode - more responsive rc handling - some minor bug fixes and code refolding - m9206_write delay dropped (doesn't seem to be needed) Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 017cf012570c955c3e1ff025802d7cb46fd1d37b Author: Michael Krufky Date: Sat Sep 23 20:40:20 2006 -0300 V4L/DVB (5129): M920x: break out qt1010 tuner code into a separate file qt1010 is a tuner used in some other devices, so this code should be put into a separate file so that it could be reused by other drivers. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 2a2bfa7d61b29170b7f9bbf42712a77229e6b935 Author: Michael Krufky Date: Sat Sep 23 20:13:12 2006 -0300 V4L/DVB (5128): M920x: trivial cleanups Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 01cb34dba930accdb9356247bbe64b1c5393c5d5 Author: Michael Krufky Date: Sat Sep 23 20:01:29 2006 -0300 V4L/DVB (5127): M920x: update megasky driver for recent changes in the dvb tree update code to use dvb_attach() update code to reflect recent changes to the dvb_usb framework Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit baa2ed09000de94c02e4b6690a6097314d282928 Author: Michael Krufky Date: Sat Sep 23 20:01:29 2006 -0300 V4L/DVB (5126): M920x: cleanups after rename from megasky.[ch] Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 2aef7d0fa0e35a3a26733bef147196c2926bd228 Author: Michael Krufky Date: Sat Sep 23 20:00:42 2006 -0300 V4L/DVB (5125): Dvb-usb: rename megasky.[ch] to m920x.[ch] Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 5fecd9fd4287dd163fe1f1f0b1e86e931ed589c4 Author: Aapo Tahkola Date: Sat Sep 23 20:00:41 2006 -0300 V4L/DVB (5124): Dvb-usb: Initial support for MSI Mega Sky 580 based on Uli m9206 Currently, the driver works in bulk mode supporting both USB 2.0 and 1.0 with and without hardware pid filters. The ULi m9205 also supports isochronous transfer mode, but I have dropped support for it because it depends on firmware and does not work on all USB host chips. Further, I have no firmware with remote controller support for this mode. Signed-off-by: Aapo Tahkola Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit ef7b8b725bdc59fb4a3f781f3e9f546ad01da792 Author: Tino Keitel Date: Mon Jan 22 18:33:07 2007 -0300 V4L/DVB (5121): Proper vendor/device ID for the CinergyT2 input device I noticed that udev does not create a symlink for the CinergyT2 remote input device in /dev/input/by-id, which is required if I want to have a unique device name for lircd. The attached patch tries to achive this. However, udev still omits the input device for /dev/input/by-id symlinks. I think something is still not reported correctly. Signed-off-by: Tino Keitel Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit a63ad325c337ba634824cefe54f7ac52ee554b72 Author: Hans Verkuil Date: Mon Jan 22 18:27:47 2007 -0300 V4L/DVB (5119): Various cx2341x documentation updates/fixes. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 5cc1dd8c3d8f80dbdce4d2e981a5e452af4b4529 Author: Mauro Carvalho Chehab Date: Sun Jan 21 22:02:58 2007 -0300 V4L/DVB (5117): Fix: VIDIOC_G_TUNER were returning an endless number of tuners pvrusb2 have only one tuner inside. However, as it were not handling index, a call to v4l-info were returning as if it were an infinite number of tuners: $ v4l-info|grep VIDIOC_G_TUNER |head -5 VIDIOC_G_TUNER(0) VIDIOC_G_TUNER(1) VIDIOC_G_TUNER(2) VIDIOC_G_TUNER(3) VIDIOC_G_TUNER(4) Acked-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 69b04f0dc1c489899b610cb44209da9d728b248f Author: Mauro Carvalho Chehab Date: Sun Jan 21 22:02:35 2007 -0300 V4L/DVB (5116): Remove some warnings when compiling on x86_64 pvrusb2-encoder.c: In function 'pvr2_encoder_cmd': pvrusb2-encoder.c:195: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' pvrusb2-encoder.c:205: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' pvrusb2-encoder.c: In function 'pvr2_encoder_vcmd': pvrusb2-encoder.c:303: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long unsigned int' Acked-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 05eda24968a6bb7082b632769bd72126f85485a6 Author: Heiko Baums Date: Sun Jan 21 05:58:19 2007 -0300 V4L/DVB (5114): Cx88: Add support for svideo/composite input of the Terratec Cinergy 1400 DVB-T Adds support for the combined S-Video/Composite input of the Terratec Cinergy 1400 DVB-T. Signed-off-by: Heiko Baums Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4cbca185e9adf3d48205b60bf196ebb9882af043 Author: Marco Schluessler Date: Sun Jan 21 19:43:38 2007 -0300 V4L/DVB (5113): Adds video output routing Nexus CA needs to use a different routing on saa7115 module. Signed-off-by: Marco Schluessler Signed-off-by: Mauro Carvalho Chehab commit 9de271e66d1172e7fa68ba0a7ecec2f9fb8d78c1 Author: Michael Krufky Date: Tue Jan 16 18:36:40 2007 -0300 V4L/DVB (5111): Saa7134: add support for Terratec Cinergy HT PCI Add support for Terratec Cinergy HT PCI Signed-off-by: Giorgio Moscardi Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit a4b662f736c7919207da113814c35cad340c67fd Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:41 2007 -0300 V4L/DVB (5110): Keep the previous tvnorm default for cx88 and cx88-blackbird The video_ioctl2 conversion replaced the default from NTSC to PAL_BG. This broke cx88-blackbird. Probably, there are some badness at this driver, not doing all required stuff to change video standard. Signed-off-by: Mauro Carvalho Chehab commit b3c4ee7016ad9d4c51887591b8a62c05f59cc498 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:38 2007 -0300 V4L/DVB (5109): Convert cx88-blackbird to use video_ioctl2 This patch finishes cx88-blackbird conversion to use video_ioctl2. Video standards are generated automatically inside videodev.c. the big ioctl parser is removed, using, instead, video_ioctl2. Signed-off-by: Mauro Carvalho Chehab commit 7730bef9c5eaaecc3f441cd389ae189b17759117 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:35 2007 -0300 V4L/DVB (5108): Remove_cx88_ioctl cx88_ioctl were merged at the master ioctl handler on cx88-blackbird Signed-off-by: Mauro Carvalho Chehab commit 84f1b6783a8f7057f3d7a5388c5f3f4a8bce7b0b Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:32 2007 -0300 V4L/DVB (5107): Use cx88_set_freq() on cx88-blackbird.c Signed-off-by: Mauro Carvalho Chehab commit 1571720c5ecfb9b5f27aff0678e3bef0cb1821ca Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:29 2007 -0300 V4L/DVB (5106): Do some cleanups at cx88-blackbird Signed-off-by: Mauro Carvalho Chehab commit 23154f2f3b8c3c7c58548c518f28195b0d0a6c64 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:59:22 2007 -0300 V4L/DVB (5105): Reorder some ioctl handlers Reorder some ioctl handlers to make easy to convert to video_ioctl2 Signed-off-by: Mauro Carvalho Chehab commit ed10b06d8da204ce5f8d1b5b1a9d4df6565847c9 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:39 2007 -0300 V4L/DVB (5104): Moved several stuff that were at cx88-video to cx88-blackbird.c cx88-blackbird were using some ioctl handling that were previously on cx88-video. Signed-off-by: Mauro Carvalho Chehab commit 243d8c0fd03c77051d0f6a634cbadb7bbe28a58a Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:36 2007 -0300 V4L/DVB (5103): Fix vidioc_g_tuner handling Signed-off-by: Mauro Carvalho Chehab commit 63ab1bdc3b98b804f69bd345b1e3a491804c12de Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:33 2007 -0300 V4L/DVB (5102): make videodev to auto-generate standards v4l2_tvnorm were meant to describe video standards and its names to V4L2 API. However, this were doing by some static structures at the driver. This patch changes the internals in a way that, at the driver, only a v4l2_tvnorm (a 64 bit integer) should be filled, with all supported tvnorms. videodev will dynamically generate the proper API array based on supported standards. Signed-off-by: Mauro Carvalho Chehab commit e90311a198e21902cda4fd4cac8e09bc6ce52603 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:29 2007 -0300 V4L/DVB (5101): Renamed video_mux to cx88_video_mux video_mux is renamed to cx88_video_mux to be exported to cx88-blackbird Signed-off-by: Mauro Carvalho Chehab commit 54da49f5a4c739cf8de7838e049d0f9f548008d8 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:26 2007 -0300 V4L/DVB (5100): Make cx88-blackbird to work again Signed-off-by: Mauro Carvalho Chehab commit c526ab91a24b79cf57b8bff2fa69db0b5f4df290 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:23 2007 -0300 V4L/DVB (5099): Uncommented NTSC/443 video standard Signed-off-by: Mauro Carvalho Chehab commit 1427f6b6b96e573c0c8eb905dca9032f442a44cf Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:20 2007 -0300 V4L/DVB (5098): Added support for V4L2_STD_NTSC_443 Signed-off-by: Mauro Carvalho Chehab commit 8d87cb9f31930c7ac25d03043fa90cbd5313fe26 Author: Mauro Carvalho Chehab Date: Sat Jan 20 13:58:17 2007 -0300 V4L/DVB (5097): Convert cx8800 driver to video_ioctl2 handler video_ioctl2 handler provides V4L2 API parsing. Using it makes the driver simpler, and isolates API parsing. This allows future reusage of driver controls using other ways, like sysfs and/or procfs and increases isolation of driver-specific handling from the generic common ioctl processing. Signed-off-by: Mauro Carvalho Chehab commit fd69496461050296fb0fdd9acf6d789d27a0ef44 Author: Pantelis Koukousoulas Date: Sat Jan 20 01:59:54 2007 -0300 V4L/DVB (5095): Pvrusb2: Allow VIDIOC_S_FMT with -1 for resolution values With the previous patch, mplayer started but was polling the video device forever without any video actually coming out. Further analysis showed that it does a VIDIOC_S_FMT with width and height set to -1 (!!!). The code handling this only cares that both are lower than the minimum range allowed so it ends up setting the size to 19x17 (!!) This pretty much breaks the encoder here. Even if this breakage is yet another (TM) result of my setup, setting the size to 19x17 by default would surprise most users IMHO. So, special case for -1 and interpret this to be a request for the default size, please. Users can then set their favorite size both through mplayer and through sysfs. With this patch, mplayer finally works in pvr:// mode (not that we really gain anything over operating it through sysfs with lirc, sometime I might actually get off my lazy a** and contribute this setup too) Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 848ed3ca2a4eb85d6c6bde2a1b254b1f4c658e02 Author: Pantelis Koukousoulas Date: Sat Jan 20 01:57:36 2007 -0300 V4L/DVB (5094): Pvrusb2: Introduce fake audio input selection This should allow mplayer pvr:// to start. The trick is that no matter what actual input we use under this "fake" one, it will be able to do stereo :-) Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 606cf9caeb3b908426757924bfdce85cb854aa81 Author: Mike Isely Date: Sat Jan 20 01:56:04 2007 -0300 V4L/DVB (5093): Pvrusb2: Emit VIDIOC_S_TUNER correctly Audio mode changes are not private to the audio chip - other I2C modules need to see this as well. And since the command in question is VIDIOC_S_TUNER which is a standard v4l2 command, we really should be broadcasting it out. This change sets up a broadcast pathway for VIDIOC_S_TUNER and also eliminates the now redundant code from the audio chip handler. This fix enables stereo reception for the FM radio Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 27c7b710a4010e10b14500c0b27bb4c2a806de1b Author: Mike Isely Date: Sat Jan 20 00:39:17 2007 -0300 V4L/DVB (5092): Pvrusb2: Use ARRAY_SIZE wherever possible Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit ca545f7c39476c6c4c6e639452180a2b38342669 Author: Mike Isely Date: Sat Jan 20 00:37:11 2007 -0300 V4L/DVB (5091): Pvrusb2: Use kzalloc in place of kmalloc/memset pairs Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit eca8ebfc11d1935a7dd4c59cb8defb5bdff44ecd Author: Ahmed S. Darwish Date: Sat Jan 20 00:35:03 2007 -0300 V4L/DVB (5090): Pvrusb2: A patch to use ARRAY_SIZE macro when appropriate Signed-off-by: Ahmed S. Darwish Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit c1c2680d922cd36338cf3efaf4ce0067c3e26eb1 Author: Mike Isely Date: Sat Jan 20 00:30:23 2007 -0300 V4L/DVB (5089): Pvrusb2: V4L EXT_CTRLS fixup Attempts to enumerate or operate on a group of EXT_CTRLS where the group size is zero is OK; don't fail on such operations. At least one application uses this to probe for the existence of this API so let it succeed. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit af75453860569b6110fbf43c7113f52f698d37a3 Author: Mike Isely Date: Sat Jan 20 00:28:15 2007 -0300 V4L/DVB (5088): Pvrusb2: Minor dead code / comment cleanups Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 293b5d94ebf1e591a6672d0c34d4559e935cd2dc Author: Mike Isely Date: Sat Jan 20 00:27:01 2007 -0300 V4L/DVB (5087): Pvrusb2: Fix sizeof() calculation foul-up This bug caused uninitalized data to be returned during a G_TUNER status poll. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 11fc76c9a8b24984d5ff701bc1f77940e04d5077 Author: Mike Isely Date: Sat Jan 20 00:24:52 2007 -0300 V4L/DVB (5086): Pvrusb2: Fix missing break statement on VIDIOC_S_TUNER The lack of a break statement in the handling of VIDIOC_S_TUNER caused errors to result. Fixed. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 8433544ea9ebc4227bb5aaaf361b0a1879964f7d Author: Mike Isely Date: Sat Jan 20 00:22:28 2007 -0300 V4L/DVB (5085): Pvrusb2: trace print added Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 644afdb9cc05107f3090817b6d00e90daa9a034b Author: Mike Isely Date: Sat Jan 20 00:19:23 2007 -0300 V4L/DVB (5084): Pvrusb2: Stop hardcoding frequency ranges Rather than hardcoding frequency ranges everywhere, rely on VIDIOC_G_TUNER results wherever we can. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 7c74e57e6fb2ce986134e74634aeb78b3ea41a97 Author: Mike Isely Date: Sat Jan 20 00:15:41 2007 -0300 V4L/DVB (5083): Pvrusb2: Remove automodeswitch control The automodeswitch control was a feature that enable automatic radio / tv switching based on the selected frequency. However since frequency ranges can overlap and also since apparently in some cases it's possible for the same frequency range to be both tv and radio in a specific region, then this feature can't safely work. So it's removed. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit fe23a2809d1f88887f7df7da38652826933b8ce6 Author: Mike Isely Date: Sat Jan 20 00:10:55 2007 -0300 V4L/DVB (5082): Pvrusb2: Slight debug printing efficiency fixup Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 18103c57b0168ebc0401702d483fe131f0aecc7a Author: Mike Isely Date: Sat Jan 20 00:09:47 2007 -0300 V4L/DVB (5081): Pvrusb2: VIDIOC_G_TUNER cleanup Clean up use of VIDIOC_G_TUNER; we now correctly gather info from all the I2C client modules. Also abide by V4L2_TUNER_CAP_LOW appropriately. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit af78a48b69231e129db0e1db24053da22f8eed6d Author: Mike Isely Date: Sat Jan 20 00:04:31 2007 -0300 V4L/DVB (5080): Pvrusb2: Allow streaming from /dev/radioX Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 4b85dee6a05dd963a13bd1230fafc060bf45ae45 Author: Mike Isely Date: Sat Jan 20 00:03:32 2007 -0300 V4L/DVB (5079): Pvrusb2: Use kzalloc instead of kmalloc+memset pairs Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6710fb868b289d21139bd68262388e0ea34601eb Author: Mike Isely Date: Sat Jan 20 00:02:26 2007 -0300 V4L/DVB (5078): Pvrusb2: It's safe to kfree() a null pointer Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit e5bd0260e7d3d806e66c12859f50733dca43bbcf Author: Michael Schimek Date: Thu Jan 18 16:17:39 2007 -0300 V4L/DVB (5077): Bttv cropping support Adds the missing VIDIOC_CROPCAP, G_CROP and S_CROP ioctls, permitting applications to capture or overlay a subsection of the picture or to extend the capture window beyond active video, into the VBI area and the horizontal blanking. VBI capturing can start and end on any line, including the picture area, and apps can capture different lines of each field and single fields. For compatibility with existing applications, the open() function resets the cropping and VBI capturing parameters and a VIDIOC_S_CROP call is necessary to actually enable cropping. Regrettably in PAL-M, PAL-N, PAL-Nc and NTSC-JP mode the maximum image width will increase from 640 and 768 to 747 and 923 pixels respectively. Like the VBI changes however, this should only affect applications which depend on former driver limitations, such as never getting more than 640 pixels regardless of the requested width. Also, new freedoms require additional checks for conflicts and some applications may not expect an EBUSY error from the VIDIOC_QBUF and VIDIOCMCAPTURE ioctls. These errors should be rare though. So far, the patch has been tested on a UP machine with a bt878 in PAL- BGHI and NTSC-M mode using xawtv, tvtime, mplayer/mencoder, zapping/ libzvbi and these tools: http://zapping.sf.net/bttv-crop-test.tar.bz2 I'd be grateful about comments or bug reports. Signed-off-by: Michael H. Schimek Signed-off-by: Mauro Carvalho Chehab commit 13071f0a58f285eee81f63c917078bb2a48cf51e Author: Alexey Dobriyan Date: Sun Jan 14 15:29:42 2007 -0300 V4L/DVB (5076): Cpia.c: buffer overflow If assigned minor is 10 or greater, terminator will be put beyound the end. Signed-off-by: Alexey Dobriyan Signed-off-by: Mauro Carvalho Chehab commit c74e0062684bc034a003289e2e2023f0e9ff747c Author: Mike Isely Date: Sat Dec 30 18:31:22 2006 -0300 V4L/DVB (5059): Pvrusb2: Be smarter about mode restoration Switch back to the previous input selection when the radio device is closed - but only do that if the current input selection is still the radio (i.e. it appears that it hasn't been messed with). Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit cdef8bd8c6ab69407afaf78226cc9861f916c83d Author: Mike Isely Date: Sat Dec 30 18:30:12 2006 -0300 V4L/DVB (5058): Pvrusb2: bug fix involving switch into radio mode When the input is switched by opening /dev/radioX, we must also commit that change into the driver core. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 16eb40d37d5dd4dba85245899388d2d44eb0bc2a Author: Mike Isely Date: Sat Dec 30 18:27:32 2006 -0300 V4L/DVB (5057): Pvrusb2: Stream configuration cleanups Clean up and tighten logic involving stream configuration. This mainly involves changes to pvrusb2-v4l2.c, where we better clarify how we use the stream configuration enum and implement a cleaner means to control streaming for a given device node. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit f13ed249ed8b880fe5497aaa05999bff8328a973 Author: Mike Isely Date: Sat Dec 30 18:24:35 2006 -0300 V4L/DVB (5056): Pvrusb2: Fix cut/paste bug in auto_mode_switch control Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 7a4a3770dd37a7c87a2a8a7b8e7387527cdb34e7 Author: Mike Isely Date: Wed Dec 27 23:40:59 2006 -0300 V4L/DVB (5054): Pvrusb2: cosmetic comment tweak Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 139eecf94cf5ab1f9749874cd362db5bff7dc09c Author: Mike Isely Date: Wed Dec 27 23:36:33 2006 -0300 V4L/DVB (5053): Pvrusb2: Change default volume to something sane The default volume of 65535 is too high. Make is something smaller. Note that this _only_ changes the default value. Specifically, there are no scaling or other more intrusive changes here. I'm just sick of constantly having to reduce the volume every time I plug in and test the device! (And unfortunately we can't do a better fix like scaling the volume so that 65535 makes sense because doing so will screw up any app - like MythTV - which expects the old scaling.) Too bad V4L controls don't have better defined ranges. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 62f5fdace7774a45e75e4d651237e7e1e8f05327 Author: Mike Isely Date: Wed Dec 27 23:33:00 2006 -0300 V4L/DVB (5052): Pvrusb2: Remove stream claiming hack from /dev/radio Trying to temporarily check that the stream is not claimed during open of the radio device is at best a race condition. What's to stop another app from claiming the stream anyway the instant after the check is done? The implementation for this was dicey anyway. So it's removed. The only "price" for this is that if /dev/radioX is opened while streaming video, then the video stream is just going to switch to radio mode anyway. If a user does this, he gets what he expects... Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 1bde02891b3d4d17ee743584bb49ed5f275dff01 Author: Mike Isely Date: Wed Dec 27 23:30:13 2006 -0300 V4L/DVB (5051): Pvrusb2: Better radio versus tv frequency handling Separate track radio versus tv frequency so that when we switch modes we can also switch to a sane frequency appropriate for the mode. Also implement logic to automate mode switching in certain cases. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 5549f54f46c2375761f42cd2741364316e3b2a13 Author: Mike Isely Date: Wed Dec 27 23:28:54 2006 -0300 V4L/DVB (5050): Pvrusb2: Newer frequency range checking Implement new method for doing integer range checking, so that we can more intelligently range-check radio and tv ranges at once. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 2083230084cee50580ee730cd26669704f7939b9 Author: Mike Isely Date: Wed Dec 27 23:26:55 2006 -0300 V4L/DVB (5049): Pvrusb2: Enable radio mode for 24xxx devices These changes implement correct audio routing for radio mode on a 24xxx device. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit c0e69315edd1d6901a021b85e0eea397444df702 Author: Mike Isely Date: Wed Dec 27 23:25:06 2006 -0300 V4L/DVB (5048): Pvrusb2: v4l2 API implementation frequency tweaks Report and set correctly converted frequency to/from a V4L2 app. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit f1382122ab49a7f01fa107608eaf664b12055b8b Author: Mike Isely Date: Wed Dec 27 23:23:22 2006 -0300 V4L/DVB (5047): Pvrusb2: Fix tuning calculation when in radio mode Frequency units in V4L2 are apparently different when in radio mode compared to tv mode. Why? Who knows. This change adapts the driver appropriately - so that internally we always only deal in Hz and don't have to muck with craziness like this. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 5a8a0a16422eec744ec220ccea472eef74b67180 Author: Mike Isely Date: Wed Dec 27 23:21:34 2006 -0300 V4L/DVB (5046): Pvrusb2: Fix tuner frequency calculation A conversion from Hz to V4L frequency units was accidentally removed by an earlier change. Restore it. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 0f0f257b7b46cc65c0f8f6f30444005b9c255e79 Author: Mike Isely Date: Wed Dec 27 23:19:42 2006 -0300 V4L/DVB (5045): Pvrusb2: Fix heap corruption introduced by radio mods We can't allocate v4l device structures in a block, since the v4l core governs when each device actually gets freed. This bug was introduced as part of the core radio implementation. Fix it. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 5e6862cefe004f0f7ad86e0a80df4d9465576903 Author: Mike Isely Date: Wed Dec 27 23:17:26 2006 -0300 V4L/DVB (5044): Pvrusb2: Allow overriding vbi and radio device minor numbers Support specification of vbi and radio device minor numbers in a manner similar to the video device minor number. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit f5156b06acaad13b74f72bf62025de7b76b1b8a4 Author: Mike Isely Date: Wed Dec 27 23:14:54 2006 -0300 V4L/DVB (5043): Pvrusb2: video standard broadcast fix for radio mode Ensure we don't accidentally broadcast the standard while in radio mode. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 98752102dccfd3f1bb3eac3d7833c9b38ac22fef Author: Mike Isely Date: Wed Dec 27 23:13:53 2006 -0300 V4L/DVB (5042): Pvrusb2: Make units uniform when tracking tuning frequency The initial radio implementation used different units for tuning when in radio mode. This changes everything to Hz. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 8079384eeb1c490d0ad679cef061205e1b5a1c8a Author: Mike Isely Date: Wed Dec 27 23:12:28 2006 -0300 V4L/DVB (5041): Pvrusb2: Use separate enumeration for get/store of minor number Use separate enum for get/store of minor number; we want pvr2_config to go away eventually and since it really means something different, don't use it here Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit fd5a75fe00ec13311289928c2cb17d8676f8db45 Author: Mike Isely Date: Wed Dec 27 23:11:22 2006 -0300 V4L/DVB (5040): Pvrusb2: Use enumeration for minor number get / store code Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit ae2b9e25fdfb63efed3659b19c5cc8778fd981ba Author: Pantelis Koukousoulas Date: Wed Dec 27 23:09:55 2006 -0300 V4L/DVB (5039): Pvrusb2: Implement /dev/radioX The "main" V4L2 interface patch. This is yet very incomplete, incorrect and probably inappropriate for inclusion as-is, but at least with this I 'm able to tune and play radio through a V4L2 program (pvr-radio.c, a "thumb" version of ivtv-radio.c with just the essentials). Therefore, it kinda gives an idea of what is needed to support this, hm, interface (partly used also by e.g., kradio). Please point out any mistakes on this code. I 'm sure I 'm messing up some struct initialization somewhere but currently I 'm too lazy to actually think this through until I complete the functionality (e.g., handle the VIDIOC_S_STD, ENUMINPUT, etc ioctls appropriately). Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 99cfdf5cc6dbe0bd748d810953874d4e08051a9f Author: Pantelis Koukousoulas Date: Wed Dec 27 23:08:55 2006 -0300 V4L/DVB (5038): Pvrusb2: Implement stream claim checking function Add (and expose) a new function, pvr2_channel_check_stream_no_lock(), in pvrusb2-context.c. This is hopefully the last V4L2 interface related patch to change anything outside pvrusb2-v4l2.c. We need this to implement the open() for the radio device. The reason is that within the *enter_context() section of open() we need to ensure nobody is streaming and if we cannot, we should cleanup after ourselves and return -EBUSY. We cannot just use claim_stream() because: 1) That would cause a deadlock trying to re-acquire the context lock 2) We only need to ensure that nobody is streaming. We don't need to actually acquire the stream. Again, this is a kinda ugly patch. Feel free to improve. Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 2fdf3d9c94f7f752dacbebb75bbecda3c1b082a0 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:07:58 2006 -0300 V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling This is the first patch in preparation of the V4L2/IVTV radio interface. It does away with the assumption of only one minor per device. It also adds a file to show the radio minor as well. This can be useful for a program like pvr-radio.c (when it grows up), since this way it can search for the minor of the /dev/radioX device it opened and use the video minor of the same driver instance to get to the actual stream. The implementation looks kinda ugly. Feel free to improve (that is the reason behind separate patches anyway). Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 6fcb5b3ef758ca78461d390dc07bed5a4667c521 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:06:54 2006 -0300 V4L/DVB (5036): Pvrusb2: Fix for min/max control value checking In the previous patch we exploited the get_{min,max}_value facility to adjust min/max allowable frequencies on the fly, depending on tuner mode. Unfortunately, this facility was not used inside the *sym_to_val() function that translates what we echo to sysfs, which means we got an -ERANGE despite asking for a frequency between what we read to be min/max. This patch corrects this small omission. Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 25d8527a441760c333c41ec7197ba0750780b371 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:06:04 2006 -0300 V4L/DVB (5035): Pvrusb2: Enable radio mode round #2 This is the logic that: a) Ensures /sys/class/pvrusb2/sn-*/ctl_frequency/{max,min}_val are "automagically" reset to sane values on each mode change. b) Allows tuning to a radio frequency by something like: echo `perl -e "print int(94.9*16000 + 0.5)"` \ > /sys/class/pvrusb2/sn-*/ctl_input/cur_val The trick was to take advantage of the already existing .get_{min,max}_value function pointers in pvr2_ctrl, to "dynamically override" the hardcoded values for min/max frequency at runtime. For a moment I thought to dispose of the hardcoded MIN/MAX_FREQ and use the hirange/lowrange fields of the v4l2_tuner struct instead, but then I see that tuner-core.c kinda hardcodes these as well, so I decided to not bother. Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 275b2e283b139bee19e7de5929d01484b8e3ee51 Author: Pantelis Koukousoulas Date: Wed Dec 27 23:05:19 2006 -0300 V4L/DVB (5034): Pvrusb2: Enable radio mode round #1 This is the logic that supports switching modes via e.g., echo radio > /sys/class/pvrusb2/sn-*/ctl_input/cur_val. To do the mode switching we need to: a) broadcast AUDC_SET_RADIO and b) issue the CX2341X_ENC_MUTE_VIDEO command to the encoder. The first is done by adding a new pvr2_i2c_op and having it trigger on input change, the second by adding this command in pvr2_encoder_start() and requesting an encoder restart on input change by setting stale_subsys_mask appropriately. The clues about AUDC_SET_RADIO and CX2341X_ENC_MUTE_VIDEO were kindly provided by Hans Verkuil on the pvrusb2 mailing list. The idea to implement mode switching this way (on input change) is due to Mike Isely. Why AUDC_SET_RADIO/VIDIOC_S_STD are used for switching? I can 't be sure, but I think this can be traced to a cornell student being the first to implement radio support in ivtv "as a different standard". I think the rest just evolved from there (it 's in the ivtv ML archives). Signed-off-by: Pantelis Koukousoulas Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 0b600512860cab5a0bb4647f5f726a91bce2633c Author: Mauro Carvalho Chehab Date: Sun Jan 14 08:33:24 2007 -0300 V4L/DVB (5074): Some fixes at stream waitqueue on vivi There are several potential troubles on vivi waitqueue code: - Watchdog timer should be reset at every received frame; - Watchdog timer should be reset at the beginning of vivi_thread(); - Checks for errors when creating a newer thread with kernel_thread(); - Wake up vivi_thread() after creating it. Signed-off-by: Mauro Carvalho Chehab commit df3a710458462aa9427cdeec947bf71af257e8dd Author: Mauro Carvalho Chehab Date: Sat Jan 13 09:25:16 2007 -0300 V4L/DVB (5073): Fix OOPS on some waitqueue conditions If for some reason vivi_thread() fails, vivi will suffer an OOPS at thread stop code, since waitqueue wouldn't be properly initializated. Signed-off-by: Mauro Carvalho Chehab commit ae1942c5712f700c9ccc8cc287c51db4daaa50d7 Author: Ville-Pekka Vainio Date: Fri Jan 12 14:06:21 2007 -0300 V4L/DVB (5070): Budget-ci: add support for the Technotrend 1500 bundled remote The keymap is based on a previous patch by Jussi Kukkonen. This remote is identified by subsystem_device id 0x1010. Signed-off-by: Ville-Pekka Vainio Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 43db48d3d2f6326c571984b7b30ab355596bb3cc Author: Mauro Carvalho Chehab Date: Tue Jan 9 11:20:59 2007 -0300 V4L/DVB (5068): Fix authorship references Bill Dirks asked me to update his entries at kernel files, since he change his e-mail. I've also updated a few web broken links or obsolete info to the curent sites where V4L drivers and API are being discussed currently. CC: Bill Dirks Signed-off-by: Mauro Carvalho Chehab commit 2656312724d97ebc2e267e0a9740d51ad7aa9a04 Author: Luca Risolia Date: Mon Jan 8 11:38:36 2007 -0300 V4L/DVB (5064): ET61X251 driver updates. - Implement audio ioctl's and VIDIOC_ENUM_FRAMESIZES - Documentation updates - Generic improvements Signed-off-by: Luca Risolia Signed-off-by: Mauro Carvalho Chehab commit 7e3a0660700ad47ee6e296fe7090d771becfcf96 Author: Luca Risolia Date: Mon Jan 8 11:34:35 2007 -0300 V4L/DVB (5063): ZC0301 driver updates. - Implement audio ioctl's and VIDIOC_ENUM_FRAMESIZES - Documentation updates - Generic improvements Signed-off-by: Luca Risolia Signed-off-by: Mauro Carvalho Chehab commit f327ebbd004fb2f08291ca4c6637f5f27319683c Author: Luca Risolia Date: Mon Jan 8 10:43:56 2007 -0300 V4L/DVB (5062): SN9C102 driver updates - Add support for SN9C105 and SN9C120 - Add some more USB device identifiers - Add support for OV7660 - Implement audio ioctl's and VIDIOC_ENUM_FRAMESIZES - Add preliminary support for 0x0c45/0x6007 - Documentation updates - Generic improvements Signed-off-by: Luca Risolia Signed-off-by: Mauro Carvalho Chehab commit 19790db00bb7ff4d6621b82933afb3423586644e Author: Michael Krufky Date: Sun Jan 7 22:12:22 2007 -0300 V4L/DVB (5061): Bt8xx: add support for Ultraview DVB-T Lite Ultraview DVB-T Lite is a clone of DViCO FusionHDTV DVB-T Lite Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit de6a1b8edc48155249896f2600398e139f4860c6 Author: Dwaine Garden Date: Sun Jan 7 21:13:55 2007 -0300 V4L/DVB (5032): Improves some USBVision info messages Replaces the info statements with printk(KERN_INFO statements. This will cut down on the useless information which is showing up in the kernel messages log file. Signed-off-by: Dwaine P. Garden Signed-off-by: Mauro Carvalho Chehab commit c19049568117848a209185a61d18971e3a856bd8 Author: Dmitry Torokhov Date: Tue Jan 2 03:29:48 2007 -0300 V4L/DVB (5025): Cleanup: switch to using msecs_to_jiffies() on bttv PS.: Part of the changes at the original patch were removed due to the changes done at commit 52c14e794f6ce345343a6b8fc98ea4e0ba2dfce4 Signed-off-by: Dmitry Torokhov Signed-off-by: Mauro Carvalho Chehab commit cededbfcbc31230c1717a7ed27ff6cf82734e568 Author: Mariusz Kozlowski Date: Sun Jan 7 10:39:44 2007 -0300 V4L/DVB (5028): Tvmixer module_put cleanup Removes redundant argument check for module_put() Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab commit ac3289893052c8e6149a8e93b500e2e4c7d9d418 Author: Mariusz Kozlowski Date: Sun Jan 7 10:36:24 2007 -0300 V4L/DVB (5027): Cpia module_put cleanup No need for redundant argument check for module_put() Signed-off-by: Mariusz Kozlowski Signed-off-by: Mauro Carvalho Chehab commit 22071a42a1b44ae90d232f4bd5d6d3f80ad4eaa2 Author: Mariusz Kozlowski Date: Sun Jan 7 10:33:39 2007 -0300 V4L/DVB (5026): Pvrusb2-hdw kfree cleanup Removes redundant argument check for kfree(). Signed-off-by: Mariusz Kozlowski Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 16e9495d8bd5ec8ef3c1a32cd720542b1cc2b298 Author: Mike Isely Date: Wed Jan 3 18:08:06 2007 -0300 V4L/DVB: MAINTAINERS: tag pvrusb2 list as subscribers-only Posting to the pvrusb2 mailing list is for subscribers only. Anyone can subscribe of course. This is done purely to keep spammers and similar pond scum from bothering the subscribers of the list. This patch marks the pvrusb2 list tag in MAINTAINERS to reflect this situation. Signed-off-by: Mike Isely Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 4a06b538d6c7c1713d759f79b4fbd1d91d4932ca Author: Adrian Bunk Date: Fri Dec 29 09:57:26 2006 -0300 V4L/DVB (5018): Make usbvision_rvfree() static usbvision_rvfree() can now become static. Signed-off-by: Adrian Bunk Signed-off-by: Mauro Carvalho Chehab commit c408a6f673e8fb0b67c81fc9cb29414265c1e6c1 Author: Adrian Bunk Date: Thu Dec 28 12:47:47 2006 -0300 V4L/DVB (5017): DVB: fix compile error This patch fixes the following compile error: <-- snip --> ... LD drivers/media/video/built-in.o drivers/media/video/saa7134/built-in.o:(.data+0x85ec): multiple definition of `ir_rc5_remote_gap' drivers/media/video/bt8xx/built-in.o:(.data+0x734c): first defined here drivers/media/video/saa7134/built-in.o:(.data+0x85f0): multiple definition of `ir_rc5_key_timeout' drivers/media/video/bt8xx/built-in.o:(.data+0x7350): first defined here make[4]: *** [drivers/media/video/built-in.o] Error 1 <-- snip --> Since this variables were needlessly global, this patch implements the trivial fix of making them static. Signed-off-by: Adrian Bunk Signed-off-by: Mauro Carvalho Chehab commit c36c459a5530da8869a4de832188cdcb75b60359 Author: Juan Pablo Sormani Date: Wed Dec 27 12:46:36 2006 -0300 V4L/DVB (5015): Add support for more Encore TV cards Signed-off-by: Juan Pablo Sormani Signed-off-by: Mauro Carvalho Chehab commit 95efa03bd66511ca9fb4ebc528211166ac842d27 Author: Mauro Carvalho Chehab Date: Wed Feb 14 22:55:53 2007 -0200 V4L/DVB (5012a): Remove some unused code from kernel mainstream There are some long time unused code under some media driver source files. There's no need of keeping it at mainstream. Those unused code will remain available at V4L/DVB master tree and also at kernel history. Signed-off-by: Mauro Carvalho Chehab commit d9bdf77296a00538faff95f29bf238857daea2e7 Author: Tobias Klauser Date: Tue Dec 26 07:33:48 2006 -0300 V4L/DVB (5011): DVB: Remove unneeded void * casts in ttpci/av7110 The patch removes unneeded void * casts for the following (void *) pointers: - struct file: private_data - struct dvb_device: priv - struct dvb_demux: priv - struct dvb_adapter: priv The patch also contains some whitespace and coding style cleanups in the relevant areas. Signed-off-by: Tobias Klauser Signed-off-by: Mauro Carvalho Chehab commit 9d85d776cb6ccc28ac5294a9ac4f6831295f489b Author: Antti Seppälä Date: Wed Dec 20 11:10:35 2006 -0300 V4L/DVB (4999): [PATCH] Cablestar2 support This patch changes the initialization of alps tdee4 tuner in flexcop-fe-tuner.c to match what is used in the old driver that was written specifically for Cablestar cards by Patrick Boettcher. This patch should make Cablestar2 work again with recent dvb drivers without breaking other stv0297 based cards. Signed-off-by: Antti Seppala Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit e3ab2fdd3f5efe62d266877c53c578fe5b547b31 Author: Mario Rossi Date: Wed Dec 20 10:54:30 2006 -0300 V4L/DVB (4998): [PATCH] DIB3000MC and NOVA T USB2 #2 Second part of the patch to make the autosearch work again with DiB3000P/MC. Signed-off-by: Mario Rossi Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab commit ce700b4e2f4b41f79815ee3a6c4f9b9390b2af36 Author: Mauro Carvalho Chehab Date: Wed Dec 20 09:53:09 2006 -0300 V4L/DVB (4993): Updated cardlist to reflect the newly added saa7134 board Signed-off-by: Mauro Carvalho Chehab commit d1158f469cb2bda369475e2bb622080dace25473 Author: Steven Walter Date: Wed Dec 20 09:29:09 2006 -0300 V4L/DVB (4989): Saa7134: add support for the Encore ENL-TV Add a board definition for the Encore ENL-TV card, and adds its PCI subdevice to the ID table. Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit d84e2bdca6e168557639b29c9244cbcf2500fe21 Author: Hans Verkuil Date: Wed Dec 20 06:50:18 2006 -0300 V4L/DVB (4987): Improve cx2341x documentation Document the program index table format, removed unused interrupt documentation and improve the documentation regarding the audio mode (stereo/joint/dual/mono). Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 75558ab92dc95c3b5a99df7c77e95a6e8484e05c Author: Hans Verkuil Date: Mon Dec 18 22:52:21 2006 -0300 V4L/DVB (4986): Removed unimplemented cx2341x API commands The commands CX2341X_DEC_SET_AUDIO_OUTPUT, CX2341X_DEC_SET_AV_DELAY and CX2341X_ENC_SET_3_2_PULLDOWN are not implemented in the Conexant firmware. So these commands are removed. This also means that the V4L2_CID_MPEG_VIDEO_PULLDOWN control in cx2341x.c and pvrusb2-hdw.c is removed. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 20a919f7960df1c0bf1cb4f637149ed4b6bc9ec3 Author: Hans Verkuil Date: Mon Dec 18 22:43:36 2006 -0300 V4L/DVB (4985): Update cx2341x documentation. Removed a few unimplemented commands. Added a note for a few fields that are not implemented in the firmware, and clarified several issues around reverse playback. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit e12ceaf4962d804320d639faed1da61e2cb85723 Author: Hans Verkuil Date: Mon Dec 18 13:06:30 2006 -0300 V4L/DVB (4981): Update cx2341x documentation. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 8387c66c7f06842b06222235a3749b31448d6637 Author: Hermann Pitton Date: Sun Dec 10 21:08:03 2006 -0300 V4L/DVB (4962): Add the Composite over S-Video input on the Asus P7131 Dual This makes a second CVBS input available. Signed-off-by: Hermann Pitton Signed-off-by: Hartmut Hackmann Signed-off-by: Mauro Carvalho Chehab commit 9160723ed620f31bf38332dee02041b1cb4c9967 Author: Hermann Pitton Date: Thu Dec 7 21:45:28 2006 -0300 V4L/DVB (4961): Add support for the ASUS P7131 remote control Besides adding the board specific code, this patch moves the RC5 decoding code from bt8xx to ir-functions.c to make it available for all drivers. Signed-off-by: Marc Fargas Signed-off-by: Hermann Pitton Signed-off-by: Hartmut Hackmann Signed-off-by: Mauro Carvalho Chehab commit 2ed0e2435939c8199abd3578a3a4991c5a7d5ca8 Author: Guy Martin Date: Wed Feb 21 15:32:57 2007 +0000 [PARISC] Add missing statfs64 and fstatfs64 syscalls Signed-off-by: Guy Martin commit 16728da99861bdb6e44f066d536287990e752d7b Author: Alan Date: Tue Feb 20 17:51:51 2007 +0000 pata_sl82c105: remove un-needed code paths Remove the DMA setup function. As pointed out by Sergey we set the actual DMA clock timing in set_dmamode so we don't actually need to do anything with it at set up time, but just leave the PIO timings loaded. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit cb0e34ba59a1b883009d69673179c6cde70acc25 Author: Alan Date: Tue Feb 20 17:49:25 2007 +0000 pata_sil680: Assorted fixes Correct iordy handling and DMA bit flag handling. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit b7939b14d8dd9cb4a3ebfaea1416695e4b6d4a42 Author: Alan Date: Tue Feb 20 17:47:37 2007 +0000 pata_oldpiix: Call both PIO and DMA setup functions on switch as they are called on set up Keeps the behaviour consistent and easier to understand. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 3ddcc591e3501e49037f9ace9340697a9a414a5e Author: Alan Date: Tue Feb 20 17:45:55 2007 +0000 pata_ixp4xx: Fix up set_mode() function and display Configured for PIO info Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit aa6de4942c25f05cb7f4aa8efa20c5ec0884d8f1 Author: Alan Date: Tue Feb 20 17:44:25 2007 +0000 pata_cs5520: suspend/resume The CS5520 isn't just an ATA controller and we must not pci_disable_device it as it turns into pci_disable_computer. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit e852f7054df7cf4be686d8cff9c33333a36b59e9 Author: Alan Date: Tue Feb 20 17:35:43 2007 +0000 pata: Display Configuring .. lines for devices with private set_mode methods We can't specify which mode in the cases below but we can at least say PIO and look consistent with the default. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 44877b4e22f391d39c6589412106a3668e81a05b Author: Tejun Heo Date: Wed Feb 21 01:06:51 2007 +0900 libata: s/ap->id/ap->print_id/g ata_port has two different id fields - id and port_no. id is system-wide 1-based unique id for the port while port_no is 0-based host-wide port number. The former is primarily used to identify the ATA port to the user in printk messages while the latter is used in various places in libata core and LLDs to index the port inside the host. The two fields feel quite similar and sometimes ap->id is used in place of ap->port_no, which is very difficult to spot. This patch renames ap->id to ap->print_id to reduce the possibility of such bugs. Some printk messages are adjusted such that id string (ata%u[.%u]) isn't printed twice and/or to use ata_*_printk() instead of hardcoded id format. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 5ce0cf6fafd02fb4c43fc1a1bee6069d6c0a36b1 Author: Robert Hancock Date: Mon Feb 19 19:03:27 2007 -0600 sata_nv: enable hotplug interrupt and fix some readl/readw mismatches We already have code that handles hotplug interrupt indications in ADMA mode, this turns on the control flag that actually enables these interrupts. Also fixes some cases in the same functions where a 16-bit register was read using a readl instead of a readw. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 721449bf0d51213fe3abf0ac3e3561ef9ea7827a Author: Robert Hancock Date: Mon Feb 19 19:03:08 2007 -0600 sata_nv: Use notifier for completion checks The hardware provides us a notifier register that indicates what command tags have completed. Use this to determine which CPBs to check, rather than blindly checking all active CPBs. This should provide a minor performance win, since if the controller has touched some of these incomplete CPBs, accessing them will likely result in a cache miss. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit ac3d6b869f1f2d8ee1bf7b0ba45cd7daed9b9513 Author: Robert Hancock Date: Mon Feb 19 19:02:46 2007 -0600 sata_nv: Cleanup taskfile setup This edits the taskfile setup to more closely match the way that libata sends the taskfile for other controllers. This avoids putting taskfile writes into the CPB buffer that are not needed according to the taskfile flags. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 41949ed5c11a9d6e7af1afd62957d8d1988c803e Author: Robert Hancock Date: Mon Feb 19 19:02:27 2007 -0600 sata_nv: cleanup CPB and APRD initialization Clean up the initialization of the CPB and APRD structures so that we strictly follow the rules for ordering of writes to the CPB flags and response flags, and prevent duplicate initialization. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 08af7414786a3f35b686f68ada3de0b202c03d8c Author: Robert Hancock Date: Mon Feb 19 19:01:59 2007 -0600 sata_nv: Add CPB register info to error_handler output When error handling occurs with pending commands, output the contents of the next CPB count and next CPB index registers as well as the others, since these may be useful for debugging. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 9dd6fa3231f9c6003080d189c94599e6a6b97dbf Author: Magnus Damm Date: Sun Feb 18 17:53:32 2007 +0900 libata: Remove duplicate dma blacklist entry libata: Remove duplicate dma blacklist entry The exact same entry is already present. Signed-off-by: Magnus Damm Signed-off-by: Jeff Garzik commit ed2a6e4aca90e1622fc07d672b9b89721eee9af8 Author: Magnus Damm Date: Sun Feb 18 17:52:25 2007 +0900 pata_pcmcia: Update device table pata_pcmcia: Update device table Add CFA devices from I-O Data, Mitsubishi and Viking. Add SanDisk comment. Signed-off-by: Magnus Damm Signed-off-by: Jeff Garzik commit e1be5d73e07dd6015b6ea255a36aae3b61b7b054 Author: Tejun Heo Date: Tue Feb 20 20:01:53 2007 +0900 sata_via: fix resource-managed iomap conversion Conversion to resource-managed iomap was buggy causing init failures on both vt6420 and 6421 - BAR5 wasn't mapped for both controllers while on vt6420 sata_via tried to map BAR0-4 twice. Fix it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit c3c70c443c2ef1fce31f201a93780c884b903993 Author: Tejun Heo Date: Tue Feb 20 23:31:22 2007 +0900 libata: fix ata_scsi_change_queue_depth() Fix ata_scsi_change_queue_depth() such that... * NCQ on/off is exactly determined using the same logic as the issue path. * queue depth is adjusted to 1 if NCQ is not enabled. * -EINVAL is returned if requested action is ignored due to limitations. This fixes the bug which allows queue depth to be increased on blacklisted NCQ hosts/devices. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit fcf1bf1584647f9fd864c193fee81840c4c5ce41 Author: Tejun Heo Date: Tue Feb 20 23:27:06 2007 +0900 libata: fix ata_scmd_need_defer() Fix ata_scmd_need_defer() such that... * whether NCQ is used or not is exactly determined using the same criteria as the issue path. * defer-check is performed in all cases. This fixes race condition where turning off NCQ on the fly causes non-NCQ commands sneak into NCQ phase. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 6d1245bf294e9ea65b3717be9fa0338bfb6ff6c9 Author: Tejun Heo Date: Tue Feb 20 23:20:27 2007 +0900 libata: separate out ata_ncq_enabled() Separate out ata_ncq_enabled(). Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 4c90d9717ae27dddf4b02ed7d683e502b539cd1c Author: Tejun Heo Date: Tue Feb 20 18:14:48 2007 +0900 libata: disable pdev on all suspend events libata used disable pdev only on PM_EVENT_SUSPEND while re-enable pdev unconditionally. This was okay before ref-counted pdev enable update but it now makes the pdev pinned after swsusp cycle (enabled twice but disabled only once) and devres sanity check whines about it. Fix it by unconditionally disabling pdev on all suspend events. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 5e5c74a5e11d1e2a99d03132cc6c4455016db6c2 Author: Robert Hancock Date: Mon Feb 19 18:42:30 2007 -0600 sata_nv: delay on switching between NCQ and non-NCQ commands This patch appears to solve some problems with commands timing out in cases where an NCQ command is immediately followed by a non-NCQ command (or possibly vice versa). This is a rather ugly solution, but until we know more about why this is needed, this is about all we can do. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit cc0759103ff00c3dfc459059af4a1cfb0e865841 Author: Jeff Garzik Date: Tue Feb 20 10:59:13 2007 -0500 libata: Fix Cell SATA driver dependencies The driver requires in_be32(), and so should not be built on many PCI platforms. Signed-off-by: Jeff Garzik commit 4d05447ec702364b8a2aebb4d625b16479268575 Author: Tejun Heo Date: Sun Feb 18 02:24:37 2007 +0900 libata: fix probe_ent alloc/free bugs ata_probe_ent_alloc() had a temporary hack such that devm_kzalloc() was used for allocation if devres had been previously initialized on the device; otherwise, plain kzalloc() was used. This was to make the code useable from both the old and devres-aware libata drivers during transition. This hack made ata_sas_port_alloc() unable to determine how the probe_ent is allocated, causing double free in some cases. Remove the now-unneeded hack and make ata_sas_port_alloc() use devm_kfree(). Signed-off-by: Tejun Heo Cc: James Bottomley Signed-off-by: Jeff Garzik commit 8d9db2d2fbae9e05022825c32f86e00c8e342860 Author: Randy Dunlap Date: Fri Feb 16 01:40:06 2007 -0800 SATA: use NULL for ptrs Fix sparse warnings in SATA: drivers/ata/sata_sil.c:342:9: warning: Using plain integer as NULL pointer drivers/ata/sata_mv.c:2056:55: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 2cb27853b7cbf0c908444e25c61b62fa336b88cd Author: Robert Hancock Date: Sun Feb 11 18:34:44 2007 -0600 sata_nv: add back some verbosity into ADMA error_handler Some debug output in the ADMA error_handler function was removed recently, but it may be useful in certain cases, like NCQ commands timing out. Add it back in, but make it a bit more intelligent so that it only prints if command(s) are active and only prints the CPBs for those commands. That way it won't spew at inappropriate times like suspend/resume. Signed-off-by: Robert Hancock Signed-off-by: Jeff Garzik commit 4bb64fb98168981d3e5a0e790c077ff511768e84 Author: Alan Date: Fri Feb 16 01:40:04 2007 -0800 SiS warning fixes Somehow the sis_info133 external definition ended up in libata.h and that was included by both drivers. However libata.h contains libata-* specific internals and clashing defines like DRV_NAME so this makes a mess. Move the extern into the C file and remove the warnings [akpm@linux-foundation.org: create sis.h to avoid extern-decl-in-C] Signed-off-by: Alan Cox Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 2b06719153089aa8f5ac577f15f8aa8e5b5fe357 Author: Mark Lord Date: Wed Feb 7 11:40:12 2007 -0500 libata bugfix: HDIO_DRIVE_TASK I was trying to use HDIO_DRIVE_TASK for something today, and discovered that the libata implementation does not copy over the upper four LBA bits from args[6]. This is serious, as any tools using this ioctl would have their commands applied to the wrong sectors on the drive, possibly resulting in disk corruption. Ideally, newer apps should use SG_IO/ATA_16 directly, avoiding this bug. But with libata poised to displace drivers/ide, better compatibility here is a must. This patch fixes libata to use the upper four LBA bits passed in from the ioctl. The original drivers/ide implementation copies over all bits except for the master/slave select bit. With this patch, libata will copy only the four high-order LBA bits, just in case there are assumptions elsewhere in libata (?). Signed-Off-By: Mark Lord Signed-off-by: Jeff Garzik commit 909706a2477a92b6e0f3083ed4b944cb1d09acfa Author: Tejun Heo Date: Fri Feb 2 16:22:31 2007 +0900 libata: kill ATA_DNXFER_ANY ATA_DNXFER_ANY isn't used anymore. Kill it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 7d47e8d4d4fb0c3d3bdc706759e70d5453b61ec3 Author: Tejun Heo Date: Fri Feb 2 16:22:31 2007 +0900 libata: put some intelligence into EH speed down sequence The current EH speed down code is more of a proof that the EH framework is capable of adjusting transfer speed in response to error. This patch puts some intelligence into EH speed down sequence. The rules are.. * If there have been more than three timeout, HSM violation or unclassified DEV errors for known supported commands during last 10 mins, NCQ is turned off. * If there have been more than three timeout or HSM violation for known supported command, transfer mode is slowed down. If DMA is active, it is first slowered by one grade (e.g. UDMA133->100). If that doesn't help, it's slowered to 40c limit (UDMA33). If PIO is active, it's slowered by one grade first. If that doesn't help, PIO0 is forced. Note that this rule does not change transfer mode. DMA is never degraded into PIO by this rule. * If there have been more than ten ATA bus, timeout, HSM violation or unclassified device errors for known supported commands && speeding down DMA mode didn't help, the device is forced into PIO mode. Note that this rule is considered only for PATA devices and is pretty difficult to trigger. One error can only trigger one rule at a time. After a rule is triggered, error history is cleared such that the next speed down happens only after some number of errors are accumulated. This makes sense because now speed down is done in bigger stride. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 4ae72a1e469a3bcfd3c1f77dac62392c489bf9ca Author: Tejun Heo Date: Fri Feb 2 16:22:30 2007 +0900 libata: improve probe failure handling * Move forcing device to PIO0 on device disable into ata_dev_disable(). This makes both old and new EHs act the same way. * Speed down only PIO mode on probe failure. All commands used during probing are PIO commands. There's no point in speeding down DMA. * Retry at least once after -ENODEV. Some devices report garbled IDENTIFY data after certain events. This shouldn't cause device detach and re-attach. * Rearrange EH failure path for simplicity. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 458337dbb120d33f326e2b19d54eca8cf179b5c0 Author: Tejun Heo Date: Fri Feb 2 16:22:30 2007 +0900 libata: improve ata_down_xfermask_limit() Make ata_down_xfermask_limit() accept @sel instead of @force_pio0. @sel selects how the xfermask limit will be adjusted. The following selectors are defined. * ATA_DNXFER_PIO : only speed down PIO * ATA_DNXFER_DMA : only speed down DMA, don't cause transfer mode change * ATA_DNXFER_40C : apply 40c cable limit * ATA_DNXFER_FORCE_PIO : force PIO * ATA_DNXFER_FORCE_PIO0 : force PIO0 (same as original with @force_pio0 == 1) * ATA_DNXFER_ANY : same as original with @force_pio0 == 0 Currently, only ANY and FORCE_PIO0 are used to maintain the original behavior. Other selectors will be used later to improve EH speed down sequence. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit a619f981b477035027dd27dfbee6148b4cd4a83c Author: Akira Iguchi Date: Fri Jan 26 16:28:18 2007 +0900 libata: PATA driver for Celleb This is the patch for PATA controller of Celleb. This driver uses the managed iomap (devres). Because this driver needs special taskfile accesses, there is a copy of ata_std_softreset(). ata_dev_try_classify() is exported so that it can be used in this function. Signed-off-by: Kou Ishizaki Signed-off-by: Akira Iguchi Signed-off-by: Jeff Garzik commit 3a5f10e3708e00c406f154bae412652ec3eb2b48 Author: Mathieu Desnoyers Date: Wed Feb 21 10:55:59 2007 +0100 [S390] add atomic64_xchg to s390 Signed-off-by: Mathieu Desnoyers Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Martin Schwidefsky commit de61c9341ba144f6f21fdaae48ffbd811fc6637f Author: Mathieu Desnoyers Date: Wed Feb 21 10:55:55 2007 +0100 [S390] local_t cleanup : use asm-generic/local.h. Signed-off-by: Mathieu Desnoyers Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Martin Schwidefsky commit 4562c9fffc3f8fca99f22671ad497aedd1737a5e Author: Michael Holzheu Date: Wed Feb 21 10:55:46 2007 +0100 [S390] Replace $(ARCH) macros in Makefile Since $(ARCH) is always "s390" we can replace it with "s390". Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 615b04b301fd4e1b7680a498b873c4ae9baad92f Author: Heiko Carstens Date: Wed Feb 21 10:55:37 2007 +0100 [S390] nss: Free unused memory in kernel image. With CONFIG_SHARED_KERNEL the kernel text segment that might be in a read only memory sections starts at 1MB. Memory between 0x12000 and 0x100000 is unused then. Free this, so we have appr. an extra MB of memory available. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 229d9c6dfb2900559449575a56dc8abcaf0bce9d Author: Heiko Carstens Date: Wed Feb 21 10:55:29 2007 +0100 [S390] bss section clearing. Clear only memory from __bss_start to __bss_stop when clearing the bss section. Not until _end, which currently happens to be the same. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 2b9329367504d19c7c166c5aec557d070caccd70 Author: Michael Holzheu Date: Wed Feb 21 10:55:24 2007 +0100 [S390] Remove BUG() statement To avoid ugly warings for older gccs, we replace BUG() with "return NULL", which is just as well. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 46b05d2617c8efd8ec6b19acd2c95541a0118c13 Author: Michael Holzheu Date: Wed Feb 21 10:55:21 2007 +0100 [S390] New header file ipl.h Setup.h has been misused for ipl related stuff in the past. We now move everything, which has to do with ipl and reipl to a new header file named "ipl.h". Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 72960a02c270950253126ee8b339afd400f55273 Author: Michael Holzheu Date: Wed Feb 21 10:55:18 2007 +0100 [S390] New get_cpu_id() inline assembly Replace two stidp inline assemblies with one global implementation. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 6c732de2d3673e28c6a976c98ee6ba4d197a919a Author: Heiko Carstens Date: Wed Feb 21 10:55:15 2007 +0100 [S390] etr: Add barrier() to etr_sync_cpu_start(). Force reading of *in_sync in while loop. Loops where the content that is checked for is changed by a different cpu always should have some sort of barrier() semantics. Otherwise this might lead to very subtle bugs. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 118bcd31b309d12638f67729d5d96d4974750249 Author: Heiko Carstens Date: Wed Feb 21 10:55:12 2007 +0100 [S390] Optional ZONE_DMA for s390. Disable ZONE_DMA on 31-bit. All memory is addressable by all devices and we do not need any special memory pool. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 63db6e8d41c703c26a3ce767740a9c8484765a74 Author: Jan Glauber Date: Wed Feb 21 10:55:06 2007 +0100 [S390] smp_call_function cleanup Introduce __smp_call_function_map which calls a function on all cpus given with a cpumask_t. Use it to implement smp_call_function and smp_call_function_on. Replace smp_ext_bitcall_others with smp_ext_bitcall and a for_each_cpu_mask loop. Use a cpumask_t instead of an atomic_t for cpu counting and print a warning if preempt is on in __smp_call_function_map(). Signed-off-by: Jan Glauber Signed-off-by: Martin Schwidefsky commit 188596faf788f2881a0eb316f2604832df058ea8 Author: Jan Glauber Date: Wed Feb 21 10:55:03 2007 +0100 [S390] fix non-smp compile. Fix compile of sclp_quiesce for CONFIG_SMP=n. Signed-off-by: Jan Glauber Signed-off-by: Martin Schwidefsky commit bf6f6aa46feada857a52cb67d99a7c2fe4a70e87 Author: Martin Schwidefsky Date: Wed Feb 21 10:55:00 2007 +0100 [S390] prevent softirqs if delay is called disabled The new delay implementation uses the clock comparator and an external interrupt even if it is called disabled for interrupts. To do this all external interrupt source except clock comparator are switched of before enabling external interrupts. The external interrupt at the end of the delay period may not execute softirqs or we can end up in a dead-lock. Signed-off-by: Martin Schwidefsky commit 489c80ba8aa9dde8244897cba33a9372c897e531 Author: Martin Schwidefsky Date: Wed Feb 21 10:54:57 2007 +0100 [S390] update default configuration Signed-off-by: Martin Schwidefsky commit 1812063ba3365aeb5eb9117861a7fb05432f7ed0 Author: Michael S. Tsirkin Date: Tue Feb 20 20:17:55 2007 +0200 IPoIB/cm: Improve small message bandwidth Avoid the overhead of freeing/reallocating and mapping/unmapping for DMA pages that have not been written to by hardware. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit c9add6ec5678a17345c2516ea3d4b26d8703be8b Author: Adrian Bunk Date: Tue Feb 20 01:02:13 2007 +0100 IB/mthca: Make 2 functions static This patch makes the needlessly global functions mthca_tavor_write_mtt_seg() and mthca_arbel_write_mtt_seg() static. Signed-off-by: Adrian Bunk Signed-off-by: Roland Dreier commit b44755cfaa72e7ed3d831a946bb4e7dfe7548966 Author: Adrian Bunk Date: Tue Feb 20 01:07:13 2007 +0100 {rd,wr}msr_on_cpu SMP=n optimization Let's save a few bytes in the CONFIG_SMP=n case. Signed-off-by: Adrian Bunk Signed-off-by: Dave Jones commit 48ac3271e52d23ee987da93f80d20f6bec8e6717 Author: Oleg Nesterov Date: Mon Feb 19 00:44:07 2007 +0300 [CPUFREQ] cpufreq_ondemand.c: don't use _WORK_NAR Looks like dbs_timer() is very careful wrt per_cpu(cpu_dbs_info), and it doesn't need the help of WORK_STRUCT_NOAUTOREL. Signed-off-by: Oleg Nesterov Acked-By: David Howells Signed-off-by: Dave Jones commit b077ffb3b767c3efb44d00b998385a9cb127255c Author: Alexey Dobriyan Date: Fri Feb 16 01:48:11 2007 -0800 rdmsr_on_cpu, wrmsr_on_cpu There was OpenVZ specific bug rendering some cpufreq drivers unusable on SMP. In short, when cpufreq code thinks it confined itself to needed cpu by means of set_cpus_allowed() to execute rdmsr, some "virtual cpu" feature can migrate process to anywhere. This triggers bugons and does wrong things in general. This got fixed by introducing rdmsr_on_cpu and wrmsr_on_cpu executing rdmsr and wrmsr on given physical cpu by means of smp_call_function_single(). Dave Jones mentioned cpufreq might be not only user of rdmsr_on_cpu() and wrmsr_on_cpu(), so I'm putting them into arch/{i386,x86_64}/lib/ . Signed-off-by: Alexey Dobriyan Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Dave Jones commit 22f7bb0329a506f2fd61c14ce3c8bc632e08c732 Author: Thomas Renninger Date: Fri Feb 16 08:44:43 2007 +0100 [CPUFREQ] Revert default on deprecated config X86_SPEEDSTEP_CENTRINO_ACPI Revert default on deprecated config X86_SPEEDSTEP_CENTRINO_ACPI Signed-off-by: Thomas Renninger Signed-off-by: Dave Jones arch/i386/kernel/cpu/cpufreq/Kconfig | 1 - arch/x86_64/kernel/cpufreq/Kconfig | 1 - 2 files changed, 2 deletions(-) commit a5220b463e957c9a434295503cdf635d93454d78 Author: Zwane Mwaikambo Date: Thu Feb 15 23:09:00 2007 -0800 [AGPGART] Fix modular agpgart ia64 allmodconfig My previous compat AGP patch broke modular AGPGART. Test built on; i386 CONFIG_AGP=y,m x86_64 CONFIG_AGP=y ia64 CONFIG_AGP=m Signed-off-by: Zwane Mwaikambo Cc: Kyle McMartin Signed-off-by: Andrew Morton Signed-off-by: Dave Jones commit 04532c4f55ef4b577c59744f789d5b1add435503 Author: Kyle McMartin Date: Sun Feb 18 19:35:45 2007 +0000 Revert "[PARISC] Optimize TLB flush on SMP systems" This reverts commit 592ac93a607109e0643da6c23ae07ac749e973b1 which causes SMP machines with maxcpus > 1 to fail to boot... commit f6744bdd7346dcdf94b9a7ac6fb820693b2724cd Author: Carlos O'Donell Jr Date: Fri Feb 16 10:54:10 2007 -0500 [PARISC] Compat signal fixes for 64-bit parisc In copy_siginfo_from_user32: Use compat_uptr_t. Use compat_ptr(). In copy_siginfo_to_user32: Use compat_int_t. Use ptr_to_compat(). The sigevent_t structure has a 64-bit si_ptr field that when copied to a 32-bit si_ptr will copy the wrong word. For the compat copy use the si_int field instead. Signed-off-by: Carlos O'Donell Signed-off-by: Kyle McMartin commit 1e67685b1b654138a20a4db487cf12c3fca968f2 Author: Carlos O'Donell Jr Date: Fri Feb 16 00:25:10 2007 -0500 [PARISC] Reorder syscalls to match unistd.h Move migrate_pages into the same position as specified in unistd.h. This fixes migrate_pages, pselect6 and ppoll syscalls. Signed-off-by: Carlos O'Donell Signed-off-by: Kyle McMartin commit c3de4b38153a201cfc8561abb093a1b482fd3abb Author: Matthew Wilcox Date: Fri Feb 9 08:11:47 2007 -0700 Revert "[PATCH] make kernel/signal.c:kill_proc_info() static" This reverts commit d3228a887cae75ef2b8b1211c31c539bef5a5698. DeBunk this code. We need it for compat_sys_rt_sigqueueinfo. Signed-off-by: Kyle McMartin commit d104f11c3989b0bbe1216f6ad663d0ed91fb7bd8 Author: Kyle McMartin Date: Thu Feb 8 19:38:54 2007 -0500 [PARISC] fix sys_rt_sigqueueinfo the parisc affecting portion of the patch was inadvertantly reverted a while ago. Signed-off-by: Kyle McMartin commit 992378a06413116c6a7cf2ad597e096589e531aa Author: Helge Deller Date: Sun Jan 28 17:06:12 2007 +0100 [PARISC] fix section mismatch warnings in harmony sound driver fix for two warnings: - Section mismatch: reference to .init.text:snd_harmony_mixer_init from .text.snd_harmony_probe after 'snd_harmony_probe' - Section mismatch: reference to .init.text:snd_harmony_mixer_reset from .text.snd_harmony_mixer_init after 'snd_harmony_mixer_init' Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit bcc0e04c5c749f0cd2e172815945993e41ad4a01 Author: Helge Deller Date: Sun Jan 28 16:58:43 2007 +0100 [PARISC] do not export get_register/set_register - noticed by Randolph Chung (tausq) Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 79793455eba539a3f0ed8d7fd9eef41da0c27e7d Author: Helge Deller Date: Sun Jan 28 16:43:32 2007 +0100 [PARISC] add ENTRY()/ENDPROC() and simplify assembly of HP/UX emulation code Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 513e7ecd695a4c0f95b9aa86c03ec9b7d2d09e03 Author: Helge Deller Date: Sun Jan 28 15:09:20 2007 +0100 [PARISC] convert to use CONFIG_64BIT instead of __LP64__ Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit a8f44e3889b686813926b288bd4e51a0cf17d2c7 Author: Helge Deller Date: Sun Jan 28 14:58:52 2007 +0100 [PARISC] use CONFIG_64BIT instead of __LP64__ - additionally update my copyright timestamps Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 0b3d643f9ead9b5141dedbb2d1b06ce15469fc4a Author: Helge Deller Date: Sun Jan 28 14:52:57 2007 +0100 [PARISC] add ASM_EXCEPTIONTABLE_ENTRY() macro - this macro unifies the code to add exception table entries - additionally use ENTRY()/ENDPROC() at more places Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 8e9e9844b44dd9f855d824d035b3097b199e44ed Author: Helge Deller Date: Wed Jan 24 22:36:32 2007 +0100 [PARISC] more ENTRY(), ENDPROC(), END() conversions Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit b288a8f79ac6028940ba60fb6cc61ed134632770 Author: Helge Deller Date: Tue Jan 23 23:32:10 2007 +0100 [PARISC] fix ENTRY() and ENDPROC() for 64bit-parisc Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 2f75c12c663fc4bf198459d3f932ce3896cb126f Author: Helge Deller Date: Tue Jan 23 21:24:20 2007 +0100 [PARISC] Fixes /proc/cpuinfo cache output on B160L Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit c5e7655297b5de47a279abcdcd1065690aa25c56 Author: Helge Deller Date: Tue Jan 23 20:50:59 2007 +0100 [PARISC] implement standard ENTRY(), END() and ENDPROC() Use the macros in entry.S Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 430a502abec76fd2fd9fd1df7506ccf911a6d6d2 Author: Kyle McMartin Date: Mon Jan 15 12:29:25 2007 -0500 [PARISC] kill ENTRY_SYS_CPUS it's unlikely iCOD will ever happen on parisc-linux now... ;-) Signed-off-by: Kyle McMartin commit 5492a0f001bdf5435318edb0a68eab5f16995bff Author: Kyle McMartin Date: Mon Jan 15 12:23:03 2007 -0500 [PARISC] clean up debugging printks in smp.c Signed-off-by: Kyle McMartin commit 2b163b71e6d4471cae74037cb680e885eafc8d64 Author: Kyle McMartin Date: Mon Jan 15 00:36:26 2007 -0500 [PARISC] factor syscall_restart code out of do_signal looks better this way... ;) Signed-off-by: Kyle McMartin commit f354ef8abe5d6d967c023b21980241e6f883a698 Author: Kyle McMartin Date: Sat Jan 13 15:02:09 2007 -0500 [PARISC] rename *_ANY_ID to PA_*_ANY_ID in the exported header Signed-off-by: Kyle McMartin commit f3cf2673358e4221afbb59721a8580a8f35479a5 Author: Kyle McMartin Date: Sat Jan 13 14:58:21 2007 -0500 [PARISC] generate modalias for parisc_device_id tables Signed-off-by: Kyle McMartin commit f2439b262ab11717c892efd5fdacf43f65f2a422 Author: Kyle McMartin Date: Sat Jan 13 14:57:25 2007 -0500 [PARISC] move parisc_device_id definition to mod_devicetable.h Signed-off-by: Kyle McMartin commit a04b0605384e019c6fd77cfd4e4ffce8eb50785f Author: Kyle McMartin Date: Sat Jan 13 14:56:50 2007 -0500 [PARISC] display parisc device modalias in sysfs Signed-off-by: Kyle McMartin commit 3fe4c55ebc440159c49efe2e9464ac301b390913 Author: Helge Deller Date: Tue Jan 9 19:57:38 2007 +0100 [PARISC] use less assembler statements in syscall path Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 4650f0a5832033c78690811aa9b171764c11fc0f Author: Kyle McMartin Date: Mon Jan 8 16:28:06 2007 -0500 [PARISC] Add TIF_RESTORE_SIGMASK support And unmask the pselect6/ppoll system calls. Signed-off-by: Kyle McMartin commit 0bbdac0897a48f415eb788bf3263c92bd5e97ffb Author: Helge Deller Date: Sun Jan 7 16:27:27 2007 +0100 [PARISC] detect recursive kernel crash earlier Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 6e16d9409e1f08594587855d2a280c391ba985ff Author: Helge Deller Date: Sun Jan 7 16:07:48 2007 +0100 [PARISC] Convert soft power switch driver to kthread And remove it's reference in time.c. Allow lcd_print() to take a const char *. Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 324c7e6545539d2f7736be930d4833deb32b1b95 Author: Helge Deller Date: Wed Jan 3 19:25:37 2007 +0100 [PARISC] disable cr16 clocksource when multiple CPUs are online Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 12df29b64c782133afea8cacc6acdad68a6b7d17 Author: Helge Deller Date: Tue Jan 2 23:54:16 2007 +0100 [PARISC] GENERIC_TIME patchset for parisc Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit df47b4386a473eba87095e6dea8046762434817d Author: Helge Deller Date: Mon Jan 1 21:47:21 2007 +0100 [PARISC] a and b in "break a,b" message were swapped And clean up 32/64bit branch assembler statements Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 0c2de3c6c481ba6a537f66c06a55bd5be5a2c99d Author: Kyle McMartin Date: Sat Dec 30 19:24:37 2006 -0500 [PARISC] use fls_long in irq.c Signed-off-by: Kyle McMartin commit c4ba7a2e44188ef22b041515c1198669ed1cc103 Author: Helge Deller Date: Wed Dec 27 23:23:51 2006 +0100 [PARISC] Use fstatat64 instead of newfstatat syscall Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 645d11d4baa56c6830daac46a92d63b7093cbc09 Author: Matthew Wilcox Date: Sun Dec 24 19:28:42 2006 -0700 [PARISC] lba_pci format warnings Fix resource_size_t warnings in a variety of ways Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit 19dd705f4e37ff09a66cef8c6d79416ae249e1a2 Author: Helge Deller Date: Sat Dec 23 00:12:02 2006 +0100 [PARISC] add missing syscalls for vmsplice, move_pages, getcpu & epoll_pwait Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit bd83bcffb2a582ddac0b463153a4c1fda4335273 Author: Helge Deller Date: Thu Dec 21 21:02:00 2006 +0100 [PARISC] dump stack backtrace on BUG() and add syslog-levels to printk()s Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit ca72a223278483e62530ca9e5b4f9b39318868ea Author: Helge Deller Date: Wed Dec 20 00:35:57 2006 +0100 [PARISC] fix fixup declarations for 32bit and use CONFIG_64BIT Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 94a1981df056e349b926164915894436acdb8dd5 Author: Helge Deller Date: Tue Dec 19 22:33:58 2006 +0100 [PARISC] whitespace cleanups and unify 32/64bit user-access assembler inlines Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit e38287647467188d8b8d1adadc6ab26267758151 Author: Helge Deller Date: Sat Dec 16 17:48:26 2006 +0100 [PARISC] fix build for WARN_ON() when CONFIG_DEBUG_BUGVERBOSE=y Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 6891f8a1135b964f8ef30521d1473d5d137af0fa Author: Helge Deller Date: Sat Dec 16 16:16:50 2006 +0100 [PARISC] Generic BUG Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 9f15c82686251cd2b97ac6859de62959d3c4afe1 Author: Matthew Wilcox Date: Fri Dec 15 22:47:47 2006 -0700 [PARISC] Fix show_stack() when we can't kmalloc show_stack() was calling kzalloc() to allocate a struct pt_regs. This meant that *really* early stack dumps would cause a null pointer dereference. x86_64 allocates its pt_regs on the stack, so do the same. Kyle actually committed this exact patch to CVS on Wed Jul 26 14:32:39 2006 UTC, and never moved it across to git. Bad Kyle. Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit e6fc0449be45a0e7520da6a17a64520743b9aa20 Author: Matthew Wilcox Date: Fri Dec 15 09:34:36 2006 -0700 [PARISC] Remove sched.h from uaccess.h on parisc Al Viro did this for x86-64 and reduced the number of dependencies on sched.h significantly. We had a couple of files which were relying on uaccess.h pulling in sched.h, so they need explicit dependencies added. Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit 3735313ad2e1515140683f0aee6e74aec103391d Author: Matthew Wilcox Date: Fri Dec 15 09:29:39 2006 -0700 [PARISC] Add prototypes for flush_user_dcache_range and flush_user_icache_range They're called from signal.c, so need to be prototyped Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit 959f4f13a3fe661ee2761c4dc9a70196fb8b1c12 Author: Kyle McMartin Date: Thu Dec 14 11:12:50 2006 -0500 [PARISC] "Fix" circular includes Use a really big hammer for the mean time to get things building again. Signed-off-by: Kyle McMartin commit af5917f0cd60715ed09874bb793d4f62ba692f47 Author: Matthew Wilcox Date: Thu Dec 14 09:00:25 2006 -0700 [PARISC] Only write to memory in test_and_set_bit/test_and_clear_bit if we're going to change the bit. Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit d6ce8626dbc7d277d29b62e31c24ce777c60546b Author: Randolph Chung Date: Tue Dec 12 05:51:54 2006 -0800 [PARISC] Clean up the cache and tlb headers No changes in functionality. Signed-off-by: Randolph Chung Signed-off-by: Kyle McMartin commit 592ac93a607109e0643da6c23ae07ac749e973b1 Author: Randolph Chung Date: Mon Dec 11 16:07:51 2006 -0800 [PARISC] Optimize TLB flush on SMP systems Signed-off-by: Randolph Chung Signed-off-by: Kyle McMartin commit 004c46b9e588edf549a39c5db54e37ebd0b3b3ad Author: Steve French Date: Sat Feb 17 04:34:13 2007 +0000 [CIFS] One line missing from previous commit Signed-off-by: Steve French commit 1b2b212603ceb47d60aff571dcfffc846fcfa336 Author: Steve French Date: Sat Feb 17 04:30:54 2007 +0000 [CIFS] mtime bounces from local to remote when cifs nocmtime i_flags overwritten atime flag was also overwritten. Noticed by Shirish when he was debugging an atime problem. Should help performance a bit too. cifs should be getting time stamps from the server (that was the original intent too) Signed-off-by: Steve French commit 2fea6f35c388c5add15d1492c7f4f3dac401717b Author: Florian Fainelli Date: Mon Feb 12 23:16:27 2007 +0000 leds: Add support for Cobalt Server front LED Add support for Cobalt Server front LED (MIPS) Signed-off-by: Florian Fainell Signed-off-by: Richard Purdie commit bd4009af4883451f55f57155e364f03f700c9ce8 Author: Arnaud Patard Date: Mon Feb 12 23:09:32 2007 +0000 leds: Add IPAQ h1940 LEDs support This patch adds the support for the IPAQ h1940 leds. In order to create the amber led (used for the battery charging), the red and green leds are set to the same default trigger. Due to hardware limitations, the blue led can only be set in blinking mode. Signed-off-by: Arnaud Patard Signed-off-by: Richard Purdie commit c14e894bd40868d6d1f2379705b68acf5288ba27 Author: Steve French Date: Thu Feb 15 01:33:18 2007 +0000 [CIFS] fix &&/& typo in cifs_setattr() Thanks to Dirk for pointing this out. Signed-off-by: Dirk Mueller Signed-off-by: Steve French commit c9e3ad6021e5eeb1c25cc4a573bd6427019a7a86 Author: Dave Kleikamp Date: Fri Feb 9 15:36:47 2007 -0600 JFS: Get rid of "may be used uninitialized" warnings Signed-off-by: Dave Kleikamp commit cb6efb39163bfb6bb6475fa7c8a5e08e44dbf14a Author: Mike Frysinger Date: Mon Feb 5 16:34:01 2007 -0800 [PATCH] use __u64 rather than u64 in parisc statfs structs Use __u64 rather than u64 in the struct statfs64 exported to userspace. Signed-off-by: Mike Frysinger Cc: Kyle McMartin Signed-off-by: Andrew Morton commit 742433b00b1c53d447a10f215cf887e4cb3406b5 Author: Matthew Wilcox Date: Mon Feb 5 16:34:00 2007 -0800 [PATCH] PA-RISC: Fix bogus warnings from modpost parisc and parisc64 seem to name sections a little differently from other targets. parisc64 gives spurious warnings like: WARNING: drivers/net/dummy.o - Section mismatch: reference to .init.text:dummy_setup from .data.rel.ro between '.LC1' (at offset 0x0) and '.LC6' and parisc gives spurious warnings like: WARNING: drivers/net/dummy.o - Section mismatch: reference to .init.text:dummy_setup from .rodata.cst4 between '.LC1' (at offset 0x0) and '.LC6' Given the other comments in modpost.c, it seems that the best solution is to move rodata down to the 'match at start of name' section and add .data.rel.ro to the 'match entire name' section. Cc: Sam Ravnborg Cc: Kyle McMartin Signed-off-by: Andrew Morton commit 29a1e1d2732c7bfa94465749285aea0f2ed12213 Author: Randy Dunlap Date: Mon Feb 5 16:33:59 2007 -0800 [PATCH] parisc: fix module_param iommu permission Fix/change module_param permissions parameter from an init value to a permission value. Signed-off-by: Randy Dunlap Cc: Kyle McMartin Cc: Matthew Wilcox Signed-off-by: Andrew Morton commit f41464fd84463dee89d53750cb74f6be30b31620 Author: Kyle McMartin Date: Mon Dec 11 21:03:18 2006 -0500 [PARISC] Fix thinko in cpu_data.lock removal Need to remove the initializer as well. Doh. Signed-off-by: Kyle McMartin commit 3c97b5e93faf9262407835046effc886efefa0a6 Author: Kyle McMartin Date: Thu Dec 7 23:52:27 2006 -0500 [PARISC] Move spinlock_t out of struct cpu_data Signed-off-by: Kyle McMartin commit 6858f3bf6e856d10a932d2d167d3f34e366042c6 Author: David Howells Date: Thu Dec 7 15:31:38 2006 +0000 [PATCH] WorkStruct: Fix up some PA-RISC work items Fix up some PA-RISC work items broken by the workstruct reduction. Signed-off-by: David Howells Signed-off-by: Kyle McMartin commit 8535e9dfd350637b37eb38edeb3eb61060d9c894 Author: Kyle McMartin Date: Thu Dec 7 21:46:11 2006 -0500 [PARISC] Remove duplicate PDC_PAT_CELL defines Signed-off-by: Kyle McMartin commit 915115ca40989d7efb62689b42fd05b55cd9ac07 Author: Mariusz Kozlowski Date: Thu Dec 7 21:37:11 2006 -0500 [PARISC] pdcpat remove extra brackets This patch removes extra brackets. Signed-off-by: Mariusz Kozlowski Signed-off-by: Kyle McMartin commit f5280cbe8348eb5824885f3144483cec858ec8ed Author: Grant Grundler Date: Fri Dec 1 10:06:39 2006 -0800 [PARISC] Remove GCC_VERSION usage as suggested by Adrian Bunk Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin commit 6de187ee17058e7798357994696774a5c2c8a6d9 Author: Matthew Wilcox Date: Sat Nov 18 10:05:16 2006 -0700 [PARISC] Make Lasi Ethernet depend on GSC only If we separate out LASI and ASP support later, we'll need this. Plus, this makes it consistent with the ncr700 scsi driver. Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit 93ea774bf2d7f2b04ce4c57dbae08b5fa877296d Author: Helge Deller Date: Sat Oct 14 22:11:32 2006 +0200 [PARISC] lasi_82596: use BUILD_BUG_ON() and constify static array Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit f8fc18a1323c3f4171a643d6ebf1597f4ba8bc53 Author: Helge Deller Date: Wed Oct 18 21:44:30 2006 +0200 [TRIVIAL] [PARISC] Fix module.c printk message, add missing ')' Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit be10815f0eeb9578f103b79f696da4548f39e8ad Author: Kyle McMartin Date: Sun Oct 15 22:40:27 2006 -0400 [PARISC] bloody printf fmt string warnings Signed-off-by: Kyle McMartin commit 3ee8f5e2cdd83b869f1b55e08eb26a87889b62f9 Author: Helge Deller Date: Sat Oct 14 20:02:15 2006 +0200 [PARISC] avoid compiler warnings when compiling 64bit Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 353dfe1290bdce1d40609e35ca6e42829623ff5f Author: Matthew Wilcox Date: Sat Nov 18 10:11:03 2006 -0700 [PARISC] Fix PCI bus numbering in the presence of Cardbus bridges Firmware ignores Cardbus bridges, so when Linux assigns bus numbers, it must override firmware's notion of what the busses are numbered. This is not sufficient to support the Cardbus bridge as there is also no interrupt routing table entry for them. Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit caa451f30aabba47e96355511a63456357074df6 Author: Kyle McMartin Date: Mon Oct 16 00:29:47 2006 -0400 [PARISC] Reserve 1GB of space for vmalloc/tmpalias space on parisc64 Signed-off-by: Kyle McMartin commit e51ec241784f516ad3a916a24ac936364cd10d63 Author: Matthew Wilcox Date: Sun Nov 5 15:24:48 2006 -0700 [PARISC] more sparse fixes 0/NULL changes, __user annotations, __iomem annotations Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit c2c4798e04ef836b12f5df04e7d1a1710cb39301 Author: Matthew Wilcox Date: Thu Oct 26 10:06:07 2006 -0600 [PARISC] sparse fixes 0/NULL, missing __user, missing __iomem, non-ANSI prototype. Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit 423c8ece2941a7ee9b003564d5aab789b9b330d8 Author: Matthew Wilcox Date: Tue Oct 24 13:49:54 2006 -0600 [PARISC] parisc-agp: Fix integer/pointer warning Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin commit 514fb84e1c5d12a0af808458bcae0c6463041f93 Author: Ryan Bradetich Date: Fri Nov 10 04:06:14 2006 +0000 [PARISC] [MUX] Get the hversion directly from the parisc_device Willy pointed out the hversion is already stored in the parisc_device, so I do not need to extract this information directly from the IODC data. Also by using the information in the parisc_device I can avoid re-reading the IODC data for the Muxes with specifed port counts. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 614254458452d09ea0376862160662f2a6075ab9 Author: Ryan Bradetich Date: Fri Nov 10 03:08:45 2006 +0000 [PARISC] [MUX] Correctly report the number of available ports This patch adds a new function to return the actual number of ports available. Some of the built-in Muxes return the number of supported ports, but not all of these port are available for use. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 752b940359089ee1bcaceeb5c62d626a92586ba2 Author: Ryan Bradetich Date: Thu Nov 9 04:45:08 2006 +0000 [PARISC] [MUX] Detect multiple cards in the correct order This patch follows the example of the 8250_gsc driver by probing for specific built-in Mux cards first. This allows the system to preserve the correct detection order with multiple Mux cards. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit c380f057269686e17db74d360c923663889ac702 Author: Ryan Bradetich Date: Sun Nov 5 01:21:44 2006 +0000 [PARISC] [MUX] Make the Serial Mux driver work as module The following updates are based off a patch from willy: * Removal of the mux_card list. * Add the mux_remove function. Other updates: * Re-organize the driver structure a bit to make the mux_init and mux_exit functions more symmetrical. * Added the del_timer. * Unregistered the console. At this point I can insmod, rmmod, and re-insmod the mux without any failures. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 9c6416ce6a9829ede1594403d19b22d23cf54e2e Author: Ryan Bradetich Date: Fri Nov 3 06:34:16 2006 +0000 [PARISC] [MUX] Claim resources for the Mux driver This patch claims the iomem resources for the Mux driver. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 3de7b6482b4e9a34f91604ee0fb7a3ace250f3bb Author: Ryan Bradetich Date: Fri Nov 3 05:52:41 2006 +0000 [PARISC] [MUX] Mux driver updates This patch changes the Mux console to use the Mux hardware instead of the PDC Software console. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 4bd5d82779466a2969c631ce283bef926680c9f5 Author: Ryan Bradetich Date: Fri Nov 3 05:38:39 2006 +0000 [PARISC] [MUX] Mux driver bug fix This patch addresses the problems identified by Russell King in the following email: http://lists.parisc-linux.org/pipermail/parisc-linux/2005-December/027912.html Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 075b8783da0db700868c7b391636a85c06a89678 Author: Ryan Bradetich Date: Fri Nov 3 05:05:01 2006 +0000 [PARISC] HPPB bus updates for E-Class systems This patch addresses the following issues: * Removes an incorrect comment. * Fixes a couple of compiler warnings. * Properly detects the HP-PB bus on E-Class systems. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 328d968e4fbbd439760c04de95998faeb092a9ed Author: Ryan Bradetich Date: Thu Oct 26 01:27:18 2006 +0000 [PARISC] Fix ccio_request_resource when CONFIG_IOMMU_CCIO is not defined This patch fixes the ccio_request_resource to work properly when the CONFIG_IOMMU_CCIO is not defined. This patch was tested on my E35. Signed-off-by: Ryan Bradetich Signed-off-by: Kyle McMartin commit 53faf2910d3539a963d171674ad6364ff2854eea Author: Kyle McMartin Date: Mon Oct 16 20:34:00 2006 -0400 [PARISC] Unbreak discontigmem mem_init() The `simple' way of walking and checking PageReserved is broken on discontigmem, instead we need to check each range explicitly. (Also rename a few things so they make more sense.) Signed-off-by: Kyle McMartin commit ce8420bb65d25335c3b48ddfb1b5a244f53bfb75 Author: Helge Deller Date: Sat Oct 14 22:10:44 2006 +0200 [PARISC] Show more memory information and memory layout at bootup Signed-off-by: Helge Deller Signed-off-by: Kyle McMartin commit 58554927f85616c374795fbddcf0607a3faa7c46 Author: Matthew Wilcox Date: Fri Oct 13 12:32:50 2006 -0600 [PARISC] Delete arch/parisc/mm/kmap.c again I deleted this file from 2.4 5 years ago. Unfortunately, that change never got merged to Linus and so when we switched to 2.5 it came back and nobody noticed. It's never been built in 2.5/2.6 as it was never in the Makefile. Signed-off-by: Matthew Wilcox Signed-off-by: Kyle McMartin