- Jul 26, 2011
-
-
Arun Sharma authored
This allows us to move duplicated code in <asm/atomic.h> (atomic_inc_not_zero() for now) to <linux/atomic.h> Signed-off-by:
Arun Sharma <asharma@fb.com> Reviewed-by:
Eric Dumazet <eric.dumazet@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: David Miller <davem@davemloft.net> Cc: Eric Dumazet <eric.dumazet@gmail.com> Acked-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- Jul 25, 2011
-
-
Jean Delvare authored
Declare myself the maintainer of the lm78 driver. I still have a running system with one of these chips. Also count myself as a co-author of the driver. With 34 commits over 6 years, it seems fair. Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
We should only include support for the ISA interface of the LM78/LM79 if CONFIG_ISA is set. Not only this makes the driver somewhat smaller on most architectures, but this also avoids poking at random I/O ports on these architectures. This is very similiar to what was done for the w83781d driver in October 2008. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Dean Nelson <dnelson@redhat.com>
-
Jean Delvare authored
Move code around to avoid several forward declarations. Also group ISA-related functions together, to make future changes easier. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Dean Nelson <dnelson@redhat.com>
-
Vivien Didelot authored
sht15_store_heater() is called on _write_ access to heater_enable. Signed-off-by:
Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
We can allocate the tx and rx buffers as part of our data structure. Doing so is faster and spares memory. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Tested-by:
Stanislav Brabec <utx@penguin.cz>
-
Jean Delvare authored
Add chassis intrusion detection support for all supported devices, using the standard interface. Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
At least VIA family 6 model D CPU report the VID settings in a MSR, so expose the value to user-space. Not sure about model A. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Guenter Roeck <guenter.roeck@ericsson.com> Tested-by:
Jeff Rickman <jrickman@myamigos.us>
-
Jean Delvare authored
The VIA family 6 model D CPU (C7-D, Eden 90 nm) can use two different VID tables, we have to check the value of a MSR to decide which one to use. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Guenter Roeck <guenter.roeck@ericsson.com> Tested-by:
Jeff Rickman <jrickman@myamigos.us>
-
Hans de Goede authored
This patch adds a new driver for SMSC SCH5636 Super I/O chips. The chips include an embedded microcontroller for hardware monitoring solutions, allowing motherboard manufacturers to create their own custom hwmon solution based upon the SCH5636. Currently the sch5636 driver only supports the Fujitsu Theseus SCH5636 based hwmon solution. The sch5636 driver runs a sanity check on loading to ensure it is dealing with a Fujitsu Theseus and not with another custom SCH5636 based hwmon solution. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Hans de Goede authored
This patch adds a new sch56xx-common.ko which contains code which will also be used in the new sch5636 driver. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
- Jul 21, 2011
-
-
Phil Carmody authored
All these are instances of #define NAME value; or #define NAME(params_opt) value; These of course fail to build when used in contexts like if(foo $OP NAME) while(bar $OP NAME) and may silently generate the wrong code in contexts such as foo = NAME + 1; /* foo = value; + 1; */ bar = NAME - 1; /* bar = value; - 1; */ baz = NAME & quux; /* baz = value; & quux; */ Reported on comp.lang.c, Message-ID: <ab0d55fe-25e5-482b-811e-c475aa6065c3@c29g2000yqd.googlegroups.com> Initial analysis of the dangers provided by Keith Thompson in that thread. There are many more instances of more complicated macros having unnecessary trailing semicolons, but this pile seems to be all of the cases of simple values suffering from the problem. (Thus things that are likely to be found in one of the contexts above, more complicated ones aren't.) Signed-off-by:
Phil Carmody <ext-phil.2.carmody@nokia.com> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
- Jul 17, 2011
-
-
Pavel Herrmann authored
spi_sync call uses its spi_message parameter to keep completion information, using a drvdata structure is not thread-safe. Use a mutex to prevent multiple access to shared driver data. Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com> Acked-by:
Russell King <rmk+kernel@arm.linux.org.uk> Acked-by:
Pavel Machek <pavel@ucw.cz> Acked-by:
Marek Vasut <marek.vasut@gmail.com> Acked-by:
Cyril Hrubis <metan@ucw.cz> Tested-by:
Stanislav Brabec <utx@penguin.cz> Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org
-
Jean Delvare authored
A copy-and-paste error caused it87_attributes_vid to be referenced where it87_attributes_label should be. Thankfully the group is only used for attribute removal, not attribute creation, so the effects of this bug are limited, but let's fix it still. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org Acked-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
Luca Tettamanti authored
The object returned by atk_gitm is dynamically allocated and must be freed. Signed-off-by:
Luca Tettamanti <kronos.it@gmail.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org
-
- Jul 15, 2011
-
-
Guenter Roeck authored
Coefficients to convert chip register values to voltage/current have been slightly changed in revision B of the chip datasheet. Update driver coefficients to match the coefficients in the datasheet. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org>
-
- Jul 12, 2011
-
-
Guenter Roeck authored
Using integer variable types for register to data conversions can cause overflows especially for power calculations, which are in microwatt. Use long variables instead. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.39+
-
- Jul 10, 2011
-
-
Guenter Roeck authored
It is possible that a PMBus device supports the READ_TEMPERATURE2 and/or READ_TEMPERATURE3 registers but does not support READ_TEMPERATURE1. Improve temperature status register detection to address this condition. Reported-by:
Jean Delvare <khali@linux-fr.org> Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.39+
-
Guenter Roeck authored
Negative temperatures were returned in degrees C instead of milli-Degrees C. Also, negative temperatures were reported for remote temperature sensors even if the chip was configured for positive-only results. Fix by detecting temperature modes, and by treating negative temperatures similar to positive temperatures, with appropriate sign extension. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.30+
-
- Jul 08, 2011
-
-
Guenter Roeck authored
The LM95241 driver accepts every chip ID equal to or larger than 0xA4 as its own, and other chips such as LM95245 use chip IDs in the accepted ID range. This results in false chip detection. Fix problem by accepting only the known LM95241 chip ID. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.30+
-
- Jul 03, 2011
-
-
Jean Delvare authored
It's Nehemiah, not Nemiah. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
Hans de Goede authored
The F71869A is almost the same as the F71869F/E, except that it has the normal number of temp and pwm zones for a F71882FG derived chip, rather then the limited number of the F71869F/E. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Tested-by:
Max Baldwin <archerseven@gmail.com> Acked-by:
Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Hans de Goede authored
Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
Handle errors on 8-bit register reads and writes too. Also use likely and unlikely to make the functions faster on success. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
- Jul 01, 2011
-
-
Guenter Roeck authored
Additional temperature attribute support is easy to detect, so do it. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by:
Robert Coulson <robert.coulson@ericsson.com> Cc: stable.kernel.org # 2.6.39
-
Guenter Roeck authored
Some PMBus devices return no error when reading fan speed registers, but don't really support fans. Strengthen fan detection by also checking if fan configuration registers exist. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by:
Robert Coulson <robert.coulson@ericsson.com> Cc: stable.kernel.org # 2.6.39
-
Guenter Roeck authored
Probe function did not free allocated memory if it failed. Fix it. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by:
Robert Coulson <robert.coulson@ericsson.com>
-
Guenter Roeck authored
Some PMBus devices do not support the PMBus revision register, so don't check if it exists. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by:
Robert Coulson <robert.coulson@ericsson.com> Cc: stable.kernel.org # 2.6.39
-
- Jun 18, 2011
-
-
Guenter Roeck authored
Initialize dynamically allocated sysfs attributes before device_create_file() call to suppress lockdep_init_map() warning if lockdep debugging is enabled. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.34+
-
Guenter Roeck authored
Initialize dynamically allocated sysfs attributes before device_create_file() call to suppress lockdep_init_map() warning if lockdep debugging is enabled. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.34+
-
Guenter Roeck authored
Initialize dynamically allocated sysfs attributes before device_create_file() call to suppress lockdep_init_map() warning if lockdep debugging is enabled. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.34+
-
Guenter Roeck authored
Call sysfs_attr_init() from atk_init_attribute() to handle sysfs attribute initialization in a single function. Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Cc: Luca Tettamanti <kronos.it@gmail.com> Acked-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
pdev_entry.cpu and pdev_entry.cpu_core_id aren't used anywhere in the driver code so we can drop these struct members. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Guenter Roeck <guenter.roeck@ericsson.com> Cc: Durgadoss R <durgadoss.r@intel.com> Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
- Jun 04, 2011
-
-
Per Dalén authored
Improve detection of MAX6642 by reading non existing registers (0x04, 0x06 and 0xff). Reading those registers returns the previously read value. Signed-off-by:
Per Dalen <per.dalen@appeartv.com> [guenter.roeck@ericsson.com: added second set of register reads] Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
- Jun 01, 2011
-
-
Guenter Roeck authored
Further relax temperature range checks after reading the IA32_TEMPERATURE_TARGET register. If the register returns a value other than 0 in bits 16..32, assume that the returned value is correct. This change applies to both packet and core temperature limits. Cc: Carsten Emde <C.Emde@osadl.org> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Acked-by:
Fenghua Yu <fenghua.yu@intel.com>
-
Guenter Roeck authored
Commit a321cedb excludes CPU models 0xe, 0xf, 0x16, and 0x1a from TjMax temperature adjustment, even though several of those CPUs are known to have TiMax other than 100 degrees C, and even though the code in adjust_tjmax() explicitly handles those CPUs and points to a Web document listing several of the affected CPU IDs. Reinstate original TjMax adjustment if TjMax can not be determined using the IA32_TEMPERATURE_TARGET register. https://bugzilla.kernel.org/show_bug.cgi?id=32582 Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Cc: Huaxu Wan <huaxu.wan@linux.intel.com> Cc: Carsten Emde <C.Emde@osadl.org> Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu> Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Cc: Yong Wang <yong.y.wang@linux.intel.com> Cc: Rudolf Marek <r.marek@assembler.cz> Cc: Fenghua Yu <fenghua.yu@intel.com> Tested-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Fenghua Yu <fenghua.yu@intel.com> Cc: <stable@kernel.org> # .35.x .36.x .37.x .38.x .39.x
-
Jean Delvare authored
The current temperature range check of MSR_IA32_TEMPERATURE_TARGET seems too strict to me, some TjMax values documented in Documentation/hwmon/coretemp wouldn't pass. Relax the check so that all the documented values pass. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Carsten Emde <C.Emde@osadl.org> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
Per Dalen authored
The temp_fault sysfs attribute is wrong, it should be temp2_fault instead. Reported-by:
Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by:
Per Dalen <per.dalen@appeartv.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
- May 27, 2011
-
-
Jean Delvare authored
chk_ucode_version() is only called from coretemp_probe() which is __devinit, so it can be marked __devinit too. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Durgadoss R <durgadoss.r@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com>
-
Guenter Roeck authored
Initialize sysfs attrs before device_create_file() call to suppress lockdep_init_map() warning: WARNING: at kernel/lockdep.c:2701 lockdep_init_map+0x12d/0x140() Reviewed-by:
Robert Coulson <robert.coulson@ericsson.com> Signed-off-by:
Guenter Roeck <guenter.roeck@ericsson.com> Cc: stable@kernel.org # .39.x
-