- 15 Mar, 2004 8 commits
-
-
Aurelien Jarno authored
The following patch against kernel 2.6.4-mm1 adds the ds1621 driver (an I2C sensor). I have ported it from the 2.4 version. It has been reviewed by Jean Delvare, partly on IRC, and it is "compliant" with Mark Hoffman's refactoring.
-
Jean Delvare authored
This patch makes the w83781d driver preserve fan_min settings when the user changes fan_divs. This isn't done "by default" because the actual fan min value (in RPMs) depends on both the fan_min register and the fan_div register. Only two drivers handle it properly at the moment as far as I know (lm78 and asb100). Several other drivers would need to be fixed the same way, but well, once at a time ;) Tested on my AS99127F rev.1. Credits go to Philip Pokorny, since I think I remember he is the one who introduced the method in the lm78 driver in the first place. This tends to increase the size of the three set_store_regs_fan_div functions, and I am considering refactoring them at some point. Later though.
-
Jean Delvare authored
A number of chip drivers in 2.6.4-mm1 try to handle an error case that cannot happen when setting the chip name. The following patch changes that. Affected drivers: adm1021, it87, lm75, lm78, lm85, w83627hf, w83781d. Note that in any case, the worst that could happen (but then again, it cannot happen) is that the chip name would be set to an empty string, which doesn't hurt much. The patch also cleans up a few things in it87, w83627hf and w83781d, which are tightly related to the rest of the changes and necessary for them to be safe. it87: There is only really one "kind" in this driver, so I removed all references to other kinds. w83627hf: The driver did not handle unknown chips. w83781d: The user shouldn't be allowed to force a kind that doesn't match the chip's bus type (I2C or ISA). The code was not meant to handle that case, although no check was done so far. Tested on my AS99127F, works as intended.
-
Jean Delvare authored
I just noticed that I am doing something wrong in the i2c chip drivers I ported to Linux 2.6. If these drivers are forced to a specific chip type ("kind" as we call it internally), then the device doesn't have its name set (and defaults to an empty string). Affected drivers: gl518sm, lm83, lm90, w83l785ts. I could verify the problem on my ADM1032 chip (lm90 driver). I also verified that the proposed patch fixes the issue. You may notice that I fix the problem differently for gl518sm and w83l785ts on the one hand, and lm83 and lm90 on the other hand. This is because the first two drivers are not expected to support more a single chip in the future, while lm90 already does and lm83 could someday (for example, support for the LM82 could be added on request).
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
Greg Kroah-Hartman authored
-
- 11 Mar, 2004 1 commit
-
-
Mark M. Hoffman authored
This patch is a refactoring of some common code among all sensors chip drivers (except asb100, which was written this way to begin with.) It saves a handful of lines and ~100-300 bytes per module. It compiles ok. I've only tested it against one of the drivers, but the changes are similar across the board and quite mechanical. Please apply.
-
- 10 Mar, 2004 1 commit
-
-
Jean Delvare authored
Here is a proposed patch that cleanups the fan_div code from w83781d. The original code was obviously taken from the 2.4 driver, but the way things were done in 2.4 do not make any sense anymore (because we now have a single value per interface file). Since fan divisor bits are spread over three different regs with various bitmask manipulations, I don't think it makes much sense to have a single function as we do in most other cases. Having three different functions makes more sense, although they are of course similar. The size increment is only 581 bytes, I don't think its a problem since it also makes the code much more efficient and readable too IMHO. I agree that the original code was working - it was simply doing far too much work each time one would want to change a fan divisor. Originally, I took a look at the code because I wanted to fix the fact that changing fan divisors breaks fan mins. But it looked like a good cleanup before doing that was required. Once this patch will have been accepted, I'll work on the other one. I've tested my patch successfully on a W83781D and an AS99127F rev.1. Note that this means that one part of the code wasn't tested, because these are the two chips of the family that do not support divisors greater than 8. If anyone can test it, please do.
-
- 09 Mar, 2004 6 commits
-
-
Jean Delvare authored
Quoting myself: > I think that it would make sense to have a specific menu entry for > these, separate from the sensors stuff. Looks like an easy thing to > do. Here is a proposed patch that does this. Comments welcome.
-
Jean Delvare authored
Please accept this temporary fix for the class issue. I'd like users of the i2c-ali1535, i2c-sis5595 and i2c-via driver to be able to use sensors as soon as possible, even if we have not yet determined what our policy WRT classes should be. Thanks. BTW, don't you think I2C_ADAP_CLASS_SMBUS is a misnomer? It's about hardware monitoring, not the SMBus protocol. I'd say I2C_ADAP_CLASS_HWMON or I2C_ADAP_CLASS_SENSORS would have been more appropriate (although it may be a bit late for a change...)
-
Randy Dunlap authored
prosavage_remove() is called during init, so it shouldn't be marked as exit code. (It matters when CONFIG_HOTPLUG=n.)
-
Mark M. Hoffman authored
This patch updates the sysfs names of the w83627hf driver to match the new standard. The patch applies on top of one recently applied to your tree [1]. I have tested it using a w83627thf & the latest lm_sensors CVS. Please apply. [1] http://archives.andrew.net.au/lm-sensors/msg06746.html
-
Russell King authored
i2c_use_client() contains a bogosity. If i2c_inc_use_client() returns success, i2c_use_client() returns an error. If i2c_inc_use_client() fails, i2c_use_client() might succeed. Fix it so that (a) we get the correct sense between these two functions, and (b) propagate the error code from i2c_inc_use_client(), rather than making our own one up.
-
Jean Delvare authored
Looks like i2c-dev suffers the same problem with dev_dbg as i2c-core did twice. Here is a patch that fixed a oops I and another user were experiencing when running sensors-detect.
-
- 08 Mar, 2004 1 commit
-
-
Greg Kroah-Hartman authored
-
- 07 Mar, 2004 5 commits
-
-
Krzysztof Halasa authored
The attached patch updates wanXL card driver. Please apply to Linux 2.6. Thanks. Changes: * fixed initialization kernel panic, introduced with recent alloc_netdev() wan patch, * wanxl_rx_intr() port# now checked before accessing port structure, * cleanups etc. -- Krzysztof Halasa, B*FH
-
Scott Feldman authored
* Add National DP83840 PHY rev b/c setup. Only rev a was being setup.
-
Andrew Morton authored
From: Joe Perches <joe@perches.com> Use %08llx for a dma_addr_t, not the recently-added %llx.
-
Jens Axboe authored
The carmel driver will want to use this rather than muck around in queue internals directly.
-
Andrew Morton authored
Declarations come before statements, please. Current gcc warns about this too, bless them: crypto/arc4.c: In function `arc4_crypt': crypto/arc4.c:65: warning: ISO C90 forbids mixed declarations and code
-
- 06 Mar, 2004 18 commits
-
-
Andrew Morton authored
From: Zwane Mwaikambo <zwane@linuxpower.ca> It looks like a block request snuck through before we had initialised the motor_off_timer timers. So I pushed the timer init earlier.
-
Andrew Morton authored
From: Marc-Christian Petersen <m.c.p@wolk-project.de> OSS Sound Driver Forte needs ac97_codec.
-
Andrew Morton authored
drivers/i2c/busses/i2c-elv.c: In function `i2c_bitelv_init': drivers/i2c/busses/i2c-elv.c:155: warning: unsigned int format, long int arg (arg 2) drivers/i2c/busses/i2c-elv.c:155: warning: unsigned int format, long int arg (arg 2) drivers/i2c/busses/i2c-velleman.c: In function `i2c_bitvelle_init': drivers/i2c/busses/i2c-velleman.c:141: warning: unsigned int format, long int arg (arg 2) drivers/i2c/busses/i2c-velleman.c:141: warning: unsigned int format, long int arg (arg 2)
-
Andrew Morton authored
From: David Joerg <davidjoerg@web.de> Fix the description of the IO ports for the IDE primary and secondary interfaces.
-
Andrew Morton authored
From: Aneesh Kumar KV <aneesh.kumar@digital.com> We need to set the tasks's exit code prior to waking it, not afterwards. Acked by rth.
-
Andrew Morton authored
Dave Kleikamp <shaggy@austin.ibm.com> points out a race between nobh_prepare_write() and end_buffer_read_sync(). end_buffer_read_sync() calls unlock_buffer(), waking the nobh_prepare_write() thread, which immediately frees the buffer_head. end_buffer_read_sync() then calls put_bh() which decrements b_count for the already freed structure. The SLAB_DEBUG code detects the slab corruption. We fix this by giving nobh_prepare_write() a private buffer_head end_o handler which doesn't touch the buffer's contents after unlocking it.
-
Andrew Morton authored
From: Eric Sandeen <sandeen@sgi.com> Several functions in buffer.c are using unsigned long where they should be using sector_t. Also, use pgoff_t in several places so it is easier to tell what is beingused as a pagecache index, what is being used as a disk index and what is being used as an offset-into-page.
-
Andrew Morton authored
If a large pci_alloc_consistent() GFP_ATOMIC allocation fails this driver's recovery code will call emu10k1_wavein_close() far earlier than it should: it goes splat in emu10k1_timer_uninstall(). Fix it by simply removing that call: we haven't allocated any resources yet anyway. Note that one of the callers of emu10k1_wavein_open(), emu10k1_audio_read() will sit there stupidly retrying the open. But it has a sleep in there so something might eventually give way.
-
Andrew Morton authored
From: Markus Lidel <Markus.Lidel@shadowconnect.com> drivers/message/i2o/i2o_block.c: - corrected the initialization sequence of the request queues. - added initialization to queue spinlocks. - release device in i2o_scan because else the device could not be queried. - i2o_block event threads wait on signal KILL but signal TERM was sent. drivers/message/i2o/i2o_core.c: - set the HRT length to 0 at initialization, to avoid calling free on unallocated memory. - i2o_core event threads wait on signal KILL but signal TERM was sent. - added a limit of 3 tries to get the HRT from the controller. - removed the dpt parameter, which was used to force DPT controllers get handled by the i2o driver. Now all available i2o controllers will be handled by this driver. drivers/message/i2o/i2o_scsi.c: - beautifying of printk calls. - added scsi_unregister to properly clean up on module unload. drivers/message/i2o/Kconfig: - added help for i2o_block and i2o_scsi to describe the differences between the two drivers. include/linux/i2o-dev.h: - cleaned typo "tate" into "state". include/linux/i2o.h: - removed defines from i2o_block and insert it here. (Acked by Alan)
-
Andrew Morton authored
From: Gerd Knorr <kraxel@bytesex.org> This patch fixes a bug in the v4l1-compat module and makes it pass the correct buffer type to the v4l2 driver on VIDIOC_STREAM(ON|OFF) ioctls.
-
Andrew Morton authored
From: Arjan van de Ven <arjanv@redhat.com>
-
Andrew Morton authored
From: Chris Mason <mason@suse.com> find_group_other looks buggy for ext2 and ext3 in 2.6, it can cause -ENOSPC errors when the fs has plenty of free room. To hit the bug, you need a filesystem where: parent_group has no free blocks (but might have free inodes) Every other group with free inodes has no free blocks. That gets you down to the final linear search in find_group_other. The linear search has two bugs: group = parent_group + 1; means we start searching at parent_group + 2 because the loop increments group before using it. for(i = 2 ; i < ngroups ; i++) means we don't search through all the groups. The end result is that parent_group and parent_group + 1 are not checked for free inodes in the final linear search. ext3 has the same problem.
-
Andrew Morton authored
From: Andreas Kies <andikies@t-online.de> Fix improperly handled 16 bit sample size. If you use an odd number of bytes in 16 bit mode the driver fails to work.
-
Andrew Morton authored
In file included from drivers/misc/ibmasm/uart.c:27: include/linux/serial_core.h: In function `uart_handle_dcd_change': include/linux/serial_core.h:407: `TASK_INTERRUPTIBLE' undeclared (first use in this function)
-
Andrew Morton authored
From: Christoph Hellwig <hch@lst.de> sleep_on hurts my eyes and this offender is compltely unused, so..
-
Andrew Morton authored
From: Arnd Bergmann <arnd@arndb.de> This use of deprecated struct initializers was hidden behind macro magic and has appearantly not been noticed before.
-
Andrew Morton authored
From: "Jim Gifford" <maillist@jg555.com> Prevent initrd from being built if ram device is built as a module.
-
Andrew Morton authored
From: "Randy.Dunlap" <rddunlap@osdl.org> From: Tony Breeds <tony@bakeyournoodle.com> It fixes 3 places where the ioctl returns positives instead of negatives. I've gotten feedback from the maintainer (Rogier Wolff (sp?) and he has no objections.
-