Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2050995pxj; Sun, 13 Jun 2021 07:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvnCKocO1DnkLGndeDSWaD0bekPkL2G9mVWFEG1ABmQ7wTE/Mc+KqhvLWDVV1f0h7zwAh3 X-Received: by 2002:a17:906:82c3:: with SMTP id a3mr11110744ejy.230.1623593274261; Sun, 13 Jun 2021 07:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623593274; cv=none; d=google.com; s=arc-20160816; b=GjVe84h91qmLDQG1dFvVZSUmpqj1TeeNLN2U3IZXLxMxW8MSwbsWN+xlzsRZYjwKwn Yu9RZ3XskAY1iVG6zp5pRWL2kVfuEUMS0vQdwxDf3+1VeT44Hb5a2RedWHlRJ0ZD1Sfg e8YQ/8Gyt3EN3d631e9KCidKFUJMmlOI4GEeDQ1l0cXYhbRNmAUGOcGVWIexcmr0+tUO XDsH4zhmL6apGAAbukKORHXW6DQ6BlDKsL3JYKqBpNHbJ30YIcBU4zzQynQFpzMEXWxs sOYWyl+A/g6TWPCJyDNGaT3ZrPwhnEUBvO23BnMavTYACQQp0Rvt43CnYrGs+ms/gBP7 wSDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=v9R4OkrnGcYsd/aGvfy9424H3e/qaHAuMg5DxzfL2BA=; b=uOY1lXvWCbRC7uwKmInmh2gswMZB7Q0wBHvn0SFeO3HTAm3lMXCGyiLatOCm0JzaLX AFnumMZrhW43UrxEFqI3JqJvLmNLrUBuer+RxVoJMCu6mc1UI+3nx9Es4za5ddaa2yUc wXNO1tRKvWqyPDqnZCQvyDkx70wRi8xt+K81LMzD4AdtcQTtPS6e4bf6ZE41Hl7zDlCP FEk/cLSAPmr7z6n9n3147koy6iFuTDxs2kp3iUrIdVs4v5VBgQ5gi+2NRusE2exA/Ute JvIib0FFfUADS7Fq1hr32sIWndAE5Cl8VgzFCH6LCIxl/diJMvvReAS3ub4AhIGBqWDU LkPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=JlrZKbjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr40si4626048ejc.41.2021.06.13.07.07.30; Sun, 13 Jun 2021 07:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=JlrZKbjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231782AbhFMOIk (ORCPT + 99 others); Sun, 13 Jun 2021 10:08:40 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49273 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbhFMOIj (ORCPT ); Sun, 13 Jun 2021 10:08:39 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id F19AF240027 for ; Sun, 13 Jun 2021 16:06:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623593197; bh=0fO/biQu6UzHGDaQqIVmZUdYW9zZ982IBt2Ga4Bo+SU=; h=Date:From:To:Cc:Subject:From; b=JlrZKbjMk/NPIQN7qrOdVb9eCWLuEBEFWrGbooDWEqq6pZoKmOz9Hb2OS99xcsBvs SAhyvm5uoY5CJpw3TD51QCXaDGWuc7umV5CGd7O1OPvncnvhLdrWV/fpMmrSsh5Bac QfhY3pc8s6e/VeGHSV/XXOB+D8cOeqezBKy/MYvUax65GSwmELaUy0Va07ijkn2gLM 7ip8tUwJ3EeytBIAJOJ6mgPf9D0PSfsCe/0x5RdELMYQFU8/FaFgldpyW6Fhi50hxc eqaLaMHEeDNj3CCcxaJEIcQII9F5wy0RI+QgB3+I3oG4jdsdL+LCgo2t39M44tuttG xRg+bMs+9nrnA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G2xG34xGmz9rxT; Sun, 13 Jun 2021 16:06:35 +0200 (CEST) Date: Sun, 13 Jun 2021 14:06:34 +0000 From: Wilken Gottwalt To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, Jean Delvare , Jonathan Corbet , linux-hwmon@vger.kernel.org Subject: Re: [PATCH v2] hwmon: corsair-psu: fix suspend behavior Message-ID: <20210613160634.52d90cc5@monster.powergraphx.local> In-Reply-To: <20210604110514.GA1445546@roeck-us.net> References: <20210603160533.GA3952041@roeck-us.net> <20210604071711.78271072@monster.powergraphx.local> <20210604110514.GA1445546@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Jun 2021 04:05:14 -0700 Guenter Roeck wrote: > On Fri, Jun 04, 2021 at 05:17:11AM +0000, Wilken Gottwalt wrote: > > On Thu, 3 Jun 2021 09:05:33 -0700 > > Guenter Roeck wrote: > > > > > On Thu, Jun 03, 2021 at 11:51:02AM +0000, Wilken Gottwalt wrote: > > > > During standby some PSUs turn off the microcontroller. A re-init is > > > > required during resume or the microcontroller stays unresponsive. > > > > > > > > Fixes: d115b51e0e56 ("hwmon: add Corsair PSU HID controller driver") > > > > Signed-off-by: Wilken Gottwalt > > > > > > Applied. > > > > Thank you. Though I have an odd question. I would like to change the licensing to > > a dual license (GPL/MPL) to support the LibreHardwareMonitor project. They want > > to use my code but use a MPL license. What would be the best way to do this? > > Submit a patch which would need an Acked-by: from everyone who contributed > to the driver. As far as I can see, that would be Wan Jiabing > , Jack Doan , and Colin Ian King > . I would suggest to ask them first if the license > change is ok with them. I got the okay from Jack who had the idea for the precision patch. But the other two, who did the semicolon and long cast patches do not reply. So what now? > Guenter > > > > > greetings, > > Will > > > > > Thanks, > > > Guenter > > > > > > > --- > > > > Changes in v2: > > > > - corrected fixes commit > > > > --- > > > > drivers/hwmon/corsair-psu.c | 14 ++++++++++++++ > > > > 1 file changed, 14 insertions(+) > > > > > > > > diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c > > > > index 02298b86b57b..731d5117f9f1 100644 > > > > --- a/drivers/hwmon/corsair-psu.c > > > > +++ b/drivers/hwmon/corsair-psu.c > > > > @@ -771,6 +771,16 @@ static int corsairpsu_raw_event(struct hid_device *hdev, struct > > > > hid_report *repo return 0; > > > > } > > > > > > > > +#ifdef CONFIG_PM > > > > +static int corsairpsu_resume(struct hid_device *hdev) > > > > +{ > > > > + struct corsairpsu_data *priv = hid_get_drvdata(hdev); > > > > + > > > > + /* some PSUs turn off the microcontroller during standby, so a reinit is required > > > > */ > > > > + return corsairpsu_init(priv); > > > > +} > > > > +#endif > > > > + > > > > static const struct hid_device_id corsairpsu_idtable[] = { > > > > { HID_USB_DEVICE(0x1b1c, 0x1c03) }, /* Corsair HX550i */ > > > > { HID_USB_DEVICE(0x1b1c, 0x1c04) }, /* Corsair HX650i */ > > > > @@ -793,6 +803,10 @@ static struct hid_driver corsairpsu_driver = { > > > > .probe = corsairpsu_probe, > > > > .remove = corsairpsu_remove, > > > > .raw_event = corsairpsu_raw_event, > > > > +#ifdef CONFIG_PM > > > > + .resume = corsairpsu_resume, > > > > + .reset_resume = corsairpsu_resume, > > > > +#endif > > > > }; > > > > module_hid_driver(corsairpsu_driver); > > > > > >