Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1456346ybc; Sun, 17 Nov 2019 00:06:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwrQVEojtCjoJj4ncPqZAkHSI0wyNSU6IBbhQhqQlVmMjn8syZI/M9z0o7oq7pnG09Mr9TG X-Received: by 2002:a17:906:d93b:: with SMTP id rn27mr16749904ejb.184.1573978012947; Sun, 17 Nov 2019 00:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573978012; cv=none; d=google.com; s=arc-20160816; b=B+wkU5e1lEX+UNQQf81XWSEk6sryWAWmLx1xQm+P9XbH70GiHJYxBxPjGXKgXEKihY 1tPPUvW8fUDJmeqU6nuDDNpKw/cddttwhVdQ5AKRxcqnc3vKlh1WztIBaMySGyPtNxRz xy83CFTHICiec3h+ZeU2kH7JJqsorOIdF+sk47vVF77X8CeFsPnj0chaPSo0aEmCyvHJ nIPp1DJIszOYjqLUdOkO3xCyJLZ5w8iJyCUDe4mdI7MHjOLMgZEWbMD/ix/hr11JNX/A Clh9HieorG1QpwVIfCgP2Y8EdKHKchQ8Kpn/1Aop44H0/WgXDAYiG7oysVIkf5NRJYMQ Jdew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:from:references:to:subject; bh=W+2LAunWJjfueb7PrSXNSdjPzUGvuRyeyy7mAUQcJx8=; b=q8Y0uZi0jI5yh5ZNj64ZVwg5LcA1KoMhYNRTzpg4LYdMAyxE8zsjW0g0bcxWg/HRHD WJEpyGmFdYMpBmTzl62Rs1XmvnUGdhdhgme84UDlKWrZvdU+nmam8Ns0rqN6tmAOFQ3E 1H5OJe6VSw7PyuEe5SNxnBU4YNbfAMSD47mQH5R4unvaYZDbCWHm+05utLYmvGj0a1yI PhsHSKgYwUHAPDtjyNxc6Do6f3nXN3tek0Tmsn2ALBZJzHExKd9RVkKdzL6fJXLhkVs4 UIei9t25sWE9IriHSIbU1hd8EB/gyDiaCbHO7Wzg3TKfITctjJu6Y4oRtUOkZybBZypL PWMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x95si5300118ede.192.2019.11.17.00.05.55; Sun, 17 Nov 2019 00:06:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726020AbfKQICO (ORCPT + 99 others); Sun, 17 Nov 2019 03:02:14 -0500 Received: from pietrobattiston.it ([92.243.7.39]:49142 "EHLO jauntuale.pietrobattiston.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725880AbfKQICO (ORCPT ); Sun, 17 Nov 2019 03:02:14 -0500 Received: from amalgama (94.105.105.79.dyn.edpnet.net [94.105.105.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: giovanni) by jauntuale.pietrobattiston.it (Postfix) with ESMTPSA id F3D9FE1E79; Sun, 17 Nov 2019 09:02:09 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by amalgama (Postfix) with ESMTP id 0234F3C0340; Sun, 17 Nov 2019 09:02:09 +0100 (CET) Subject: Re: [PATCH v3] dell-smm-hwmon: Add support for disabling automatic BIOS fan control To: Guenter Roeck , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191116173610.208358-1-gio@debian.org> <3a10f96a-06e1-39f4-74a6-908d25b1f496@roeck-us.net> From: Giovanni Mascellani Autocrypt: addr=gio@debian.org; prefer-encrypt=mutual; keydata= mQINBEuFs48BEACkd+0TjHZ81/gFb0yEsiVhFJ5S3CaAQcFloMQ0PO/CPv4fMpOzL3tfko5Y KONBxZGE2NKsRz/z1V/84nzCWMxJdNV/c5hahuoCkCnxmoHkBsSgCzm6QgAc3c+QAZa71oRr rJxpH9TyvjMimq1ZNBEVY+vgKCWkkuBqil/UYwn3YVISwlHDSc2amKCA+dtb9EQv8oTJcr7C bACH1MqszW0kKNJrAvfkT2vnawhUB0bJeqLGUN8/F+2DDbHfqNPCEOMJY78/Set+m4uvgJyN btZ7fa6FSEsk22fT+KxyPVDbEktdECGz3oupYqh7pZSManqEIvDOzHKWgvjo2yCF3dzU/ykZ gOIk2AQ3DeSB6llHbHA2/2Ms+RH6eCb8Bx+GJ5Ta5DUNQh3DZyuWR/Doc3NsAoLsaOWHwH+P D9ctmP/1ZN5a7mRcj/IKPquTvxHfg81FmS2H84lv1RrgR36QzCMiJHWOgm9UePEk8xlVeG0r lZ9yNCikzMkxuIAhlmWEyeZ9RgKOnYKy/9OgELHWsRIsPIkORVkpwz/Rpar0gbxhOisBOVQW 2f7GvNtJFyeC+xSz4hVIFQAtS/JFXZ+R2/xuhxRY1cK7gQfELioFyXmb9/gPgPjwxjizttUr LFB7WH/lwPqA7znjh2si4CNBpgcPUgY8HPjhcFPqZvi/Gf6xSwARAQABiQI3BB8BCAAhBQJL hbdXFwyAER62PUPiAU3fZ70AP/ywu1xfH79wAgcAAAoJEJ7cyZHZq0V+4Q8P/ja1ucn2tGwx kSHxwpIFDB2k8gMn5McCF6VDKojuPTJQrRLOmpNPyE3CdkS5ki/YQzBQV41X/gslkl6Sc0wS 9Cvrd2yhydzUesdRHjSjZMk2J0LxguoRj6LQo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zpqI5CMhWx2kBs22I5f0UpnzLdP6nBinDQSGZMY XRbSaA8z+zlgPDPe+KWg8b1ekx4jks6bzOJJTABo/ybdjLkky4iKg1cqmlKn+zH6z2K5lmc3 uq3/WmRPv8r10mXRkWvDuXvi Organization: Debian Message-ID: <371da137-6073-00f4-7520-c990da6be40e@debian.org> Date: Sun, 17 Nov 2019 09:02:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <3a10f96a-06e1-39f4-74a6-908d25b1f496@roeck-us.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oPZuPHmt4Cb44GqEfc8QYE1Mp2BgMKKf0" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oPZuPHmt4Cb44GqEfc8QYE1Mp2BgMKKf0 Content-Type: multipart/mixed; boundary="id70mKbbao7ZErtqNbG1xS6Gm8yIWvChw"; protected-headers="v1" From: Giovanni Mascellani To: Guenter Roeck , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <371da137-6073-00f4-7520-c990da6be40e@debian.org> Subject: Re: [PATCH v3] dell-smm-hwmon: Add support for disabling automatic BIOS fan control References: <20191116173610.208358-1-gio@debian.org> <3a10f96a-06e1-39f4-74a6-908d25b1f496@roeck-us.net> In-Reply-To: <3a10f96a-06e1-39f4-74a6-908d25b1f496@roeck-us.net> --id70mKbbao7ZErtqNbG1xS6Gm8yIWvChw Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi, Il 16/11/19 23:08, Guenter Roeck ha scritto: >> +=C2=A0=C2=A0=C2=A0 mutex_lock(&i8k_mutex); >> +=C2=A0=C2=A0=C2=A0 err =3D i8k_enable_fan_auto_mode(enable); >> +=C2=A0=C2=A0=C2=A0 mutex_unlock(&i8k_mutex); >> + >> +=C2=A0=C2=A0=C2=A0 return err ? -EIO : count; >=20 > Why override the error code ? i8k_enable_fan_auto_mode() > can return -EINVAL. >=20 > I can see that the rest of the driver has the same bad habit, > but that is not a reason to continue it. Ok, I thought it was the appropriate thing to do just because it was done elsewhere. If it's not a good idea, do you think a patch removing the other instances of this construct would be appropriate? >> +} >> + >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(temp1_input, i8k_hwmon_temp, 0); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(temp1_label, i8k_hwmon_temp_label,= 0); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(temp2_input, i8k_hwmon_temp, 1); >> @@ -749,12 +794,15 @@ static SENSOR_DEVICE_ATTR_RO(temp10_label, >> i8k_hwmon_temp_label, 9); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(fan1_input, i8k_hwmon_fan, 0); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(fan1_label, i8k_hwmon_fan_label, 0= ); >> =C2=A0 static SENSOR_DEVICE_ATTR_RW(pwm1, i8k_hwmon_pwm, 0); >> +static SENSOR_DEVICE_ATTR_WO(pwm1_enable, i8k_hwmon_pwm_enable, 0); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(fan2_input, i8k_hwmon_fan, 1); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(fan2_label, i8k_hwmon_fan_label, 1= ); >> =C2=A0 static SENSOR_DEVICE_ATTR_RW(pwm2, i8k_hwmon_pwm, 1); >> +static SENSOR_DEVICE_ATTR_WO(pwm2_enable, i8k_hwmon_pwm_enable, 0); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(fan3_input, i8k_hwmon_fan, 2); >> =C2=A0 static SENSOR_DEVICE_ATTR_RO(fan3_label, i8k_hwmon_fan_label, 2= ); >> =C2=A0 static SENSOR_DEVICE_ATTR_RW(pwm3, i8k_hwmon_pwm, 2); >> +static SENSOR_DEVICE_ATTR_WO(pwm3_enable, i8k_hwmon_pwm_enable, 0); >=20 > Having three attributes do all the same is not very valuable. > I would suggest to stick with pwm1_enable and document that it applies > to all pwm channels. I had no idea what is the convention here. No problem changing this thing= =2E >> @@ -1200,6 +1291,14 @@ static int __init i8k_probe(void) >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i8k_fan_max =3D fan_max ? : I8K_FAN_HIG= H;=C2=A0=C2=A0=C2=A0 /* Must not be 0 */ >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i8k_pwm_mult =3D DIV_ROUND_UP(255, i8k_= fan_max); >> =C2=A0 +=C2=A0=C2=A0=C2=A0 fan_control =3D dmi_first_match(i8k_whiteli= st_fan_control); >> +=C2=A0=C2=A0=C2=A0 if (fan_control && fan_control->driver_data) { >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 const struct i8k_fan_contr= ol_data *fan_control_data =3D >> fan_control->driver_data; >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 manual_fan =3D fan_control= _data->manual_fan; >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 auto_fan =3D fan_control_d= ata->auto_fan; >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pr_info("enabling experime= ntal BIOS fan control support\n"); >=20 > That isn't entirely accurate. What this enables is the ability > to select automatic or manual fan control. Hmm, it sounds right to me: there is a feature which is "BIOS fan control" and this driver can "support" it or not, i.e., be aware of it and interact with it or not. And all of this is "experimental". The wording seems to capture this to me. However, no problem with changing it. How would "enabling support for setting automatic/manual fan control" work? Can you suggest a wording? Thanks, Giovanni. --=20 Giovanni Mascellani Postdoc researcher - Universit=C3=A9 Libre de Bruxelles --id70mKbbao7ZErtqNbG1xS6Gm8yIWvChw-- --oPZuPHmt4Cb44GqEfc8QYE1Mp2BgMKKf0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSiBF6hBvCQNcghJEaNr8EMz954SQUCXdD+gAAKCRCNr8EMz954 SZ5xAP44/H/MINnVTavfV61CVRlZDdIRxr2xPku/2T73vDimWAD/biyHxM5TF7Hr CUwdC/bvEm5M3a7bX6356xVHbokQKQ4= =2xxD -----END PGP SIGNATURE----- --oPZuPHmt4Cb44GqEfc8QYE1Mp2BgMKKf0--