|
32 | 32 | * but it is better to not rely on this (it is also hard to parse)
|
33 | 33 | * - the driver uses raw events to be accessible from userspace (though this is not really
|
34 | 34 | * supported, it is just there for convenience, may be removed in the future)
|
35 |
| - * - a reply always start with the length and command in the same order the request used it |
| 35 | + * - a reply always starts with the length and command in the same order the request used it |
36 | 36 | * - length of the reply data is specific to the command used
|
37 | 37 | * - some of the commands work on a rail and can be switched to a specific rail (0 = 12v,
|
38 | 38 | * 1 = 5v, 2 = 3.3v)
|
39 | 39 | * - the format of the init command 0xFE is swapped length/command bytes
|
40 | 40 | * - parameter bytes amount and values are specific to the command (rail setting is the only
|
41 |
| - * for now that uses non-zero values) |
42 |
| - * - there are much more commands, especially for configuring the device, but they are not |
43 |
| - * supported because a wrong command/length can lockup the micro-controller |
| 41 | + * one for now that uses non-zero values) |
44 | 42 | * - the driver supports debugfs for values not fitting into the hwmon class
|
45 |
| - * - not every device class (HXi, RMi or AXi) supports all commands |
46 |
| - * - it is a pure sensors reading driver (will not support configuring) |
| 43 | + * - not every device class (HXi or RMi) supports all commands |
| 44 | + * - if configured wrong the PSU resets or shuts down, often before actually hitting the |
| 45 | + * - reported critical temperature |
47 | 46 | */
|
48 | 47 |
|
49 | 48 | #define DRIVER_NAME "corsair-psu"
|
@@ -254,8 +253,8 @@ static int corsairpsu_get_value(struct corsairpsu_data *priv, u8 cmd, u8 rail, l
|
254 | 253 | /*
|
255 | 254 | * the biggest value here comes from the uptime command and to exceed MAXINT total uptime
|
256 | 255 | * needs to be about 68 years, the rest are u16 values and the biggest value coming out of
|
257 |
| - * the LINEAR11 conversion are the watts values which are about 1200 for the strongest psu |
258 |
| - * supported (HX1200i) |
| 256 | + * the LINEAR11 conversion are the watts values which are about 1500 for the strongest psu |
| 257 | + * supported (HX1500i) |
259 | 258 | */
|
260 | 259 | tmp = ((long)data[3] << 24) + (data[2] << 16) + (data[1] << 8) + data[0];
|
261 | 260 | switch (cmd) {
|
@@ -629,7 +628,7 @@ static const struct hwmon_ops corsairpsu_hwmon_ops = {
|
629 | 628 | .read_string = corsairpsu_hwmon_ops_read_string,
|
630 | 629 | };
|
631 | 630 |
|
632 |
| -static const struct hwmon_channel_info * const corsairpsu_info[] = { |
| 631 | +static const struct hwmon_channel_info *const corsairpsu_info[] = { |
633 | 632 | HWMON_CHANNEL_INFO(chip,
|
634 | 633 | HWMON_C_REGISTER_TZ),
|
635 | 634 | HWMON_CHANNEL_INFO(temp,
|
@@ -873,15 +872,15 @@ static const struct hid_device_id corsairpsu_idtable[] = {
|
873 | 872 | { HID_USB_DEVICE(0x1b1c, 0x1c04) }, /* Corsair HX650i */
|
874 | 873 | { HID_USB_DEVICE(0x1b1c, 0x1c05) }, /* Corsair HX750i */
|
875 | 874 | { HID_USB_DEVICE(0x1b1c, 0x1c06) }, /* Corsair HX850i */
|
876 |
| - { HID_USB_DEVICE(0x1b1c, 0x1c07) }, /* Corsair HX1000i revision 1 */ |
| 875 | + { HID_USB_DEVICE(0x1b1c, 0x1c07) }, /* Corsair HX1000i Series 2022 */ |
877 | 876 | { HID_USB_DEVICE(0x1b1c, 0x1c08) }, /* Corsair HX1200i */
|
878 | 877 | { HID_USB_DEVICE(0x1b1c, 0x1c09) }, /* Corsair RM550i */
|
879 | 878 | { HID_USB_DEVICE(0x1b1c, 0x1c0a) }, /* Corsair RM650i */
|
880 | 879 | { HID_USB_DEVICE(0x1b1c, 0x1c0b) }, /* Corsair RM750i */
|
881 | 880 | { HID_USB_DEVICE(0x1b1c, 0x1c0c) }, /* Corsair RM850i */
|
882 | 881 | { HID_USB_DEVICE(0x1b1c, 0x1c0d) }, /* Corsair RM1000i */
|
883 |
| - { HID_USB_DEVICE(0x1b1c, 0x1c1e) }, /* Corsair HX1000i revision 2 */ |
884 |
| - { HID_USB_DEVICE(0x1b1c, 0x1c1f) }, /* Corsair HX1500i */ |
| 882 | + { HID_USB_DEVICE(0x1b1c, 0x1c1e) }, /* Corsair HX1000i Series 2023 */ |
| 883 | + { HID_USB_DEVICE(0x1b1c, 0x1c1f) }, /* Corsair HX1500i Series 2022 */ |
885 | 884 | { },
|
886 | 885 | };
|
887 | 886 | MODULE_DEVICE_TABLE(hid, corsairpsu_idtable);
|
|
0 commit comments