- 29 7月, 2011 1 次提交
-
-
由 Guenter Roeck 提交于
Since the number of PMBus drivers is getting large, move them into directory drivers/hwmon/pmbus to improve readability and scalability. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: NRobert Coulson <robert.coulson@ericsson.com>
-
- 12 7月, 2011 1 次提交
-
-
由 Guenter Roeck 提交于
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: NGuenter Roeck <guenter.roeck@ericsson.com> Acked-by: NJean Delvare <khali@linux-fr.org> Cc: stable@kernel.org # 2.6.39+
-
- 02 7月, 2011 1 次提交
-
-
由 Guenter Roeck 提交于
Some PMBus devices do not support the PMBus revision register, so don't check if it exists. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: NRobert Coulson <robert.coulson@ericsson.com> Cc: stable.kernel.org # 2.6.39
-
- 27 5月, 2011 1 次提交
-
-
由 Guenter Roeck 提交于
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: NRobert Coulson <robert.coulson@ericsson.com> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Cc: stable@kernel.org # .39.x
-
- 19 5月, 2011 3 次提交
-
-
由 Guenter Roeck 提交于
Fan control implementation tends to be device specific, so start using the device specific function call to read fan configuration registers. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: NTom Grennan <tom.grennan@ericsson.com>
-
由 Guenter Roeck 提交于
Some devices use non-standard registers to access various functionality. This does not only affect status registers, but other registers as well. Rename local get_status function to get_byte_data to reflect this requirement. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: NTom Grennan <tom.grennan@ericsson.com>
-
由 Guenter Roeck 提交于
This commit replaces hard-coded sensor and limit register detection code with table based sensor detection. This change eliminates code block repetition and reduces code size. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: NTom Grennan <tom.grennan@ericsson.com>
-
- 19 4月, 2011 1 次提交
-
-
由 Guenter Roeck 提交于
struct pmbus_data included an unused variable named status_bits. Remove it. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: NTom Grennan <tom.grennan@ericsson.com>
-
- 27 3月, 2011 1 次提交
-
-
由 Guenter Roeck 提交于
Commit 8677011a added auto-update to temperature limit registers. Unfortunately, the update flag is also used to determine if an attribute is writable, which results in read-only temperature limit registers. To fix the problem, pass 'readonly' as separate flag to the function used to add sensor attributes. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
- 15 3月, 2011 6 次提交
-
-
由 Guenter Roeck 提交于
LINEAR16 data format is unsigned, not signed. Impact is that affected attributes report negative values in the upper half of the supported value range. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Guenter Roeck 提交于
PMBus only has one set of limit registers for up to three temperature sensors. Thus, changing a limit for one of the temperature sensors affects limits for other temperature sensors in the same page (and potentially multiple pages depending on the chip implementation). To handle this situation, re-read all temperature limit registers when updating sensor data. This way, all affected temperature limits are updated whenever the limit for a single sensor is changed. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Guenter Roeck 提交于
Assumption so far was that PMBus devices would support TEMP2 and TEMP3 registers only on page 0, and that only the TEMP1 register would be used/supported on other pages. Turns out that is not correct. UCD92xx devices support TEMP1 and TEMP2 on page 0, and TEMP2 on other pages. So it is necessary to change the core code such that it does not make a page based assumptions about temperature register support. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
-
由 Guenter Roeck 提交于
So far, it seemed like fans would either all be in page 0, or that there would be one page per fan. Turns out this was a wrong assumption. There is at least one PMBus fan controller which supports three pages with four fans each. Update code to handle this situation. Reported-by: NGreg Schnorr <gschnorr@cisco.com> Tested-by: NGreg Schnorr <gschnorr@cisco.com> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Acked-by: NGreg Schnorr <gschnorr@cisco.com>
-
由 Guenter Roeck 提交于
Some PMBus chips do not support the VOUT_MODE register. To make matters worse, such chips may not return an error when reading the register either, but instead return 0xff. Check if the register exists using pmbus_check_byte_register() before reading its value. In addition, validate the returned value and ignore it if it is 0xff (which is invalid). Reported-by: NGreg Schnorr <gschnorr@cisco.com> Tested-by: NGreg Schnorr <gschnorr@cisco.com> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Acked-by: NGreg Schnorr <gschnorr@cisco.com>
-
由 Guenter Roeck 提交于
This driver adds support for hardware monitoring features of various PMBus devices. Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com> Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
-