From: Guenter Roeck <linux@roeck-us.net>
To: Wilken Gottwalt <wilken.gottwalt@posteo.net>
Cc: linux-kernel@vger.kernel.org, Jean Delvare <jdelvare@suse.com>,
Jonathan Corbet <corbet@lwn.net>,
linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: corsair-psu: update supported devices
Date: Fri, 27 Nov 2020 07:39:41 -0800 [thread overview]
Message-ID: <20201127153941.GA9158@roeck-us.net> (raw)
In-Reply-To: <X7+T4aZSUuzfsf7H@monster.powergraphx.local>
On Thu, Nov 26, 2020 at 12:40:16PM +0100, Wilken Gottwalt wrote:
> Adds support for another Corsair PSUs series: AX760i, AX860i, AX1200i,
> AX1500i and AX1600i. The first 3 power supplies are supported through
> the Corsair Link USB Dongle which is some kind of USB/Serial/TTL
> converter especially made for the COM ports of these power supplies.
> There are 3 known revisions of these adapters. The AX1500i power supply
> has revision 3 built into the case and AX1600i is the only one in that
> series, which has an unique usb hid id like the RM/RX series.
>
> The patch also changes the usb hid ids to use upper case letters to be
> consistent with the rest of the hex numbers in the driver and updates
> the hwmon documentation.
>
> This patch adds:
> - hwmon/corsair-psu documentation update
> - corsair-psu driver update
>
> Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net>
Applied.
Thanks,
Guenter
> ---
> Documentation/hwmon/corsair-psu.rst | 10 +++++++++
> drivers/hwmon/Kconfig | 7 +++---
> drivers/hwmon/corsair-psu.c | 33 +++++++++++++++++++----------
> 3 files changed, 36 insertions(+), 14 deletions(-)
>
> diff --git a/Documentation/hwmon/corsair-psu.rst b/Documentation/hwmon/corsair-psu.rst
> index 396b95c9a76a..6227e9046d73 100644
> --- a/Documentation/hwmon/corsair-psu.rst
> +++ b/Documentation/hwmon/corsair-psu.rst
> @@ -7,6 +7,16 @@ Supported devices:
>
> * Corsair Power Supplies
>
> + Corsair AX760i (by Corsair Link USB Dongle)
> +
> + Corsair AX860i (by Corsair Link USB Dongle)
> +
> + Corsair AX1200i (by Corsair Link USB Dongle)
> +
> + Corsair AX1500i (by builtin Corsair Link USB Dongle)
> +
> + Corsair AX1600i
> +
> Corsair HX550i
>
> Corsair HX650i
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index 716df51edc87..3c059fc23cd6 100644
> --- a/drivers/hwmon/Kconfig
> +++ b/drivers/hwmon/Kconfig
> @@ -453,11 +453,12 @@ config SENSORS_CORSAIR_PSU
> tristate "Corsair PSU HID controller"
> depends on HID
> help
> - If you say yes here you get support for Corsair PSUs with a HID
> + If you say yes here you get support for Corsair PSUs with an USB HID
> interface.
> Currently this driver supports the (RM/HX)550i, (RM/HX)650i,
> - (RM/HX)750i, (RM/HX)850i, (RM/HX)1000i and HX1200i power supplies
> - by Corsair.
> + (RM/HX)750i, (RM/HX)850i, (RM/HX)1000i, HX1200i and AX1600i power
> + supplies by Corsair. The AX760i, AX860i, AX1200i and AX1500i
> + power supplies are supported through the Corsair Link USB Dongle.
>
> This driver can also be built as a module. If so, the module
> will be called corsair-psu.
> diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c
> index 99494056f4bd..0146dda3e2c3 100644
> --- a/drivers/hwmon/corsair-psu.c
> +++ b/drivers/hwmon/corsair-psu.c
> @@ -571,17 +571,28 @@ static int corsairpsu_raw_event(struct hid_device *hdev, struct hid_report *repo
> }
>
> static const struct hid_device_id corsairpsu_idtable[] = {
> - { HID_USB_DEVICE(0x1b1c, 0x1c03) }, /* Corsair HX550i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c04) }, /* Corsair HX650i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c05) }, /* Corsair HX750i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c06) }, /* Corsair HX850i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c07) }, /* Corsair HX1000i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c08) }, /* Corsair HX1200i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c09) }, /* Corsair RM550i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c0a) }, /* Corsair RM650i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c0b) }, /* Corsair RM750i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c0c) }, /* Corsair RM850i */
> - { HID_USB_DEVICE(0x1b1c, 0x1c0d) }, /* Corsair RM1000i */
> + /*
> + * The Corsair USB/COM Dongles appear in at least 3 different revisions, where rev 1 and 2
> + * are commonly used with the AX760i, AX860i and AX1200i, while rev3 is rarely seen with
> + * these PSUs. Rev3 is also build into the AX1500i, while the AX1600i is the first PSU of
> + * this series which has an unique usb hid id. Though, the actual device name is part of
> + * the HID message protocol, so it doesn't matter which dongle is connected.
> + */
> + { HID_USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair Link USB/COM Dongle rev1 */
> + { HID_USB_DEVICE(0x1B1C, 0x1C01) }, /* Corsair Link USB/COM Dongle rev2 */
> + { HID_USB_DEVICE(0x1B1C, 0x1C02) }, /* Corsair Link USB/COM Dongle rev3 (AX1500i) */
> + { HID_USB_DEVICE(0x1B1C, 0x1C03) }, /* Corsair HX550i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C04) }, /* Corsair HX650i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C05) }, /* Corsair HX750i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C06) }, /* Corsair HX850i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C07) }, /* Corsair HX1000i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C08) }, /* Corsair HX1200i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C09) }, /* Corsair RM550i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C0A) }, /* Corsair RM650i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C0B) }, /* Corsair RM750i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C0C) }, /* Corsair RM850i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C0D) }, /* Corsair RM1000i */
> + { HID_USB_DEVICE(0x1B1C, 0x1C11) }, /* Corsair AX1600i */
> { },
> };
> MODULE_DEVICE_TABLE(hid, corsairpsu_idtable);
next prev parent reply other threads:[~2020-11-27 15:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-26 11:40 [PATCH] hwmon: corsair-psu: update supported devices Wilken Gottwalt
2020-11-27 15:39 ` Guenter Roeck [this message]
2020-11-28 5:37 ` Jonas Malaco
2020-11-28 10:35 ` Wilken Gottwalt
2020-11-28 20:21 ` Jonas Malaco
2020-11-29 6:36 ` Wilken Gottwalt
2020-11-29 13:00 ` Guenter Roeck
2020-11-29 15:54 ` Wilken Gottwalt
2020-11-29 21:59 ` Guenter Roeck
2020-11-30 5:22 ` Wilken Gottwalt
2020-11-30 10:53 ` Jonas Malaco
2020-11-30 14:46 ` Wilken Gottwalt
2020-11-30 12:43 ` Thomas Backlund
2020-11-30 14:49 ` Wilken Gottwalt
2020-11-30 16:25 ` Backlund Thomas
2020-12-01 7:24 ` Wilken Gottwalt
2020-12-01 15:20 ` Thomas Backlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201127153941.GA9158@roeck-us.net \
--to=linux@roeck-us.net \
--cc=corbet@lwn.net \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wilken.gottwalt@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox